/* ==========================================================================
   Ever After by Mirai — Design System
   Tokens per PRD §12.2 (color) and §12.3 (typography).
   Change a token here and it changes everywhere. Do not hard-code hex values
   in markup or in the rules below.
   ========================================================================== */

:root {
  /* --- Color tokens (PRD §12.2) --- */
  --warm-ivory:   #F7F2E8;  /* primary background, soft sections */
  --muted-sage:   #59664F;  /* primary buttons, headings, icons */
  --deep-sage:    #3F4C39;  /* high-contrast text/accent, button hover */
  --antique-gold: #B2873F;  /* small highlights, rules, badges — never body text */
  --charcoal:     #282722;  /* body text */
  --pale-sage:    #E8ECE4;  /* cards, informational callouts */
  --white:        #FFFFFF;  /* cards, contrast surfaces */
  --error-red:    #8D3030;  /* form errors only */

  /* Derived surfaces */
  --rule:         rgba(40, 39, 34, 0.12);
  --rule-strong:  rgba(40, 39, 34, 0.22);
  --shadow-sm:    0 1px 2px rgba(40, 39, 34, 0.06), 0 2px 8px rgba(40, 39, 34, 0.04);
  --shadow-md:    0 2px 4px rgba(40, 39, 34, 0.06), 0 8px 24px rgba(40, 39, 34, 0.08);

  /* --- Typography (PRD §12.3) --- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale. Body never drops below 16px on mobile (PRD §12.3). */
  --step--1: 0.875rem;
  --step-0:  1rem;
  --step-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem);

  /* --- Space & layout --- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --measure: 65ch;
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Height of the sticky mobile inquiry bar (PRD §12.4) */
  --sticky-bar-h: 4.25rem;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offset in-page anchor targets so the sticky header never covers a heading */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--warm-ivory);
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Reserve room so the sticky mobile bar never covers the last of the page */
@media (max-width: 47.99em) {
  body { padding-bottom: var(--sticky-bar-h); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-sage);
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-ui); font-weight: 600; }

p { margin: 0 0 var(--space-md); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--deep-sage); text-underline-offset: 0.2em; }
a:hover { color: var(--muted-sage); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2xs); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-xl) 0;
}

/* --------------------------------------------------------------------------
   Accessibility utilities (PRD §19)
   -------------------------------------------------------------------------- */

/* Visible focus indicator, never removed (PRD §19) */
:focus-visible {
  outline: 3px solid var(--antique-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 200;
  background: var(--deep-sage);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 120ms ease-in;
}
.skip-link:focus { top: var(--space-md); color: var(--white); }

/* Motion respects prefers-reduced-motion (PRD §19) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
@media (min-width: 48em) {
  .container { padding-inline: var(--space-xl); }
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); }
@media (min-width: 48em) {
  .section { padding-block: var(--space-3xl); }
}

.section--ivory { background: var(--warm-ivory); }
.section--white { background: var(--white); }
.section--sage  { background: var(--pale-sage); }
.section--deep  { background: var(--deep-sage); color: var(--warm-ivory); }
.section--deep h2,
.section--deep h3 { color: var(--warm-ivory); }
.section--deep a { color: var(--warm-ivory); }

.section-head {
  max-width: var(--container-narrow);
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-head p {
  margin-inline: auto;
  font-size: var(--step-1);
  color: color-mix(in srgb, var(--charcoal) 78%, transparent);
}
.section--deep .section-head p { color: color-mix(in srgb, var(--warm-ivory) 82%, transparent); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  /* 44px practical touch target (PRD §14 Accessibility) */
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn--primary {
  background: var(--muted-sage);
  color: var(--white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--deep-sage);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  border-color: var(--muted-sage);
  color: var(--deep-sage);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--pale-sage);
  color: var(--deep-sage);
}

.btn--ghost-light {
  background: transparent;
  border-color: color-mix(in srgb, var(--warm-ivory) 55%, transparent);
  color: var(--warm-ivory);
}
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: color-mix(in srgb, var(--warm-ivory) 14%, transparent);
  color: var(--warm-ivory);
}

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Header (PRD §7.1)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--warm-ivory) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4rem;
  padding-block: var(--space-xs);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--deep-sage);
  flex-shrink: 0;
}
.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand__name span { display: block; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-family: var(--font-ui); font-weight: 500;
  color: var(--antique-gold); }

/* Desktop nav */
.site-nav { display: none; }
@media (min-width: 62em) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
}
.site-nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding-block: var(--space-xs);
}
.site-nav a:hover { color: var(--muted-sage); text-decoration: underline; }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Language selector — text labels, never flags alone (PRD §7.1) */
.lang-switcher { position: relative; }

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
}
.lang-switcher__toggle:hover { border-color: var(--muted-sage); }
.lang-switcher__toggle svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.lang-switcher__chev { transition: transform 150ms ease; }
.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__chev { transform: rotate(180deg); }

.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2xs));
  min-width: 12rem;
  margin: 0;
  padding: var(--space-2xs);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lang-switcher__menu[hidden] { display: none; }
.lang-switcher__menu li { margin: 0; }
.lang-switcher__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--step-0);
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 2px;
}
.lang-switcher__menu a:hover { background: var(--pale-sage); }
/* Current language marked by text, not color alone (PRD §19) */
.lang-switcher__menu a[aria-current="true"] { font-weight: 700; color: var(--deep-sage); }
.lang-switcher__check { color: var(--muted-sage); font-weight: 700; }

/* Mobile menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--charcoal);
  cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
@media (min-width: 62em) { .menu-toggle { display: none; } }

.header__cta { display: none; }
@media (min-width: 62em) { .header__cta { display: inline-flex; } }

.mobile-nav {
  border-top: 1px solid var(--rule);
  background: var(--warm-ivory);
  padding: var(--space-md) 0 var(--space-lg);
}
.mobile-nav[hidden] { display: none; }
@media (min-width: 62em) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; margin: 0 0 var(--space-md); padding: 0; }
.mobile-nav a {
  display: block;
  min-height: 44px;
  padding: var(--space-sm) 0;
  font-size: var(--step-1);
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Hero (PRD §7.2)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--warm-ivory);
  padding-block: var(--space-xl) var(--space-2xl);
  overflow: hidden;
}
@media (min-width: 62em) {
  .hero { padding-block: var(--space-3xl); }
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 62em) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); }
}

.hero__content { max-width: 34rem; }
.hero h1 { margin-bottom: var(--space-md); }

.hero__lede {
  font-size: var(--step-1);
  color: color-mix(in srgb, var(--charcoal) 82%, transparent);
  margin-bottom: var(--space-lg);
}

.hero__price {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--pale-sage);
  border-left: 3px solid var(--antique-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: var(--deep-sage);
  margin-bottom: var(--space-lg);
}

.hero .btn-row { margin-bottom: var(--space-lg); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-sage);
}
.hero__trust span[aria-hidden="true"] { color: var(--antique-gold); }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* Fixed ratio prevents layout shift while the image loads (CLS, PRD §14) */
  aspect-ratio: 4 / 5;
  background: var(--pale-sage);
}
@media (min-width: 62em) { .hero__media { aspect-ratio: 4 / 5; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Brand-art variant: a square monogram is not a photograph, so it must be
   contained rather than cropped, and it sits on the page background instead of
   a card. Revert to the plain .hero__media above once a real hero photo lands. */
.hero__media--brand {
  aspect-ratio: 1 / 1;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  /* Keep the monogram from dominating the headline on wide screens */
  max-width: 30rem;
  margin-inline: auto;
}
.hero__media--brand img {
  object-fit: contain;
  /* Blends the artwork's soft edges into the ivory section */
  mix-blend-mode: multiply;
}

/* Trust chips (PRD §12.4) */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  padding-block: var(--space-lg);
  border-block: 1px solid var(--rule);
  background: var(--white);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--pale-sage);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--deep-sage);
}
.chip svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-sage); }

/* --------------------------------------------------------------------------
   Value pillars (PRD §7.3)
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 48em) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
}

.pillar { text-align: center; }
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-md);
  background: var(--pale-sage);
  border-radius: 50%;
  color: var(--muted-sage);
}
.pillar__icon svg { width: 1.75rem; height: 1.75rem; }
.pillar p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Package cards (PRD §7.4, §12.4)
   -------------------------------------------------------------------------- */

.packages {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 40em) {
  .packages { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 75em) {
  .packages { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
}

.package {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Signature = "Most Popular"; Sweetheart = visually emphasized entry into media
   coverage. Both flags are also stated in text, never color alone (PRD §7.4) */
.package--popular { border-color: var(--antique-gold); border-width: 2px; }
.package--featured {
  border-color: var(--muted-sage);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.package__flag {
  position: absolute;
  top: 0;
  left: var(--space-lg);
  transform: translateY(-50%);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.package__flag--popular { background: var(--antique-gold); color: var(--charcoal); }
.package__flag--featured { background: var(--muted-sage); color: var(--white); }

.package__name {
  font-size: var(--step-2);
  margin-bottom: var(--space-2xs);
}
.package__price {
  font-family: var(--font-ui);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}
/* "From" must remain attached to every price (PRD §7.4, PKG-01) */
.package__price .from {
  display: inline;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-sage);
}
.package__desc {
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--charcoal) 80%, transparent);
  margin-bottom: var(--space-md);
}
.package__list {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  font-size: var(--step--1);
  flex-grow: 1;
}
.package__list li {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  margin-bottom: var(--space-xs);
}
.package__list svg {
  width: 1rem; height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--muted-sage);
}

.package-note {
  max-width: var(--container-narrow);
  margin: var(--space-xl) auto 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--pale-sage);
  border-left: 3px solid var(--muted-sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
}
.package-note p { max-width: none; }
.package-note strong { color: var(--deep-sage); }

/* --------------------------------------------------------------------------
   Add-ons (PRD §7.5)
   -------------------------------------------------------------------------- */

.addons {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 40em) { .addons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .addons { grid-template-columns: repeat(3, 1fr); } }

.addon {
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.addon__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xs);
}
.addon__name { font-weight: 600; color: var(--deep-sage); }
.addon__price {
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}
.addon__note {
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--charcoal) 75%, transparent);
  margin: 0;
}

/* --------------------------------------------------------------------------
   How it works (PRD §7.6)
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 62em) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
}

.step {
  position: relative;
  counter-increment: step;
  padding-left: 3.25rem;
  margin: 0;
}
@media (min-width: 62em) {
  .step { padding-left: 0; padding-top: 3.5rem; }
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--muted-sage);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.step p { font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   Languages section (PRD §7.7)
   -------------------------------------------------------------------------- */

.lang-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (min-width: 48em) { .lang-grid { grid-template-columns: repeat(3, 1fr); } }

.lang-card {
  padding: var(--space-lg);
  background: color-mix(in srgb, var(--warm-ivory) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warm-ivory) 25%, transparent);
  border-radius: var(--radius-lg);
}
.lang-card h3 { font-size: var(--step-2); margin-bottom: var(--space-2xs); }
.lang-card p { font-size: var(--step--1); margin-bottom: 0; }
.lang-card__native {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Gallery (PRD §7.8)
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 62em) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
}

.gallery__item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pale-sage);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder tile — replaced by real client work once consent is obtained.
   Deliberately labeled so decorative art is never mistaken for client results
   (PRD §7.8, §11.2). */
.gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  height: 100%;
  padding: var(--space-md);
  background: repeating-linear-gradient(
    45deg,
    var(--pale-sage),
    var(--pale-sage) 10px,
    color-mix(in srgb, var(--pale-sage) 70%, var(--white)) 10px,
    color-mix(in srgb, var(--pale-sage) 70%, var(--white)) 20px
  );
  text-align: center;
}
.gallery__placeholder svg { width: 1.5rem; height: 1.5rem; color: var(--muted-sage); }
.gallery__placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deep-sage);
}

.gallery-note {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--charcoal) 70%, transparent);
}
.gallery-note p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Service area (PRD §7.9)
   -------------------------------------------------------------------------- */

.area-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 62em) { .area-grid { grid-template-columns: 1fr 1fr; } }

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
}
.city-list li {
  margin: 0;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
}

.callout {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--antique-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { font-size: var(--step-1); font-family: var(--font-ui); }
.callout p { font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   FAQ (PRD §7.10, §12.4)
   Native <details>/<summary>: content present in HTML and keyboard-operable.
   -------------------------------------------------------------------------- */

.faq { max-width: var(--container-narrow); margin-inline: auto; }

.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
  padding: var(--space-md) 0;
  font-family: var(--font-ui);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--deep-sage);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--muted-sage); }
.faq__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-sage);
  transition: transform 180ms ease;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding-bottom: var(--space-md); }
.faq__body p { font-size: var(--step-0); }
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Form (PRD §10)
   -------------------------------------------------------------------------- */

.form-wrap {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 48em) { .form-wrap { padding: var(--space-xl); } }

.field-group {
  border: 0;
  margin: 0 0 var(--space-xl);
  padding: 0;
}
.field-group:last-of-type { margin-bottom: var(--space-lg); }

.field-group__legend {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--antique-gold);
  padding: 0;
  margin-bottom: var(--space-md);
}

.field-row {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
@media (min-width: 40em) {
  .field-row--2 { grid-template-columns: repeat(2, 1fr); }
}

.field { margin-bottom: var(--space-md); }
.field-row .field { margin-bottom: 0; }

.field label,
.field .label {
  display: block;
  margin-bottom: var(--space-2xs);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--charcoal);
}

/* Required marked in text as well as symbol (PRD §19) */
.req {
  color: var(--error-red);
  font-weight: 700;
  margin-left: 0.15em;
}
.field__hint {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  font-weight: 400;
  color: color-mix(in srgb, var(--charcoal) 70%, transparent);
}
.field label .field__hint { margin-top: 0; margin-bottom: var(--space-2xs); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  /* 16px minimum prevents iOS Safari from zooming on focus */
  font-size: 1rem;
  color: var(--charcoal);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359664F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--muted-sage); }

/* Error state uses border + icon + message text, never color alone (PRD §19) */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error-red);
  border-width: 2px;
}
.field__error {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--error-red);
}
.field.is-invalid .field__error { display: flex; }
.field__error::before { content: "⚠"; font-size: 1em; }

/* Radio & checkbox groups */
.choice-grid {
  display: grid;
  gap: var(--space-xs);
}
@media (min-width: 40em) {
  .choice-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--step-0);
  font-weight: 400;
}
.choice:hover { border-color: var(--muted-sage); background: var(--pale-sage); }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; flex-shrink: 0; accent-color: var(--muted-sage); }
.choice:has(input:checked) {
  border-color: var(--muted-sage);
  border-width: 2px;
  background: var(--pale-sage);
  font-weight: 600;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--step--1);
  line-height: 1.45;
  cursor: pointer;
}
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; flex-shrink: 0; accent-color: var(--muted-sage); }

/* Honeypot — hidden from humans, reachable by bots (PRD §10.3, §17.2) */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Error summary, linked to the affected fields (PRD §19) */
.form-error-summary {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: color-mix(in srgb, var(--error-red) 8%, var(--white));
  border: 2px solid var(--error-red);
  border-radius: var(--radius);
}
.form-error-summary[hidden] { display: none; }
.form-error-summary h3 {
  font-family: var(--font-ui);
  font-size: var(--step-1);
  color: var(--error-red);
  margin-bottom: var(--space-xs);
}
.form-error-summary ul { margin: 0; padding-left: 1.25rem; }
.form-error-summary a { color: var(--error-red); font-weight: 600; }

.form-legal {
  margin-top: var(--space-md);
  font-size: var(--step--1);
  text-align: center;
  color: color-mix(in srgb, var(--charcoal) 72%, transparent);
}
.form-legal p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Final CTA + contact rail
   -------------------------------------------------------------------------- */

.contact-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--deep-sage);
  color: color-mix(in srgb, var(--warm-ivory) 85%, transparent);
  padding-block: var(--space-2xl) var(--space-lg);
  font-size: var(--step--1);
}
.site-footer a { color: var(--warm-ivory); }

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: var(--space-sm);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--space-xs); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid color-mix(in srgb, var(--warm-ivory) 20%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--warm-ivory) 70%, transparent);
}
.footer-bottom p { margin: 0; max-width: none; }

/* --------------------------------------------------------------------------
   Sticky mobile inquiry bar (PRD §12.4)
   Appears once the hero scrolls out of view.
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  padding-bottom: max(var(--space-xs), env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--warm-ivory) 96%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule-strong);
  transform: translateY(110%);
  transition: transform 220ms ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn--secondary { flex: 0 0 auto; background: var(--white); }
@media (min-width: 48em) { .sticky-cta { display: none; } }

/* --------------------------------------------------------------------------
   Simple content pages (privacy, terms, thank-you, 404)
   -------------------------------------------------------------------------- */

.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-xl); }
.prose h3 { font-size: var(--step-1); font-family: var(--font-ui); margin-top: var(--space-lg); }
.prose ul { max-width: var(--measure); }
.prose li { margin-bottom: var(--space-xs); }

.page-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: var(--pale-sage);
  border-bottom: 1px solid var(--rule);
}

.confirm-card {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.confirm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--space-md);
  background: var(--pale-sage);
  border-radius: 50%;
  color: var(--muted-sage);
}
.confirm-card__icon svg { width: 2rem; height: 2rem; }
.confirm-card p { margin-inline: auto; }

.next-steps {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  text-align: left;
  counter-reset: nstep;
}
.next-steps li {
  counter-increment: nstep;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: var(--space-md);
}
.next-steps li::before {
  content: counter(nstep);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--muted-sage);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Build-time placeholder banner.
   Delete this rule and every .placeholder-banner element before production.
   -------------------------------------------------------------------------- */

.placeholder-banner {
  background: var(--error-red);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
}
.placeholder-banner p { max-width: none; margin: 0; }
