/* ============================================
   Bingham Restoration (Hendersonville) — Styles. Layout adapted from a sibling local-service site template.
   ============================================ */


/* Self-hosted fonts (latin subset) */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/dm-sans-latin.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600 800;font-display:swap;src:url('../fonts/outfit-latin.woff2') format('woff2');}

:root {
  --color-primary: #0b6fb8;
  --color-primary-dark: #08558c;
  --color-primary-light: #6cc3f5;
  --color-navy: #0f1729;
  --color-navy-light: #1a2744;
  --color-slate: #64748b;
  --color-slate-light: #94a3b8;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 41, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 23, 41, 0.1);
  --shadow-lg: 0 12px 40px rgba(15, 23, 41, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 72px;
  --top-bar-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--top-bar-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-navy);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--top-bar-height);
  gap: 1rem;
}

.top-bar__tagline {
  color: var(--color-slate-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-light);
  white-space: nowrap;
  transition: color 0.2s;
}

.top-bar__phone:hover {
  color: var(--color-white);
}

/* ---- Header ---- */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--top-bar-height);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 10px;
  letter-spacing: -0.02em;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--color-slate);
}

.logo__text strong {
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 700;
}

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

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy);
  transition: color 0.2s;
}

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

.nav__cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

.header__phone {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 111, 184, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
}

.btn--phone {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--phone:hover {
  background: var(--color-navy-light);
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0f1729 0%, #12335c 55%, #0b6fb8 130%);
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}

.hero__content {
  color: var(--color-white);
  padding-top: 1rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(11, 111, 184, 0.25);
  border: 1px solid rgba(108, 195, 245, 0.45);
  color: var(--color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__actions .btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__actions .btn--outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ---- Estimate Form ---- */
.hero__form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.estimate-form {
  padding: 2rem;
}

.estimate-form h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

.estimate-form__sub {
  font-size: 0.9rem;
  color: var(--color-slate);
  margin-bottom: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 111, 184, 0.18);
  background: var(--color-white);
}

.form-row input.error,
.form-row select.error {
  border-color: #ef4444;
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-slate-light);
  margin-top: 0.75rem;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.form-success {
  padding: 3rem 2rem;
  text-align: center;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--color-slate);
  margin-bottom: 0.5rem;
}

.form-success a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header--light h2,
.section-header--light p {
  color: var(--color-white);
}

.section-header--light .section-label {
  color: var(--color-primary-light);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-slate);
  font-size: 1.05rem;
}

/* ---- Services ---- */
.services {
  padding: 5rem 0;
  background: var(--color-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card__img {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card__body p {
  color: var(--color-slate);
  font-size: 0.95rem;
}

/* ---- Why Us ---- */
.why-us {
  padding: 5rem 0;
  background: var(--color-bg);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-us__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.why-us__content > p {
  color: var(--color-slate);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.why-us__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.why-us__list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-primary);
}

.why-us__list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.why-us__list span {
  font-size: 0.9rem;
  color: var(--color-slate);
}

.why-us__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-slate);
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq {
  padding: 5rem 0;
  background: var(--color-white);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}

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

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item summary:hover {
  background: var(--color-bg);
}

.faq__item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-slate);
  font-size: 0.95rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 3.5rem 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer .logo__text {
  color: rgba(255, 255, 255, 0.6);
}

.footer .logo__text strong {
  color: var(--color-white);
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--color-primary-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- Mobile Call Bar ---- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.mobile-call-bar__phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.mobile-call-bar__estimate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__form-wrap {
    max-width: 480px;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar__tagline {
    display: none;
  }

  .nav {
    display: none;
    position: fixed;
    top: calc(var(--top-bar-height) + var(--header-height));
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav__cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .header__phone {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__actions {
    justify-content: center;
    width: 100%;
  }

  .mobile-call-bar {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .why-us__stats {
    grid-template-columns: 1fr;
  }
}

/* ---- SEO Content Sections (Homepage) ---- */
.content-sections {
  padding: 4rem 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.content-sections__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.content-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

.content-block p {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-block a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-block a:hover {
  color: var(--color-primary-dark);
}

.hero__lead--first {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero__lead--first a {
  color: var(--color-primary-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__lead--first a:hover {
  color: var(--color-white);
}

/* ---- Service Cards as Links ---- */
.service-card__link {
  display: block;
  color: inherit;
  height: 100%;
}

.service-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.service-card__link:hover .service-card__more {
  text-decoration: underline;
}

/* ---- Service Pages ---- */
.service-page {
  padding: 2.5rem 0 4rem;
  background: var(--color-bg);
}

.service-page__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.service-page__content {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-slate);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 500;
}

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

.service-page__content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.service-page__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-navy);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.service-page__content .content-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.service-page__content .content-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-page__content .content-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.service-page__content .content-block p {
  color: var(--color-navy);
  font-size: 1rem;
}

.content-block--faq {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.content-block--faq .faq__list {
  margin-top: 1rem;
}

/* ---- Service Page Sidebar ---- */
.service-page__sidebar {
  position: sticky;
  top: calc(var(--top-bar-height) + var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-cta {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-cta img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.sidebar-cta h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.25rem 1.25rem 0;
}

.sidebar-cta p {
  font-size: 0.9rem;
  color: var(--color-slate);
  padding: 0.5rem 1.25rem 1rem;
}

.sidebar-cta .btn {
  margin: 0 1.25rem 0.75rem;
  width: calc(100% - 2.5rem);
}

.sidebar-cta .btn:last-of-type {
  margin-bottom: 1.25rem;
}

.sidebar-links {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-links h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sidebar-links li {
  margin-bottom: 0.4rem;
}

.sidebar-links a {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* Active nav link */
.nav a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}


@media (max-width: 1024px) {
  .content-sections__grid {
    grid-template-columns: 1fr;
  }

  .service-page__layout {
    grid-template-columns: 1fr;
  }

  .service-page__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .service-page__content {
    padding: 1.5rem;
  }

  .nav a:not(.nav__cta) {
    font-size: 0.95rem;
  }
}


/* ============================================
   Additions for the water damage restoration site
   ============================================ */

/* Logo mark (inline SVG drop) */
.logo__icon svg { width: 26px; height: 26px; }
.logo__icon { background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary)); }

/* Hero decorative water waves (pure CSS/SVG, no photos) */
.hero__bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40c150 40 300 40 450 10s300-40 450-10 225 30 300 10v40H0z' fill='%23ffffff' fill-opacity='.07'/%3E%3Cpath d='M0 60c200 30 350 30 550 0s350-20 650 5v25H0z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero__lead { max-width: 560px; }
.hero__lead--first a, .hero__lead a { color: var(--color-primary-light); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Call button gets a warm accent so it reads as the urgent action */
.btn--call { background: #f97316; border-color: #f97316; color: #fff; }
.btn--call:hover { background: #ea580c; border-color: #ea580c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,.4); }
.top-bar__phone { color: #fdba74; }
.mobile-call-bar__phone { background: #f97316; }
.mobile-call-bar__estimate { background: var(--color-primary); }

/* Placeholder tokens remain visible in draft builds */
.token-draft { background: #fef08a; color: #713f12; padding: 0 .25em; border-radius: 3px; }

/* Cards: icon version (no photos) */
.service-card__icon {
  display: flex; align-items: center; justify-content: center;
  height: 110px;
  background: linear-gradient(135deg, #e8f3fb, #cfe6f7);
  color: var(--color-primary);
}
.service-card__icon svg { width: 54px; height: 54px; }
.service-card__body h3 { font-size: 1.15rem; }
.services__grid--three { grid-template-columns: repeat(3, 1fr); }
.services--tight { padding: 4rem 0; }
.service-card--soft { background: var(--color-white); }

/* Homepage content blocks */
.content-sections { background: var(--color-white); }
.content-block h2 a { color: inherit; text-decoration: none; }
.content-block ul.checklist { margin: .75rem 0 0; }
.checklist li, .service-page__content ul.checklist li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; color: var(--color-navy); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.service-page__content .content-block ul { margin: .5rem 0 0; }
.service-page__content .content-block p + p, .service-page__content .content-block p + ul, .service-page__content .content-block ul + p { margin-top: .85rem; }
.content-block p + p, .content-block p + ul, .content-block ul + p { margin-top: .85rem; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.5rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-navy); font-size: .98rem; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.steps strong { display: block; margin-bottom: .15rem; }

/* Notice / safety callout */
.notice { border-left: 4px solid #f97316; background: #fff7ed; padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; color: #7c2d12; margin: 1rem 0; font-size: .97rem; }
.notice strong { color: #7c2d12; }
.notice a { color: #9a3412; text-decoration: underline; font-weight: 600; }

/* Photo slot: commented in HTML; this style is for when a real photo is dropped in */
.photo-figure { margin: 1.25rem 0; }
.photo-figure img { border-radius: var(--radius); width: 100%; }
.photo-figure figcaption { font-size: .85rem; color: var(--color-slate); margin-top: .4rem; }

/* Service page sidebar illustration */
.sidebar-cta__art { display: flex; align-items: center; justify-content: center; height: 120px; background: linear-gradient(135deg, #0f1729, #12335c 60%, #0b6fb8); color: var(--color-primary-light); }
.sidebar-cta__art svg { width: 56px; height: 56px; }
.sidebar-links ul { list-style: none; }
.sidebar-links h3 + ul + h3 { margin-top: 1rem; }

/* Estimate section on inner pages */
.estimate-section { padding: 4rem 0; background: var(--color-white); border-top: 1px solid var(--color-border); }
.estimate-section__grid { display: grid; grid-template-columns: 1fr 440px; gap: 3rem; align-items: start; }
.estimate-section h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2rem); margin-bottom: .75rem; }
.estimate-section p { color: var(--color-slate); margin-bottom: .75rem; }
.estimate-section .hero__form-wrap { box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.estimate-section .btn { margin-top: .5rem; }

/* Area hub + related lists */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.area-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; transition: transform .2s, box-shadow .2s; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.area-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .4rem; }
.area-card h3 a { color: var(--color-navy); }
.area-card p { color: var(--color-slate); font-size: .92rem; }
.area-card__more { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--color-primary); }
.related-list { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .75rem; }
.related-list a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--color-border); border-radius: 100px; font-size: .9rem; color: var(--color-primary); font-weight: 600; background: var(--color-bg); }
.related-list a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin: .75rem 0 0; }
.fact-list li { padding-left: 1rem; border-left: 3px solid var(--color-primary-light); font-size: .95rem; }
.fact-list strong { display: block; color: var(--color-navy); }
.fact-list span { color: var(--color-slate); }
.sources { font-size: .85rem; color: var(--color-slate); }
.sources a { color: var(--color-primary); text-decoration: underline; }

.simple-page { padding: 4rem 0; background: var(--color-bg); min-height: 50vh; }
.simple-page .container { max-width: 760px; }
.simple-page h1 { font-family: var(--font-display); font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: 1rem; }
.simple-page p { margin-bottom: 1rem; color: var(--color-slate); }

.footer__note { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: .5rem; }
.footer__bottom p + p { margin-top: .4rem; }

@media (max-width: 1024px) {
  .estimate-section__grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .services__grid--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .area-grid, .fact-list, .services__grid--three { grid-template-columns: 1fr; }
  .estimate-section { padding: 2.5rem 0; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .85rem; }
}

/* Nav dropdowns */
.nav__item { position: relative; }
.nav__item > a::after { content: ' ▾'; font-size: .7em; color: var(--color-slate); }
.nav__sub { display: none; position: absolute; top: 100%; left: -1rem; min-width: 280px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .5rem; z-index: 400; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { display: block; }
.nav__sub a { display: block; padding: .45rem .75rem; border-radius: 6px; font-size: .92rem; }
.nav__sub a:hover { background: var(--color-bg); }
@media (max-width: 768px) {
  .nav { max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav__item > a::after { content: ''; }
  .nav__sub { display: block; position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0; }
  .nav__sub a { padding: .5rem 0; font-size: .9rem; }
}
