/* ===== Design tokens ===== */
:root {
  --color-cream: #fffaf5;
  --color-blush: #f7e6e0;
  --color-wine: #6b1f33;
  --color-wine-dark: #4a1523;
  --color-gold: #c8a15a;
  --color-gold-light: #e8c98a;
  --color-charcoal: #2b2320;
  --color-charcoal-soft: #5a4f49;
  --color-text: var(--color-charcoal);
  --color-accent-text: var(--color-wine);
  --color-surface: #ffffff;
  --color-header-bg: rgba(255, 250, 245, 0.85);
  --color-header-bg-scrolled: rgba(255, 250, 245, 0.97);
  --gradient-primary: linear-gradient(135deg, var(--color-wine) 0%, var(--color-wine-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-gold) 0%, var(--color-wine) 100%);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1140px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --theme-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="dark"] {
  --color-cream: #18130f;
  --color-blush: #2a211d;
  --color-text: #f3ece6;
  --color-charcoal-soft: #c7bab2;
  --color-accent-text: #e6a6bb;
  --color-surface: #241c18;
  --color-header-bg: rgba(24, 19, 15, 0.85);
  --color-header-bg-scrolled: rgba(24, 19, 15, 0.97);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Scroll progress bar ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== Scroll-reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.gallery-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.36s; }
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.42s; }
.gallery-grid .reveal:nth-child(9) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.btn:hover::before {
  left: 125%;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(107, 31, 51, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(107, 31, 51, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .btn::before { display: none; }
  .btn-ripple { display: none; }
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent-text);
  color: var(--color-accent-text);
}

.btn-outline:hover {
  background: var(--color-accent-text);
  color: var(--color-cream);
  transform: translateY(-3px);
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--color-blush);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-charcoal-soft);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 31, 51, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(43, 35, 32, 0.08);
  background: var(--color-header-bg-scrolled);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.nav-brand span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-logo-icon,
.nav-logo-badge {
  display: block;
  flex-shrink: 0;
}

/* Stacked logo lockup (icon above centered wordmark) — used by Pop The Question's PTQ monogram */
.logo-stacked {
  flex-direction: column;
  text-align: center;
}

.logo-stacked span {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-brand .nav-logo-icon {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: 2px solid rgba(107, 31, 51, 0.2);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.theme-toggle:hover {
  transform: scale(1.08) rotate(-8deg);
  border-color: var(--color-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-accent-text);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-cream);
    padding: 0 24px;
    gap: 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(107, 31, 51, 0.1);
    transition: max-height 0.35s var(--ease), opacity 0.25s ease, padding 0.35s var(--ease);
  }

  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    padding: 16px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links { transition: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 130px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 600px) {
  .hero {
    padding: 90px 0 70px;
  }

  .price-card.featured {
    transform: none;
  }
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite alternate;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: var(--color-blush);
  top: -120px;
  left: -80px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: var(--color-gold-light);
  bottom: -140px;
  right: -80px;
  animation-delay: -8s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero-eyebrow {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
  opacity: 0;
  animation: hero-in 0.7s var(--ease) 0.05s forwards;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  max-width: 820px;
  margin: 0 auto 22px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: hero-in 0.8s var(--ease) 0.15s forwards;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--color-charcoal-soft);
  font-size: 1.15rem;
  opacity: 0;
  animation: hero-in 0.8s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-in 0.8s var(--ease) 0.45s forwards;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero p, .hero-actions {
    animation: none;
    opacity: 1;
  }
}

/* ===== Cards / grids ===== */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: 0 4px 24px rgba(43, 35, 32, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(43, 35, 32, 0.12);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-blush), var(--color-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-wine);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: center;
  padding: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(43, 35, 32, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Pricing ===== */
.price-card {
  position: relative;
  border: 1px solid rgba(107, 31, 51, 0.12);
}

.price-card.featured {
  border: 2px solid var(--color-gold);
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0 20px;
}

.price-card ul {
  text-align: left;
  margin: 24px 0;
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(43, 35, 32, 0.1);
}

.price-card li::before {
  content: '✓ ';
  color: var(--color-gold);
  font-weight: 700;
}

/* ===== Contact form ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(43, 35, 32, 0.18);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-text);
  box-shadow: 0 0 0 4px rgba(107, 31, 51, 0.1);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  margin-top: 8px;
}

/* honeypot field — hidden from real visitors, catches simple bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  margin-top: 16px;
  font-weight: 600;
}

#form-status.success { color: #2e7d32; }
#form-status.error { color: #b3261e; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-charcoal);
  color: #f4ede8;
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(244, 237, 232, 0.6);
  border-top: 1px solid rgba(244, 237, 232, 0.12);
  padding-top: 20px;
}
