/*
Theme Name: Carigo
Theme URI: https://carigo.be
Author: Carigo
Description: Thème sur-mesure pour Carigo — centrale de rachat de véhicules en Belgique.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: carigo
*/

:root {
  --navy: #0D4F78;
  --navy-deep: #0A3D5F;
  --navy-text: #FFFFFF;
  --orange: #E87524;
  --orange-dark: #CF631B;
  --link-blue: #015F9B;
  --ink: #333333;
  --ink-dim: #6B7278;
  --white: #FFFFFF;
  --tint: #F1FAFF;
  --tint-2: #DEEEF4;
  --grey-bg: #F6F7F8;
  --footer-bg: #4A4A4A;
  --footer-text: #D8D8D8;
  --border: #E3E6EA;
  --green: #1E9E5A;

  --bg: var(--white);
  --bg-raised: var(--white);
  --text: var(--ink);
  --text-dim: var(--ink-dim);

  --font: "Open Sans", -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161D; --bg-raised: #182029; --grey-bg: #141B22; --tint: #122536; --tint-2: #17303F;
    --text: #E7EBEF; --text-dim: #9BA5AE; --border: #263140; --white: #182029;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.2; margin: 0; color: var(--navy); }
@media (prefers-color-scheme: dark) { h1, h2, h3 { color: #EAF3FA; } }
p { margin: 0; }
a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.u { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 52px 0; } .wrap { padding: 0 20px; } }
.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.tabular { font-variant-numeric: tabular-nums; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d,0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 640px) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; color: var(--navy); text-decoration: none; }
@media (prefers-color-scheme: dark) { .logo { color: #EAF3FA; } }
.logo .mark { width: 30px; height: 30px; border-radius: 7px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo .mark svg { width: 17px; height: 17px; }
.navlinks { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.navlinks a { color: var(--text); text-decoration: none; font-weight: 600; }
.navlinks a:hover { color: var(--navy); }
@media (max-width: 860px) { .navlinks { display: none; } }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.wa-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s ease, transform .15s ease; }
.wa-icon-btn svg { width: 19px; height: 19px; fill: #fff; }
.wa-icon-btn:hover { background: #1FBE5C; transform: translateY(-1px); }
@media (max-width: 560px) { .nav-cta > .btn { display: none; } }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-raised); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
@media (max-width: 860px) { .menu-btn { display: flex; } }
.menu-btn svg { width: 18px; height: 18px; color: var(--text); }
.mobile-panel { display: none; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-panel.open { display: block; }
.mobile-panel .wrap { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; padding-bottom: 20px; }
.mobile-panel a:not(.btn) { padding: 11px 4px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-panel .mobile-actions { display: none; }
@media (max-width: 560px) { .mobile-panel .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 4px; font-weight: 700; font-size: .96rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(232,117,36,.6); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .btn-outline { color: #EAF3FA; border-color: #EAF3FA; } }
.btn-outline:hover { background: var(--tint); }
.btn-onnavy { background: #fff; color: var(--navy); }
.btn-onnavy:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(0,0,0,.35); }
.btn-block { width: 100%; padding: 15px 22px; }
.btn-sm { padding: 9px 18px; font-size: .87rem; }

/* ---------- HERO ---------- */
.hero { padding: 60px 0 0; }
.hero-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.7rem); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-sub { margin-top: 16px; font-size: 1.08rem; color: var(--text-dim); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-sub a { font-weight: 600; }

.card-form { margin-top: 34px; text-align: left; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 36px; box-shadow: 0 20px 40px -24px rgba(13,79,120,.18); }
.field { margin-top: 0; }
.form-step > * + * { margin-top: 38px; }
@media (max-width: 480px) { .card-form { padding: 22px 18px; } .form-step > * + * { margin-top: 28px; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 10px; color: var(--text); }
.field-choice label { margin-bottom: 16px; }
.field-error { display: none; margin-top: 7px; font-size: .82rem; font-weight: 600; color: #C4392B; }
.field.invalid .field-error { display: block; }
.field.invalid select, .field.invalid input { border-color: #C4392B; }
.field.invalid .choice-pill { border-color: #E3A39C; }
.field select, .field input {
  width: 100%; height: 46px; padding: 0 40px 0 14px; border-radius: 5px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 16px; font-family: var(--font); line-height: 44px;
  box-sizing: border-box; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.field input { padding-right: 14px; }
.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7278' stroke-width='2.2'%3e%3cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.step-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.step-progress .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.step-progress .bar.done { background: var(--orange); }
.step-progress .label { font-size: .78rem; font-weight: 700; color: var(--text-dim); white-space: nowrap; margin-left: 4px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 12px; }
.choice-pill { padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-family: var(--font); font-size: .92rem; font-weight: 700; color: var(--text); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.choice-pill:hover { border-color: var(--navy); }
.choice-pill.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice-pill:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.step-actions-row { display: flex; gap: 12px; }
.step-actions-row .btn-primary { flex: 1; }
.step-actions-row .btn-outline { flex: 0 0 auto; }

.submit-error { display: none; margin-top: 14px; text-align: center; font-size: .85rem; font-weight: 600; color: #C4392B; }
.submit-error.show { display: block; }

.confirm-box { text-align: center; padding: 10px 0 6px; }
.confirm-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.confirm-box h3 { margin-top: 16px; font-size: 1.15rem; color: var(--navy); }
.confirm-box p { margin-top: 8px; color: var(--text-dim); font-size: .92rem; }

.hero-badge { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--text-dim); font-weight: 600; }
.hero-badge .stars { color: var(--orange); letter-spacing: 1px; }
.hero-badge strong { color: var(--text); }
.hero-badge .stat-num { font-size: inherit; font-weight: 700; color: var(--text); }

.hero-row { margin-top: 34px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: stretch; text-align: left; }
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; } }
.hero-row .card-form { margin-top: 0; }

.wa-card { background: var(--navy); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; color: #fff; }
.wa-card .wa-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-card .wa-ic svg { width: 22px; height: 22px; fill: #fff; }
.wa-card h3 { color: #fff; font-size: 1.15rem; margin-top: 16px; }
.wa-card p.lead { color: #CFE1EC; font-size: .9rem; margin-top: 8px; }
.wa-card .wa-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.wa-card .wa-points li { display: flex; gap: 10px; font-size: .89rem; color: #E7F0F6; align-items: flex-start; }
.wa-card .wa-points svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.wa-card .btn { margin-top: 22px; }
.wa-card .phone-line { margin-top: 14px; text-align: center; font-size: .85rem; }
.wa-card .phone-line a { color: #CFE1EC; }

/* ---------- STEPS / NAVY EXPLAINER ---------- */
.navy-sec { background: var(--navy); color: var(--navy-text); }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }
.navy-sec h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.navy-sec .kicker { font-weight: 700; opacity: .85; margin-bottom: 6px; display: block; }
.step { display: flex; gap: 16px; margin-top: 26px; }
.step:first-child { margin-top: 30px; }
.step .num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .92rem; }
.step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.step p { color: #D8E6EF; font-size: .95rem; }
.navy-sec .step-actions { margin-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.navy-sec .step-actions a.link-on-navy { color: #fff; font-weight: 600; }

.phone { position: relative; max-width: 300px; margin: 0 auto; }
.phone-frame { background: #1B1B1B; border-radius: 34px; padding: 10px; box-shadow: 0 40px 70px -20px rgba(0,0,0,.5); }
.phone-screen { background: var(--white); border-radius: 24px; overflow: hidden; min-height: 460px; display: flex; flex-direction: column; }
.phone-head { background: var(--navy-deep); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.phone-head .av { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .75rem; flex-shrink: 0; }
.phone-head .who { font-size: .85rem; font-weight: 700; }
.phone-head .status { font-size: .68rem; opacity: .8; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; background: var(--grey-bg); }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: .82rem; line-height: 1.4; color: var(--ink); }
.msg.out { align-self: flex-end; background: var(--tint-2); border-bottom-right-radius: 3px; }
.msg.in { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg.offer { align-self: flex-start; background: #fff; border: 1.5px solid var(--orange); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.msg.offer .tag { align-self: flex-start; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.msg.offer .price { font-weight: 800; font-size: 1.1rem; color: var(--navy); }

/* ---------- TESTIMONIALS ---------- */
.rating-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: .95rem; color: var(--text-dim); }
.rating-line .stars { color: var(--orange); letter-spacing: 1px; }
.rating-line strong { color: var(--text); font-size: 1.15rem; }
.tgrid { margin-top: 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 880px) { .tgrid { grid-template-columns: 1fr; } }
.tcard { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.tcard .stars { color: var(--orange); font-size: .85rem; letter-spacing: 1px; }
.tcard p { margin-top: 12px; font-size: .95rem; color: var(--text); }
.tcard .who { margin-top: 14px; font-size: .82rem; color: var(--text-dim); font-weight: 700; }

/* ---------- USPS GRID ---------- */
.usp-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .usp-grid { grid-template-columns: 1fr; } }
.usp-card { border: 1px solid var(--border); border-radius: 6px; padding: 24px; display: flex; gap: 16px; }
.usp-card .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.usp-card svg { width: 22px; height: 22px; color: var(--navy); }
.usp-card h4 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.usp-card p { font-size: .9rem; color: var(--text-dim); }

/* ---------- STATS ---------- */
.stats-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; text-align: center; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; gap: 34px; } }
.stat-num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: #fff; }
.stat-cap { margin-top: 8px; color: #CFE1EC; font-size: .95rem; }

/* ---------- COVERAGE ---------- */
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-grid h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.coverage-grid p { margin-top: 14px; color: var(--text-dim); }
.coverage-grid .btn { margin-top: 22px; }
.map-card { background: var(--tint); border-radius: 10px; padding: 30px; display: flex; align-items: center; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--grey-bg); }
.faq-list { margin-top: 36px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--border); display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open { grid-template-rows: auto 1fr; }
.faq-q { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 700; font-size: .98rem; color: var(--text); }
.faq-q .chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--navy); transition: transform .3s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a-wrap { overflow: hidden; }
.faq-a { padding-bottom: 18px; color: var(--text-dim); font-size: .92rem; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta-sec { text-align: center; }
.cta-sec h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.cta-sec .btn { margin-top: 20px; }

/* ---------- WHATSAPP FAB ---------- */
.wa-fab { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(232,117,36,.55); border: none; cursor: pointer; text-decoration: none; }
.wa-fab svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- FOOTER ---------- */
footer { background: var(--footer-bg); color: var(--footer-text); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
footer .logo { color: #fff; }
footer .logo .mark { background: var(--orange); }
footer p.desc { margin-top: 12px; font-size: .9rem; max-width: 32ch; color: #C7C7C7; }
footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #A6A6A6; margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
footer a { color: #D8D8D8; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid #5C5C5C; padding: 20px 0; font-size: .82rem; color: #A6A6A6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

::selection { background: var(--orange); color: #fff; }
