/* ============================================================
   KVOUTS — homepage (cbh-*). Brand: Kvouts brand.pdf.
   Hero follows the approved mockup: navy→lavender gradient,
   centered H1 "From quote to shipment", dark "Ship now" pill,
   booking form card on the light tail of the gradient.
   ============================================================ */
.cbh { color: var(--kv-navy); overflow-x: clip; }
.cbh * { box-sizing: border-box; }
.cbh h1, .cbh h2, .cbh h3 { font-family: var(--font-heading); color: var(--kv-navy); margin: 0; }
.cbh h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.6px; }
.cbh p { line-height: 1.65; }
.cbh section { max-width: min(1720px, calc(100vw - 40px)); margin: 26px auto; padding: 64px 48px; border-radius: 24px; }
@media (max-width: 767px) { .cbh section { padding: 40px 20px; border-radius: 18px; margin: 16px auto; width: calc(100% - 16px); } }

.cbh-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-bottom: 14px; }
.cbh-muted { opacity: 0.72; margin-top: 6px; }

/* buttons */
.cbh-btn { display: inline-block; border-radius: 999px; padding: 15px 32px; font-family: var(--font-heading); font-weight: 700; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; margin-top: 22px; }
.cbh-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 11, 54, 0.25); }
.cbh-btn-red { background: var(--color-accent); color: #fff !important; }
.cbh-btn-red:hover { background: var(--color-accent-600); }
.cbh-btn-dark { background: var(--kv-ship); color: #fff !important; }
.cbh-btn-light { background: #fff; color: var(--kv-navy) !important; }
.cbh-btn-xl { padding: 19px 44px; font-size: 18px; }
.cbh-btn-ship { background: var(--kv-ship); color: #fff !important; padding: 17px 46px; font-size: 17px; box-shadow: 0 12px 32px rgba(13, 11, 54, 0.35); }

/* ---------- HERO (mockup: gradient, centered) ---------- */
.cbh section.cbh-hero { max-width: min(1856px, calc(100% - 64px)); background: var(--kv-grad-hero); position: relative; isolation: isolate; padding: 170px 56px 72px; border-radius: 28px; overflow: clip; }
/* desktop: the ribbon sits in normal flow directly above the hero, so the two
   read as one fused block and scroll away together */
@media (min-width: 1025px) {
  body.home #page { margin-top: 0 !important; }
  body.home .cbh-hero {
    margin-top: 0 !important;   /* flush under the ribbon (fused block) */
    padding-top: 96px;
    border-radius: 0 0 28px 28px;
    min-height: calc(100vh - 130px);   /* fill the viewport below the header ribbon (ribbon ≈ 12px margin + 118px) */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.cbh-hero::before { content: none; }
.cbh-hero-head { text-align: center; color: #fff; max-width: 940px; margin: 0 auto; }
.cbh-hero h1 { color: #fff; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -1.8px; }
.cbh-sub { color: rgba(255, 255, 255, 0.92); font-size: 18px; line-height: 1.75; max-width: 780px; margin: 22px auto 8px; }
.cbh-sub strong { color: #fff; }

/* form card + trust column on the light gradient tail */
/* single-column: the quote form spans the full width (no side stats column) */
.cbh-hero-in { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; max-width: 1180px; margin: 128px auto 0; }
.cbh-form-card { background: #fff; border-radius: 22px; padding: 46px 28px 28px; box-shadow: 0 30px 70px rgba(13, 11, 54, 0.28); }
.cbh-form-card .kv-qtitle { color: var(--kv-navy); font-weight: 500 !important; margin-bottom: 48px; margin-left: 9px; }
.cbh-form-card .kv-qsub { color: var(--color-neutral-600); }
.cbh-disclaimer { color: rgba(255, 255, 255, 0.6); font-size: 12.5px; max-width: 620px; margin-top: 16px; }
.cbh-hero-right { display: flex; flex-direction: column; gap: 16px; }
.cbh-trust-card { background: #fff; border-radius: 18px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 18px 44px rgba(13, 11, 54, 0.18); }
.cbh-trust-card a { display: flex; align-items: center; gap: 10px; }
.cbh-stats { display: grid; gap: 12px; }
.cbh-stat { background: #fff; border-radius: 16px; padding: 16px 20px; color: var(--kv-navy); display: flex; align-items: baseline; gap: 14px; box-shadow: 0 12px 30px rgba(13, 11, 54, 0.12); }
.cbh-stat strong { font-family: var(--font-heading); font-weight: 800; font-size: 32px; color: var(--color-accent); }
.cbh-stat span { opacity: 0.75; font-size: 14px; line-height: 1.4; }
@media (max-width: 1024px) { .cbh-hero-in { grid-template-columns: 1fr; } .cbh-hero { padding: 130px 24px 48px; } }

/* booking form on white card: recolor the original #mx layer */
#mx { --cargoboard-color-red: var(--color-accent); --cargoboard-color-red-hover: var(--color-accent-600); }
#mx .cbh-form-card .booking-form { margin: 14px 0 0; min-height: 0 !important; }
#mx .cbh-form-card .form-fields-wrapper { background: transparent !important; border: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-radius: 14px; padding: 0; min-height: 0 !important; align-items: center !important; }
/* legacy wrapper is min-height:70px; inputs are fixed 52px and top-align inside it (button
   stretches to 70 -> juts below the bars; floating label centres in 70 -> sits low). Pin
   everything to 52px so bars + button line up and the label text is vertically centred. */
#mx .cbh-form-card .input-wrapper { min-height: 0 !important; }
#mx .cbh-form-card .floating-label { min-height: 0 !important; height: 52px !important; }
#mx .cbh-form-card .submit-button { height: 52px !important; min-height: 52px !important; }
#mx .cbh-form-card .form-input { border: 1px solid var(--color-neutral-400) !important; background: var(--color-neutral-300) !important; font-family: var(--font-body); }
/* darker grey search bars — out-specify the legacy booking-form !important rules (incl. the filled/:not(:placeholder-shown) state) */
#mx .cbh-form-card .booking-form .form-input.autocomplete-input,
#mx .cbh-form-card .booking-form .form-input.autocomplete-input:not(:placeholder-shown) { background-color: var(--color-neutral-300) !important; border-color: var(--color-neutral-400) !important; }
#mx .cbh-form-card .floating-label { font-family: var(--font-body); }
#mx .cbh-form-card .submit-button { font-family: var(--font-heading); border-radius: 999px; }
#mx .cbh-form-card .info-text p { color: var(--color-neutral-600); font-family: var(--font-body); font-style: normal; }

/* ---------- LOGOS ---------- */
.cbh-logos { background: #fff; box-shadow: var(--shadow-md); padding: 40px 0 30px; }
.cbh-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cbh-marquee-track { display: flex; gap: 72px; align-items: center; width: max-content; padding: 0 36px; animation: cbh-scroll 28s linear infinite; }
.cbh-marquee-track img { height: 34px; width: auto; opacity: 0.75; }
@keyframes cbh-scroll { to { transform: translateX(-50%); } }
.cbh-trust-line { text-align: center; margin: 28px 24px 0; opacity: 0.9; }
.cbh-trust-line span { display: inline-block; background: var(--color-accent-100); color: var(--color-accent-800); border-radius: 999px; padding: 5px 14px; margin: 4px 3px; font-size: 13.5px; }

/* ---------- SPLITS ---------- */
.cbh-split { background: #fff; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cbh-split-rev { direction: rtl; }
.cbh-split-rev > * { direction: ltr; }
.cbh-split-txt p { margin: 16px 0 0; }
.cbh-split-media img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(13, 11, 54, 0.16); }
.cbh-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.cbh-checks li { padding-left: 34px; position: relative; line-height: 1.5; }
.cbh-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent-100); }
.cbh-checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 10px; height: 6px; border-left: 2.4px solid var(--color-accent); border-bottom: 2.4px solid var(--color-accent); transform: rotate(-45deg); }
.cbh-checks-light li { color: rgba(255, 255, 255, 0.88); }
.cbh-checks-light li::before { background: rgba(93, 241, 194, 0.16); }
.cbh-checks-light li::after { border-color: var(--kv-mint); }
@media (max-width: 1024px) { .cbh-split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- SERVICES BENTO ---------- */
.cbh-services { background: var(--color-surface); }
.cbh-services h2 { margin-bottom: 34px; }
.cbh-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.cbh .cbh-card { grid-column: span 4; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--kv-navy); display: flex; flex-direction: column; box-shadow: 0 12px 34px rgba(13, 11, 54, 0.08); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.cbh-card:hover { transform: translateY(-8px); box-shadow: 0 26px 56px rgba(13, 11, 54, 0.15); }
.cbh-card-wide { grid-column: span 4; }
.cbh-card-img { width: 100%; height: 190px; object-fit: cover; }
.cbh-card-body { padding: 22px 24px 26px; position: relative; }
.cbh-chip { width: 56px; height: 56px; position: absolute; top: -28px; right: 20px; background: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(13, 11, 54, 0.12); padding: 5px; }
.cbh-tag { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.cbh-card h3 { font-size: 23px; margin-bottom: 8px; }
.cbh-card p { margin: 0 0 6px; opacity: 0.8; }
.cbh-more { font-weight: 700; color: var(--color-accent); text-decoration: none; }
@media (max-width: 1024px) { .cbh-card, .cbh-card-wide { grid-column: span 12; } }

/* ---------- DARK / VIDEO ---------- */
.cbh-dark { background: var(--kv-deep); color: #fff; }
.cbh-dark h2 { color: #fff; }
.cbh-dark-in { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.cbh-dark-txt p { color: rgba(255, 255, 255, 0.82); margin: 16px 0 0; }
.cbh-dark-media video { width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); display: block; }
.cbh a.cbh-yt { display: inline-block; margin-top: 14px; color: var(--kv-lavender); text-decoration: none; font-weight: 600; }
@media (max-width: 1024px) { .cbh-dark-in { grid-template-columns: 1fr; } }

/* ---------- BENEFITS ---------- */
.cbh-benefits { background: #fff; box-shadow: var(--shadow-md); text-align: center; }
.cbh-benefits h2 { margin-bottom: 40px; }
.cbh-benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cbh-benefit { padding: 26px 14px; border-radius: 18px; background: var(--color-bg); transition: transform 0.2s ease; }
.cbh-benefit:hover { transform: translateY(-6px); }
.cbh-benefit img { width: 88px; height: 88px; display: block; margin: 0 auto; }
.cbh-benefit h3 { font-size: 17.5px; margin: 12px 0 8px; }
.cbh-benefit p { font-size: 14px; opacity: 0.75; margin: 0; }
@media (max-width: 1024px) { .cbh-benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cbh-benefit-grid { grid-template-columns: 1fr; } }

/* ---------- USE CASES ---------- */
.cbh-usecases { background: #fff; }
.cbh-usecases-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cbh-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; padding: 26px 4px 10px; scroll-snap-type: x mandatory; }
.cbh-uc { scroll-snap-align: start; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 10px 28px rgba(13, 11, 54, 0.08); transition: transform 0.2s ease; }
.cbh-uc:hover { transform: translateY(-6px); }
.cbh-uc img { width: 100%; height: 150px; object-fit: contain; padding: 22px; display: block; }
.cbh .cbh-uc span { display: block; padding: 14px 18px; font-weight: 700; color: var(--kv-navy); }

/* ---------- CARGOLINE (brand gradient statement) ---------- */
.cbh-cargoline { background: var(--kv-grad-hero); color: #fff; }
.cbh-cargoline h2 { color: #fff; max-width: 820px; }
.cbh-cargoline-in { max-width: 900px; }
.cbh-cargoline p { color: rgba(255, 255, 255, 0.92); margin: 18px 0 0; }

/* ---------- LOCATIONS ---------- */
.cbh-locations { background: #fff; box-shadow: var(--shadow-md); }
.cbh-loc-group { margin-top: 30px; }
.cbh-loc-group h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 14px; }
.cbh-loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cbh-loc { position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; isolation: isolate; }
.cbh-loc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.35s ease; }
.cbh-loc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(13, 11, 54, 0.85)); }
.cbh-loc:hover img { transform: scale(1.07); }
.cbh .cbh-loc em { font-style: normal; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; color: #fff; }
.cbh .cbh-loc span { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: #fff; }
@media (max-width: 1024px) { .cbh-loc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- STEPS ---------- */
.cbh-steps { background: var(--color-surface); }
.cbh-steps h2 { text-align: center; margin-bottom: 44px; }
.cbh-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; position: relative; }
.cbh-timeline::before { content: none; }
.cbh-timeline li { background: #fff; border-radius: 18px; padding: 40px 26px 30px; text-align: center; position: relative; box-shadow: 0 12px 34px rgba(13, 11, 54, 0.08); }
.cbh-step-no { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--kv-navy); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 24px; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(13, 11, 54, 0.25); }
.cbh-timeline img { width: 150px; height: 150px; object-fit: contain; }
.cbh-timeline h3 { font-size: 20px; margin: 14px 0 8px; }
.cbh-timeline p { margin: 0; opacity: 0.78; font-size: 15px; }
@media (max-width: 1024px) { .cbh-timeline { grid-template-columns: 1fr; gap: 44px; } .cbh-timeline::before { display: none; } }

/* ---------- REVIEWS ---------- */
.cbh-reviews { background: #fff; box-shadow: var(--shadow-md); }
.cbh-reviews h2 { margin-bottom: 34px; }
.cbh-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cbh-review { margin: 0; background: var(--color-bg); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.cbh-review blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; }
.cbh-review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.cbh-review figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.cbh-review figcaption strong { display: block; }
.cbh-review figcaption span { font-size: 13.5px; opacity: 0.75; line-height: 1.45; }
@media (max-width: 1024px) { .cbh-review-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cbh-cta { background: var(--kv-deep); color: #fff; text-align: center; padding: 84px 32px; position: relative; isolation: isolate; overflow: clip; }
.cbh-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(88, 101, 241, 0.45), transparent 70%); }
.cbh-cta h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); }
.cbh-cta .cbh-eyebrow { color: var(--kv-lime); }
.cbh-cta p { color: rgba(255, 255, 255, 0.8); }

/* keep the homepage location input fully rounded + brand-focused while the menu is open
   (the dropdown list itself is styled globally in redesign.css — it portals to <body>) */
#mx .cbh-form-card .autocomplete-input[aria-expanded="true"] {
  border-radius: 12px !important;
  border-color: #5865f1 !important;
  box-shadow: 0 0 0 4px rgba(88, 101, 241, 0.15) !important;
}
