/* ==========================================================================
   Bearlodge Dental Services — v3
   Palette is taken from the logo: deep navy + brand cyan.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --navy-900: #0b121d;
  --navy-800: #101826;
  --navy-700: #182334;
  --navy-600: #243246;
  --cyan:     #2aadd6;
  --cyan-400: #4cc3e6;
  --blue-600: #0f84b5;
  --blue-700: #0a6286;

  /* neutrals */
  --ink:      #121b28;
  --body:     #44515f;
  --muted:    #6c7a8a;
  --line:     #e2e7ee;
  --line-2:   #eef1f6;
  --surface:  #f6f8fb;
  --white:    #ffffff;

  --shell: 1180px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 38, .06), 0 2px 8px rgba(16, 24, 38, .05);
  --shadow-md: 0 2px 6px rgba(16, 24, 38, .06), 0 14px 34px rgba(16, 24, 38, .09);
  --shadow-lg: 0 4px 10px rgba(16, 24, 38, .08), 0 28px 60px rgba(16, 24, 38, .14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------- reset / base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
dl, dd { margin: 0; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.shell-narrow { max-width: 820px; }

/* ------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-sans);
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm  { padding: .6rem 1.05rem; font-size: .9375rem; border-radius: 9px; }
.btn-lg  { padding: 1rem 1.9rem; font-size: 1.0625rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(140deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 1px 2px rgba(10, 98, 134, .3), 0 10px 24px -8px rgba(10, 98, 134, .55);
}
.btn-primary:hover {
  background: linear-gradient(140deg, #1291c5, #0b6f97);
  box-shadow: 0 2px 4px rgba(10, 98, 134, .32), 0 16px 32px -10px rgba(10, 98, 134, .6);
}

.btn-ghost {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .5);
}


/* light-background secondary */
.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: #c3d2de; color: var(--ink); }
.btn-outline svg { color: var(--blue-600); }

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark { width: auto; height: 34px; }
.brand-word { width: auto; height: 23px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.9rem; }
.site-nav a {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: .4rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 0 0 auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { color: var(--blue-600); flex: none; }
.header-phone:hover { color: var(--blue-700); }

@media (max-width: 999px) {
  .site-nav { display: none; }
  .header-inner { gap: 1rem; }
  /* the nav normally carries the auto margin; with it hidden the controls
     would otherwise sit right against the logo */
  .header-cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone {
    width: 42px; height: 42px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .brand-word { height: 20px; }
  .brand-mark { height: 30px; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(42, 173, 214, .13), transparent 62%),
    linear-gradient(180deg, #fbfcfe 0%, var(--white) 55%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .82fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.5rem;
  padding: .45rem .95rem .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
  flex: none;
}

.hero h1 { margin-bottom: .4em; max-width: 16ch; }

.hero-sub {
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

/* --- visual --- */

.hero-visual { position: relative; }

.hero-panel {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--tint);
}
.hero-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: -2rem;
  bottom: 1.5rem;
  width: 262px;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-badge-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: .6rem;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--cyan), var(--blue-600));
  color: #fff;
}
.hero-badge-title {
  margin: 0 0 .15rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .9375rem; line-height: 1.3; color: var(--ink);
  letter-spacing: -.01em;
}
.hero-badge-sub { margin: 0; font-size: .8125rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { max-width: 18ch; }
  .hero-visual { max-width: 460px; }
  .hero-badge { left: auto; right: -1rem; bottom: -1rem; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: none; }
  .hero-badge { position: static; width: auto; margin-top: 1rem; }
}

/* ------------------------------------------------------------ trustbar */

.trustbar {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  position: relative;
  padding: clamp(2.4rem, 4.5vw, 3.4rem) 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
/* hairlines sit between items only, never at the ends */
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 52%;
  background: var(--line);
}
.trust-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--blue-600);
}
.trust-small {
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 720px) {
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  /* in two columns the left hairline belongs to the right-hand item only */
  .trust-item:nth-child(odd)::before { display: none; }
  .trust-item:nth-child(even)::before { display: block; }
  /* and the second row needs a rule above it */
  .trust-item:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: var(--line);
  }
}

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(4rem, 8.5vw, 7rem); }
.section-dark {
  background: var(--navy-800);
  color: rgba(255, 255, 255, .78);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: rgba(255, 255, 255, .72); }
.section-dark a { color: var(--cyan-400); }
.section-dark a:hover { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 .9rem;
  color: var(--blue-600);
  font-size: .78125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section-dark .kicker { color: var(--cyan); }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 0;
}

/* ------------------------------------------------------- service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #cfe4ef;
  box-shadow: var(--shadow-md);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(140deg, #e8f6fb, #d2ecf6);
  color: var(--blue-700);
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96875rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- brands */

.brands {
  margin-top: 3rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
}
.brands-label {
  margin: 0 0 1.15rem;
  font-size: .78125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.brands-note {
  max-width: 58ch;
  margin-inline: auto;
  font-size: .96875rem;
  color: var(--muted);
}


/* ------------------------------------------------------- brand logo row */

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 3.25rem;
  margin-bottom: 1.4rem;
}
.brand-logos li { display: flex; align-items: center; }
.brand-logos img {
  width: auto;
  object-fit: contain;
  opacity: .72;
  filter: grayscale(100%);
  transition: opacity .2s ease;
}
/* optically balanced rather than uniform — a wordmark and a badge at the same
   pixel height do not read at the same size */
.brand-logos .bl-nsk  { height: 29px; }
.brand-logos .bl-star { height: 44px; }
.brand-logos .bl-kavo { height: 27px; }
.brand-logos .bl-wh   { height: 40px; }
.brand-logos li:hover img { opacity: 1; }

/* Midwest is a word brand — Dentsply Sirona publishes no standalone mark,
   so it is set to match the optical weight of the logos beside it. */
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.025em;
  color: #303946;
  opacity: .72;
  line-height: 1;
}
.brand-wordmark sup { font-size: .5em; font-weight: 600; top: -.75em; }

.brand-more {
  margin: 0 0 1.3rem;
  font-size: .9375rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .brand-logos { gap: 1.5rem 2.25rem; }
  .brand-logos .bl-nsk  { height: 24px; }
  .brand-logos .bl-star { height: 36px; }
  .brand-logos .bl-kavo { height: 23px; }
  .brand-logos .bl-wh   { height: 33px; }
  .brand-wordmark { font-size: 1.25rem; }
}

/* --------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.15rem;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--cyan), var(--blue-600));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}
.step p { font-size: .96875rem; color: rgba(255, 255, 255, .7); margin: 0; }

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2.75rem;
  text-align: center;
}
.steps-cta-note { font-size: .9375rem; color: rgba(255, 255, 255, .6); }

/* ----------------------------------------------------------------- why */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .why-layout { grid-template-columns: 1fr; }
}

.why-copy p { color: var(--body); }

.why-owner {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.why-owner-mark { width: auto; height: 44px; flex: none; }
.why-owner-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}
.why-owner-role { margin: 0; font-size: .90625rem; color: var(--muted); }

.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem 2rem;
}
.why-list li { position: relative; padding-left: 1.9rem; }
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    linear-gradient(140deg, var(--cyan), var(--blue-600));
}
.why-list h3 { margin-bottom: .3em; font-size: 1.0625rem; }
.why-list p { font-size: .96875rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ coverage */

.coverage {
  background: var(--surface);
  border-block: 1px solid var(--line-2);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.coverage-inner {
  max-width: 720px;
  text-align: center;
}
.coverage h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.coverage p { color: var(--body); margin: 0; }

/* ----------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--ink);
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-700); }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .15rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f84b5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding-bottom: 1.5rem;
  max-width: 68ch;
}
.faq-body p { font-size: 1rem; color: var(--body); margin: 0; }

/* ------------------------------------------------------------ estimate */

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .estimate-layout { grid-template-columns: 1fr; }
}

.estimate-contact {
  display: grid;
  gap: 1.3rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.ec-label {
  display: block;
  font-size: .78125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .3rem;
}
.ec-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.015em;
}
a.ec-value:hover { color: var(--cyan-400); }
.ec-value-plain {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  display: block;
}

.estimate-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 1.05rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.estimate-form label {
  display: block;
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.req { color: var(--blue-600); }

.estimate-form input,
.estimate-form textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfe;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.estimate-form textarea { resize: vertical; min-height: 120px; }
.estimate-form input::placeholder,
.estimate-form textarea::placeholder { color: #9aa6b4; }
.estimate-form input:hover,
.estimate-form textarea:hover { border-color: #c9d3de; }
.estimate-form input:focus,
.estimate-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(15, 132, 181, .16);
}
.estimate-form input[aria-invalid="true"],
.estimate-form textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .13);
}

.estimate-form .btn { margin-top: .6rem; }

.form-foot {
  margin: .95rem 0 0;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
}
.form-status {
  margin: .9rem 0 0;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .9375rem;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: #e7f6ee;
  border: 1px solid #b8e3cc;
  color: #1c6b43;
}
.form-status.is-error {
  display: block;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #9b2c20;
}

/* honeypot — hidden from people, reachable by bots */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand img { width: 210px; height: auto; margin-bottom: 1rem; }
.footer-tagline { max-width: 32ch; color: rgba(255, 255, 255, .55); margin: 0; }

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: .78125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a,
.site-footer address a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}
.footer-col a:hover,
.site-footer address a:hover { color: var(--cyan-400); }

.site-footer address { font-style: normal; display: grid; gap: .6rem; }
.site-footer address p { margin: 0; }
.footer-name { color: #fff; font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
  color: rgba(255, 255, 255, .42);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Interior pages — same tokens and type scale as the home page
   ========================================================================== */

/* ---------------------------------------------------------- page hero */

.page-hero {
  position: relative;
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(900px 520px at 82% -20%, rgba(42, 173, 214, .12), transparent 62%),
    linear-gradient(180deg, #fbfcfe 0%, var(--white) 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 760px; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  margin-bottom: .45em;
}
.page-hero .lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.page-hero .hero-actions { margin-top: 2rem; margin-bottom: 0; }

/* -------------------------------------------------------------- prose */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5em; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul { margin: 0 0 1.1em; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before {
  content: "";
  position: absolute; left: .15rem; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}

/* ---------------------------------------------- service detail blocks */

.svc {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc-side { position: sticky; top: 100px; }
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 1.1rem;
  border-radius: 13px;
  background: linear-gradient(140deg, #e8f6fb, #d2ecf6);
  color: var(--blue-700);
}
.svc-side h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-bottom: .35em; }
.svc-side p { font-size: .96875rem; color: var(--muted); margin: 0; }
.svc-body > p:first-child { margin-top: 0; }
.svc-list { display: grid; gap: .7rem; margin-top: 1.25rem; }
.svc-list li { position: relative; padding-left: 1.85rem; font-size: 1rem; }
.svc-list li::before {
  content: "";
  position: absolute; left: 0; top: .32em;
  width: 19px; height: 19px; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px 11px no-repeat,
    linear-gradient(140deg, var(--cyan), var(--blue-600));
}
@media (max-width: 820px) {
  .svc { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-side { position: static; }
}

/* ------------------------------------------------------- panel / note */

.panel {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--tint);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
}
.panel h2, .panel h3 { margin-top: 0; }
/* panel headings carry h3's visual weight whatever their level, so the
   document outline can stay correct without the type jumping */
.panel h2 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.015em; }

.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--cyan);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { margin: 0; font-size: .96875rem; color: var(--body); }

/* --------------------------------------------------- numbered rundown */

.rundown { display: grid; gap: 1.5rem; counter-reset: rd; }
.rundown > li {
  position: relative;
  padding-left: 3.6rem;
  counter-increment: rd;
}
.rundown > li::before {
  content: counter(rd);
  position: absolute; left: 0; top: -.1rem;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--cyan), var(--blue-600));
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem;
}
.rundown h3 { margin-bottom: .3em; }
.rundown p { margin: 0; color: var(--muted); font-size: .96875rem; }
.rundown p + p { margin-top: .5em; }

/* ------------------------------------------------------- two-up grid */

.twoup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 680px) {
  .twoup { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- contact grid */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 1.6rem; }
.contact-list dt {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .3rem;
}
.contact-list dd {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1875rem; letter-spacing: -.015em;
  color: var(--ink);
}
.contact-list dd a { color: var(--ink); text-decoration: none; }
.contact-list dd a:hover { color: var(--blue-700); }
.contact-list .plain {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 1rem; line-height: 1.55; color: var(--body);
}

/* a light-background version of the estimate form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------- cta band */

.cta-band {
  background: var(--navy-800);
  padding-block: clamp(3.25rem, 6.5vw, 5rem);
  text-align: center;
  color: rgba(255, 255, 255, .78);
}
.cta-band h2 { color: #fff; margin-bottom: .5em; }
.cta-band-inner { max-width: 640px; }
.cta-band .hero-actions { justify-content: center; margin-top: 2rem; margin-bottom: 0; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; box-shadow: none; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-outline svg { color: var(--cyan-400); }

/* ---------------------------------------------------------- mobile nav */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.nav-toggle:hover { border-color: #c3d2de; }

/* three bars drawn from one element */
.nav-toggle-box { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .16s ease;
}
.nav-toggle-bar { top: 5px; }
.nav-toggle-bar::before { content: ""; top: -5px; }
.nav-toggle-bar::after  { content: ""; top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { opacity: 0; transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-5px) rotate(-90deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-2);
  background: var(--white);
}
.mobile-nav ul { padding-block: .5rem 1rem; }
.mobile-nav li + li { border-top: 1px solid var(--line-2); }
.mobile-nav a {
  display: block;
  padding: .95rem .25rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--blue-700); }
.mobile-nav a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.mobile-nav-phone a {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
}
.mobile-nav-phone svg { color: var(--blue-600); flex: none; }

@media (max-width: 999px) {
  .nav-toggle { display: inline-flex; }
  /* :not([hidden]) so the hidden attribute keeps winning — a bare
     display:block here would override it and pin the panel open */
  .mobile-nav:not([hidden]) { display: block; }
  /* the header keeps its own phone link on wide-ish phones only */
  .header-cta { gap: .65rem; }
}

/* With the menu button present there isn't room for everything on a phone.
   The phone link is the higher-value tap, and every page's hero already
   carries a full-width "Request a free estimate" button. */
@media (max-width: 620px) {
  .header-cta .btn-primary { display: none; }
}

/* ------------------------------------------------- printable form links */

.form-links { margin-top: 2.25rem; }
.form-links-label {
  margin: 0 0 .7rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
.form-links ul {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.form-links li + li { border-top: 1px solid var(--line-2); }

.form-links a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease;
}
.form-links a:hover { background: var(--tint); color: var(--ink); }

.form-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, #e8f6fb, #d2ecf6);
  color: var(--blue-700);
}
.form-link-text { display: block; min-width: 0; }
.form-link-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96875rem;
  letter-spacing: -.012em;
  color: var(--ink);
}
.form-link-type {
  display: inline-block;
  margin-left: .35rem;
  padding: .08em .4em;
  border-radius: 3px;
  background: var(--line-2);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  vertical-align: .12em;
}
.form-link-desc {
  display: block;
  margin-top: .1rem;
  font-size: .84375rem;
  line-height: 1.4;
  color: var(--muted);
}
.form-link-go {
  flex: none;
  margin-left: auto;
  color: var(--faint);
  transition: transform .18s ease, color .18s ease;
}
.form-links a:hover .form-link-go { color: var(--blue-600); transform: translateX(2px); }

@media (max-width: 400px) {
  .form-links a { gap: .7rem; padding: .85rem .8rem; }
  .form-link-icon { width: 32px; height: 32px; }
}
