/* Autohandel Zuid-Holland: build additions on top of zuid.css (Valentina's approved design.css).
   Tommaso, P3 2026-10-16. Only what the build needs and design.css does not cover; palette and the four faces of
   design.css only (Saira 800 italic / 600, Inter 400 / 600). Scoped like design.css. */

/* A. Floating phone + WhatsApp: phones only (colours in design.css §9) --------------------------------------- */
.rv-float { display: none; }
@media (max-width: 921px) {
  .rv-float { display: flex; flex-direction: column; gap: 12px; position: fixed; right: 16px; bottom: 16px; z-index: 9000; }
  .rv-float a { display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(1,29,82,.28); }
  .rv-float a:focus-visible { outline: 2px solid var(--zh-signal); outline-offset: 3px; }
}

/* B. Google Maps after consent (.zh-map, an HTML widget; loader in assets/js/zuid.js) ------------------------ */
.zh-map { height: 360px; background: var(--zh-pale); border: 1px solid var(--zh-steel); border-radius: var(--zh-radius); overflow: hidden; }
.zh-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.zh-map .zh-map__ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.zh-map p.zh-map__txt { margin: 0; max-width: 34em; color: var(--zh-ink); font: 400 14px/1.6 var(--zh-font-text); }
.zh-map button.zh-map__btn {
  padding: 15px 26px; border: 0; border-radius: var(--zh-radius); cursor: pointer; background: var(--zh-royal); color: #FFFFFF;
  font: 600 15px/1 var(--zh-font-display); text-transform: uppercase; letter-spacing: .06em;
}
.zh-map button.zh-map__btn:hover { background: var(--zh-navy); }
.zh-map button.zh-map__btn:focus-visible { outline: 2px solid var(--zh-signal); outline-offset: 3px; }

/* C. Contact Form 7: grid, group titles, status line, note (the fields themselves are design.css §7) ---------- */
.wpcf7 .rv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 767px) { .wpcf7 .rv-form-grid { grid-template-columns: 1fr; } }
.wpcf7 h3.rv-group-title { font: 600 clamp(20px, calc(18.51px + 0.381vw), 24px)/1.25 var(--zh-font-display); text-transform: none; letter-spacing: 0; color: var(--zh-ink); margin: 8px 0 18px; }
.wpcf7 .rv-kenteken-status { display: block; margin-top: 6px; font: 400 14px/1.4 var(--zh-font-text); text-transform: none; letter-spacing: 0; color: var(--zh-muted); }
.wpcf7 .rv-kenteken-status[data-state="error"] { color: var(--zh-error); }
.wpcf7 .rv-form-note { font: 400 14px/1.5 var(--zh-font-text); color: var(--zh-muted); margin: 0 0 18px; }
.wpcf7 .rv-form-note a, .wpcf7 .rv-consent a { color: var(--zh-royal); text-decoration: underline; }
.wpcf7 .rv-consent .wpcf7-list-item { margin: 0; }
.wpcf7 input[type=file] { font: 400 14px/1.4 var(--zh-font-text); text-transform: none; letter-spacing: 0; }

/* D. Numbered rows (Home diensten, Over ons aanpak, Auto inkoop usp + werkwijze; proto .svc li): container
   css_classes zh-numrow = digit (76 px, 52 px phone) | body, 1px steel rules between rows */
.e-con.zh-numrow { border-top: 1px solid var(--zh-steel); }
.e-con.zh-numrow:last-child { border-bottom: 1px solid var(--zh-steel); }
.e-con.zh-numrow > .elementor-widget.zh-digit { flex: 0 0 76px; width: 76px; max-width: 76px; }
.e-con.zh-numrow > .e-con.zh-numbody { flex: 1 1 auto; width: auto; min-width: 0; }
.e-con.zh-numrow .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
@media (max-width: 921px) { .e-con.zh-numrow > .elementor-widget.zh-digit { flex-basis: 52px; width: 52px; max-width: 52px; } }
.elementor-widget.zh-usp-title .elementor-heading-title { font-size: clamp(20px, calc(18.51px + 0.381vw), 24px); line-height: 1.25; }

/* D2. Home hero sizing (design.css §2 build note: min 560 / 100vh - 88 / max 760; panel aligned to the 1160 grid) */
@media (min-width: 1025px) {
  .e-con.zh-hero { height: calc(100vh - 88px); min-height: 560px; max-height: 760px; }
  .e-con.zh-hero > .e-con.zh-hero-panel { padding-left: max(40px, calc((100vw - 1240px) / 2 + 40px)); }
  .admin-bar .e-con.zh-hero { height: calc(100vh - 120px); }
}
.e-con.zh-hero .elementor-widget.zh-proof p { margin: 0; letter-spacing: .01em; }

/* D3. Text links under list items (proto .svc li a: Inter 600) and the export checklist */
.elementor-widget.zh-textlink a { font-weight: 600; color: var(--zh-royal); }
.elementor-widget.zh-textlink a:hover { color: var(--zh-navy); }
.elementor-widget.zh-textlink a::after { content: ' \2192'; }
.elementor-widget.zh-checklist ul { list-style: none; margin: 0 0 8px; padding: 0; }
.elementor-widget.zh-checklist li { position: relative; padding-left: 34px; margin: 0 0 12px; }
.elementor-widget.zh-checklist li::before { content: ''; position: absolute; left: 4px; top: .38em; width: 14px; height: 7px;
  border-left: 3px solid var(--zh-royal); border-bottom: 3px solid var(--zh-royal); transform: rotate(-45deg); }
.elementor-widget.zh-legal-text ul { margin: 0 0 1em 1.2em; }
.elementor-widget.zh-legal-text li { margin-bottom: .5em; }
.e-con.zh-belband-slot .elementor-shortcode { width: 100%; }
/* stripe band (proto .stripe): bars keep their own width, the middle column takes the rest, hour groups never break */
.e-con.zh-stripe .elementor-widget-html { flex: 0 0 auto; width: auto; max-width: none; }
.e-con.zh-stripe .zh-bars { vertical-align: middle; }
.e-con.zh-stripe .elementor-widget-text-editor span { white-space: nowrap; }
.e-con.zh-stripe .elementor-widget-text-editor p { margin: 0; }

/* E. Reading measure: text widgets with _css_classes zh-measure */
.elementor-widget.zh-measure { max-width: 62ch; }

/* F. Labels that name content ("Openingstijden", "Bedrijfsgegevens"): Saira 600 caps 14px, not an eyebrow */
.elementor-widget.zh-label .elementor-heading-title { font-family: var(--zh-font-display); font-weight: 600; font-style: normal; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* G. 404 (functions.php zuid_child_404) ---------------------------------------------------------------- */
.zh-404 { max-width: 760px; margin: 96px auto 120px; padding: 0 16px; }
/* the theme-rendered H1 = the design H1 (Saira 800 italic), so no fifth face (Saira 800 upright) is loaded */
.zh-404 h1.page-title { font-family: var(--zh-font-display); font-weight: 800; font-style: italic; font-size: clamp(36px, calc(24.11px + 3.048vw), 68px);
  line-height: 1.02; letter-spacing: -0.02em; color: var(--zh-ink); }
.zh-404 .page-sub-title { font: 400 17px/1.6 var(--zh-font-text); color: var(--zh-ink); margin: 18px 0 28px; }
.zh-404 .zh-404-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.zh-btn { display: inline-block; padding: 17px 28px; border-radius: var(--zh-radius); background: var(--zh-royal); color: #FFFFFF;
  font: 600 15px/1 var(--zh-font-display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border: 2px solid var(--zh-royal); }
.zh-btn:hover, .zh-btn:focus-visible { background: var(--zh-navy); border-color: var(--zh-navy); color: #FFFFFF; }
.zh-btn.zh-btn-outline { background: transparent; color: var(--zh-royal); }
.zh-btn.zh-btn-outline:hover, .zh-btn.zh-btn-outline:focus-visible { background: var(--zh-navy); color: #FFFFFF; }
@media (max-width: 767px) { .zh-404 { margin: 56px auto 72px; } }

/* H. Footer credit line + logo sizes inside the Astra copyright element (design.css §8 sets the grid) */
#colophon .ast-footer-copyright { width: 100%; }
#colophon .zh-foot ul { list-style: none; margin: 0; padding: 0; }
#colophon .zh-legal a { color: var(--zh-link-dark); }
#colophon .zh-legal .zh-credit a { display: inline-flex; align-items: center; gap: 8px; }

/* I. Text sitting on night / signal bands keeps underlined links visible */
.e-con.zh-on-night .elementor-widget-text-editor a, .e-con.zh-stripe .elementor-widget-text-editor a { text-decoration: underline; }

/* J. A phone number never breaks across lines (gotcha seen on the demo templates: "06 / 22445313") */
#page a[href^="tel:"] { white-space: nowrap; }

/* K. P4 v1 (Tommaso, 2026-10-16) */
/* Marta V1 (WCAG 1.4.1, link-in-text-block): links inside running text and in the footer are underlined, as in the
   approved prototype; colour alone was 2.02:1 (body) / 2.26:1 (footer) against the surrounding text. Buttons and the
   standalone "→" text links keep their own look. */
#page .elementor-widget-text-editor:not(.zh-textlink) a,
#colophon .zh-foot a, #colophon .zh-legal a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
/* Marta V3: the hero photo runs to the right edge (prototype: flex 1 1 auto). design.css §2 slides it 80 px under
   the panel with margin-left:-80px, so the column must be 80 px wider: 52 % + 80 = 829 px at 1440. */
@media (min-width: 1025px) {
  .e-con.zh-hero > .e-con.zh-hero-photo { --width: calc(52% + 80px); width: calc(52% + 80px); max-width: none; }
}
/* Marta T1: one <main> landmark around the content area (functions.php wraps it on astra_content_top/bottom) */
main#zh-main { display: block; width: 100%; flex: 1 1 auto; min-width: 0; }

/* L. P4 v3 (Tommaso): Astra's scroll-to-top sits in the floating rail's corner on phones/tablets (measured overlap at
   375 and 768). The rail is the bottom-right control at <= 921 px; the scroll-to-top button stays on desktop.
   !important beats the inline display:block Astra's script sets on scroll. */
@media (max-width: 921px) { #ast-scroll-top { display: none !important; } }
