/* Shared touch layout, loaded after the page styles. */
html { scroll-padding-top: var(--header-height, 72px); }
section[id] { scroll-margin-top: 16px; }
.wrap, .hero-copy, .hero-photo, .service-card, .map-copy, .map-frame,
.quote-form label, .practical > *, .notice-band .inner > * { min-width: 0; }
.btn, button, summary { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold2, #e0b75b);
  outline-offset: 4px;
}
.map-interaction {
  position: absolute;
  z-index: 501;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 78px);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #c69a3b;
  border-radius: 8px;
  background: #080a0d;
  color: #f3f1eb;
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.map-interaction[hidden] { display: none; }
#zone #service-map.map-touch-mode:not(.map-interactive) { touch-action: pan-y pinch-zoom; }

/* Switch before the desktop navigation runs out of room. */
@media (max-width: 1024px) {
  header:has(.nav) {
    background: rgba(5, 6, 8, .97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: relative;
    height: auto;
    min-height: 64px;
    padding-block: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .nav .logo {
    flex: 1 1 9rem;
    min-width: 0;
    font-size: .9375rem;
    line-height: 1.3;
    letter-spacing: .04em;
    white-space: normal;
  }
  .nav-actions { order: 2; margin: 0; gap: 0; flex-shrink: 0; }
  .nav .call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: .875rem;
    line-height: 1.4;
  }
  .call-button span, .header-whatsapp { display: none; }
  .menu-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px;
    font-size: .875rem;
  }
  .nav > nav {
    display: none;
    position: absolute;
    z-index: 250;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height, 64px) - 20px);
    max-height: calc(100dvh - var(--header-height, 64px) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid #594a2b;
    border-radius: 12px;
    background: #0a0c0f;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .3);
  }
  .nav > nav.open { display: flex; }
  .nav .nav-dropdown { width: 100%; }
  .nav .nav-dropdown-toggle { display: none; }
  .nav .nav-dropdown .dropdown-menu,
  .nav .nav-dropdown:hover .dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav > nav > a, .nav .dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 0;
    font-size: 1rem !important;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
  }
  .nav .dropdown-menu a[aria-current="page"] {
    color: var(--gold2) !important;
    background: rgba(224, 183, 91, .09);
  }
}

@media (max-width: 820px) {
  :root { --muted: #aeb4bb; }
  body { overflow-wrap: break-word; }
  body::before { display: none; }
  .wrap { width: min(var(--max, 780px), calc(100% - 32px)); }
  section { padding-block: 40px; }
  .hero { padding: 28px 0 32px; }
  .hero .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero h1, .page-hero h1 {
    font-size: clamp(2.125rem, 8.8vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 16px 0;
    text-wrap: balance;
  }
  .hero p, .page-hero p { font-size: 1rem; line-height: 1.6; }
  .hero .tag, .page-kicker { font-size: .75rem; letter-spacing: .09em; }
  .hero .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 22px;
  }
  .btn, .hero .actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    font-size: .9375rem;
    line-height: 1.45;
    text-align: center;
  }
  .hero .actions .whatsapp { order: initial; width: auto; }
  .hero-service-picker { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .hero-service-picker > summary { display: flex; width: 100%; }
  .hero-service-options {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 6px;
    box-shadow: none;
  }
  .hero-service-options a { min-height: 48px; font-size: 1rem; padding: 12px; }
  .hero-proof { flex-wrap: wrap; gap: 6px 10px; margin-top: 16px; font-size: .875rem; }
  .hero-proof .stars { flex-shrink: 0; }
  .hero-photo { margin: 0; border-radius: 12px; }
  .hero-photo img { height: clamp(180px, 55vw, 280px); }
  .hero-photo figcaption { padding: 10px 14px; font-size: .8125rem; }
  .title { margin-bottom: 24px; }
  .title h2, .section-heading h2, .cta h2, .page-cta h2 {
    font-size: clamp(1.75rem, 7vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  .title p, .section-heading p { font-size: 1rem; line-height: 1.6; }
  .steps { gap: 12px; }
  .step { padding: 20px; box-shadow: none; }
  .step .num { font-size: .75rem; }
  .step h3 { margin: 6px 0; font-size: 1.125rem; }
  .step p { margin: 0; }
  .gallery-carousel .gallery-slide figure { width: min(100%, 384px); }
  .gallery-carousel .gallery-slide img { max-height: 70svh; object-fit: contain; }
  .gallery figcaption { padding: 12px 16px; }
  .gallery-arrow { width: 44px; height: 44px; }
  .gallery-meta { gap: 4px 10px; }
  .gallery-dots { gap: 0; }
  .gallery-dot, .gallery-dot[aria-current="true"] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .gallery-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 1px solid #b69759;
    border-radius: 50%;
  }
  .gallery-dot[aria-current="true"]::before { background: var(--gold2); }
  .gallery-hint { font-size: .8125rem; }
  #avis .review { padding: 20px; }
  .review-controls { gap: 8px; margin-top: 18px; }
  .review-controls .btn { min-width: 44px; padding-inline: 14px; }
  .review details > summary { min-height: 44px; padding-block: 10px; }
  .map-copy { padding: 24px 20px; }
  .map-copy h3 { font-size: 1.625rem; line-height: 1.2; }
  #zone .map-frame { height: clamp(300px, 90vw, 380px); min-height: 0; }
  #zone #service-map { height: 100%; min-height: 0; }
  #zone .map-label { font-size: .8125rem; padding: 6px 10px; line-height: 1.4; }
  #zone .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
  .map-toolbar { gap: 12px; }
  .map-toolbar .btn { width: 100%; }
  .practical { gap: 20px; padding-top: 28px; }
  .practical h2 { font-size: 1.75rem; }
  .cta { padding: 28px 16px; border-radius: 12px; }
  .cta .actions, .page-cta .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cta .actions .btn, .page-cta .actions .btn { width: 100%; }
  .quote-form { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 26px; }
  .quote-form label { font-size: 1rem; }
  .quote-form input, .quote-form select, .quote-form textarea {
    min-height: 48px;
    max-width: 100%;
    font-size: max(16px, 1rem);
    padding: 12px;
  }
  .quote-form input[type="file"] { font-size: .875rem; overflow: hidden; }
  .quote-form input[type="file"]::file-selector-button { min-height: 44px; margin-right: 8px; }
  .field-help { font-size: .875rem; line-height: 1.5; }
  .form-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .page-hero { padding: 24px 0 32px; }
  .page-hero::after { display: none; }
  .back-link { display: block; width: fit-content; min-height: 44px; margin-bottom: 10px; padding-block: 10px; }
  .page-kicker { display: block; margin-bottom: 12px; }
  .page-hero .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .page-hero .actions .btn { width: 100%; }
  .page-section { padding: 36px 0; }
  .section-heading { margin-bottom: 24px; }
  .service-grid { gap: 16px; }
  .service-card { padding: 22px 20px; min-height: 0; }
  .service-top { font-size: .75rem; letter-spacing: .06em; }
  .service-top strong { font-size: 1rem; }
  .service-card h3 { font-size: 1.5rem; line-height: 1.25; }
  .service-card ul { margin: 16px 0 22px; }
  .service-card .btn { align-self: stretch; width: 100%; }
  .notice-band { padding-bottom: 36px; }
  .notice-band .inner { padding: 24px 20px; gap: 16px; }
  .page-cta { padding-bottom: 40px; }
  .page-cta .inner { padding: 28px 20px; }
  footer { padding-block: 26px; font-size: .875rem; }
  .foot { gap: 12px; }
  .foot > span { width: 100%; }
  .foot a { display: inline-block; padding-block: 10px; }
  .content { padding: 32px 0; }
  .content .card { padding: 24px 20px; }
  .content h1 { font-size: 2rem; line-height: 1.2; }
  .content a { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .menu-toggle > span:not(.menu-toggle-icon) { display: none; }
  .hero .actions { grid-template-columns: minmax(0, 1fr); }
}

@media (hover: none), (pointer: coarse) {
  .hero .wrap { animation: none; }
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .card, .service-card, .review, .step, .btn { box-shadow: none; }
  .card:hover, .service-card:hover, .review:hover, .step:hover,
  .btn:hover, .main:hover, .ghost:hover { transform: none; box-shadow: none; }
  .card::before, .service-card::before, .review::before { display: none; }
}
