:root {
  --cream:       #faf7f2;
  --cream-mid:   #f2ece2;
  --brown-900:   #1c1917;
  --brown-700:   #44403c;
  --brown-500:   #78716c;
  --brown-300:   #a8998e;
  --gold:        #9a7c54;
  --gold-light:  #c4a97a;
  --border:      #e0d5c8;
  --border-mid:  #ede4d8;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Nav ──────────────────────────────────────────── */

header {
  border-bottom: 1px solid transparent;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background 0.35s ease, border-color 0.35s ease;
}

header.scrolled {
  background: var(--cream);
  border-bottom-color: var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #e8cfa0;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

header:not(.scrolled) .logo {
  color: #f0d898;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

header.scrolled .logo {
  color: var(--brown-900);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(250, 247, 242, 0.85);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cream);
}

header.scrolled .nav-links a {
  color: var(--brown-500);
}

header.scrolled .nav-links a:hover {
  color: var(--brown-900);
}

/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  background: var(--brown-900);
  color: var(--cream) !important;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--brown-700);
  transform: translateY(-1px);
}

.btn-large {
  padding: 0.85rem 2.25rem;
  font-size: 0.95rem;
}

.btn-full {
  display: block;
  text-align: center;
}

/* ── Shared section header ────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── Buttons (light variant) ──────────────────────── */

.btn-cream {
  background: var(--cream);
  color: var(--brown-900) !important;
}

.btn-cream:hover {
  background: #fff;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(28, 25, 23, 0.38) 0%,
    rgba(28, 25, 23, 0.58) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 2rem 5rem;
  max-width: 680px;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-content .eyebrow {
  color: #e8cfa0;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.hero-content h1 em {
  font-style: italic;
  color: #dfc28a;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.hero-content .hero-sub {
  color: rgba(250, 247, 242, 0.78);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: 4rem;
}

.ornament-line {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--border);
}

.hero-content .ornament-line {
  background: rgba(250, 247, 242, 0.25);
}

.ornament-mark {
  font-size: 0.45rem;
  color: var(--gold-light);
  line-height: 1;
}

.hero-content .ornament-mark {
  color: rgba(196, 169, 122, 0.6);
}

/* ── Templates ────────────────────────────────────── */

.templates {
  padding: 5rem 2.5rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.template-card {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

.tc-inner {
  text-align: center;
  padding: 1.75rem 1.25rem;
  width: 100%;
}

.tc-tag {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tc-names {
  margin-bottom: 0.6rem;
}

.tc-date {
  margin-bottom: 0.4rem;
}

/* Romantic Garden */
.tc-romantic {
  background: #faf8f5;
  border: 1px solid #e5ddd5;
}
.tc-romantic .tc-tag   { color: #8a7968; }
.tc-romantic .tc-names { font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; color: #2c2c2c; }
.tc-romantic .tc-date  { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8a7968; }
.tc-romantic .tc-place { font-size: 0.65rem; color: #b0a090; letter-spacing: 0.06em; }

/* Elegant Noir */
.tc-noir {
  background: #1a1a1a;
}
.tc-noir .tc-tag   { color: #c9a96e; }
.tc-noir .tc-names { font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; color: #f0e6d3; }
.tc-noir .tc-date  { font-size: 0.7rem; letter-spacing: 0.12em; color: #c9a96e; }
.tc-noir .tc-place { font-size: 0.65rem; color: #7a6c5e; letter-spacing: 0.06em; }

/* Party Time */
.tc-party {
  background: #1B1F3A;
  position: relative;
  overflow: hidden;
}
.tc-party::before {
  content: '';
  position: absolute;
  top: -25%; left: -15%;
  width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(255,92,58,0.28) 0%, transparent 70%);
  border-radius: 50%;
}
.tc-party::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 55%; height: 55%;
  background: radial-gradient(circle, rgba(0,201,167,0.28) 0%, transparent 70%);
  border-radius: 50%;
}
.tc-party .tc-inner { position: relative; z-index: 1; }
.tc-party .tc-tag   { color: #FF5C3A; }
.tc-party .tc-names { font-size: 1.25rem; font-weight: 700; color: #fff; }
.tc-party .tc-date  { font-size: 0.7rem; letter-spacing: 0.08em; color: #FFD93D; }
.tc-party .tc-place { font-size: 0.65rem; color: #00C9A7; letter-spacing: 0.04em; }

/* Earthy Waves */
.tc-earthy {
  background: #f0ebe1;
  position: relative;
  overflow: hidden;
}
.tc-earthy::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: #2c4620;
  clip-path: ellipse(120% 80% at 50% 100%);
  opacity: 0.12;
}
.tc-earthy .tc-inner { position: relative; z-index: 1; }
.tc-earthy .tc-tag   { color: #a04e20; }
.tc-earthy .tc-names { font-family: 'Great Vibes', cursive, Georgia, serif; font-size: 1.6rem; color: #2c4620; }
.tc-earthy .tc-date  { font-family: var(--font-serif); font-size: 0.75rem; letter-spacing: 0.1em; color: #5c4433; }
.tc-earthy .tc-place { font-size: 0.65rem; color: #9a7a60; letter-spacing: 0.06em; }

/* ── How it works ─────────────────────────────────── */

.how-it-works {
  background: var(--cream-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2.5rem;
  text-align: center;
}

.how-it-works h2,
.templates h2,
.pricing h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--brown-900);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--brown-900);
}

.steps p {
  font-size: 0.9rem;
  color: var(--brown-500);
  line-height: 1.7;
}

/* ── Pricing ──────────────────────────────────────── */

.pricing {
  padding: 6rem 2rem;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2.25rem 2rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.pricing-name {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-300);
  margin-bottom: 1.25rem;
}

.price {
  margin-bottom: 2rem;
}

.price-amount {
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--brown-900);
}

.price-period {
  font-size: 0.8rem;
  color: var(--brown-300);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  display: block;
}

.pricing-features {
  list-style: none;
  border-top: 1px solid var(--border-mid);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--brown-700);
}

.pricing-features li::before {
  content: '';
  display: block;
  width: 15px;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--brown-300);
}

/* ── Footer ───────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 2.5rem;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brown-700);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--brown-300);
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 860px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .hero-content {
    padding: 6rem 1.5rem 3.5rem;
  }

  .templates,
  .how-it-works {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .template-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }
}
