/* ==========================================================================
   Coastal Dental Group — Stylesheet
   ========================================================================== */

:root {
  --navy: #123047;
  --ocean: #2F80ED;
  --aqua: #8EDCE6;
  --seafoam: #DFF7F5;
  --sand: #F5EFE6;
  --white: #FFFFFF;
  --charcoal: #263238;
  --muted: #5B6B73;
  --border: #E6EEF3;
  --shadow-sm: 0 2px 8px rgba(18, 48, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 48, 71, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 48, 71, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1180px;
  --transition: 220ms cubic-bezier(.2,.7,.2,1);
  --font-heading: 'Poppins', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--charcoal); }

.muted { color: var(--muted); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--sand { background: var(--sand); }
.section--seafoam { background: var(--seafoam); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: .75rem;
}

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.btn--primary {
  background: var(--ocean);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.28);
}
.btn--primary:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--ocean); color: var(--ocean); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aqua), var(--ocean));
  display: grid; place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.brand__name { display: inline-flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand__name small { font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.nav__link {
  color: var(--charcoal);
  font-weight: 500;
  font-size: .95rem;
  padding: .25rem 0;
  position: relative;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ocean); }
.nav__link.is-active { color: var(--ocean); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--ocean); border-radius: 2px;
}
.nav__actions {
  display: flex; align-items: center; gap: .85rem;
}
.nav__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--navy); font-weight: 600; font-size: .95rem;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--ocean); }

/* Desktop header layout: brand | centered nav | actions */
@media (min-width: 961px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1.5rem;
  }
  .brand { justify-self: start; }
  .nav { display: contents; }
  .nav__list { grid-column: 2; justify-self: center; }
  .nav__actions { grid-column: 3; justify-self: end; }
}

/* Tighten slightly on narrow desktops to keep everything on one row */
@media (min-width: 961px) and (max-width: 1180px) {
  .nav__list { gap: 1.05rem; }
  .nav__link { font-size: .92rem; }
  .brand__name small { display: none; }
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 960px) {
  .nav__list, .nav__phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav__list {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    padding: 1rem 1.25rem 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__list .nav__link {
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__phone {
    display: inline-flex;
    padding: .85rem .25rem;
  }
  .site-header { position: sticky; }
}

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(142, 220, 230, 0.45), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(223, 247, 245, 0.9), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F5FBFD 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__copy h1 { margin-bottom: 1rem; }
.hero__copy p { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 2rem;
  max-width: 540px;
}
.hero__trust li {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 500; color: var(--navy);
  font-size: .95rem;
}
.hero__trust li svg { color: var(--ocean); flex: none; }
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #EAF6FB 0%, #FFFFFF 60%);
  aspect-ratio: 4/5;
}
.hero__card svg { width: 100%; height: 100%; }
.hero__badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .65rem;
  font-weight: 600; color: var(--navy); font-size: .9rem;
}
.hero__badge--tl { top: 1rem; left: -1rem; }
.hero__badge--br { bottom: 1.25rem; right: -1rem; }
.hero__badge .dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--seafoam);
  display: grid; place-items: center; color: var(--ocean);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__badge--tl { left: 0; }
  .hero__badge--br { right: 0; }
}

/* Wave divider --------------------------------------------------------- */
.wave {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--white);
}
.wave--seafoam { color: var(--seafoam); }
.wave--sand    { color: var(--sand); }
.wave--navy    { color: var(--navy); }

/* Trust bar ------------------------------------------------------------ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.trust-bar__item {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.trust-bar__item svg { color: var(--ocean); flex: none; }
@media (max-width: 760px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
}

/* Section header ------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Service cards -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 128, 237, 0.25);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--seafoam), var(--aqua));
  display: grid; place-items: center;
  color: var(--navy);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Split: Why choose ---------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--seafoam), var(--white));
  aspect-ratio: 5/4;
}
.benefits {
  list-style: none;
  padding: 0; margin: 1.25rem 0 0;
  display: grid; gap: .65rem;
}
.benefits li {
  display: flex; gap: .65rem; align-items: flex-start;
  font-weight: 500; color: var(--navy);
}
.benefits li svg { color: var(--ocean); margin-top: 3px; flex: none; }

/* Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
}
.step__num {
  width: 40px; height: 40px;
  background: var(--ocean); color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: .85rem;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }

/* Insurance grid ------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature__icon {
  margin: 0 auto .75rem;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--seafoam); color: var(--ocean);
  display: grid; place-items: center;
}
.feature h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--seafoam);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: .95rem;
}

/* Cosmetic banner ------------------------------------------------------ */
.cosmetic {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(142, 220, 230, 0.35), transparent 60%),
    linear-gradient(135deg, #F5EFE6 0%, #FFFFFF 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
@media (max-width: 860px) { .cosmetic { grid-template-columns: 1fr; } }
.cosmetic__visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 5/3;
  background: linear-gradient(135deg, var(--seafoam), var(--aqua));
  box-shadow: var(--shadow-sm);
}

/* Testimonials --------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote__stars {
  display: flex; gap: 2px; color: #F2B100; margin-bottom: .75rem;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.55;
}
.quote__who {
  display: flex; align-items: center; gap: .65rem;
  color: var(--muted);
  font-size: .92rem;
}
.quote__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--ocean));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-heading);
}

/* Form ----------------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

.form {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; display: block; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}
.radio-group {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.radio-group label {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .92rem;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 500;
  transition: all var(--transition);
}
.radio-group input { accent-color: var(--ocean); }
.radio-group label:hover { border-color: var(--ocean); color: var(--ocean); }
.radio-group input:checked + span {} /* placeholder for compat */
.radio-group label:has(input:checked) {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}

.form__success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--seafoam);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
}
.form__success.is-visible { display: block; }

.form-aside h2 { margin-bottom: .75rem; }
.form-aside ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.form-aside ul li {
  display: flex; gap: .65rem; align-items: flex-start;
  color: var(--navy); font-weight: 500;
}
.form-aside ul li svg { color: var(--ocean); margin-top: 3px; flex: none; }

.form-aside__contact {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.form-aside__contact strong { color: var(--navy); font-family: var(--font-heading); }

/* FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--ocean);
  transition: transform var(--transition);
  font-weight: 400;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item .faq__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

/* Final CTA ------------------------------------------------------------ */
.final-cta {
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(142, 220, 230, 0.18), transparent 60%),
    var(--navy);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-radius: var(--radius-lg);
}
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 1.5rem; }
.final-cta .btn-row { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* Page hero (interior pages) ------------------------------------------ */
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(142, 220, 230, 0.35), transparent 60%),
    linear-gradient(180deg, #F5FBFD 0%, #FFFFFF 100%);
  text-align: center;
}
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.page-hero .breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: var(--ocean); }

/* About page ----------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .team { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .team { grid-template-columns: 1fr; } }
.team__member {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team__member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team__avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--aqua), var(--ocean));
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}
.team__member h3 { margin-bottom: .15rem; }
.team__member .role { color: var(--ocean); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.team__member p { color: var(--muted); font-size: .92rem; margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat {
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat__label { color: var(--muted); font-size: .9rem; }

/* Contact page --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}
.contact-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--seafoam);
  color: var(--ocean);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}
.contact-card h3 { margin-bottom: .35rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { display: block; font-weight: 600; color: var(--navy); }
.contact-card a:hover { color: var(--ocean); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--seafoam), #fff);
  aspect-ratio: 16/7;
  display: grid; place-items: center;
  color: var(--muted);
}

/* Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand__name small { color: rgba(255,255,255,0.55); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 1rem; max-width: 32ch; }
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.socials { display: flex; gap: .5rem; margin-top: .5rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background var(--transition);
}
.socials a:hover { background: rgba(255,255,255,0.18); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,0.55);
}

/* Mobile sticky CTA ---------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  gap: .5rem;
  padding: .65rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 40;
  box-shadow: 0 -8px 20px rgba(18, 48, 71, 0.08);
}
.sticky-cta .btn { flex: 1; padding: .85rem 1rem; font-size: .95rem; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* Photo helpers -------------------------------------------------------- */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--seafoam);
  box-shadow: var(--shadow-md);
}
.photo-frame--hero { aspect-ratio: 4/5; }
.photo-frame--split { aspect-ratio: 5/4; }
.photo-frame--wide { aspect-ratio: 16/9; }
.photo-frame--banner { aspect-ratio: 5/3; }
.photo-frame--card { aspect-ratio: 3/2; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* Service row (alternating image/text) --------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.service-row + .service-row { margin-top: clamp(3rem, 5vw, 4.5rem); }
.service-row--reverse .service-row__media { order: 2; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row--reverse .service-row__media { order: 0; }
}
.service-row__media .photo-frame { aspect-ratio: 5/4; }
.service-row h2 { margin-bottom: .5rem; }
.service-row .eyebrow { color: var(--ocean); }
.service-row__list { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .55rem; }
.service-row__list li { display: flex; gap: .55rem; align-items: flex-start; color: var(--navy); font-weight: 500; }
.service-row__list li svg { color: var(--ocean); margin-top: 3px; flex: none; }

/* Image card (service preview) ---------------------------------------- */
.image-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.image-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47, 128, 237, 0.2); }
.image-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--seafoam); }
.image-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.image-card h3 { margin-bottom: .35rem; }
.image-card p { color: var(--muted); margin: 0 0 1rem; }
.image-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ocean);
  display: inline-flex; align-items: center; gap: .3rem;
}
.image-card__link:hover { color: var(--navy); gap: .55rem; }

/* Office gallery / collage -------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: clamp(360px, 50vw, 500px);
}
.gallery > div { overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.gallery > div:nth-child(1) { grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; height: auto; }
  .gallery > div { aspect-ratio: 1; }
  .gallery > div:nth-child(1) { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 16/9; }
}

/* Image hero (page-hero with photo background) ------------------------ */
.page-hero--photo {
  padding: 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.page-hero--photo .page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
}
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,48,71,0.55) 0%, rgba(18,48,71,0.85) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero--photo .breadcrumb,
.page-hero--photo .breadcrumb a,
.page-hero--photo p { color: rgba(255,255,255,0.85); }
.page-hero--photo h1 { color: var(--white); }
.page-hero--photo .eyebrow { color: var(--aqua); }
.page-hero--photo .hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Emergency callout --------------------------------------------------- */
.callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #FFF3EB 0%, #FFE9D8 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid #F08A4B;
}
.callout__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #F08A4B;
  color: #fff;
  display: grid; place-items: center;
}
.callout h3 { color: #8C3A12; margin: 0 0 .25rem; }
.callout p { margin: 0; color: #6B3015; }
.callout .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .callout { grid-template-columns: 1fr; text-align: center; }
  .callout__icon { margin: 0 auto; }
}

/* Values grid --------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.value__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--seafoam);
  color: var(--ocean);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.value h3 { margin-bottom: .35rem; }
.value p { margin: 0; color: var(--muted); }

/* Team member with photo --------------------------------------------- */
.team__member--photo .team__avatar {
  width: 140px; height: 140px;
  background: none;
  overflow: hidden;
}
.team__member--photo .team__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Pricing / financing card ------------------------------------------- */
.payment-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .payment-row { grid-template-columns: 1fr; } }
.payment-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.payment-card h3 { margin-bottom: .5rem; }
.payment-card ul {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .55rem;
}
.payment-card li {
  display: flex; gap: .55rem; align-items: flex-start;
  color: var(--navy); font-weight: 500;
}
.payment-card li svg { color: var(--ocean); margin-top: 3px; flex: none; }

/* Hero photo overrides for index page -------------------------------- */
.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--seafoam);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.flex-row { display: inline-flex; flex-wrap: wrap; gap: .75rem; }
.visually-hidden {
  position: absolute !important; height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
