/* ==========================================================================
   AL GHADEER PARKS - LANDING PAGE STYLES
   --------------------------------------------------------------------------
   Built mobile first. Every layout starts as a single column and only
   becomes multi column at 768px and above.

   Type   : Cormorant Garamond (headings)  +  Montserrat (body)
   Colour : deep forest green on warm bone paper, one accent only
   Radius : 6px on buttons and inputs, 10px on cards and images
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand greens. Change --brand to match your exact brand hex if needed. */
  --brand:        #1F6E43;
  --brand-dark:   #165835;
  --brand-deep:   #0C2A1B;
  --brand-tint:   #EAF2EC;
  --brand-tint-2: #D8E7DC;

  /* Neutrals, warm to sit under the green without going beige */
  --ink:      #12211A;
  --ink-2:    #3A473F;
  --muted:    #64716A;
  --paper:    #FBFAF6;
  --surface:  #FFFFFF;
  --line:     #E4E7E1;
  --line-2:   #D3D8CF;

  /* Feedback */
  --danger:   #A8302B;
  --success:  #1F6E43;

  /* Type */
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape. One system, applied everywhere. */
  --r:    6px;   /* buttons, inputs, pills */
  --r-lg: 10px;  /* cards, images, panels */

  /* Elevation, tinted to the page rather than pure black */
  --shadow-sm: 0 1px 2px rgba(18, 33, 26, .06), 0 2px 8px rgba(18, 33, 26, .04);
  --shadow-md: 0 4px 12px rgba(18, 33, 26, .07), 0 12px 32px rgba(18, 33, 26, .06);
  --shadow-lg: 0 8px 24px rgba(18, 33, 26, .09), 0 24px 60px rgba(18, 33, 26, .08);

  /* Rhythm */
  --gutter: 20px;
  --maxw:   1200px;
  --section-y: 64px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 40px; --section-y: 116px; }
}

/* This page is designed as a single light theme. Declaring it stops mobile
   browsers auto inverting the form fields and breaking contrast. */
html { color-scheme: light; }


/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

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


/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--tint { background: var(--brand-tint); }
.section--deep { background: var(--brand-deep); color: #EAF0EC; }
.section--deep h2, .section--deep h3 { color: #FFFFFF; }

/* Section heading block. Stacked, never split left/right. */
.s-head { max-width: 34ch; margin-bottom: 36px; }
.s-head--wide { max-width: 46ch; }

.s-title {
  font-size: clamp(2rem, 6.2vw, 3rem);
  margin-bottom: 14px;
}
.s-lead {
  font-size: clamp(.95rem, 3.4vw, 1.0625rem);
  color: var(--muted);
  max-width: 58ch;
}
.section--deep .s-lead { color: #B6C6BC; }

/* The one small caps label style. Used sparingly, see note in index.html. */
.eyebrow {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.section--deep .eyebrow { color: #7FBF9B; }


/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;              /* labels never wrap to a second line */
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #FFFFFF;                    /* 5.4:1 on --brand, passes AA */
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); }

.btn--light {
  background: #FFFFFF;
  color: var(--brand-deep);
  border-color: rgba(255,255,255,.4);
}
.btn--light:hover { background: #EAF2EC; }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 30px; font-size: .9375rem; }

.btn[disabled], .btn[aria-busy="true"] { opacity: .62; cursor: not-allowed; }


/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
@media (min-width: 768px) { .header__inner { height: 74px; } }

.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; min-width: 0; }
.brand__name {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--brand-deep);
  white-space: nowrap;
}
@media (min-width: 768px) { .brand__name { font-size: 1.5rem; } }
.brand__by {
  display: none;          /* hidden on narrow screens, shown from 600px up */
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 600px) { .brand__by { display: inline; } }

.header .btn { padding: 11px 18px; font-size: .8125rem; }

/* Line break in the hero headline, desktop only. On small screens the
   headline wraps naturally instead of orphaning a word. */
.br-md { display: none; }
@media (min-width: 900px) { .br-md { display: inline; } }
@media (max-width: 400px) { .header .btn { padding: 10px 14px; font-size: .75rem; } }


/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 40px 56px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-block: 64px 88px; } }
@media (min-width: 1100px) { .hero { padding-block: 80px 104px; } }

/* Photograph sits behind a scrim so the copy always clears contrast. */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,32,20,.90) 0%, rgba(9,32,20,.80) 45%, rgba(9,32,20,.92) 100%);
}
@media (min-width: 900px) {
  .hero__bg::after {
    background:
      linear-gradient(96deg, rgba(9,32,20,.94) 0%, rgba(9,32,20,.86) 46%, rgba(9,32,20,.70) 100%);
  }
}

.hero__inner { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
  }
  /* config.behaviour.heroFormSide = "left" mirrors the two columns */
  .hero__grid[data-form-side="left"] .hero__copy { order: 2; }
  .hero__grid[data-form-side="left"] .hero__form { order: 1; }
}
@media (min-width: 1100px) { .hero__grid { gap: 72px; } }

.hero__copy { color: #F2F7F3; }

.hero__eyebrow {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8FCBA8;
  margin-bottom: 18px;
}

.hero__title {
  color: #FFFFFF;
  font-size: clamp(2.3rem, 8.4vw, 3.5rem);
  line-height: 1.06;
  margin-bottom: 18px;
}
.hero__title em {
  font-style: italic;
  color: #9BD3B2;
  line-height: 1.14;      /* descender clearance for the italic g and y */
  padding-bottom: 2px;
  display: inline-block;
}

.hero__sub {
  font-size: clamp(1rem, 3.8vw, 1.125rem);
  color: #C9DBD0;
  max-width: 40ch;
  margin-bottom: 26px;
}

/* The offer, expressed as three hard facts rather than a paragraph. */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 20px;
}
.hero__fact { padding-right: 12px; }
.hero__fact:not(:last-child) { border-right: 1px solid rgba(255,255,255,.16); }
.hero__fact:not(:first-child) { padding-left: 14px; }
.hero__fact dt {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8FA99A;
  margin-bottom: 6px;
}
.hero__fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.6vw, 1.625rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
}
.hero__fact dd span {
  display: block;
  font-family: var(--body);
  font-size: .6875rem;
  font-weight: 500;
  color: #A9BFB2;
  letter-spacing: .01em;
  margin-top: 3px;
}


/* --------------------------------------------------------------------------
   7. LEAD FORM
   -------------------------------------------------------------------------- */
.formcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px 22px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 480px) { .formcard { padding: 30px 28px 26px; } }

.formcard__head { margin-bottom: 20px; }
.formcard__title {
  font-size: 1.5rem;
  margin-bottom: 7px;
}
.formcard__note {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.55;
}

.field { display: grid; gap: 7px; margin-bottom: 15px; }

.field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);          /* 7.2:1 on white */
}
.field label .req { color: var(--brand); }

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  background: #FCFCFB;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 16px;              /* 16px stops iOS zooming on focus */
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #8A948D; }   /* 4.6:1 on #FCFCFB */

.field input:focus,
.field select:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 110, 67, .16);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364716A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field select:invalid { color: #8A948D; }

/* Phone field with a country code prefix */
.field--phone .phone-group {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}
.field--phone .phone-group select { padding-right: 26px; background-position: right 8px center; font-size: .875rem; }

/* Inline validation. Message sits below the input. */
.field__error {
  font-size: .75rem;
  color: var(--danger);
  min-height: 0;
  display: none;
}
.field.is-invalid input,
.field.is-invalid select { border-color: var(--danger); background: #FFFBFB; }
.field.is-invalid .field__error { display: block; }

/* Honeypot. Hidden from people, visible to naive bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__submit { margin-top: 20px; }

.form__consent {
  margin-top: 14px;
  font-size: .6875rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.form__consent a { color: var(--brand); }

/* Form level status message */
.form__status {
  display: none;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--r);
  font-size: .8125rem;
  line-height: 1.5;
}
.form__status.is-error {
  display: block;
  background: #FCF0EF;
  border: 1px solid #EBC9C7;
  color: #8A2622;
}
.form__status.is-ok {
  display: block;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  color: var(--brand-dark);
}

/* Button loading state */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .btn__label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}


/* --------------------------------------------------------------------------
   8. OFFER SECTION
   -------------------------------------------------------------------------- */
.offer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .offer__grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
}

.offer__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.offer__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Numbered rows. No hairline under every row, one divider between them. */
.offer__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.offer__item { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.offer__item + .offer__item { border-top: 1px solid var(--line); padding-top: 22px; }
.offer__num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  padding-top: 2px;
}
.offer__item h3 { font-size: 1.25rem; margin-bottom: 5px; }
.offer__item p { font-size: .9375rem; color: var(--muted); }


/* --------------------------------------------------------------------------
   9. GALLERY
   --------------------------------------------------------------------------
   Mobile  : horizontal scroll snap, one and a bit cards visible
   Desktop : bento grid, exactly 8 cells for 8 images
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery__item {
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-tint);
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

@media (min-width: 768px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 168px;
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .gallery__item img { aspect-ratio: auto; }
  /* 8 images, 8 cells, deliberate rhythm rather than a uniform grid */
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(5) { grid-column: span 1; grid-row: span 2; }
  .gallery__item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(7) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(8) { grid-column: span 2; grid-row: span 1; }
}
@media (min-width: 1100px) { .gallery { grid-auto-rows: 200px; } }

@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.035); }
}

.gallery__hint {
  margin-top: 14px;
  font-size: .75rem;
  color: var(--muted);
}
@media (min-width: 768px) { .gallery__hint { display: none; } }


/* --------------------------------------------------------------------------
   10. AMENITIES
   -------------------------------------------------------------------------- */
.amen {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* 8 amenities, so only 2 and 4 columns divide evenly. A 3 column step
   would leave an empty cell on the last row. */
@media (min-width: 1000px) { .amen { grid-template-columns: repeat(4, 1fr); } }

.amen li {
  background: var(--brand-deep);
  padding: 22px 16px;
  display: grid;
  gap: 11px;
  justify-items: start;
}
.amen svg { width: 24px; height: 24px; color: #7FBF9B; flex: none; }
.amen span {
  font-size: .875rem;
  font-weight: 500;
  color: #E4EDE7;
  line-height: 1.4;
}

.amen__after {
  margin-top: 26px;
  font-size: .9375rem;
  color: #B6C6BC;
  max-width: 52ch;
}


/* --------------------------------------------------------------------------
   11. LOCATION
   -------------------------------------------------------------------------- */
.loc__grid { display: grid; gap: 34px; }
@media (min-width: 900px) {
  .loc__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
}
.loc__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); order: -1; }
@media (min-width: 900px) { .loc__media { order: 0; } }
.loc__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* Drive times as a two column stack, grouped, not a hairline table */
.drives { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 560px) { .drives { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.drives li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.drives strong { font-weight: 500; font-size: .9375rem; }
.drives span {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   12. CLOSING CTA BAND
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta__grid { display: grid; gap: 34px; }
@media (min-width: 900px) {
  .cta__grid { grid-template-columns: 1fr 480px; gap: 64px; align-items: center; }
}
.cta__title { font-size: clamp(2rem, 6.4vw, 3.125rem); margin-bottom: 16px; }
.cta__lead { font-size: 1.0625rem; color: #B6C6BC; max-width: 44ch; margin-bottom: 24px; }

/* Reassurance points, plain text with a check, no card boxes */
.cta__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cta__points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  font-size: .9375rem;
  color: #D3E0D8;
}
.cta__points svg { width: 18px; height: 18px; color: #7FBF9B; margin-top: 3px; }


/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 40px;
  padding-bottom: calc(40px + var(--sticky-pad, 0px));
}
.footer__top {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .footer__top { grid-template-columns: 1fr auto; align-items: center; }
}
.footer__tag { font-size: .875rem; color: var(--muted); max-width: 46ch; }
.footer__legal {
  margin-top: 22px;
  font-size: .6875rem;
  line-height: 1.7;
  color: #7C8781;
  max-width: 86ch;
}
.footer__meta {
  margin-top: 16px;
  font-size: .6875rem;
  color: #7C8781;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer__meta a { color: #7C8781; }


/* --------------------------------------------------------------------------
   14. MOBILE STICKY BAR
   -------------------------------------------------------------------------- */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 246, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar .btn { flex: 1; padding: 14px 16px; }
@media (min-width: 900px) { .stickybar { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .stickybar { transition: none; }
}


/* --------------------------------------------------------------------------
   15. IMAGE PLACEHOLDER SYSTEM
   --------------------------------------------------------------------------
   Applied automatically when a photo file is missing and demoImages is off.
   Keeps the layout intact and names the shot that belongs there.
   -------------------------------------------------------------------------- */
.img-missing {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  background:
    linear-gradient(150deg, var(--brand-tint) 0%, var(--brand-tint-2) 100%);
  color: var(--brand-dark);
  min-height: 100%;
}
.img-missing__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
  max-width: 26ch;
}
.img-missing__file {
  font-size: .6875rem;
  color: var(--brand);
  opacity: .8;
  word-break: break-all;
}
.hero__bg .img-missing { min-height: 100%; background: linear-gradient(150deg, #123A25, #0C2A1B); }
.hero__bg .img-missing__label,
.hero__bg .img-missing__file { color: #6E9B81; }


/* --------------------------------------------------------------------------
   16. MOTION
   --------------------------------------------------------------------------
   Purpose: content enters as the reader arrives at it, so the eye lands on
   one thing at a time rather than the whole page at once. Nothing loops.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .07s; }
  .reveal[data-delay="2"] { transition-delay: .14s; }
  .reveal[data-delay="3"] { transition-delay: .21s; }
}


/* --------------------------------------------------------------------------
   17. THANK YOU PAGE
   -------------------------------------------------------------------------- */
.ty {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--brand-deep);
  color: #E4EDE7;
}
.ty__main { display: grid; place-items: center; padding: 48px 0 64px; }
.ty__card { max-width: 620px; text-align: center; }

.ty__mark {
  width: 66px; height: 66px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(127, 191, 155, .14);
  border: 1px solid rgba(127, 191, 155, .34);
  color: #7FBF9B;
}
.ty__mark svg { width: 30px; height: 30px; }

.ty__title {
  color: #FFFFFF;
  font-size: clamp(2.125rem, 7.4vw, 3.25rem);
  margin-bottom: 16px;
}
.ty__lead {
  font-size: 1.0625rem;
  color: #B6C6BC;
  max-width: 48ch;
  margin: 0 auto 30px;
}
.ty__lead strong { color: #FFFFFF; font-weight: 600; }

.ty__actions { display: grid; gap: 12px; justify-items: center; }
@media (min-width: 520px) { .ty__actions { grid-auto-flow: column; justify-content: center; } }

.ty__count {
  margin-top: 22px;
  font-size: .8125rem;
  color: #8FA99A;
}
.ty__count b { color: #C9DBD0; font-weight: 600; }

/* What happens next. Three steps, no "Stage 1" labels. */
.ty__next {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid;
  gap: 20px;
  text-align: left;
}
@media (min-width: 700px) { .ty__next { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.ty__next h3 { font-size: 1.125rem; color: #FFFFFF; margin-bottom: 5px; }
.ty__next p { font-size: .875rem; color: #A9BFB2; }

.ty__foot {
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .6875rem;
  color: #7A8E82;
  text-align: center;
}

/* WhatsApp button keeps the page accent rather than importing a brand green */
.btn--wa { background: #FFFFFF; color: var(--brand-deep); }
.btn--wa:hover { background: #DFEAE3; }
.btn--wa svg { width: 18px; height: 18px; }


/* --------------------------------------------------------------------------
   18. ICON FONT ADJUSTMENTS
   --------------------------------------------------------------------------
   Icons come from Phosphor Icons, loaded as a webfont from the CDN.
   To change an icon, edit the class name in the HTML, for example
   "ph ph-tree" becomes "ph ph-flower". Full list at phosphoricons.com
   -------------------------------------------------------------------------- */
.amen i {
  font-size: 25px;
  line-height: 1;
  color: #7FBF9B;
}
.cta__points i {
  font-size: 17px;
  line-height: 1;
  color: #7FBF9B;
  margin-top: 2px;
}
.btn i { line-height: 1; }


/* --------------------------------------------------------------------------
   19. PLACEHOLDER SIZING PER CONTEXT
   -------------------------------------------------------------------------- */
.hero__bg .img-missing { height: 100%; aspect-ratio: auto !important; }

@media (min-width: 768px) {
  /* In the desktop bento grid the row height already sets the size. */
  .gallery__item .img-missing { aspect-ratio: auto !important; height: 100%; }
}


/* --------------------------------------------------------------------------
   20. SIMPLE PROSE PAGES  (privacy)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; padding-block: 56px 80px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 10px; }
.prose h2 { font-size: 1.375rem; margin: 34px 0 10px; }
.prose p, .prose li { font-size: .9375rem; color: var(--ink-2); line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); }
.prose .updated { font-size: .8125rem; color: var(--muted); }


/* --------------------------------------------------------------------------
   21. THANK YOU PAGE HEADER
   The thank you page is a single dark surface, so the header matches it
   rather than sitting on the page as a light strip.
   -------------------------------------------------------------------------- */
.ty .header {
  background: rgba(12, 42, 27, .92);
  border-bottom-color: rgba(255, 255, 255, .12);
}
.ty .brand__name { color: #FFFFFF; }
.ty .brand__by   { color: #8FA99A; }
