/* Shared SEO pages styles (navbar + hero + cards + CTA + footer)
   Keep this file in sync with `index.html` design tokens where possible.
*/

:root {
  --sage:    #b8c9b0;
  --sage-lt: #d5e3cf;
  --cream:   #f5f0e8;
  --warm:    #c8a98a;
  --dark:    #2a2520;
  --text:    #4a4035;
  --white:   #fdfaf6;
  --display: 'Cormorant Garamond', serif;
  --body:    'Jost', sans-serif;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--white); color: var(--text); }
img { display: block; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ── Shared nav (match index.html, trimmed for SEO pages) ── */
#nav {
  position: relative;
  top: auto;
  z-index: 9999;
  background: var(--cream);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 40px;
  min-height: 5rem;
  margin-top: 0;
  border-radius: 0;
  width: 100%;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease), backdrop-filter .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
}

/* Ensure parents don't disable sticky */
[data-seo-nav] { position: relative; z-index: 9999; }

#nav.is-stuck {
  background: rgba(245, 240, 232, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    0 10px 10px rgba(0, 0, 0, .08),
    0 1px 0 rgba(255,255,255,0.35) inset;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 300;
}
.nav-links a { color: var(--dark); transition: color .3s; }
.nav-links a:hover { color: var(--warm); }
.nav-dot { color: var(--dark); opacity: .4; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: none;
  transition: background .3s, transform .25s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--warm); transform: scale(1.03); }

/* Alias used by some pages */
/* (plain CSS alias: keep `.btn` styled the same as `.btn-primary`) */

/* If the build system doesn't support `composes`, also apply same styling directly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: none;
  transition: background .3s, transform .25s;
  white-space: nowrap;
}
.btn:hover { background: var(--warm); transform: scale(1.03); }

.btn--light {
  background: var(--cream);
  color: var(--dark);
}
.btn--light:hover { background: var(--white); }

/* ── Hero header (premium redesign) ── */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, #d8e8d2 0%, #ecf4ea 100%);
  padding: 96px 0 88px;
  overflow: hidden;

  /* curve handled by ::marker element below (no clip-path) */
  clip-path: none;
}

/* bottom curve separator (safe: doesn't affect sticky/fixed nav) */
.page-hero .hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(64px, 9vw, 120px);
  pointer-events: none;
  z-index: 2;
}
.page-hero .hero-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* decorative organic blobs */
.page-hero::before {
  content: '';
  position: absolute;
  left: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 43% 57% 62% 38% / 45% 45% 55% 55%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(255,255,255,.18) 55%, transparent 70%);
  filter: blur(.2px);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 640px;
  height: 640px;
  border-radius: 60% 40% 48% 52% / 50% 58% 42% 50%;
  background: radial-gradient(circle at 30% 30%, rgba(200,169,138,.32), rgba(200,169,138,.10) 55%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 62ch;
}

/* match homepage “label” feel */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #4f6f49;
  margin-bottom: 18px;
}
.hero-label::before { content: ''; width: 34px; height: 1px; background: #4f6f49; opacity: .85; }

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--dark);
  line-height: 1.06;
  margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--warm); }

.hero-lead {
  max-width: 60ch;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(42,37,32,.82);
}

/* Layered photo card (more depth, less “flat”) */
.hero-img {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%) rotate(-1.2deg);
  width: min(560px, 44vw);
  height: min(440px, 56vh);
  border-radius: 34px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 34px 80px rgba(0,0,0,.18);

  /* remove frame/glass */
  border: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* remove the offset outline frame */
.hero-img {
  outline: none;
  outline-offset: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.97) contrast(1.04);
  transform: scale(1.02);
}

.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 20% 20%, rgba(216,232,210,.70), transparent 58%),
    radial-gradient(90% 70% at 80% 0%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.12));
  z-index: 1;
  pointer-events: none;
}

/* Hide the old wave from previous design */
.hero-wave { display: none; }

main { padding: 44px 0 100px; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px)  { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.card.card--wide { grid-column: 1 / -1; }

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }

.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(42,37,32,.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fdfaf6;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card-body { padding: 26px 28px 30px; }

.card-body h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}
.card-body p,
.card-body ul {
  font-size: .87rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
}
.card-body ul { padding-left: 18px; margin-top: 8px; }
.card-body ul li { margin-bottom: 4px; }

.card-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--warm);
  background: rgba(200,169,138,.10);
  border-radius: 0 10px 10px 0;
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
}

.cta-strip {
  margin-top: 70px;
  background: var(--dark);
  border-radius: 24px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.3;
}
.cta-strip p em { font-style: italic; color: var(--sage-lt); }

/* ── Shared footer ── */
.page-footer {
  background: var(--dark);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245,240,232,.7);
  font-size: .82rem;
  font-weight: 300;
}
.footer-links a { color: rgba(245,240,232,.7); }
.footer-links a:hover { color: var(--cream); }
.footer-sep { opacity: .5; }
.footer-copy {
  color: rgba(245,240,232,.45);
  font-size: .78rem;
  font-weight: 300;
}

/* ── Small screens ── */
@media (max-width: 720px) {
  #nav { gap: 18px; padding: 0 16px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { gap: 14px; font-size: .85rem; }

  /* Small mobile: text-only hero (hide image entirely) */
  .page-hero { padding: 54px 0 46px; }
  .hero-img { display: none !important; }

  .hero-inner { max-width: none; }
  .hero-lead { max-width: none; }
}

@media (max-width: 980px) {
  /* Nav: make sticky behave like a proper top bar on mobile/tablet */
  #nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    min-height: auto;
    padding: 12px 16px;
    gap: 12px;

    /* preserve premium look while scrolling */
    background: rgba(245, 240, 232, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* Stacked nav layout using existing markup (two ULs + CTA in between) */
  #nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #nav > ul.nav-links {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  #nav > a.btn-primary,
  #nav > a.btn {
    width: 100%;
    max-width: 360px;
    height: 48px;
  }

  .nav-links {
    font-size: .95rem;
    letter-spacing: .10em;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
  }

  /* Hero: reduce visual height and avoid oversized feeling */
  .page-hero {
    padding: 68px 0 54px;
  }

  .hero-inner { max-width: none; }

  /* Move hero image below text (already relative at <=980 in existing CSS);
     keep image balanced and not overpowering.
  */
  .hero-img {
    height: 260px;
    margin: 28px auto 0;
  }

  /* Cards: tablet can be 2 columns */
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* CTA strip: stack cleanly */
  .cta-strip {
    padding: 44px 28px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  /* Hero: tighter padding and readable text */
  .page-hero {
    padding: 54px 0 46px;
  }

  .page-hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-lead {
    font-size: .96rem;
  }

  /* Hero image: keep it present but not dominant */
  .hero-img {
    height: 230px;
    border-radius: 26px;
  }

  /* Cards: 1 column on mobile */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card-img { height: 190px; }

  /* CTA strip button: large touch target */
  .cta-strip {
    padding: 36px 20px;
  }

  /* Footer: stack and center */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #nav {
    padding: 10px 12px;
    gap: 10px;
  }

  #nav > a.btn-primary,
  #nav > a.btn {
    height: 52px;
    max-width: 420px;
  }

  .nav-links {
    font-size: .92rem;
    letter-spacing: .08em;
    gap: 10px;
  }

  .nav-links a {
    min-height: 48px;
    padding: 0 8px;
  }

  /* Keep hero image hidden on small mobiles */
  .hero-img {
    display: none !important;
    height: auto;
  }

  .cta-strip {
    border-radius: 20px;
  }
}

/* Fixed fallback if needed */
#nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* No layout hacks / no reserved padding */
html, body { margin: 0; padding: 0; }
body { padding-top: 0 !important; }
.seo-page { padding-top: 0 !important; }

/* ══════════════════════════════════════════════════════════════
   MOBILE HAMBURGER MENU — shared across SEO pages
══════════════════════════════════════════════════════════════ */

.mob-toggle {
  display: none;
}

.mob-menu {
  display: none;
}

@media (max-width: 980px) {
  /* Hide the desktop nav on mobile */
  #nav {
    display: none !important;
  }

  .mob-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100001;

    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
    cursor: pointer;
    padding: 0;

    transition: background .25s, transform .2s;
  }

  .mob-toggle:active {
    transform: scale(.93);
  }

  .mob-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .2s;
    transform-origin: center;
  }

  .mob-toggle.is-open .mob-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mob-toggle.is-open .mob-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mob-toggle.is-open .mob-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mob-menu {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;

    background: var(--dark);

    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity .32s cubic-bezier(.23,1,.32,1), transform .32s cubic-bezier(.23,1,.32,1);
  }

  .mob-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .mob-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0 32px;
  }

  .mob-menu__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    height: 68px;
    border-radius: 16px;

    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cream);

    transition: background .2s, color .2s;
    text-decoration: none;
  }

  .mob-menu__link:active,
  .mob-menu__link:focus-visible {
    background: rgba(255, 255, 255, .07);
  }

  .mob-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
    max-width: 340px;
    height: 62px;
    border-radius: 999px;

    background: var(--warm);
    color: var(--dark);
    font-family: var(--body);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;

    transition: background .2s, transform .2s;
  }

  .mob-menu__cta:active {
    transform: scale(.97);
    background: #d4b99a;
  }

  .mob-menu__footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--body);
    font-size: .75rem;
    font-weight: 300;
    letter-spacing: .12em;
    color: rgba(245, 240, 232, .35);
    text-transform: uppercase;
  }
}
