/* 01 — GLOBAL / VARIABLES — START */
:root {
  --color-background: #F7F8F3;
  --color-dark: #244D36;
  --color-illustration: #477D4B;
  --color-sage: #71936C;
  --color-text: #213D2B;
  --color-secondary: #536454;
  --color-border: #E0E8DD;
  --color-white: #FFFFFF;
  --color-error: #963E32;
  --header-height: 100px;
  --viewport-height: 100vh;
  --hero-ground-depth: clamp(80px, 13vh, 160px);
  /* 160px is the shared local ground level of the SVG and its animation. */
  --hero-scene-height: calc(160px + var(--hero-ground-depth));
  --footer-height: 0px;
  --content-width: 1160px;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { display: block; }
button svg, a svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-illustration); outline-offset: 5px; }
::selection { background: var(--color-border); color: var(--color-dark); }
.container { width: min(var(--content-width), calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 24px; top: 12px; padding: 12px 20px; background: var(--color-white); border: 2px solid var(--color-dark); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 26px;
  border: 1.5px solid var(--color-dark);
  border-radius: 10px;
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.button:hover { background: #1B3E2A; border-color: #1B3E2A; }
.button-outline { color: var(--color-dark); background: transparent; }
.button-outline:hover { background: #EDF2E9; border-color: var(--color-dark); }
.button-small { min-height: 44px; padding: 9px 20px; font-size: 14px; border-radius: 8px; }
.text-link { text-underline-offset: 5px; text-decoration: underline; font-weight: 600; }
.text-link:hover { color: var(--color-illustration); }
.eyebrow { margin-bottom: 12px; color: var(--color-illustration); font-size: 12px; font-weight: 650; letter-spacing: .095em; line-height: 1.5; }
/* 01 — GLOBAL / VARIABLES — END */

/* 02 — HEADER & NAVIGATION — START */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-height); background: var(--color-background); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; color: var(--color-dark); }
.brand-name { font-size: 29px; font-weight: 750; letter-spacing: -.035em; }
.brand-description { margin-top: 6px; font-size: 14px; font-weight: 550; letter-spacing: .16em; }
.brand-service { margin-top: 8px; color: var(--color-illustration); font-size: 10px; font-weight: 650; letter-spacing: .11em; line-height: 1.35; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.primary-navigation { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 550; }
.primary-navigation > a:not(.button) { padding-block: 12px; }
.primary-navigation > a:not(.button):hover { color: var(--color-illustration); }
.nav-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--color-dark); border-radius: 8px; color: var(--color-dark); font-size: 13px; font-weight: 600; line-height: 1; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.nav-whatsapp svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-whatsapp:hover { background: #EDF2E9; border-color: var(--color-illustration); color: var(--color-dark); }
.nav-whatsapp:focus-visible { outline: 3px solid var(--color-illustration); outline-offset: 3px; }
.language-switch { display: flex; align-items: center; gap: 2px; color: var(--color-secondary); font-size: 12px; }
.language-switch button { min-width: 34px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--color-secondary); font-size: 12px; }
.language-switch button[aria-pressed="true"] { color: var(--color-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--color-border); border-radius: 7px; background: transparent; }
.menu-toggle span { display: block; height: 2px; width: 22px; background: var(--color-dark); margin: 4px 0; transition: transform 160ms ease, opacity 160ms ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* 02 — HEADER & NAVIGATION — END */

/* 03 — HERO — START */
.hero { display: flex; flex-direction: column; min-height: calc(var(--viewport-height) - var(--header-height)); }
.hero-copy { flex-shrink: 0; padding-top: clamp(32px, 7vh, 88px); }
h1 { max-width: 16.3ch; color: var(--color-dark); font-size: clamp(48px, 5.55vw, 78px); font-weight: 700; letter-spacing: -.048em; line-height: 1.07; }
.hero-description { max-width: 720px; margin-top: 24px; color: var(--color-secondary); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-buttons .button { min-height: 56px; padding-inline: 28px; }
/* 03 — HERO — END */

/* 04 — STICKMAN ANIMATION — START */
.hero-landscape { display: flex; flex-direction: column; justify-content: flex-end; flex: 1 0 var(--hero-scene-height); min-height: var(--hero-scene-height); margin-top: 16px; color: var(--color-illustration); }
/* Keep the full illustration in normal flow. Its depth follows the viewport;
   if copy plus scene do not fit, the hero grows naturally without clipping. */
#hero-scene { flex: none; width: 100%; height: var(--hero-scene-height); min-height: var(--hero-scene-height); overflow: hidden; }
/* Only the SVG viewport crops the actor as it enters and exits horizontally. */
.wheel-spoke { stroke: var(--color-background); }
/* One shared JavaScript clock controls movement, legs, wheels and grass. */
/* 04 — STICKMAN ANIMATION — END */

/* 05 — SERVICES — START */
.section { padding-block: clamp(32px, 4vh, 48px) clamp(40px, 5vh, 64px); scroll-margin-top: 0; }
.section-heading { margin-bottom: 30px; }
h2 { color: var(--color-text); font-size: clamp(29px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; }
.section-heading > p:last-child:not(.eyebrow) { max-width: 760px; margin-top: 14px; font-size: 18px; color: var(--color-secondary); line-height: 1.55; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; width: 100%; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); text-align: left; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.service-card:is(.is-active, :focus-within) { border-color: var(--color-sage); transform: translateY(-2px); }
.service-icon { width: 28px; height: 28px; margin-bottom: 4px; color: var(--color-illustration); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-name { font-size: 21px; font-weight: 600; line-height: 1.35; }
.service-description { color: var(--color-secondary); font-size: 16px; line-height: 1.55; }
/* Reserve the button's full space even when hidden: rows never jump on reveal. */
.service-select { margin-top: auto; max-width: 100%; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, background-color 160ms ease; }
.service-card:is(.is-active, :focus-within) .service-select { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { border-color: var(--color-sage); background: #FDFEFC; transform: translateY(-2px); }
  .service-card:hover .service-select { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
}
.section-cta { margin-top: 32px; text-align: center; }
.section-cta p { margin-bottom: 16px; color: var(--color-secondary); }
/* 05 — SERVICES — END */

/* 06 — ABOUT — START */
.about-panel { padding: 32px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); }
.about-panel > p { color: var(--color-secondary); font-size: 18px; line-height: 1.7; }
.about-panel > p + p { margin-top: 18px; }
.about-panel > .about-values { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; color: var(--color-dark); font-size: 16px; font-weight: 600; }
.about-values svg { flex: 0 0 23px; width: 23px; height: 23px; margin-top: 2px; stroke: var(--color-illustration); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 06 — ABOUT — END */

/* 07 — FREE ESTIMATE — START */
.estimate-section { border-block: 1px solid var(--color-border); background: #F0F3EC; }
.estimate-container { max-width: 920px; }
.estimate-panel { padding: 36px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-field { min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.required-mark { color: var(--color-illustration); }
.optional-label { color: var(--color-secondary); font-size: 13px; font-weight: 400; }
input:not([type="file"]), select, textarea { display: block; width: 100%; min-height: 48px; border: 1px solid #CBD6C6; border-radius: 7px; background: var(--color-white); padding: 11px 13px; color: var(--color-text); line-height: 1.5; transition: border-color 120ms ease; }
input:not([type="file"]):hover, select:hover, textarea:hover { border-color: var(--color-sage); }
input:focus, select:focus, textarea:focus { border-color: var(--color-illustration); }
.privacy-acknowledgment { margin-top: 16px; }
.privacy-acknowledgment > label { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: var(--color-secondary); font-size: 13px; font-weight: 400; line-height: 1.6; }
.privacy-acknowledgment input[type="checkbox"] { appearance: auto; display: block; flex: 0 0 18px; width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--color-illustration); }
.privacy-acknowledgment input[type="checkbox"]:focus { outline: 2px solid var(--color-illustration); outline-offset: 2px; }
.privacy-acknowledgment.has-error input[type="checkbox"] { outline: 2px solid var(--color-error); outline-offset: 2px; }
.privacy-acknowledgment a { color: var(--color-dark); text-decoration: underline; text-underline-offset: 3px; }
textarea { min-height: 150px; resize: vertical; }
textarea::placeholder { color: #63725F; opacity: 1; }
select { padding-right: 30px; }
.field-error { color: var(--color-error); font-size: 13px; line-height: 1.5; }
.field-error:not(:empty) { margin-top: 7px; }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--color-error); }
.upload-area { position: relative; display: flex; flex-direction: column; align-items: center; padding: 25px 22px; border: 1px dashed #AFBFA6; border-radius: 8px; background: #FBFCF9; text-align: center; }
.upload-area:hover { border-color: var(--color-illustration); background: #F7F9F3; }
.upload-area:focus-within { outline: 3px solid var(--color-illustration); outline-offset: 4px; }
.upload-area.is-disabled { border-style: solid; background: var(--color-background); opacity: .78; cursor: not-allowed; }
.upload-area.is-disabled:hover { border-color: #AFBFA6; background: var(--color-background); }
.upload-area.is-disabled input { cursor: not-allowed; }
.upload-area > svg { width: 28px; height: 28px; margin-bottom: 10px; stroke: var(--color-illustration); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.upload-title { font-weight: 600; font-size: 15px; }
.upload-hint { max-width: 450px; margin-top: 5px; font-size: 13px; color: var(--color-secondary); line-height: 1.6; }
.photos-description { max-width: 620px; margin: -1px 0 13px; color: var(--color-secondary); font-size: 14px; line-height: 1.6; }
.upload-area input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.photo-list:empty { display: none; }
.photo-count { margin-top: 10px; color: var(--color-secondary); font-size: 13px; line-height: 1.5; }
.photo-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px; border: 1px solid var(--color-border); border-radius: 7px; }
.photo-preview { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.photo-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; color: var(--color-secondary); }
.photo-remove { flex-shrink: 0; min-height: 44px; min-width: 44px; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: var(--color-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.photo-remove:hover { background: var(--color-background); }
.required-note { margin-top: 22px; font-size: 12px; color: var(--color-secondary); }
.privacy-note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--color-secondary); }
.privacy-form-link { display: inline-block; min-height: 40px; padding-top: 10px; font-size: 13px; color: var(--color-secondary); }
.submit-estimate { width: 100%; margin-top: 22px; }
.button:disabled { opacity: .65; cursor: not-allowed; }
.form-status { margin-top: 18px; padding: 14px 16px; background: var(--color-background); border-radius: 6px; color: var(--color-dark); font-size: 14px; }
.form-status.is-error { color: var(--color-error); }
.form-status.is-success { padding: 22px; border: 1px solid #B8CBB0; background: #F7FAF4; animation: form-success-enter 280ms ease-out both; }
.form-success-content { display: flex; align-items: flex-start; gap: 14px; }
.form-success-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid var(--color-sage); border-radius: 50%; color: var(--color-illustration); }
.form-success-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success-title { font-size: 17px; font-weight: 650; line-height: 1.35; }
.form-success-message { margin-top: 5px; color: var(--color-secondary); line-height: 1.6; }
.form-status-text:empty { display: none; }
@keyframes form-success-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.privacy-section { min-height: calc(var(--viewport-height) - var(--header-height) - var(--footer-height)); }
.privacy-container { max-width: 920px; }
.privacy-content { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); }
.privacy-content > * + * { margin-top: 28px; }
.privacy-content h3 { color: var(--color-dark); font-size: 19px; font-weight: 650; }
.privacy-content h3 + p { margin-top: 8px; }
.privacy-content p, .privacy-content li { color: var(--color-secondary); line-height: 1.7; }
.privacy-content ul { margin: 10px 0 0; padding-left: 22px; }
.privacy-content a { color: var(--color-dark); }
.privacy-updated { padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 13px; }
/* 07 — FREE ESTIMATE — END */

/* 08 — CONTACT — START */
.contact-section { min-height: calc(var(--viewport-height) - var(--header-height) - var(--footer-height)); }
/* The final section and footer together leave enough room for anchor alignment. */
.contact-panel { padding: 10px 28px 24px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); }
.contact-row { display: flex; align-items: center; gap: 20px; padding-block: 24px; }
.contact-row + .contact-row { border-top: 1px solid var(--color-border); }
.contact-icon { display: grid; place-items: center; flex: 0 0 54px; height: 54px; background: #EDF2E8; color: var(--color-dark); border-radius: 15px; }
.contact-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-row h3 { margin-bottom: 5px; font-size: 18px; font-weight: 600; }
.contact-value { font-size: 16px; color: var(--color-secondary); overflow-wrap: anywhere; }
.contact-value[href]:hover { color: var(--color-dark); text-decoration: underline; text-underline-offset: 4px; }
[aria-disabled="true"] { cursor: default; }
.whatsapp-button { width: 100%; }
.whatsapp-button svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-button[aria-disabled="true"]:hover { background: var(--color-dark); border-color: var(--color-dark); }
.contact-estimate { margin-top: 28px; text-align: center; color: var(--color-secondary); }
.contact-estimate .contact-estimate-title { color: var(--color-text); font-size: 18px; font-weight: 600; }
.contact-estimate > p + p { margin-top: 6px; }
.contact-estimate .text-link { display: inline-block; min-height: 44px; padding-top: 9px; color: var(--color-dark); }
/* 08 — CONTACT — END */

/* 09 — FOOTER & BACK TO TOP — START */
.site-footer { padding-block: 28px; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-right: 44px; color: var(--color-secondary); font-size: 12px; }
.cgc-preferences-dialog { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); left: max(18px, env(safe-area-inset-left)); display: none; align-items: center; justify-content: space-between; gap: 24px; width: min(760px, calc(100% - 36px)); margin-inline: auto; padding: 22px 24px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-white); box-shadow: 0 12px 38px rgba(33, 61, 43, .14); }
.cgc-preferences-dialog.is-visible { display: flex; }
html.cgc-preferences-checking .cgc-preferences-dialog { display: none !important; }
.cgc-preferences-dialog:target, html.cgc-preferences-checking .cgc-preferences-dialog:target { display: flex !important; }
.cgc-preferences-content { max-width: 490px; }
.cgc-preferences-content h2 { margin-bottom: 7px; color: var(--color-dark); font-size: 17px; font-weight: 650; }
.cgc-preferences-content p { color: var(--color-secondary); font-size: 13px; line-height: 1.55; }
.cgc-preferences-content p + p { margin-top: 7px; }
.cgc-preferences-status { color: var(--color-dark) !important; font-weight: 600; }
.cgc-preferences-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 0 0 230px; }
.cgc-preferences-button, .cgc-preferences-close { min-height: 42px; padding: 9px 12px; border: 1px solid var(--color-dark); border-radius: 7px; background: transparent; color: var(--color-dark); font-size: 13px; font-weight: 600; line-height: 1.25; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.cgc-preferences-button:hover, .cgc-preferences-close:hover { background: #EDF2E9; border-color: var(--color-illustration); }
.cgc-preferences-close { grid-column: 1 / -1; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: var(--color-dark); color: var(--color-white); }
.back-to-top:hover { background: #1B3E2A; }
.back-to-top svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 09 — FOOTER & BACK TO TOP — END */

/* 10 — RESPONSIVE & REDUCED MOTION — START */
@supports (height: 100svh) {
  :root { --viewport-height: 100svh; --hero-ground-depth: clamp(80px, 13svh, 160px); }
  .section { padding-block: clamp(32px, 4svh, 48px) clamp(40px, 5svh, 64px); }
}
@media (min-width: 761px) {
  /* Minimums frame suitable desktop content; longer content keeps normal flow. */
  .services-section { min-height: min(calc(var(--viewport-height) - var(--header-height)), 960px); }
  .about-section { min-height: min(calc(var(--viewport-height) - var(--header-height)), 600px); }
}
@media (min-width: 1600px) {
  :root { --content-width: 1320px; }
  h1 { font-size: 84px; }
}
@media (max-width: 1050px) {
  .container { width: calc(100% - 80px); }
  .primary-navigation { gap: 20px; }
  .header-actions { gap: 16px; }
  .nav-estimate { display: none; }
  h1 { font-size: clamp(48px, 6.4vw, 66px); }
  .hero-description { max-width: 650px; font-size: 19px; }
}
@media (max-width: 760px) {
  :root { --header-height: 80px; }
  .container { width: calc(100% - 64px); }
  .brand-name { font-size: 25px; }
  .brand-description { font-size: 12px; }
  .brand-service { margin-top: 6px; font-size: 8px; letter-spacing: .1em; }
  .header-actions { gap: 14px; }
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; top: calc(var(--header-height) - 1px); left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 32px 22px; border-bottom: 1px solid var(--color-border); background: var(--color-background); }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation > a:not(.button) { padding: 13px 0; }
  .primary-navigation .nav-whatsapp { justify-content: center; margin-top: 8px; padding-block: 12px; }
  .primary-navigation .nav-estimate { display: inline-flex; margin-top: 8px; }
  .hero-copy { padding-top: clamp(28px, 6vh, 54px); }
  h1 { font-size: clamp(40px, 7.4vw, 55px); }
  .hero-description { max-width: 560px; margin-top: 20px; font-size: 18px; }
  .hero-buttons { margin-top: 25px; gap: 12px; }
  .hero-buttons .button { min-height: 52px; padding: 12px 21px; font-size: 15px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 17px; }
  .service-card { padding: 23px; }
  .service-name { font-size: 19px; }
  .service-description { font-size: 15px; }
  .about-panel, .estimate-panel { padding: 26px; }
  .privacy-content { padding: 26px; }
  .about-panel > p { font-size: 17px; }
  .form-grid { gap: 20px; }
  .contact-panel { padding-inline: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 5px; }
  .cgc-preferences-dialog { right: 16px; bottom: 16px; left: 16px; flex-direction: column; align-items: stretch; gap: 16px; width: auto; padding: 20px; }
  .cgc-preferences-actions { width: 100%; flex-basis: auto; }
}
@media (max-width: 520px) {
  :root { --header-height: 76px; }
  .container { width: calc(100% - 48px); }
  .brand-name { font-size: 22px; }
  .brand-description { font-size: 10px; margin-top: 5px; }
  .brand-service { margin-top: 5px; font-size: 7px; letter-spacing: .08em; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .language-switch { gap: 0; }
  .language-switch button { min-width: 29px; }
  .menu-toggle { width: 40px; height: 42px; padding: 9px; }
  .primary-navigation { padding-inline: 24px; }
  h1 { font-size: clamp(37px, 9.2vw, 46px); max-width: 15ch; letter-spacing: -.045em; }
  .hero-description { font-size: 16px; line-height: 1.6; margin-top: 18px; }
  .hero-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .hero-buttons .button { width: 100%; min-height: 49px; padding: 11px 16px; font-size: 15px; }
  h2 { font-size: 29px; }
  .eyebrow { font-size: 10px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px; gap: 11px; }
  .service-icon { margin-bottom: 4px; }
  .section-cta { margin-top: 26px; }
  .section-cta p { font-size: 15px; }
  .section-cta .button { width: 100%; padding-inline: 12px; }
  .about-panel { padding: 23px; }
  .about-panel > p { font-size: 16px; }
  .about-panel > .about-values { gap: 9px; font-size: 14px; }
  .estimate-panel { padding: 22px 18px; }
  .privacy-content { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .upload-area { padding: 23px 15px; }
  .submit-estimate { padding-inline: 12px; font-size: 15px; }
  .contact-panel { padding: 3px 18px 20px; }
  .contact-row { gap: 14px; padding-block: 22px; }
  .contact-icon { flex-basis: 46px; height: 46px; border-radius: 12px; }
  .contact-row h3 { font-size: 17px; }
  .contact-value { font-size: 14px; }
  .contact-estimate { font-size: 15px; }
  .back-to-top { right: 9px; bottom: 12px; width: 42px; height: 42px; }
  .cgc-preferences-dialog { right: 12px; bottom: 12px; left: 12px; padding: 18px; }
  .cgc-preferences-actions { grid-template-columns: 1fr; }
  .cgc-preferences-close { grid-column: auto; }
  /* JavaScript hides the control whenever it would overlap another control. */
}
@media (max-width: 359px) {
  .container { width: calc(100% - 36px); }
  .brand-name { font-size: 20px; }
  .brand-description { font-size: 9px; }
  .brand-service { font-size: 6px; }
  .header-actions { gap: 2px; }
  h1 { font-size: 35px; }
}
@media (max-height: 740px) and (min-width: 761px) {
  .hero-copy { padding-top: clamp(20px, 4vh, 36px); }
  h1 { font-size: clamp(43px, 5vw, 60px); }
  .hero-description { margin-top: 18px; font-size: 18px; }
  .hero-buttons { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .service-card, .service-select { transform: none !important; transition: none; }
}
/* 10 — RESPONSIVE & REDUCED MOTION — END */

/* 11 — TRANSLATIONS — START */
/* All translated strings live in script.js; the layout accommodates both languages. */
/* 11 — TRANSLATIONS — END */
