/* ============================================================
   BRIGHT CREEK DENTAL - template stylesheet
   Calm, airy, spotless. Creek-wave section dividers, gently
   rounded components, one warm sand band. Light theme only.

   Palette : white #FDFEFE / mint #DFF2EE / teal #1C7FA6
             slate ink #1E3742 / warm sand #F2E5D0
   Type    : Outfit (display) + Figtree (body)
   ============================================================ */

:root {
  --white: #fdfefe;
  --mint: #dff2ee;
  --mint-soft: #eef8f5;
  --teal: #1c7fa6;
  --teal-deep: #135e7d;
  --ink: #1e3742;
  --slate: #52707d;
  --sand: #f2e5d0;
  --sand-line: #e3d0b0;
  --line: #d9e8e4;
  --card: #ffffff;

  --display: "Outfit", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 10px 30px rgba(30, 55, 66, 0.08);
  --shadow-soft: 0 4px 14px rgba(30, 55, 66, 0.06);
}

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

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-deep);
}

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

.shell {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

/* ---- Type helpers ------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--mint);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin: 0 0 1.1rem;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.section-head .sub {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--slate);
}

/* ---- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease,
    border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-teal:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-white {
  background: #fff;
  color: var(--teal-deep);
}

.btn-white:hover {
  background: var(--mint-soft);
  color: var(--teal-deep);
}

/* ---- Header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  /* No backdrop-filter here: it would make this sticky header the
     containing block for the fixed drawer nav, pushing the off-screen
     drawer into the document's scrollable area (horizontal overflow). */
  background: rgba(253, 254, 254, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 100%);
  display: grid;
  place-items: center;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--teal-deep);
}

.nav a.active {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.55rem;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.nav-toggle-bar {
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(30, 55, 66, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Waves (creek dividers) --------------------------------- */
/* Each wave sits between two sections: its background-color is
   the section above, the SVG fill is the section below. */
.wave {
  display: block;
  height: clamp(30px, 5vw, 58px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.wave-into-mint {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,34 C220,62 440,4 720,22 C1000,40 1220,10 1440,34 L1440,60 L0,60 Z' fill='%23DFF2EE'/%3E%3C/svg%3E");
}

.wave-into-white {
  background-color: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,34 C220,62 440,4 720,22 C1000,40 1220,10 1440,34 L1440,60 L0,60 Z' fill='%23FDFEFE'/%3E%3C/svg%3E");
}

.wave-into-ink {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,34 C220,62 440,4 720,22 C1000,40 1220,10 1440,34 L1440,60 L0,60 Z' fill='%231E3742'/%3E%3C/svg%3E");
}

.bg-mint {
  background: var(--mint);
}

/* ---- Hero ---------------------------------------------------- */
.hero {
  padding: 3.6rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  margin-bottom: 0.5em;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.hero-note svg {
  flex: none;
  color: var(--teal);
}

.hero-photo {
  position: relative;
  min-width: 0;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -7% -5% 7% 5%;
  background: var(--mint);
  border-radius: 55% 45% 52% 48% / 47% 55% 45% 53%;
}

.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 52% 48% 45% 55% / 55% 47% 53% 45%;
  box-shadow: var(--shadow);
}

.hero-chip {
  position: absolute;
  left: -0.5rem;
  bottom: 1.6rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-deep);
  box-shadow: var(--shadow-soft);
}

.hero-chip svg {
  flex: none;
  color: var(--teal);
}

/* ---- Quick facts bar ----------------------------------------- */
.facts {
  padding-bottom: 3.4rem;
}

.facts-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.fact {
  background: var(--card);
  padding: 1.35rem 1.6rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 0;
}

.fact svg {
  flex: none;
  color: var(--teal);
  margin-top: 0.2rem;
}

.fact-label {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.98rem;
}

.fact-value {
  display: block;
  color: var(--slate);
  font-size: 0.94rem;
}

.fact a {
  color: var(--teal-deep);
  text-decoration: none;
}

.fact a:hover {
  text-decoration: underline;
}

/* ---- Service cards -------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
}

.svc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.svc-card p {
  color: var(--slate);
  font-size: 0.97rem;
  margin: 0;
}

.section-cta {
  margin-top: 2.2rem;
}

/* ---- First-visit steps (creek path) ---------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 52' preserveAspectRatio='none'%3E%3Cpath d='M0,26 C130,52 250,0 400,26 C550,52 670,0 800,26' fill='none' stroke='%231C7FA6' stroke-width='3' stroke-linecap='round' stroke-dasharray='0.5 12'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: 0.55;
}

.step {
  position: relative;
  text-align: center;
  min-width: 0;
}

.step-num {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px var(--white), var(--shadow-soft);
}

.bg-mint .step-num {
  box-shadow: 0 0 0 8px var(--mint), var(--shadow-soft);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.step p {
  color: var(--slate);
  font-size: 0.97rem;
  margin: 0;
}

/* ---- Split (photo + copy) --------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.2rem;
  align-items: center;
}

.split-photo {
  position: relative;
  min-width: 0;
}

.split-photo::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: var(--mint);
  border-radius: var(--radius-lg);
}

.split-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-photo.landscape img {
  aspect-ratio: 3 / 2;
}

.split h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.split .role {
  font-family: var(--display);
  font-weight: 600;
  color: var(--teal-deep);
  margin-top: -0.4rem;
}

/* ---- Sand band (insurance & comfort) ------------------------------ */
.sand-band {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 2.8rem clamp(1.4rem, 4vw, 3rem);
}

.sand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

.sand-col h3 {
  font-size: 1.3rem;
}

.sand-col p {
  color: #5d4f39;
  font-size: 0.99rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: rgba(253, 254, 254, 0.75);
  border: 1px solid var(--sand-line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ---- CTA panel ------------------------------------------------------ */
.cta-panel {
  background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 3.2rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

.cta-panel h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  color: #fff;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 1.6rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.cta-panel .phone-line {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-panel .phone-line a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta-panel .phone-line a:hover {
  text-decoration: underline;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #c6d6dd;
  padding: 3.4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.footer-brand .brand-mark {
  margin-bottom: 0.9rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin: 0;
}

.footer-head {
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-list a {
  color: #c6d6dd;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-fine {
  border-top: 1px solid rgba(198, 214, 221, 0.2);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #8fa8b2;
}

.footer-fine p {
  margin: 0;
}

/* ---- Page hero (interior pages) ----------------------------------------- */
.page-hero {
  padding: 3.4rem 0 2.8rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  max-width: 640px;
}

.page-hero .lede {
  max-width: 620px;
}

.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-deep);
  background: var(--mint);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  text-decoration: none;
}

.anchor-pill:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* ---- Service groups & rows (Services page) ------------------------------- */
.svc-group {
  padding-top: 1rem;
}

.svc-group + .svc-group {
  margin-top: 3.2rem;
}

.svc-group-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.svc-group-head .svc-icon {
  margin: 0;
  background: var(--card);
}

.svc-group-head h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  margin: 0;
}

.svc-list {
  display: grid;
  gap: 1.2rem;
}

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  min-width: 0;
}

.svc-row h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.svc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.svc-meta .chip {
  background: var(--mint-soft);
  border-color: var(--line);
  font-size: 0.8rem;
}

.svc-label {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.25rem;
}

.svc-what p {
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.svc-what p:last-child {
  margin-bottom: 0;
}

/* ---- First-visit walkthrough (New Patients page) -------------------------- */
/* A vertical winding dotted "creek" runs down the center on desktop;
   steps alternate sides. On mobile it collapses to the left-rail steps. */
.walk {
  position: relative;
  max-width: 960px;
  margin: 3rem auto 0;
}

.walk::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 60px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 240' preserveAspectRatio='none'%3E%3Cpath d='M30,0 C55,40 5,80 30,120 C55,160 5,200 30,240' fill='none' stroke='%231C7FA6' stroke-width='3' stroke-linecap='round' stroke-dasharray='0.5 11'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 60px 240px;
  background-position: center top;
  opacity: 0.5;
}

.walk-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: center;
  padding: 1.6rem 0;
}

.walk-num {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px var(--white), var(--shadow-soft);
}

.walk-card {
  grid-row: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.walk-step:nth-child(odd) .walk-card {
  grid-column: 1;
}

.walk-step:nth-child(even) .walk-card {
  grid-column: 3;
}

.walk-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4em;
}

.walk-card p {
  color: var(--slate);
  font-size: 0.97rem;
  margin: 0;
}

.walk-card .walk-tip {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--teal-deep);
}

/* ---- Checklist card (what to bring) ---------------------------------------- */
.check-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 1.6rem;
  min-width: 0;
}

.check-card h3 {
  font-size: 1.25rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--slate);
  font-size: 0.98rem;
}

.check-list svg {
  flex: none;
  color: var(--teal);
  margin-top: 0.25rem;
}

.check-note {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1.1rem;
  background: var(--mint-soft);
  border-radius: 14px;
  font-size: 0.93rem;
  color: var(--teal-deep);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

/* ---- Team (Our Team page) ----------------------------------------------- */
.lead-member {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.lead-photo {
  position: relative;
  min-width: 0;
}

.lead-photo::before {
  content: "";
  position: absolute;
  inset: -6% -5% 6% 5%;
  background: var(--mint);
  border-radius: 52% 48% 45% 55% / 55% 47% 53% 45%;
}

.lead-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 48% 52% 55% 45% / 47% 55% 45% 53%;
  box-shadow: var(--shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

.member-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  text-align: center;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--mint) 0%, #cfe9e2 100%);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.member-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15em;
}

.member-role {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-deep);
  margin: 0 0 0.7rem;
}

.member-card p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.value {
  min-width: 0;
}

.value .svc-icon {
  margin-bottom: 0.9rem;
}

.value h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}

.value p {
  color: var(--slate);
  font-size: 0.96rem;
  margin: 0;
}

/* ---- FAQ (native details/summary accordion) ------------------------------ */
.faq-group + .faq-group {
  margin-top: 2.6rem;
}

.faq-group-title {
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 1rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--teal-deep);
}

.faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  transition: transform 200ms ease, background-color 200ms ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: #fff;
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--slate);
  font-size: 0.99rem;
}

.faq-answer p {
  margin: 0 0 0.8rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- Contact page ------------------------------------------------------- */
.contact-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2.4rem;
  align-items: start;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.demo-flag {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--sand);
  border-radius: 14px;
  padding: 0.85rem 1.05rem;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  color: #6b5a3b;
}

.demo-flag svg {
  flex: none;
  color: #b6862f;
  margin-top: 0.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field .req {
  color: var(--teal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--mint-soft);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 0.7rem 0.9rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--slate);
}

.form-card .btn {
  margin-top: 0.4rem;
}

.form-status {
  display: none;
  margin: 1.2rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--mint);
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--teal-deep);
}

.form-status.is-shown {
  display: block;
}

.contact-info {
  display: grid;
  gap: 1.1rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.info-card h3 svg {
  flex: none;
  color: var(--teal);
}

.info-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.96rem;
}

.info-card a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info-card a:hover {
  text-decoration: underline;
}

.map-frame {
  position: relative;
  margin-top: 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #14313e 0%, #1e3742 100%);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.8rem;
}

.map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(126, 178, 232, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 178, 232, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.map-frame-inner {
  position: relative;
}

.map-frame svg {
  color: #7eb2e8;
  margin-bottom: 0.6rem;
}

.map-frame p {
  margin: 0;
  color: #c6d6dd;
  font-size: 0.92rem;
}

.map-frame .map-addr {
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

/* ---- Scroll reveal ----------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js .reveal[data-delay="1"] {
  transition-delay: 90ms;
}

html.js .reveal[data-delay="2"] {
  transition-delay: 180ms;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: min(320px, 84vw);
    background: var(--white);
    border-radius: 24px 0 0 24px;
    box-shadow: -12px 0 40px rgba(30, 55, 66, 0.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 4.4rem 1.8rem 2rem;
    transform: translateX(105%);
    transition: transform 240ms ease;
    visibility: hidden;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav a {
    font-size: 1.15rem;
    padding: 0.55rem 0;
    width: 100%;
    border-bottom: 0;
  }

  .nav a.active {
    color: var(--teal-deep);
  }

  .nav-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--mint);
    color: var(--teal-deep);
    cursor: pointer;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .split-photo {
    max-width: 440px;
  }

  /* Pull the offset mint backdrops inward so they can't poke past
     the viewport edge in single-column layouts. */
  .split-photo::before {
    inset: 8% -4% -4% 8%;
  }

  .hero-photo::before {
    inset: -6% -4% 6% 4%;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 2rem;
  }

  .steps::before {
    display: none;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 1.2rem;
    padding-bottom: 2rem;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step-num {
    margin: 0;
    grid-row: 1 / span 2;
  }

  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 64px;
    bottom: 4px;
    border-left: 3px dashed rgba(28, 127, 166, 0.4);
  }

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

  .facts-bar {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .svc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Walkthrough collapses to a left rail, like the home steps. */
  .walk::before {
    display: none;
  }

  .walk-step {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 1.2rem;
    align-items: start;
    padding: 0 0 1.8rem;
  }

  .walk-num {
    grid-column: 1;
    box-shadow: 0 0 0 6px var(--white), var(--shadow-soft);
  }

  .walk-step:nth-child(odd) .walk-card,
  .walk-step:nth-child(even) .walk-card {
    grid-column: 2;
  }

  .walk-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 64px;
    bottom: 6px;
    border-left: 3px dashed rgba(28, 127, 166, 0.4);
  }

  .lead-member {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .lead-photo {
    max-width: 420px;
  }

  .lead-photo::before {
    inset: -5% -4% 5% 4%;
  }

  .team-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.2rem 0;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sand-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
  }

  .team-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-photo {
    max-width: 420px;
  }

  .hero-chip {
    left: 0.4rem;
    bottom: 0.9rem;
  }

  .brand-sub {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn.header-cta {
    display: none;
  }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
