/* ============================================================
   page-city.css — Restoration Hub FL
   Loads on: all city pages + silo hub pages
   Requires: /css/global.css loaded first
   ============================================================ */

/* ----------------------------------------------------------
   HERO / ABOVE-THE-FOLD
   ---------------------------------------------------------- */

.city-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}

.city-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 110%, rgba(29, 158, 117, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at -10% 30%, rgba(15, 110, 86, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.city-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.city-hero .breadcrumb {
  margin-bottom: 20px;
}

.city-hero .breadcrumb a,
.city-hero .breadcrumb span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8125rem;
}

.city-hero .breadcrumb a:hover {
  color: var(--teal-mid);
}

.city-hero .breadcrumb .sep {
  margin: 0 6px;
  color: rgba(255,255,255,0.25);
}

.city-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 2.875rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  max-width: 680px;
  margin: 0 0 14px;
}

.city-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  margin: 0 0 32px;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   HERO CTA — promise-led
   ---------------------------------------------------------- */

.city-hero-cta {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* Primary call button */
.btn-hero-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-mid);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0 28px;
  height: 56px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.16s, transform 0.12s;
  white-space: nowrap;
  line-height: 1;
}

.btn-hero-call:hover {
  background: #19b887;
  transform: translateY(-1px);
  color: #fff;
}

.btn-hero-call svg {
  flex-shrink: 0;
}

/* Promise block — sits beside the button */
.hero-promise {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
}

.hero-promise-main {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.hero-promise-sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.3;
}

/* ----------------------------------------------------------
   HERO SOCIAL PROOF BAR — outcome-based
   ---------------------------------------------------------- */

.hero-social-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  flex: 1;
  min-width: 160px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-proof-item:last-child {
  border-right: none;
}

.hero-proof-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(29,158,117,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-mid);
}

.hero-proof-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-proof-text span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.3;
}

/* ----------------------------------------------------------
   HERO TRUST PILLS — process signals, secondary
   ---------------------------------------------------------- */

.city-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

.trust-pill-hero svg {
  color: var(--teal-mid);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   MOBILE-ONLY INLINE CTA
   Shown between hero and main content on mobile only.
   Hidden on desktop via media query.
   ---------------------------------------------------------- */

.mobile-cta-strip {
  display: none; /* shown at ≤900px */
  background: var(--teal-pale);
  border-bottom: 1px solid var(--teal-light);
  padding: 20px;
}

.mobile-cta-strip-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-cta-strip .btn-hero-call {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  font-size: 0.9375rem;
  background: var(--teal);
}

.mobile-cta-strip .btn-hero-call:hover {
  background: var(--teal-mid);
}

.mobile-cta-strip-text {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.45;
}

.mobile-cta-strip-text strong {
  color: var(--text);
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ----------------------------------------------------------
   PAGE BODY LAYOUT
   ---------------------------------------------------------- */

.city-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 56px;
  align-items: start;
}

.city-body-full {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* ----------------------------------------------------------
   MAIN CONTENT COLUMN
   ---------------------------------------------------------- */

.city-main {
  min-width: 0;
}

.city-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4375rem, 3vw, 1.875rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.25;
}

.city-main h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--text);
  margin: 28px 0 10px;
  line-height: 1.3;
}

.city-main h3:first-child {
  margin-top: 0;
}

.city-main p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-mid);
  margin: 0 0 18px;
}

.city-main p:last-child {
  margin-bottom: 0;
}

.city-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.city-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ----------------------------------------------------------
   STAT HIGHLIGHT ROW
   ---------------------------------------------------------- */

.city-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
}

.city-stat {
  background: var(--bg);
  padding: 18px 20px;
  text-align: center;
}

.city-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 5px;
}

.city-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ----------------------------------------------------------
   COST TABLE
   ---------------------------------------------------------- */

.cost-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}

.cost-table th {
  background: var(--teal-pale);
  color: var(--teal);
  font-weight: 600;
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hide "key cost drivers" column on narrow screens via class */
.cost-table th.col-detail,
.cost-table td.col-detail {
  /* hidden via media query below */
}

.cost-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
  line-height: 1.55;
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-table tr:nth-child(even) td {
  background: var(--bg-surface);
}

.cost-table .cost-range {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   POST-COST-TABLE INLINE CTA
   Fires at the highest-intent moment on the page.
   ---------------------------------------------------------- */

.inline-cta {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(29,158,117,0.20) 0%, transparent 65%);
  pointer-events: none;
}

.inline-cta-text {
  position: relative;
  z-index: 1;
}

.inline-cta-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.35;
}

.inline-cta-text span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.inline-cta .btn-hero-call {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  height: 48px;
  font-size: 0.9375rem;
  padding: 0 22px;
}

/* ----------------------------------------------------------
   WHAT TO EXPECT — NUMBERED STEPS
   ---------------------------------------------------------- */

.expect-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.expect-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.expect-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.expect-step-body strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.expect-step-body p {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   VETTING CHECKLIST
   ---------------------------------------------------------- */

.vetting-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.vetting-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.vetting-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%230F6E56' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
  margin-top: 2px;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */

.faq-section {
  margin-top: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background 0.13s;
}

.faq-question:hover {
  background: var(--bg-surface);
}

.faq-question[aria-expanded="true"] {
  background: var(--teal-pale);
  color: var(--teal);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 9px;
  left: 4px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 4px;
  left: 9px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-answer.is-open {
  display: block;
}

.faq-answer p {
  margin: 0 0 12px;
}

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

/* ----------------------------------------------------------
   RELATED POSTS
   ---------------------------------------------------------- */

.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.related-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  display: block;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.related-post-card:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 2px 10px rgba(15,110,86,0.09);
}

.related-post-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 7px;
}

.related-post-card h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

/* ----------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------- */

.city-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sidebar CTA card — tightened */
.sidebar-cta {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(29,158,117,0.28) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-cta-inner {
  position: relative;
  z-index: 1;
}

/* Response time stat — outcome signal at top of sidebar */
.sidebar-response {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(29,158,117,0.15);
  border: 1px solid rgba(29,158,117,0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
}

.sidebar-response-stat {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-mid);
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-response-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

.sidebar-response-label strong {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
  display: block;
}

.sidebar-cta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.sidebar-cta > .sidebar-cta-inner > p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  margin: 0 0 16px;
  line-height: 1.5;
}

.sidebar-cta .btn-hero-call {
  width: 100%;
  justify-content: center;
  font-size: 0.9375rem;
  height: 50px;
}

.sidebar-cta-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
  line-height: 1.45;
  text-align: center;
}

/* Sidebar info card */
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.sidebar-card h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.sidebar-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-card-list li {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.45;
}

.sidebar-card-list a {
  color: var(--blue-link);
  text-decoration: none;
  font-weight: 500;
}

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

/* Sidebar disclosure */
.sidebar-disclosure {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.55;
}

.sidebar-disclosure a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ----------------------------------------------------------
   BOTTOM CTA BAND
   ---------------------------------------------------------- */

.city-bottom-cta {
  background: var(--teal-pale);
  border-top: 1px solid var(--teal-light);
  padding: 56px 24px;
  text-align: center;
}

.city-bottom-cta-inner {
  max-width: 580px;
  margin: 0 auto;
}

.city-bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 10px;
}

.city-bottom-cta p {
  font-size: 1rem;
  color: var(--text-mid);
  margin: 0 0 24px;
  line-height: 1.65;
}

.city-bottom-cta .btn-hero-call {
  font-size: 1.0625rem;
  height: 58px;
  padding: 0 36px;
}

.city-bottom-cta-disclosure {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

.city-bottom-cta-disclosure a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ----------------------------------------------------------
   PAGE META — SEO signal, visually de-prioritized
   Placed at bottom of main content, below all sections.
   ---------------------------------------------------------- */

.page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 32px;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.page-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-meta-item strong {
  color: var(--text-mid);
  font-weight: 600;
}

.page-meta a {
  color: var(--blue-link);
  text-decoration: none;
}

.page-meta a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   HUB PAGE — CITY GRID SECTION
   ---------------------------------------------------------- */

.hub-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hub-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.14s, background 0.14s;
}

.hub-city-card:hover {
  border-color: var(--teal-mid);
  background: var(--teal-pale);
  color: var(--teal);
}

.hub-city-card svg {
  flex-shrink: 0;
  color: var(--teal-mid);
  opacity: 0.55;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 900px) {
  .city-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .city-sidebar {
    position: static;
  }

  .city-main { order: 1; }
  .city-sidebar { order: 2; }

  /* Show mobile inline CTA */
  .mobile-cta-strip {
    display: block;
  }

  .city-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-social-proof {
    flex-direction: column;
  }

  .hero-proof-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero-proof-item:last-child {
    border-bottom: none;
  }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .inline-cta .btn-hero-call {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .city-hero {
    padding: 44px 20px 44px;
  }

  .city-hero h1 {
    font-size: 1.6875rem;
  }

  .city-stats {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .cost-table th.col-detail,
  .cost-table td.col-detail {
    display: none;
  }

  .city-bottom-cta {
    padding: 44px 20px;
  }

  .btn-hero-call {
    width: 100%;
    justify-content: center;
  }

  .city-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-promise {
    padding: 0;
  }

  .hub-city-grid {
    grid-template-columns: 1fr 1fr;
  }

  .city-body {
    padding: 32px 20px;
  }
}

@media (max-width: 380px) {
  .hub-city-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NAVIGATION — defined here since global.css is not in scope
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  color: var(--text, #1A1A1A);
  background: var(--bg, #fff);
  -webkit-font-smoothing: antialiased;
}

/* CSS variable fallbacks in case global.css is absent */
:root {
  --teal: #0F6E56;
  --teal-mid: #1D9E75;
  --teal-light: #E1F5EE;
  --teal-pale: #F2FBF7;
  --blue-link: #185FA5;
  --text: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-muted: #737373;
  --border: rgba(0,0,0,0.10);
  --border-mid: rgba(0,0,0,0.16);
  --bg: #FFFFFF;
  --bg-surface: #F7F8F6;
  --bg-dark: #0D1F1A;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --nav-h: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}

.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 20px 0 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.14s, background 0.14s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--teal); background: var(--teal-pale); }
.nav-link.active { color: var(--teal); font-weight: 600; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 18px;
  height: 40px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--teal-mid); color: #fff; }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  margin-left: 8px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 10px 12px; font-size: 1rem; }
  .nav-mobile-btn { display: flex; }
  .nav-cta { font-size: 0.8125rem; padding: 0 14px; height: 36px; }
}

/* ============================================================
   PHOTO STRIP — between hero and body
   Uses Unsplash source URLs (replace with licensed images pre-launch)
   ============================================================ */

.photo-strip {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  height: 320px;
  overflow: hidden;
}

.photo-strip-item {
  position: relative;
  overflow: hidden;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-strip-item:hover img {
  transform: scale(1.04);
}

.photo-strip-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,31,26,0.80) 0%, transparent 100%);
  padding: 20px 16px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .photo-strip {
    grid-template-columns: 1fr 1fr;
    height: 200px;
  }
  .photo-strip-item:last-child { display: none; }
}

@media (max-width: 480px) {
  .photo-strip {
    grid-template-columns: 1fr;
    height: 200px;
  }
  .photo-strip-item:nth-child(2),
  .photo-strip-item:last-child { display: none; }
}

/* ============================================================
   SERVICE CARDS — replaces wall-of-prose for "what it involves"
   Icon + heading + tight paragraph, 2-col grid
   ============================================================ */

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.service-card p {
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  color: var(--text-mid) !important;
  margin: 0 !important;
}

@media (max-width: 560px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS TIMELINE — replaces numbered list for "what to expect"
   Horizontal connectors on desktop, vertical on mobile
   ============================================================ */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 28px;
  position: relative;
}

/* Connector line between steps */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(10% + 4px);
  right: calc(10% + 4px);
  height: 2px;
  background: var(--teal-light);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--teal-light);
}

.process-step strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}

.process-step p {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

@media (max-width: 740px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-timeline::before {
    top: 20px;
    bottom: 20px;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding: 0 0 24px 0;
    align-items: flex-start;
  }
  .process-step-num { margin-bottom: 0; flex-shrink: 0; }
  .process-step-body { flex: 1; }
}

/* ============================================================
   FOOTER — full styles
   ============================================================ */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.70);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1;
}

.footer-logo span { color: var(--teal-mid); }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.50);
  margin: 0 0 16px;
}

.footer-phone {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-mid);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.footer-phone:hover { color: #19b887; }

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.40);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.14s;
  line-height: 1.4;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
  line-height: 1.55;
}

.footer-copy a {
  color: rgba(255,255,255,0.40);
  text-decoration: underline;
}

.footer-copy a:hover { color: rgba(255,255,255,0.70); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.14s;
  white-space: nowrap;
}

.footer-legal a:hover { color: rgba(255,255,255,0.70); }

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 20px 40px;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }
  .footer-legal { gap: 14px; flex-wrap: wrap; }
}

/* ============================================================
   HUB PAGE LAYOUT
   Full-width sections, no sidebar. Used on silo hub pages.
   ============================================================ */

.hub-body {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Intro row — stat strip sits at same max-width, padded */
.hub-intro {
  padding: 48px 24px 0;
}

.hub-section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
}

.hub-section:last-child {
  border-bottom: none;
}

.hub-section--tinted {
  background: var(--bg-surface);
}

.hub-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hub-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4375rem, 3vw, 1.875rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.25;
}

.hub-section h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--text);
  margin: 32px 0 10px;
  line-height: 1.3;
}

.hub-section p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-mid);
  margin: 0 0 18px;
  max-width: 72ch;
}

.hub-section p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FLORIDA LAW CALLOUT BOX
   ============================================================ */

.law-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--teal-pale);
  border: 1px solid var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 28px 0 32px;
}

.law-callout-icon {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

.law-callout-body strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.law-callout-body p {
  font-size: 0.9375rem !important;
  color: var(--text-mid) !important;
  margin: 0 !important;
  line-height: 1.65 !important;
  max-width: none !important;
}

.law-callout-body a {
  color: var(--blue-link);
  text-decoration: none;
  font-weight: 500;
}

.law-callout-body a:hover {
  text-decoration: underline;
}

/* ============================================================
   LICENSE TYPE CARDS — assessor vs remediator split
   ============================================================ */

.license-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}

.license-card {
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.license-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 10px;
}

.license-card p {
  font-size: 0.9375rem !important;
  color: var(--text-mid) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  max-width: none !important;
}

@media (max-width: 600px) {
  .license-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HUB RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .hub-intro { padding: 32px 20px 0; }
  .hub-section { padding: 40px 20px; }
  .hub-section h2 { font-size: 1.375rem; }
}

/* ============================================================
   PHOTO STRIP — revised
   Full-bleed image row between hero and content.
   Uses /images/water1.jpg, water2.jpg, water3.jpg
   ============================================================ */

.photo-strip {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  height: 340px;
  overflow: hidden;
  gap: 3px;
  background: var(--bg-dark);
}

.photo-strip-item {
  position: relative;
  overflow: hidden;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.88);
}

.photo-strip-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.photo-strip-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13,31,26,0.85) 0%, transparent 100%);
  padding: 28px 16px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

@media (max-width: 720px) {
  .photo-strip {
    grid-template-columns: 1fr 1fr;
    height: 220px;
    gap: 2px;
  }
  .photo-strip-item:last-child { display: none; }
}

@media (max-width: 480px) {
  .photo-strip {
    grid-template-columns: 1fr;
    height: 200px;
  }
  .photo-strip-item:nth-child(2),
  .photo-strip-item:last-child { display: none; }
}

/* ============================================================
   IN-CONTENT IMAGE BLOCK
   A single wide image + caption that sits between content
   sections to break up text. Kills the blog/wall-of-text feel.
   Add .img-block--right to float right on desktop.
   ============================================================ */

.img-block {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.img-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
}

.img-block figcaption {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  padding: 10px 16px;
  line-height: 1.5;
}

.img-block figcaption strong {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
}

/* Two-up variant — side by side images within content -->
.img-block-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 40px;
}

.img-block-pair .img-block {
  margin: 0;
  border-radius: 0;
}

.img-block-pair .img-block img {
  height: 220px;
}

@media (max-width: 600px) {
  .img-block-pair {
    grid-template-columns: 1fr;
  }
  .img-block-pair .img-block img {
    height: 180px;
  }
}

/* ============================================================
   PROCESS VISUAL — horizontal step strip with background image
   Used on service pages as an alternative to the timeline component.
   Shows one of the water/mold images as a backdrop.
   ============================================================ */

.process-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 40px;
  position: relative;
}

.process-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.process-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.30);
}

.process-visual-inner {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}

.process-visual-inner h3 {
  font-family: var(--font-display) !important;
  font-size: 1.125rem !important;
  color: #fff !important;
  margin: 0 0 20px !important;
}

.process-visual-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.process-visual-step {
  text-align: center;
}

.process-visual-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-mid);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.process-visual-step strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.process-visual-step p {
  font-size: 0.6875rem !important;
  color: rgba(255,255,255,0.60) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

@media (max-width: 680px) {
  .process-visual-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .process-visual-inner { padding: 24px 20px; }
}

@media (max-width: 400px) {
  .process-visual-steps { grid-template-columns: 1fr; }
}
