/* Root-relative text follows the reader's browser font preference. */
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: anywhere; }
:root { --header-base-height: 5.25rem; --page-gutter: clamp(1rem, 4vw, 2.5rem); }
.wrap { width: 100%; max-width: 80rem; padding-inline: var(--page-gutter); }
.c-wrap { width: min(77.5rem, calc(100% - 2 * var(--page-gutter))); }
img, video, svg { max-width: 100%; }
:is(.grid-2,.grid-3,.grid-4,.editorial-row,.form-layout,.field-grid,.radio-strip,.footer-main,
  .c-intro-grid,.c-service-cards,.c-step-list,.c-regions-grid,.c-faq-grid,.reviews-row) > * { min-width: 0; }
:is(h1,h2,h3,p,a,label,summary,dt,dd,strong,small) { overflow-wrap: anywhere; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; max-width: 100%; font-size: 1rem; }
.btn, .c-cta { white-space: normal; text-align: center; min-height: 2.75rem; }
.buttons, .header-actions, .c-hero-actions, .c-closing-actions { flex-wrap: wrap; }
.radio-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); }
.field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.comparison-table { table-layout: fixed; }
.comparison-table th, .comparison-table td { overflow-wrap: anywhere; padding: clamp(.5rem, 2vw, 1.25rem); }
.notice-item summary { grid-template-columns: auto minmax(0,1fr) auto auto; }
.notice-item-row { flex-wrap: wrap; }
.modal { max-width: 35rem; max-height: 88svh; padding: clamp(1rem,4vw,2rem); }
.summary-lines > div, .business-grid > div { flex-wrap: wrap; }

/* A fixed header can grow, while its measured height offsets the content. */
.site-header, body[data-page="home"] .site-header, body[data-page="home"].c-scrolled .site-header {
  height: auto; min-height: var(--header-base-height);
}
.header-inner { height: auto; min-height: var(--header-base-height); padding: .375rem var(--page-gutter); flex-wrap: wrap; gap: .5rem; }
body[data-page="home"] .header-inner { padding-inline: var(--page-gutter); }
.header-actions { min-width: 0; margin-left: auto; justify-content: flex-end; gap: .5rem; }
.main-nav { min-width: 0; flex: 1; }
.main-nav .nav-link { padding-inline: .625rem; }
.brand { min-width: 0; }
.brand .brand-symbol { width: clamp(2.75rem, 12vw, 4.625rem); height: auto; }
.color-mode-toggle { min-height: 2.75rem; }
.site-header .header-reserve { min-height: 2.75rem !important; padding: .625rem .875rem !important; }
.mobile-nav { top: var(--header-height); max-height: calc(100svh - var(--header-height)); }
.page-tabs .sub-nav { flex-wrap: wrap; gap: .5rem; }
.page-tabs .sub-nav a { white-space: normal; padding: .625rem 1rem; }
.sub-hero { min-height: 26rem; padding-block: clamp(2rem,5vw,4rem); }
.sub-hero h1 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.0625rem); line-height: 1.5; }
.c-home h2, .section-head h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.c-service-card { min-height: 24rem; height: auto; }
.c-intro-note { min-width: 0; width: min(90%, 25rem); padding: 1.5rem; }
.footer-main { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-main > .footer-intro { grid-column: auto; }
.footer-main > div:first-child { grid-column: auto; }
.footer-intro { grid-template-columns: 4rem minmax(0,1fr); }
.footer-intro .brand .brand-symbol { max-width: 100%; height: auto; }
.business-grid { gap: .75rem 1.5rem; }
.business-grid dt { flex-shrink: 1; }
.business-grid > div { min-width: 0; }
.footer-links { min-width: 0; }
.footer-links a { min-width: 0; max-width: 100%; }
.toast { min-width: 0; max-width: calc(100% - 2rem); white-space: normal; overflow-wrap: anywhere; }
.rating-buttons { display: flex; flex-wrap: wrap; gap: .25rem; }
.rating-buttons button { min-width: 2.5rem; flex-shrink: 0; }

/* Keep a full first screen normally; allow extra height when text needs it. */
.c-home .c-hero {
  height: auto; min-height: 100svh; padding-top: var(--header-height);
  display: grid; grid-template-rows: 1fr auto auto;
}
.c-hero .c-hero-wrap {
  width: 100%; height: auto; min-height: 0; max-width: 90rem;
  padding: clamp(1.5rem,4svh,4rem) var(--page-gutter);
}
.c-hero .c-hero-content { max-width: 49rem; width: 100%; }
.c-hero h1 { font-size: clamp(1.875rem, 1rem + 3.3vw, 4.375rem); line-height: 1.45; }
.c-hero-content > p { max-width: 36rem; }
.c-hero .c-hero-actions { max-width: 100%; }
.c-hero .c-hero-actions .c-cta { min-height: 2.75rem; }
.hero-slide-controls {
  position: relative; inset: auto; align-self: end; justify-self: start;
  max-width: calc(100% - 2 * var(--page-gutter)); margin: 0 var(--page-gutter) .75rem;
  flex-wrap: wrap; gap: .375rem;
}
.hero-slide-controls > span { min-width: 0; }
.hero-slide-controls button { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.hero-slide-dots button { width: 1.5rem; }
.hero-slide-controls #heroPause { height: auto; min-height: 2.5rem; white-space: normal; }
.c-hero .hero-quick {
  position: relative; inset: auto; height: auto; min-height: 6.5rem; width: 100%;
  grid-template-columns: repeat(5,minmax(0,1fr)); padding: .625rem var(--page-gutter);
}
.hero-quick a { min-width: 0; padding: .75rem .5rem; gap: .625rem; }
.hero-quick .c-quick-title { white-space: normal; max-width: 100%; }
.sticky-quickbar a { min-width: 0; white-space: normal; padding: .875rem .5rem; }
.sticky-quickbar a span { overflow-wrap: anywhere; }
.floating-contact { bottom: max(1rem,env(safe-area-inset-bottom)); }
body.hero-quick-visible .floating-contact { bottom: calc(var(--quick-height,6.5rem) + var(--hero-controls-height,2.5rem) + 1.5rem); }
body.dock-visible .floating-contact { bottom: calc(var(--dock-height,4.5rem) + 1rem); }
.sticky-quickbar { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 75em) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  :root { --header-base-height: 4.5rem; }
}
@media (max-width: 48em) {
  .header-actions { flex: 1; gap: .375rem; }
  .color-mode-toggle { min-width: 2.75rem; width: 2.75rem; height: 2.75rem; padding: 0; }
  .color-mode-label { display: none; }
  .menu-toggle { width: 2.75rem; min-height: 2.75rem; flex-shrink: 0; }
  .header-reserve .svg-icon { display: none; }
  .site-header .header-reserve { max-width: 100%; min-width: 0; }
  .c-hero h1 { font-size: clamp(1.625rem, 1rem + 3vw, 2.625rem); }
  .c-hero-content > p { font-size: 1rem; display: block; }
  .c-hero .c-hero-actions { flex-direction: row; }
  .c-hero .c-hero-actions .c-cta { flex: 1 1 12rem; font-size: .9375rem; }
  .c-hero .hero-quick { min-height: 5.375rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,3.25rem),1fr)); padding: .375rem; }
  .hero-quick a { flex-direction: column; padding: .5rem .125rem; }
  .hero-quick .c-quick-title { font-size: .8125rem; }
  .hero-quick .c-quick-icon, .hero-quick .c-quick-icon .svg-icon { width: 1.5rem; height: 1.5rem; }
  .form-layout, .editorial-row, .location-large { grid-template-columns: minmax(0,1fr); }
  .form-card, .preview-aside, .location-info { min-width: 0; padding: clamp(1rem,4vw,2rem); }
  .grid-2, .grid-3, .grid-4, .reviews-row { grid-template-columns: minmax(0,1fr); }
  .c-intro-grid, .c-regions-grid, .c-faq-grid { grid-template-columns: minmax(0,1fr); }
  .c-service-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); }
  .c-step-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
  .c-intro-note { position: relative; inset: auto; margin-top: -2rem; }
  .c-intro-image { overflow: visible; height: auto; min-height: 0; }
  .c-intro-image img { width: 100%; height: 20rem; max-height: 65svh; transform: none; }
  .notice-item summary { grid-template-columns: auto minmax(0,1fr) auto; }
  .notice-item time { display: none; }
  .footer-main, .footer-intro { gap: 1rem; }
  .footer-contact, .footer-main > .footer-intro { grid-column: auto; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 24em) {
  .header-inner { column-gap: .25rem; }
  .brand .brand-symbol { width: 2.75rem; }
  .header-actions { gap: .25rem; }
  .site-header .header-reserve { padding-inline: .5rem !important; }
  .sticky-quickbar .svg-icon { display: none; }
  .sticky-quickbar a { font-size: .8125rem; padding-block: .75rem; }
}
@media (max-height: 30em) and (min-width: 48em) {
  .c-hero .c-hero-wrap { padding-block: 1rem; }
  .c-hero .c-hero-kicker, .c-hero-content > p { display: none; }
  .c-hero h1 { font-size: clamp(1.375rem,1rem + 1vw,1.875rem); line-height: 1.25; }
  .c-hero .c-hero-actions { margin-top: .5rem; }
  .c-hero .hero-quick { min-height: 4.375rem; padding-block: .375rem; }
}

/* Shared alignment system: one content edge, spacing rhythm and card grid. */
:root {
  --content-width: 80rem;
  --layout-gap: 1.5rem;
  --column-gap: clamp(1.5rem,3vw,3rem);
  --section-space: clamp(3rem,6vw,6rem);
}
.wrap, .c-wrap {
  width: 100%; max-width: var(--content-width); margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.header-inner, .c-hero .c-hero-wrap {
  max-width: var(--content-width); width: 100%; margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.main-nav .nav-link { min-height: 2.75rem; padding-block: .625rem; }
.main-nav { align-self: stretch; }
.nav-item { display: flex; align-items: center; align-self: stretch; }
.nav-dropdown { top: 100%; left: 0; transform: none; }
.header-actions { align-items: center; }
.site-header .header-reserve, .color-mode-toggle, .menu-toggle { vertical-align: middle; }
.hero-slide-controls {
  width: 100%; max-width: var(--content-width); justify-self: center;
  margin-inline: auto; padding-inline: var(--page-gutter);
}
.c-hero .hero-quick {
  padding-inline: max(var(--page-gutter),calc((100% - var(--content-width)) / 2 + var(--page-gutter)));
}
.sticky-quickbar-inner { width: 100%; max-width: var(--content-width); padding-inline: var(--page-gutter); }
.section, .c-space { padding-block: var(--section-space); }
.section-tight { padding-block: clamp(2rem,4vw,3rem); }
.section-tight.pt-0 { padding-top: 0; }
.section-head, .c-section-top, .c-steps-head { margin-bottom: 2rem; }
.section-head h2, .c-section-top h2, .c-steps-head h2 { margin-top: .875rem; margin-bottom: 1rem; }
.grid-2, .grid-3, .grid-4, .reviews-row { gap: var(--layout-gap); align-items: stretch; }
.c-intro-grid, .c-regions-grid, .c-faq-grid, .editorial-row { gap: var(--column-gap); align-items: start; }
.c-intro-left { padding: 0; }
.c-intro-right { padding: 0; display: grid; gap: var(--layout-gap); }
.c-intro-image { height: 26rem; }
.c-intro-image img, .c-intro-image:hover img { transform: none; }
.c-intro-note { position: static; inset: auto; margin: 0; width: 100%; max-width: none; min-width: 0; padding: 1.5rem; }
.c-section-top { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--column-gap); align-items: end; }
.c-section-side { max-width: none; padding: 0; }
.c-service-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--layout-gap); align-items: stretch; }
.c-service-card { display: grid; grid-template-rows: auto 4.75rem 1fr; gap: 1.5rem; padding: 1.75rem; border: 1px solid var(--line); }
.c-card-icon { margin: 0; }
.c-service-card > div { display: flex; flex-direction: column; }
.c-service-card:hover, .feature-card:hover, .support-tile:hover, .location-card:hover, .review-card:hover { transform: none; }
.btn:hover, .c-cta:hover { transform: none; }
.c-service-card h3 { margin: 0 0 .75rem; min-height: 2.8em; }
.c-service-card p { margin: 0 0 1.25rem; min-height: 3.8em; }
.c-card-link { margin-top: auto; }
.c-step { gap: 1.25rem; padding: 1.75rem; min-height: 0; }
.c-step h3 { margin: 0 0 .75rem; }
.review-card { display: flex; flex-direction: column; }
.review-card footer { margin-top: auto; padding-top: 1rem; }
.c-regions-left { min-height: 0; }
.c-regions-abstract { position: relative; bottom: auto; margin-top: 2rem; max-width: 100%; height: 8rem; overflow: hidden; }
.c-regions-right { align-self: start; padding: 1.75rem; min-height: 0; }
.c-branch-panel { padding: 1.75rem 0; min-height: 0; }
.c-branch-foot { flex-wrap: wrap; align-items: baseline; gap: .75rem 1rem; }
.c-faq-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.c-faq .faq-preview { margin: 0; }
.form-layout { gap: var(--layout-gap); align-items: start; }
.form-card, .preview-aside { padding: 1.75rem; }
.field-grid { gap: 1.25rem; align-items: start; }
.field > label { display: block; margin-bottom: .5rem; }
.form-card > .btn { width: 100%; justify-content: center; }
.footer-main { gap: var(--layout-gap); align-items: start; }
.footer h4 { margin-top: 0; }
.business-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .75rem 1.5rem; }
.business-grid > div { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); gap: .5rem; align-items: baseline; }

@media (min-width: 48.001em) {
  .form-layout { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
}
@media (max-width: 48em) {
  .c-intro-grid, .c-regions-grid, .c-faq-grid, .c-section-top { grid-template-columns: minmax(0,1fr); }
  .c-service-cards { grid-template-columns: minmax(0,1fr); }
  .c-step-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .c-intro-image { height: auto; }
  .c-intro-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: none; object-fit: cover; }
  .c-intro-note { margin: 0; }
  .c-service-card, .form-card, .preview-aside, .c-regions-right { padding: 1.25rem; }
  .c-service-card { min-height: 0; }
  .c-service-card h3, .c-service-card p { min-height: 0; }
  .c-section-top { align-items: start; }
  .c-hero .hero-quick { padding-inline: .375rem; }
}
@media (max-width: 30em) {
  .c-step-list { grid-template-columns: minmax(0,1fr); }
}
