/* Formdrop — Digital Templates Store
   Color palette: Navy #1E2A4A, Gold #C5A55A, Cream #F5F0E8 */

:root {
  --navy: #1E2A4A;
  --navy-light: #2d3f66;
  --gold: #C5A55A;
  --gold-light: #d4b76e;
  --gold-dark: #b08f3e;
  --cream: #F5F0E8;
  --cream-dark: #e8e0d2;
  --white: #ffffff;
  --text: #1E2A4A;
  --text-light: #5a6577;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* ─── NAVBAR ─── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.navbar-logo span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.navbar-logo .logo-accent { color: var(--gold); }

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.875rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* ─── PRODUCTS GRID ─── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(30, 42, 74, 0.06);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 42, 74, 0.1);
}

.product-card-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.product-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
}

.btn-large {
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  background: var(--white);
  padding: 4rem 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--cream);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.step p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.product-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-detail-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.product-detail-header .product-price {
  font-size: 2rem;
}

.product-detail-body {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(30, 42, 74, 0.06);
}

.product-detail-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.product-detail-body h2:first-child { margin-top: 0; }

.product-detail-body p,
.product-detail-body li {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-detail-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-detail-body li { margin-bottom: 0.4rem; }

.product-detail-cta {
  text-align: center;
  padding: 2rem 0;
}

.format-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--text-light);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

/* ─── DOWNLOAD / SUCCESS ─── */
.page-centered {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.page-centered h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-centered p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.check-icon {
  width: 72px;
  height: 72px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--gold);
}

/* ─── LEGAL ─── */
.legal-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-page p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
}

.footer-brand .accent { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .navbar { padding: 1rem 1.5rem; }
  .navbar-links { gap: 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 1.5rem; }
  .product-detail { padding: 2rem 1.5rem; }
  .product-detail-header h1 { font-size: 1.75rem; }
  .product-detail-body { padding: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .navbar-logo span { font-size: 1.25rem; }
  .product-card-footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
