/* ─── SHARED CSS ─── */
/* Extracted from all 4 pages to eliminate duplication */

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

:root {
  --teal: #1a8a7d;
  --teal-dark: #14695f;
  --teal-deep: #0d4f47;
  --teal-light: #e6f5f3;
  --teal-mist: #f0faf8;
  --ink: #141c1b;
  --ink-light: #2d3b39;
  --grey-600: #4a5957;
  --grey-400: #7c8e8b;
  --grey-200: #b8c5c3;
  --grey-100: #dce5e3;
  --grey-50: #f2f5f4;
  --white: #fafbfb;
  --pure-white: #ffffff;
  --page-pad: clamp(3rem, 5vw, 8rem);
}

html { font-size: clamp(1rem, 0.85rem + 0.25vw, 1.375rem); scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--page-pad); height: 4.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(250,251,251,0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(200, 200, 200, 0.15);
}
.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; color: var(--pure-white);
  text-decoration: none; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.nav-wordmark svg { width: 28px; height: 28px; margin-right: 0.5rem; vertical-align: middle; }
.nav-wordmark svg circle { stroke: var(--pure-white); fill: none; transition: stroke 0.3s, fill 0.3s; }
.nav-wordmark svg circle:nth-child(2) { stroke: var(--teal); }
.nav-wordmark svg circle:nth-child(3) { fill: var(--pure-white); stroke: none; }
nav.scrolled .nav-wordmark svg circle { stroke: var(--teal); }
nav.scrolled .nav-wordmark svg circle:nth-child(2) { stroke: var(--teal-dark); }
nav.scrolled .nav-wordmark svg circle:nth-child(3) { fill: var(--teal); stroke: none; }
.nav-wordmark span { color: var(--teal-light); transition: color 0.3s; }
nav.scrolled .nav-wordmark { color: var(--ink); }
nav.scrolled .nav-wordmark span { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.85);
  text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.25s; position: relative;
}
nav.scrolled .nav-links a { color: var(--grey-600); }
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 100%; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-links a.active { color: var(--pure-white); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
nav.scrolled .nav-links a.active { color: var(--teal); }

/* ─── SECTION TAG ─── */
.section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ─── CTA ─── */
.cta {
  padding: 7rem var(--page-pad); text-align: center;
  background: var(--pure-white); border-top: 1px solid var(--grey-100);
}
.cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400; margin-bottom: 0.75rem; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cta h2 em { font-style: italic; color: var(--teal); }
.cta p {
  color: var(--grey-400); font-size: 0.95rem;
  margin-bottom: 2.5rem; font-weight: 300;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease 0.12s, transform 0.7s ease 0.12s;
}
.cta.visible h2,
.cta.visible p { opacity: 1; transform: translateY(0); }

/* ─── CTA PILL ─── */
@keyframes borderSpin {
  to { --border-angle: 360deg; }
}
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.cta-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  width: 100%;
  height: 3.5rem;
  border-radius: 100px;
  background: conic-gradient(from var(--border-angle), var(--teal), var(--teal-light), var(--teal), var(--teal-dark), var(--teal));
  padding: 2px;
  animation: borderSpin 3.5s linear infinite;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease 0.24s, transform 0.7s ease 0.24s, box-shadow 0.4s ease, padding 0.5s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 16px -4px rgba(26,138,125,0.25);
}
.cta.visible .cta-pill { opacity: 1; transform: translateY(0); }
.cta-pill:hover { box-shadow: 0 0 28px -4px rgba(26,138,125,0.4); }
.cta-pill:focus-within { box-shadow: 0 0 32px -2px rgba(26,138,125,0.5); }
.cta-pill__inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: var(--pure-white);
  padding: 0 0.35rem 0 1.5rem;
  gap: 0.5rem;
  transition: background 0.5s ease, padding 0.5s ease;
}
.cta-pill__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  min-width: 0;
  caret-color: var(--teal);
}
.cta-pill__input::placeholder { color: var(--grey-200); }
.cta-pill__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: var(--pure-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-pill__submit:hover { background: var(--teal-dark); transform: scale(1.08); }
.cta-pill__submit svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cta-pill__thanks {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pure-white);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-radius: 100px;
}
.cta-pill.is-thanked {
  max-width: 200px;
  background: var(--teal);
  animation: none;
  box-shadow: 0 0 24px -2px rgba(26,138,125,0.45);
  transition: max-width 0.5s cubic-bezier(0.22,1,0.36,1), background 0.4s ease, box-shadow 0.4s ease, opacity 0.7s ease, transform 0.7s ease;
}
.cta-pill.is-thanked .cta-pill__inner { opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.cta-pill.is-thanked .cta-pill__thanks { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ─── */
footer {
  padding: 3.5rem var(--page-pad) 2.5rem;
  background: var(--white);
  border-top: 1px solid var(--grey-100);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem; color: var(--ink);
}
.footer-mark span { color: var(--teal); }
.footer-copy { font-size: 0.75rem; color: var(--grey-400); font-weight: 300; }
.footer-group h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  margin: 0 0 1rem;
}
.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-group ul a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--grey-600);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-group ul a:hover {
  color: var(--teal);
}

/* ─── KEYFRAMES ─── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes accentPop {
  0% { opacity: 0.08; transform: translateY(4px); }
  60% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3)); }
}

/* ─── MOBILE NAV (hidden on desktop) ─── */
.nav-hamburger { display: none; }
.mobile-nav-overlay { display: none; }

/* ─── 900px — Footer 2-col ─── */
@media (max-width: 900px) {
  footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─── RESPONSIVE 768px ─── */
@media (max-width: 768px) {
  :root { --page-pad: 1.5rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px;
    background: none; border: none; cursor: pointer; padding: 10px;
    z-index: 101;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--pure-white); border-radius: 2px;
    transition: background 0.3s;
  }
  nav.scrolled .nav-hamburger span { background: var(--ink); }

  /* Mobile Nav Overlay */
  .mobile-nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 200;
    visibility: hidden; opacity: 0;
    transition: visibility 0.35s, opacity 0.35s;
  }
  .mobile-nav-overlay.is-open { visibility: visible; opacity: 1; }
  .mobile-nav-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(10,14,13,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .mobile-nav-drawer {
    position: absolute; top: 0; right: 0;
    width: min(320px, 85vw); height: 100%;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    display: flex; flex-direction: column;
    padding: 1.5rem;
    z-index: 1;
  }
  .mobile-nav-overlay.is-open .mobile-nav-drawer { transform: translateX(0); }
  .mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2.5rem;
  }
  .mobile-nav-header .nav-wordmark { color: var(--pure-white); }
  .mobile-nav-close {
    width: 44px; height: 44px;
    background: none; border: none;
    color: rgba(255,255,255,0.7); font-size: 1.75rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
  .mobile-nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem; font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
  }
  .mobile-nav-links a:last-child { border-bottom: none; }
  .mobile-nav-links a:active { color: var(--teal); }

  /* CTA */
  .cta { padding: 5rem var(--page-pad); }
  .cta-pill { max-width: calc(100vw - 3rem); height: 3.5rem; }
  .cta-pill__submit { width: 2.5rem; height: 2.5rem; min-width: 44px; min-height: 44px; }
  .cta-pill__input { font-size: 0.85rem; }

  /* Footer */
  footer { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 2.5rem var(--page-pad) 2rem; }
  .footer-brand { align-items: center; }
  .footer-group ul { gap: 0.75rem; }
  .footer-group ul a { font-size: 0.9rem; padding: 0.25rem 0; display: inline-block; }
}

/* ─── SMALL SCREENS ─── */
@media (max-width: 374px) {
  :root { --page-pad: 1rem; }
}
