/* KEM Gebäudereinigung — Version 1.0.0 */

/* Design tokens */
:root {
  --primary: #0969b5;
  --primary-dark: #074b82;
  --primary-light: #6fa8d1;
  --primary-soft: #edf5fa;
  --primary-shadow: rgba(9, 105, 181, .22);
  --primary-shadow-soft: rgba(9, 105, 181, .10);
  --whatsapp: #0a7c3b;
  --whatsapp-hover: #086630;
  --navy: #0d2b45;
  --text: #172534;
  --surface: #fff;
  --surface-soft: #eef2f5;
  --max: 1240px;
  --text-muted: #526372;
  --border: #dce5ec;
  --field-border: #7c8995;
  --focus-ring: var(--primary-dark);
  --focus-ring-on-dark: #ffbf00;
  --radius-card: 16px;
  --radius-control: 10px;
  --radius-button: 999px;
  --card-space: clamp(22px, 2.5vw, 32px);
  --section-space: clamp(48px, 6vw, 84px);
  --layout-gap: clamp(24px, 4vw, 55px);
  /* Type roles share a relative base and keep page layout widths independent. */
  --heading-display: clamp(1.75rem, 3.2vw, 3.5rem);
  --heading-1: clamp(2rem, 4vw, 3.25rem);
  --heading-2: clamp(1.55rem, 2.7vw, 2.25rem);
  --heading-3: clamp(1.125rem, 1.4vw, 1.25rem);
  --text-lead: 1.125rem;
  --text-body: 1rem;
  --text-label: .875rem;
  --text-meta: .875rem;
  --text-action: .9375rem;
  --line-display: 1.1;
  --line-heading: 1.18;
  --line-lead: 1.5;
  --line-body: 1.65;
  --line-label: 1.4;
  --line-meta: 1.45;
  --line-action: 1.4;
  --measure-prose: 64ch;
  --shadow-card: 0 8px 26px rgba(13, 43, 69, .06);
  --shadow: 0 16px 40px rgba(31, 35, 40, .10);
  --header-solid-height: max(84px, calc(2.625rem + 42px));
  --header-topbar-height: 2.125rem;
  --header-height: calc(var(--header-solid-height) + var(--header-topbar-height));
}

/* Base and accessibility */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--text-body);
  line-height: var(--line-body);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

body.menu-lock {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Prose links remain recognisable without hover; actions and navigation
   keep their component-specific treatments. */
main :where(p, li, dd, address, label, figcaption) a[href]:not(:where(.btn, .more, .gallery-card-link, nav a)) {
  text-decoration-line: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

/* Legacy privacy markup already contains <u>; let the link draw one line. */
main .field label a u {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--primary);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header,
.site-footer {
  --focus-ring: var(--focus-ring-on-dark);
}

/* Dropdowns clip their contents, so keep keyboard focus inside each row. */
.dropdown a:focus-visible {
  outline-offset: -3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1,
h2,
h3,
.eyebrow,
.hero-label {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

h1,
h2,
h3 {
  line-height: var(--line-heading);
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: var(--heading-1);
  letter-spacing: -.025em;
}

h2 {
  color: var(--primary);
  font-size: var(--heading-2);
  text-transform: none;
  letter-spacing: -.015em;
}

h3 {
  font-size: var(--heading-3);
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--line-lead);
  color: var(--text-muted);
}

.narrow {
  max-width: 870px;
}

.prose {
  max-width: var(--measure-prose);
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: var(--text-meta);
  line-height: var(--line-label);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  font-size: var(--text-action);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: var(--line-action);
  box-shadow: none;
  transition: transform .18s, background-color .18s, box-shadow .18s;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-shadow);
}

.btn.secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid currentColor;
  box-shadow: none;
}

.btn.btn--whatsapp {
  min-height: 44px;
  padding: 12px 16px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
}

.btn.btn--whatsapp:hover,
.btn.btn--whatsapp:focus-visible {
  background: var(--whatsapp-hover);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.btn--whatsapp .whatsapp-button__icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.whatsapp-button__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* One filled primary action; optional alternatives stay quiet and recognisable. */
.action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.action-link {
  display: inline-block;
  max-width: 100%;
  min-height: 24px;
  color: var(--primary-dark);
  font-size: var(--text-action);
  font-weight: 700;
  line-height: var(--line-action);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.action-link:hover {
  color: var(--primary);
}

.action-alternative {
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.action-alternative .btn--whatsapp {
  display: flex;
  width: fit-content;
  margin: 8px auto 0;
}

/* Header and navigation */
.site-header {
  /* Let desktop navigation use the space its enlarged text needs. */
  --max: 77.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
}

.topbar {
  height: var(--header-topbar-height);
  background: var(--navy);
  color: #fff;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-size: var(--text-meta);
  letter-spacing: .03em;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.topbar-phone-icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.topbar a:hover {
  text-decoration: underline;
}

.header-inner {
  height: var(--header-solid-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 280px;
  width: 280px;
  min-width: 0;
}

.brand-logo {
  width: 100%;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.drop-toggle {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-solid-height);
  gap: 6px;
  border: 0;
  background: none;
  color: #fff;
  text-shadow: none;
  font-size: var(--text-action);
  line-height: var(--line-action);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .028em;
  padding: 12px 0;
  cursor: pointer;
}

.nav a::after,
.drop-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 22px;
  height: 2px;
  background: #fff;
  transition: right .2s;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after,
.drop-toggle:hover::after,
.drop-toggle:focus-visible::after,
.drop-toggle.is-current::after {
  right: 0;
}

.has-dropdown {
  position: relative;
}

.drop-toggle {
  list-style: none;
}

.drop-toggle::marker {
  content: "";
}

.drop-toggle::-webkit-details-marker {
  display: none;
}

.dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  min-width: 330px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style: none;
  background: var(--navy);
  border-top: 4px solid var(--primary);
  box-shadow: 0 15px 34px rgba(17, 31, 43, .20);
  opacity: 0;
  visibility: hidden;
  transform: translate(-42%, 8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.nav-dropdown[open] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-42%, 0);
}

.dropdown a,
.site-header .dropdown a {
  display: block;
  min-height: 0;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  text-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: .015em;
  transition: background-color .15s, color .15s;
}

.dropdown a::after {
  display: none;
}

.dropdown li:last-child a {
  border-bottom: 0;
}

.dropdown a:hover,
.dropdown a:focus-visible,
.dropdown a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

.mobile-offer-item,
.mobile-whatsapp-item {
  display: none;
}

.header-actions {
  display: grid;
  grid-auto-rows: 1fr;
  flex: 0 0 auto;
  gap: 6px;
}

.header-actions .btn {
  min-height: 36px;
  white-space: nowrap;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: var(--text-action);
  font-weight: 700;
}

.header-actions .btn:hover,
.header-actions .btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.header-actions .whatsapp-button__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(13, 43, 69, .25);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  position: relative;
  transition: .2s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Home composition grows with its copy, including enlarged user text. */
.hero {
  position: relative;
  min-height: clamp(440px, 48vw, 640px);
  display: flex;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  max-width: 1920px;
  margin-inline: auto;
}

.hero-media .hero-picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 45%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 44, .20), rgba(10, 28, 44, .02) 54%, rgba(10, 28, 44, .18));
}

.hero .container {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-block: clamp(24px, 4vw, 54px);
}

.hero-panel {
  --focus-ring: var(--focus-ring-on-dark);
  width: min(52%, 640px);
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-card);
  background: rgba(9, 105, 181, .96);
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 28, 44, .18);
}

.hero-panel .action-group > .btn {
  background: var(--surface);
  color: var(--primary-dark);
}

.hero-panel .action-group > .btn:hover {
  background: var(--primary-soft);
}

.hero-panel .action-link {
  color: #fff;
}

.hero-label {
  margin: 0;
  color: inherit;
  font-size: var(--heading-display);
  font-weight: 700;
  line-height: var(--line-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero-subline {
  margin: 12px 0 0;
  color: #fff;
  font-size: var(--text-body);
  line-height: var(--line-lead);
}

/* Shared visible intros: one title source, optional media and action slot. */
.page-intro {
  padding-block: clamp(32px, 4vw, 56px);
  background: var(--primary-soft);
}

.page-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--layout-gap);
  align-items: center;
}

.page-intro__copy,
.page-intro__media {
  min-width: 0;
}

.page-intro h1 {
  margin: 0;
  text-wrap: balance;
}

.page-intro__service-area {
  margin: 12px 0 0;
  color: var(--primary-dark);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--line-lead);
}

.page-intro .lead {
  margin: 18px 0 0;
  max-width: var(--measure-prose);
}

.page-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-intro__media {
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 10;
}

.page-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-intro.hero-focus-left .page-intro__media img {
  object-position: 32% 45%;
}

.page-intro.hero-focus-right .page-intro__media img {
  object-position: 62% 45%;
}

.page-intro.hero-focus-high .page-intro__media img {
  object-position: 50% 28%;
}

.page-intro--compact {
  padding-bottom: 24px;
  background: var(--surface);
}

.page-intro--compact .page-intro__layout {
  display: block;
}

.page-intro--compact h1 {
  max-width: 26ch;
}

.page-intro + .section {
  padding-top: clamp(24px, 3vw, 40px);
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid #e4e9ed;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 13px 0;
  color: #5d6b77;
  font-size: var(--text-meta);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: #9aa5ae;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

/* Shared content layouts */
.section {
  padding: var(--section-space) 0;
}

.section.soft {
  background: var(--surface-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: var(--layout-gap);
  align-items: start;
}

.content-grid > *,
.contact-layout > * {
  min-width: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-space);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  font-size: var(--heading-3);
}

.content-card img {
  margin: calc(-1 * var(--card-space)) calc(-1 * var(--card-space)) 24px;
  width: calc(100% + 2 * var(--card-space));
  max-width: none;
  height: 280px;
  object-fit: cover;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 28px;
  list-style: none;
  padding: 0;
}

.check-grid.check-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.text-center {
  text-align: center;
}

.check-grid li {
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid #e6e6e6;
}

.check-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.cta-band {
  text-align: center;
  background: #f7f9fb;
  padding: var(--section-space) 20px;
}

.cta-band h2 {
  font-size: var(--heading-2);
}

/* Home page */
.intro-section {
  background: var(--surface);
}

.intro-heading {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 50px;
}

.intro-heading .eyebrow {
  margin-bottom: 12px;
}

.intro-showcase {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.intro-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.intro-showcase > * {
  min-width: 0;
}

.intro-copy {
  padding-top: 2px;
}

.intro-copy p {
  margin-top: 0;
}

.services-kem {
  background: var(--primary-soft);
}

.services-heading {
  text-align: center;
  margin-bottom: 44px;
}

.services-heading .eyebrow {
  font-size: var(--text-meta);
  margin-bottom: 8px;
}

.services-heading h2 {
  font-size: var(--heading-2);
  font-weight: 700;
  margin: 0;
}

.services-all {
  text-align: center;
  margin: 34px 0 0;
}

/* Compact discovery: one link covers each card and is named by its heading. */
.service-discovery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
}

.service-discovery__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}

.service-discovery__card:hover,
.service-discovery__card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 20px var(--primary-shadow);
}

.service-discovery__link {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: inherit;
  text-decoration: none;
}

.service-discovery__link:active {
  background: var(--primary-soft);
}

.service-discovery__image {
  width: 100%;
  height: clamp(96px, 12vw, 140px);
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}

.service-discovery__body {
  min-width: 0;
  padding: 20px;
}

.service-discovery--home .service-discovery__icon {
  display: block;
  width: 4rem;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  color: var(--primary);
}

.service-discovery__title {
  margin: 0;
  color: var(--primary-dark);
  font-size: var(--heading-3);
}

.service-discovery__label {
  display: inline-block;
  max-width: 100%;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.service-discovery__link:hover .service-discovery__label,
.service-discovery__link:focus-visible .service-discovery__label,
.service-discovery__link:active .service-discovery__label {
  color: var(--primary);
}

.service-discovery__description {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: var(--line-body);
}

.service-discovery-extras {
  padding-block: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--border);
}

.service-discovery-section {
  padding-bottom: clamp(28px, 3vw, 40px);
}

.service-discovery-extras + .section {
  padding-top: clamp(28px, 3vw, 40px);
}

.service-discovery-extras h2 {
  margin: 0 0 12px;
  font-size: var(--heading-3);
}

.service-discovery-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 20px;
}

.service-discovery-group {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.service-discovery-group summary {
  padding: 16px 20px;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.service-discovery-group summary::marker {
  color: var(--primary);
}

.service-discovery-group summary:focus-visible {
  outline-offset: -3px;
}

.service-discovery-group ul {
  margin: 0;
  padding: 0 20px 20px 40px;
}

.service-discovery-group li + li {
  margin-top: 8px;
}

@media (max-width: 45em) {
  .service-discovery-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.service-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: var(--text-label);
  font-weight: 600;
  line-height: var(--line-label);
  color: var(--primary-dark);
  border: 1px solid #c8d0d7;
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 10px 12px;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.service-nav a::after {
  content: "";
  flex: none;
  width: .45em;
  height: .45em;
  margin-right: .15em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.service-nav a:hover,
.service-nav a:focus-visible,
.service-nav a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Jobs */
.job-box {
  border-left: 5px solid var(--primary);
  padding: 28px 34px;
  background: var(--surface-soft);
  border-radius: var(--radius-card);
}

/* Contact layout and legal pages */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: var(--layout-gap);
  align-items: start;
}

/* Limit introductory prose without constraining the form or contact grid. */
.contact-layout > div > p {
  max-width: var(--measure-prose);
}

.legal h2 {
  font-size: var(--heading-3);
  margin-top: 40px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  /* Reserve the trailing edge for Backtop while footer text scrolls past it. */
  padding: 36px 64px 36px 0;
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.footer-main > * {
  min-width: 0;
}

.footer-main h2 {
  margin-bottom: 12px;
  font-size: var(--text-label);
  line-height: var(--line-label);
  color: var(--primary-light);
  letter-spacing: .08em;
}

.footer-main p {
  margin: 12px 0 0;
}

.site-footer .action-link {
  color: #fff;
}

.footer-main address {
  font-style: normal;
}

.footer-main a:hover {
  text-decoration: underline;
}

.footer-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-services li + li {
  margin-top: 6px;
}

.footer-services a {
  color: #fff;
}

.footer-logo {
  min-width: 0;
}

.footer-logo img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 16px 0;
  font-size: var(--text-meta);
  line-height: var(--line-meta);
  color: #d3d3d3;
}

.footer-meta .container {
  padding-inline-end: 64px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.contact-whatsapp {
  margin: 22px 0 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 48, 75, .12);
}

.contact-whatsapp__text {
  margin: 0 0 10px;
}

/* Task pages share the intro contract and move directly into their task. */
.task-page .page-intro--compact {
  padding-block: clamp(24px, 3vw, 40px) 24px;
}

.task-page .page-intro .lead {
  margin-top: 12px;
}

.task-page .task-content {
  padding-top: 0;
}

.contact-direct {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--primary-soft);
}

.contact-direct h2 {
  margin: 0 0 16px;
  font-size: var(--heading-3);
}

.contact-direct__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 16px 24px;
  margin: 0;
}

.contact-direct__details > div {
  min-width: 0;
}

.contact-direct__details dt {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: var(--text-meta);
  font-weight: 700;
}

.contact-direct__details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-direct__details a {
  display: inline-block;
  min-height: 24px;
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-direct__note {
  max-width: var(--measure-prose);
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.contact-message > h2 {
  margin: 0 0 12px;
}

.contact-message > p {
  margin: 0 0 24px;
}

.contact-location address {
  font-style: normal;
}

.contact-location h3 {
  margin: 24px 0 12px;
}

.contact-location .contact-whatsapp {
  margin: 24px 0 0;
}

.task-page--jobs .job-box {
  padding: clamp(20px, 3vw, 30px);
}

.job-box > h2,
.job-box section > h2 {
  margin-top: 0;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.job-facts > div {
  min-width: 0;
}

.job-facts dt {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: var(--text-meta);
  font-weight: 700;
}

.job-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.job-box section + section {
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

/* Backtop */
.backtop {
  position: fixed;
  right: 29px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: none;
  z-index: 90;
}

.backtop.show {
  display: block;
}

/* Tablet */
@media (max-width: 1180px) {
  .header-inner {
    gap: 18px;
  }

  .nav-list {
    gap: 15px;
  }

  .nav a,
  .drop-toggle {
    font-size: var(--text-label);
  }

}

/* 1080px at the default font size; follows an enlarged browser default.
   Keep this query in sync with core/main.js. */
@media (max-width: 67.5em) {
  :root {
    --header-solid-height: 78px;
    --header-topbar-height: 0px;
  }

  .topbar {
    display: none;
  }

  .header-inner {
    height: 78px;
  }

  .brand {
    flex-basis: 240px;
    width: 240px;
  }

  .brand-logo {
    max-height: 68px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-actions {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    margin: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .15);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    /* Make links focusable as soon as the opening animation starts. */
    transition: transform .23s, opacity .23s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    display: block;
    padding: 12px 24px 25px;
  }

  .mobile-offer-item,
  .mobile-whatsapp-item {
    display: block;
    margin-top: 10px;
  }

  .nav a,
  .drop-toggle,
  .site-header .nav a,
  .site-header .drop-toggle {
    width: 100%;
    min-height: 0;
    padding: 15px 0;
    color: #fff;
    text-shadow: none;
    font-size: var(--text-action);
    justify-content: space-between;
  }

  .nav a::after,
  .drop-toggle::after {
    bottom: 8px;
    background: var(--primary);
  }

  .site-header .nav .mobile-header-action {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--radius-button);
    font-weight: 700;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
  }

  .site-header .nav .mobile-offer-cta {
    background: var(--primary);
  }

  .site-header .nav .mobile-offer-cta:hover,
  .site-header .nav .mobile-offer-cta:focus-visible {
    background: var(--primary-dark);
  }

  .site-header .nav .mobile-whatsapp-cta {
    background: var(--whatsapp);
  }

  .site-header .nav .mobile-whatsapp-cta:hover,
  .site-header .nav .mobile-whatsapp-cta:focus-visible {
    background: var(--whatsapp-hover);
  }

  .site-header .nav .mobile-header-action::after {
    display: none;
  }

  .dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    border-top: 0;
    min-width: 0;
    padding: 0 0 0 12px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-dropdown[open] .dropdown {
    display: block;
  }

  .dropdown a,
  .site-header .dropdown a {
    font-size: var(--text-label);
    padding: 12px;
  }
}

@media (max-width: 1024px) {
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-showcase {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .content-grid,
  .contact-layout {
    gap: 36px;
  }
}

/* Collapse article/sidebar grids before either becomes a narrow static column. */
@media (max-width: 61.25em) {
  .content-grid,
  .contact-layout,
  .page-intro__layout {
    grid-template-columns: 1fr;
  }

  .page-intro__media {
    aspect-ratio: 2 / 1;
  }

  .hero-panel {
    width: min(68%, 640px);
  }
}

@media (max-width: 43.75em) {
  .hero-panel {
    width: 100%;
  }
}

/* Mobile content/layout refinements */
@media (max-width: 51.25em) {
  .hero {
    min-height: clamp(390px, calc(85svh - var(--header-height)), 540px);
  }

  .intro-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-showcase {
    gap: 26px;
  }

  .intro-image img {
    height: 370px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-logo {
    grid-column: 1 / -1;
  }

}

@media (max-width: 35em) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .service-discovery--home {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service-discovery--home .service-discovery__body {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    padding: 16px;
  }

  .service-discovery--home .service-discovery__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 40px;
    margin: 0;
  }

  .service-discovery--home .service-discovery__title,
  .service-discovery--home .service-discovery__description {
    grid-column: 2;
  }

  .service-discovery--home .service-discovery__description {
    margin: 0;
  }

  .hero {
    min-height: clamp(350px, calc(80svh - var(--header-height)), 470px);
  }

  .hero .container {
    padding-block: 16px;
  }

  .page-intro__media {
    aspect-ratio: 16 / 9;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .brand {
    flex-basis: 215px;
    width: 215px;
  }

  .intro-heading {
    margin-bottom: 34px;
  }

  .intro-showcase {
    gap: 20px;
  }

  .intro-image img {
    height: 280px;
  }

  .check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-logo {
    grid-column: auto;
  }

  .footer-main,
  .footer-meta .container {
    padding-inline-end: 0;
  }

  .footer-meta .container {
    display: block;
  }

  .footer-links {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .backtop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Inherited visibility must not animate while focus enters the menu. */
  .nav,
  .nav * {
    transition: none !important;
  }
}

/* Forms: shared controls -> contact -> base responsive -> wizard -> offer details. */

/* Shared controls, validation states and form actions. */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field.full {
  grid-column: 1 / -1;
}

/* Selection cards and estimate options define their own label layout. */
.field label:not(.service-choice):not(.estimate-option) {
  display: block;
  font-size: var(--text-label);
  font-weight: 700;
  line-height: var(--line-label);
  margin-bottom: 5px;
}

.field input:where(:not([type="checkbox"]):not([type="file"])),
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 12px 14px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field :where(input, textarea, select):focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-shadow-soft);
}

.checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-label);
}

.checkbox input {
  width: auto;
  margin-top: 5px;
}

.checkbox .field-error {
  flex-basis: 100%;
  margin-left: 0;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.ok {
  display: block;
  background: #e7f7eb;
  color: #145c26;
}

.form-status.error {
  display: block;
  background: #fff0f1;
  color: #9b001b;
}

.field-error {
  margin: 6px 0 0;
  color: #9b001b;
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: var(--line-meta);
}

.field-error:empty {
  display: none;
}

.field [aria-invalid="true"] {
  border-color: #9b001b;
  box-shadow: 0 2px 0 #9b001b;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

/* Contact form checkbox layout overrides the shared field label. */
.task-page--contact .checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}

.task-page--contact .checkbox > input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.task-page--contact .checkbox > label[for] {
  margin: 0;
  font-weight: 400;
  line-height: var(--line-body);
}

.task-page--contact .checkbox > .field-error {
  grid-column: 1 / -1;
}

/* The offer form leads; this contact alternative follows the complete form. */
.offer-contact-alternative {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.offer-contact-alternative > p {
  margin: 0 0 10px;
}

/* Shared form layout stays before the more specific offer wizard rules. */
@media (max-width: 35em) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field.full {
    grid-column: auto;
  }
}

/* Detailed conditional offer form */
.offer-builder-section {
  padding-block: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 100% 0, var(--primary-shadow-soft), transparent 34rem),
    var(--surface-soft);
}

.offer-builder-shell {
  width: min(calc(100% - 40px), 1080px);
}

.offer-builder-intro {
  max-width: 790px;
  margin: 0 auto 22px;
  text-align: center;
}

.offer-builder-intro h1 {
  margin: 0 0 8px;
}

.offer-intro-note {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: var(--line-body);
}

[data-offer-intro][hidden],
[data-offer-form][hidden],
[data-offer-help][hidden],
[data-offer-success][hidden] {
  display: none !important;
}

.offer-builder,
.offer-success {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(13, 43, 69, .08);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-success {
  border-top: 4px solid var(--primary);
}

.offer-success-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 1.5rem;
  line-height: 1;
}

.offer-success h2 {
  margin: 0 0 16px;
}

.offer-success p {
  max-width: var(--measure-prose);
}

.offer-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.offer-builder[aria-busy="true"] button {
  opacity: .65;
  cursor: wait;
}

.offer-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.offer-steps .step-dot {
  flex: 1;
  min-width: 0;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  height: auto;
  color: #6a7681;
  background: none;
  text-align: center;
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: var(--line-meta);
}

.offer-steps .step-dot::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: #dce3e8;
}

.offer-steps .step-dot:first-child::before {
  display: none;
}

.offer-steps .step-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #cbd5dc;
  border-radius: 50%;
  color: #687783;
  background: var(--surface);
  font-size: var(--text-meta);
  line-height: 1;
  transition: border-color .2s, color .2s, background .2s;
}

.offer-steps .step-dot.is-current {
  color: var(--primary-dark);
  background: none;
}

.offer-steps .step-dot.is-complete::before,
.offer-steps .step-dot.is-current::before {
  background: var(--primary);
}

.offer-steps .is-current .step-index {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.offer-steps .is-complete .step-index {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.offer-steps .step-label {
  overflow-wrap: anywhere;
}

.offer-current-step {
  display: none;
  margin: 0 0 20px;
  color: var(--primary-dark);
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: var(--line-meta);
}

.step-heading {
  margin-bottom: 20px;
}

.step-heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: var(--line-label);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.step-heading h2 {
  margin-bottom: 8px;
  font-size: var(--heading-2);
}

.step-heading p {
  margin: 0;
  color: #5c6974;
}

.offer-builder .field label:not(.estimate-option),
.offer-builder fieldset legend {
  color: var(--navy);
}

.field-hint {
  margin: -2px 0 16px;
  color: #66737e;
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.offer-builder .field > input + .field-hint {
  margin-top: 8px;
}

[data-offer-optional-field][hidden],
[data-copy-object-company][hidden] {
  display: none !important;
}

.offer-company-copy {
  align-self: flex-start;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: var(--text-meta);
  line-height: var(--line-meta);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.conditional-card,
.service-detail-panel,
.appointment-card,
.offer-review {
  border: 1px solid #d9e2e8;
  border-radius: var(--radius-card);
  background: #fff;
}

.conditional-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--primary-soft);
}

.conditional-card h3 {
  margin-bottom: 18px;
  font-size: var(--heading-3);
}

.conditional-card[hidden],
.service-detail-panel[hidden],
.service-detail-empty[hidden] {
  display: none !important;
}

.service-choice-fieldset {
  min-width: 0;
  padding: 0;
  margin: 18px 0 0;
  border: 0;
}

.service-choice-fieldset legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: var(--line-label);
}

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 84px;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius-control);
  background: #fff;
  font-size: var(--text-body);
  font-weight: 400;
  cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}

.service-choice:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 24px rgba(13, 43, 69, .08);
}

.service-choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px var(--primary-shadow-soft);
}

.service-choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.service-choice span {
  display: grid;
  min-width: 0;
  gap: 4px;
  overflow-wrap: anywhere;
}

.service-choice b {
  font-weight: 700;
  line-height: var(--line-label);
}

.service-choice small {
  color: #5d6a75;
  font-size: var(--text-meta);
  font-weight: 400;
  line-height: var(--line-meta);
}

.service-choice-fieldset.has-error .service-choice-grid {
  padding: 3px;
  border: 2px solid #9b001b;
  border-radius: var(--radius-card);
}

.service-detail-empty {
  padding: 22px;
  border: 1px dashed #b9c6cf;
  border-radius: var(--radius-control);
  color: #5b6873;
  background: #f7f9fa;
  text-align: center;
}

.service-detail-panel {
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(13, 43, 69, .06);
}

.detail-panel-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8ec;
}

.detail-panel-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-size: var(--text-meta);
  font-weight: 700;
}

.detail-panel-heading h3 {
  margin-bottom: 3px;
  font-size: var(--heading-3);
}

.detail-panel-heading p {
  margin: 0;
  color: #63707b;
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.appointment-card {
  min-width: 0;
  padding: 22px;
}

.appointment-card legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 700;
}

.upload-field {
  margin-top: 28px;
}

.upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 34px 22px;
  border: 2px dashed #9fb5c4;
  border-radius: var(--radius-card);
  background: #f7fafc;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.upload-dropzone.is-dragging,
.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-dropzone:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 1.65rem;
  line-height: 1;
}

.upload-dropzone small {
  color: #66737e;
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.upload-file-list {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  font-size: var(--text-meta);
  line-height: var(--line-meta);
}

.upload-file-list li {
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--primary-soft);
}

.offer-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.review-section {
  min-width: 0;
  padding: 20px 22px;
  border-bottom: 1px solid #e1e7eb;
}

.review-section:last-child {
  border-bottom: 0;
}

.review-section h3 {
  margin-bottom: 12px;
  font-size: var(--text-body);
}

.review-list {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, 1fr);
  min-width: 0;
  gap: 6px 18px;
  margin: 0;
  font-size: var(--text-label);
  line-height: var(--line-meta);
}

.review-list dt {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #63707b;
  font-weight: 700;
}

.review-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.privacy-box {
  padding: 18px;
  border: 1px solid #d6e0e6;
  border-radius: 10px;
  background: #f7f9fa;
}

.offer-builder .privacy-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.offer-builder .privacy-box > input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.offer-builder .privacy-box > label[for] {
  margin: 0;
  font-weight: 400;
  line-height: var(--line-body);
}

.offer-builder .privacy-box > .field-error {
  grid-column: 1 / -1;
}

.offer-builder .form-actions {
  padding-top: 22px;
  border-top: 1px solid #e3e8eb;
}

.offer-builder .form-actions .btn {
  min-width: 150px;
}

@media (max-width: 760px) {
  .offer-builder-shell {
    width: min(calc(100% - 24px), 1080px);
  }

  .offer-builder,
  .offer-success {
    padding: 22px 18px 26px;
    border-radius: var(--radius-card);
  }

  .offer-steps {
    margin-bottom: 10px;
  }

  .offer-steps .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .offer-current-step {
    display: block;
  }

  .offer-builder .step-heading > span {
    display: none;
  }

  .service-choice-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .service-choice {
    min-height: 0;
  }

  .conditional-card,
  .service-detail-panel,
  .appointment-card {
    padding: 18px;
  }

  .review-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
  }

  .review-list dd + dt {
    margin-top: 8px;
  }

  .offer-builder .form-actions {
    flex-direction: column-reverse;
  }

  .offer-builder .form-actions .btn,
  .offer-builder .form-actions > span {
    width: 100%;
  }
}

/* Offer form conversion improvements */
.object-location-card {
  margin: 0 0 26px;
}

.object-basics-new {
  margin-bottom: 28px;
}

.optional-label {
  color: #6a7681;
  font-size: var(--text-meta);
  font-weight: 700;
}

.estimate-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  color: #5f6c76;
  font-size: var(--text-label);
  font-weight: 700;
  line-height: var(--line-label);
  cursor: pointer;
}

.estimate-option input[type="checkbox"] {
  width: auto;
  min-height: 0;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.offer-builder input[readonly][data-required-when-active] {
  background: #f4f8fb;
  color: #4f5d68;
}

.appointment-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.appointment-choice {
  display: flex;
  min-height: 118px;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius-control);
  background: #fff;
  cursor: pointer;
}

.appointment-choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px var(--primary-shadow-soft);
}

.appointment-choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.appointment-choice span {
  display: grid;
  gap: 5px;
}

.appointment-choice small {
  color: #5d6a75;
  font-size: var(--text-meta);
  font-weight: 400;
  line-height: var(--line-meta);
}

.exact-date-card {
  margin-top: 18px;
}

.appointment-note-field {
  margin-top: 22px;
}

.contact-hint {
  margin: 7px 0 0;
}

.upload-preview-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-file-list .upload-preview-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d9e2e8;
  background: #fff;
}

.upload-preview-item img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 54px;
  border-radius: var(--radius-control);
  object-fit: cover;
}

.upload-preview-meta {
  grid-column: 2;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.upload-preview-meta b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-meta small {
  color: #687783;
  font-size: var(--text-meta);
}

.upload-remove,
.review-edit {
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5dc;
  border-radius: var(--radius-control);
  color: var(--primary-dark);
  background: #fff;
  font: inherit;
  font-size: var(--text-action);
  font-weight: 700;
  line-height: var(--line-action);
  overflow-wrap: anywhere;
  cursor: pointer;
}

.upload-remove {
  grid-column: 2;
  justify-self: start;
}

.upload-preview-list > .field-error {
  grid-column: 1 / -1;
}

.upload-remove:hover,
.review-edit:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.review-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-section-heading h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .appointment-choice-grid,
  .upload-preview-list {
    grid-template-columns: 1fr;
  }

  .appointment-choice {
    min-height: 0;
  }

  .upload-file-list .upload-preview-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .upload-preview-item img {
    width: 56px;
    height: 50px;
  }
}

/* Detailed service landing pages */
.service-video-card {
  margin: 30px 0 38px;
  padding: 18px;
  border: 1px solid #d7e1e8;
  border-radius: var(--radius-card);
  background: #f7f9fb;
}

.service-video-frame {
  width: min(100%, 380px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.service-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-video-card figcaption {
  display: grid;
  gap: 3px;
  max-width: 560px;
  margin: 16px auto 0;
  text-align: center;
}

.service-video-card figcaption strong {
  color: var(--navy);
  font-size: var(--text-body);
}

.service-video-card figcaption span {
  color: #55616c;
  font-size: var(--text-meta);
}

.service-detail h2 {
  margin-top: 42px;
}

.service-detail > h2:first-child {
  margin-top: 0;
}

.service-check-list,
.service-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.service-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}

.service-check-list li,
.service-facts li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid #e2e6ea;
}

.service-check-list li::before,
.service-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--primary);
  font-weight: 900;
}

.service-object-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 22px;
}

.service-object-tags span {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: var(--line-label);
}

.service-summary-card .eyebrow {
  margin-top: 4px;
}

.service-summary-card h2 {
  margin-top: 4px;
}

.service-summary-card .btn {
  margin-top: 24px;
}

.service-facts {
  margin-bottom: 6px;
}

.service-more-section,
.related-links-section {
  padding-block: clamp(32px, 4vw, 48px);
}

.service-more-section h2,
.related-links-section h2 {
  font-size: var(--heading-3);
  margin: 0 0 16px;
}

.service-more-section .service-nav,
.related-links-section .service-nav {
  margin: 0;
}

.service-cta-band p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .service-video-card {
    margin: 24px 0 32px;
    padding: 12px;
  }

  .service-video-card figcaption {
    margin-top: 13px;
  }

  .service-check-list {
    grid-template-columns: 1fr;
  }

}

/* Gallery */
.gallery-container {
  max-width: 1040px;
}

/* Preserve the complete gallery collage at every shared intro breakpoint. */
.page-intro.gallery-collage .page-intro__media {
  aspect-ratio: auto;
}

.page-intro.gallery-collage .page-intro__media img {
  display: block;
  height: auto;
  object-fit: contain;
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.video-gallery-grid .service-video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.video-gallery-grid .service-video-frame {
  width: min(100%, 360px);
}

@media (max-width: 760px) {
  .video-gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* FAQ */
.faq-container {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.task-page--faq .faq-list {
  margin-top: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 22px;
  font-weight: 700;
  color: var(--navy);
}

.task-page--faq .faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 18px 22px;
}

.task-page--faq .faq-item summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
}

.task-page--faq .faq-item summary::after {
  position: static;
  transform: none;
  line-height: 1;
  text-align: center;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: #4b5b69;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

/* Local SEO landing pages */
.local-seo-section {
    background: #fff;
}

.local-seo-section .services-heading p {
    max-width: 780px;
    margin: 14px auto 0;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.location-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: var(--card-space);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.location-label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin: 0 0 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6fb;
    color: #41606f;
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: .035em;
    line-height: var(--line-label);
    text-transform: uppercase;
}

.location-label svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: var(--primary);
}

.location-card h3 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: var(--heading-3);
}

.location-card p {
    margin: 0 0 24px;
    color: #45515c;
}

.location-card .more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-action);
    line-height: var(--line-action);
}

.location-card .location-services {
    margin: -6px 0 22px;
    padding-top: 14px;
    border-top: 1px solid #e4e9ed;
    color: #5a6570;
    font-size: var(--text-meta);
    line-height: 1.65;
}

.location-card .location-services span {
    font-weight: 700;
}

.location-card .location-services a {
    color: var(--primary);
    font-weight: 700;
}

.location-card .location-services a:hover,
.location-card .location-services a:focus-visible {
    text-decoration: underline;
}

.service-seo-extra,
.service-area-links {
    margin-top: 42px;
}

.service-seo-extra h2:first-child,
.service-area-links h2:first-child {
    margin-top: 0;
}

.footer-area-links {
    margin: 18px 0 0;
    font-size: var(--text-meta);
}

.footer-area-links strong {
    color: var(--primary-light);
    font-size: var(--text-label);
    letter-spacing: .04em;
}

.local-faq-section h2 {
    margin-bottom: 24px;
}

@media (max-width: 980px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        min-height: 0;
        padding: var(--card-space);
    }
}

/* Home introduction */
.intro-heading h2 {
  margin: 8px 0 0;
}

.intro-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.intro-strengths > div {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 20px;
  background: #f2f6f9;
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-card);
}

.intro-strengths h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: var(--heading-3);
}

.intro-strengths p {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--line-body);
}

.gallery-card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: var(--text-action);
  line-height: var(--line-action);
}
