/* =========================================================
   Modfix — Public site layout ONLY (header, footer, hero, sections).
   All components come from components.css.
   ========================================================= */

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(10, 10, 10, .84);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-header .logo { margin-right: auto; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-weight: 600; color: var(--text-muted); font-size: .93rem; transition: color var(--t-fast); }
.main-nav a:hover, .main-nav a.active { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-main); margin: 0 auto; transition: transform var(--t-base), opacity var(--t-base); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 10px 24px 20px; border-top: 1px solid var(--border); background: var(--bg-void); }
.mobile-nav a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); }
.mobile-nav a:hover { color: var(--cyan); }
.mobile-nav .btn { margin-top: 12px; width: 100%; }
.mobile-nav .lang-switch { margin-top: 12px; align-self: flex-start; }
.mobile-nav.open { display: flex; }

/* ===== Page shells ===== */
.page { padding: 48px 0 96px; }
.page.is-compact { padding: 36px 0 80px; }
.page-intro { margin-bottom: 30px; }
.page-intro h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 8px; }
.page-intro p { font-size: 1rem; max-width: 60ch; margin: 0; }

/* ===== /repair: price list left, form right (session 23) =====
   The form is sticky beside the list on a wide screen, so what was picked
   stays in view while the visitor scrolls the prices. Below 900px it stacks
   UNDER the list: find the model, pick the prices, then fill in the form. */
.intake-intro { margin-bottom: 20px; }
/* Session 25: two equal columns — the list and the form carry the same weight. */
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.intake-prices { min-width: 0; }
.intake-form { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-slate); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 78% 30%, rgba(56,189,248,.14), transparent 70%),
    radial-gradient(40% 50% at 12% 80%, rgba(37,99,235,.18), transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 76px 24px 84px; }
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.015em; margin-bottom: 18px; }
.hero-sub { font-size: 1.1rem; max-width: 48ch; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; max-width: 460px; }
.hero-ctas .btn { flex: 1 1 auto; min-width: 190px; }
.hero-trust { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--text-muted); flex-wrap: wrap; }
.hero-trust svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
/* The icon+label pairs sit tighter than the default .row gap. Was an inline
   style="gap:6px" on the landing page (U2); it is a rule now. */
.hero-trust .row { gap: 6px; min-width: 0; }

.hero-visual { position: relative; min-height: 380px; }
.hero-card { position: relative; z-index: 1; background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 18px 20px; width: 260px; border: 1px solid var(--border); }
.hero-card .card-title { font-weight: 700; color: var(--text-main); margin: 8px 0 2px; font-size: .95rem; }
.hero-card .card-sub { font-size: .84rem; color: var(--text-faint); margin: 0; }
.hero-card.card-1 { margin-left: 10px; }
.hero-card.card-2 { margin-left: 150px; margin-top: -28px; }
.hero-card.card-3 { margin-left: 40px; margin-top: -22px; }
.hero-card .mini-track { display: flex; gap: 4px; margin-top: 10px; }
.hero-card .mini-track i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.hero-card .mini-track i.on { background: var(--cyan); }

/* Service pages (/repair, /modding) reuse the landing hero, minus the floating
   card stack: one column, capped so the sub-headline does not run edge to edge
   on a 1440 monitor. The landing hero is untouched. */
.hero-inner.is-single { grid-template-columns: 1fr; max-width: 860px; }
.hero-inner.is-single .hero-sub { max-width: 60ch; }
.hero-inner.is-single .hero-ctas { max-width: 520px; }

.feature-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-void); position: relative; }
.feature-strip-inner { display: flex; align-items: center; justify-content: center; gap: 36px; padding: 18px 24px; flex-wrap: wrap; row-gap: 12px; }
/* U4: the strip wraps between items but never inside one. Now that the
   warranty label is driven by the warrantyDays setting ("365 dagen garantie op
   elke klus" is a legal value), nowrap alone would push a horizontal scrollbar
   onto every page at 320px. Cap the width and let the longest item break. */
.feature-item { display: flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 600; color: var(--text-muted); white-space: normal; max-width: 100%; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.feature-item svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.is-void { background: var(--bg-void); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.02rem; margin: 0; }
.section-head.is-left { margin: 0 0 32px; text-align: left; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 26px; display: flex; flex-direction: column; gap: 6px; color: inherit; }
.service-card .pick-icon { width: 48px; height: 48px; border-radius: 12px; }
.service-card h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.service-card p { font-size: .9rem; margin: 0 0 10px; }
.service-card .service-from { font: 700 .86rem var(--font-head); color: var(--cyan); margin-top: auto; }
.service-card.is-cta { background: linear-gradient(135deg, var(--blue), #1b3fae); border-color: transparent; justify-content: center; }
.service-card.is-cta h3, .service-card.is-cta p { color: #fff; }
.service-card.is-cta p { opacity: .85; }
.service-card.is-cta .btn { align-self: flex-start; margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 8px; }
.step-num { font: 800 1rem/1 var(--font-head); color: var(--cyan); background: var(--cyan-dim); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split > * { min-width: 0; }

.cta-band { background: linear-gradient(135deg, var(--blue), #17245e); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.cta-band p { color: rgba(248,250,252,.82); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn { flex: 1 1 auto; min-width: 190px; }

.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; cursor: pointer; padding: 20px 4px; text-align: left; font: 700 1rem/1.4 var(--font-head); color: var(--text-main); }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cyan-dim); color: var(--cyan); font-size: 1.2rem; transition: transform var(--t-base); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease), padding var(--t-base); padding: 0 4px; }
.faq-answer p { font-size: .94rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 260px; padding-bottom: 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-void); color: var(--text-muted); padding: 56px 0 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-faint); font-size: .9rem; max-width: 34ch; }
.footer-col h4 { color: var(--text-main); font-size: .88rem; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: .9rem; padding: 5px 0; color: var(--text-muted); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: .82rem; color: var(--text-faint); gap: 12px; flex-wrap: wrap; }
/* S9: KvK + BTW belong in the footer of a Dutch webshop. Rendered from
   /api/settings by site-shell.js and hidden entirely while they are blank, so
   an unconfigured install shows nothing rather than an empty label. The
   separator is a middle dot between two spans, which wraps at 320px. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.footer-legal span { overflow-wrap: anywhere; }


/* ===== Auth (login) ===== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--bg-void); display: flex; flex-direction: column; justify-content: space-between; padding: 40px; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 30%, rgba(37,99,235,.25), transparent 70%); pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 18ch; }
.auth-side p { max-width: 42ch; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card > p { font-size: .9rem; margin-bottom: 24px; }
.auth-foot { text-align: center; font-size: .84rem; color: var(--text-faint); margin-top: 18px; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .hero-visual { min-height: 300px; }
  .split { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .intake-layout { grid-template-columns: 1fr; }
  .intake-form { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .service-grid, .steps, .footer-inner { grid-template-columns: 1fr; }
  .hero-card { width: 82%; }
  .hero-card.card-2 { margin-left: 18%; }
  .hero-card.card-3 { margin-left: 6%; }
  .hero-ctas .btn, .cta-actions .btn { width: 100%; flex-basis: 100%; }
  .page { padding: 32px 0 72px; }
  .intake-form { padding: 18px; }
}
