/* EXMULI v4: conversion + motion layer (loads after styles/responsive/animations) */
@view-transition { navigation: auto; }
h1, h2 { text-wrap: balance; }
h1 { letter-spacing: -.025em; }
.lead, .faq details p { text-wrap: pretty; }

/* Hero: quick-quote card */
.hero--video .hero-copy { padding-bottom: 1rem; }
.hero--video .hero-grid { gap: 1.75rem; }
.qq { background: rgba(7,18,42,.74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2); border-top: 4px solid var(--orange); border-radius: var(--radius-lg);
  padding: 1.25rem; color: #fff; margin-bottom: 2.5rem; box-shadow: 0 24px 60px rgba(0,0,0,.4);
  animation: hero-rise .8s .35s var(--ease) both; }
.qq h2 { color: #fff; font-size: 1.35rem; margin-bottom: .25rem; }
.qq > p { color: #c9d1dc; font-size: .92rem; margin-bottom: .75rem; }
.qq label { color: #fff; font-size: .85rem; }
.qq .form-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
.qq .field--full { grid-column: 1 / -1; }
.qq .btn { width: 100%; margin-top: .9rem; }
.qq-alt { text-align: center; font-size: .85rem; color: #aeb8c8; margin: .75rem 0 0; }
.qq-alt a { color: #ff9aa2; font-weight: 700; }
.route { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; margin: .5rem 0 1rem; color: #e6ebf3; }
.route-line { position: relative; flex: 1; border-top: 3px dashed rgba(255,255,255,.35); }
.route-dot { position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 5px rgba(214,40,57,.3); animation: drive 5s var(--ease) infinite alternate; }
@keyframes drive { to { left: calc(100% - 15px); } }
@media (min-width: 900px) {
  .hero--video .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 3rem; }
  .qq { margin-bottom: 4rem; }
}

/* Trust strip (extra items appear only when set in config.js) */
.trust { background: var(--navy-900); color: #e6ebf3; border-bottom: 1px solid rgba(255,255,255,.1); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem 1.5rem; padding-block: 1.1rem; }
.trust li { display: flex; gap: .65rem; align-items: center; font-weight: 700; font-size: .95rem; }
.trust li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); flex: none; }

/* Process: steps light up as they enter view */
.js .steps li::before { background: var(--gray-300); transition: background .5s, transform .5s var(--ease); }
.js .steps li.is-on::before { background: var(--orange); transform: scale(1.12); }
.js .steps li.is-on { border-color: var(--orange); }

/* Buttons: light sweep on primary */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn--primary:hover::after { left: 130%; }

/* Quote assistant */
.asst-fab { position: fixed; left: 1rem; bottom: 5.25rem; z-index: 92; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px;
  padding: .6rem 1.1rem; border: 0; border-radius: 99px; background: var(--orange); color: var(--navy-900); font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.asst-fab:hover { transform: translateY(-2px); }
.asst-fab svg { width: 22px; height: 22px; }
.asst { position: fixed; z-index: 120; left: .5rem; right: .5rem; bottom: .5rem; max-height: min(78vh, 600px); display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(7,18,42,.45); overflow: hidden; animation: pop-in .25s var(--ease) both; }
.asst[hidden] { display: none; }
.asst-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--navy-900); color: #fff; padding: .85rem 1rem; border-bottom: 3px solid var(--orange); }
.asst-head strong { display: block; } .asst-head small { color: #aeb8c8; }
.asst-x { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 1.2rem; }
.asst-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--gray-50); }
.msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.45; animation: hero-rise .3s var(--ease) both; }
.msg--bot { background: #fff; border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--navy-800); color: #fff; border-bottom-right-radius: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts .chip, .opts .btn { color: var(--navy-800); background: #fff; border: 2px solid var(--navy-800); }
.opts .chip:hover { background: var(--orange); border-color: var(--orange); }
.opts .btn--primary { background: var(--orange); border-color: var(--orange); }
.opts .btn--wa { background: #25d366; border-color: #25d366; }
.asst-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--gray-200); background: #fff; }
.asst-form input { flex: 1; min-width: 0; min-height: 48px; padding: .5rem .8rem; border: 2px solid var(--gray-300); border-radius: var(--radius); }
.asst-form[hidden] { display: none; }
@media (min-width: 760px) { .asst { left: 1.5rem; right: auto; bottom: 1.5rem; width: 380px; } }
@media (min-width: 1024px) { .asst-fab { left: 1.5rem; bottom: 1.5rem; } }
@media print { .asst-fab, .asst { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .route-dot { animation: none; left: 50%; } .btn--primary::after { display: none; } @view-transition { navigation: none; } }

/* Hero tuning: card above the fold, no duplicate cargo picker */
.hero .cargo-picker { display: none !important; }
.hero--video h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); }
.hero--video .hero-copy > p:not(.eyebrow):not(.lead):not(.hero-note) { font-size: .98rem; max-width: 52ch; }
@media (min-width: 900px) {
  .hero--video { min-height: 600px; }
  .hero--video .hero-grid { align-items: center; padding-block: 1.5rem 3rem; }
  .qq { margin-bottom: 0; }
}
.asst-fab[data-late] { opacity: 0; pointer-events: none; transform: translateY(12px); }
.qq input, .qq select { color: var(--ink); }
@media (max-width: 899px) { /* mobile: card first, sticky bar already has Quote / Call / WhatsApp */
  .hero--video .hero-copy > p:not(.eyebrow):not(.lead), .hero--video .hero-copy .btn-row { display: none; }
  .hero--video { min-height: 0; }
  .hero--video .hero-copy { padding-bottom: 0; }
}

/* Fit section, quote progress, header phone */
.fit h3 { margin-bottom: .5rem; }
.fit--yes { border-top: 4px solid var(--success); }
.fit--no { border-top: 4px solid var(--orange); }
.fit--no .check-list li::before { background: var(--orange-text); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v10h-2zM11 17h2v3h-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v10h-2zM11 17h2v3h-2z'/%3E%3C/svg%3E"); }
.need-title { margin-top: 2rem; }
.qprog { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; background: var(--white); padding: .6rem 0 .5rem; margin-bottom: 1rem; }
.qprog p { margin: 0 0 .35rem; font-size: .88rem; font-weight: 700; color: var(--navy-800); }
.qprog-bar { height: 8px; border-radius: 99px; background: var(--gray-200); overflow: hidden; }
.qprog-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s var(--ease); }
.nav-phone { display: none; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--orange); }
@media (min-width: 1100px) { .nav-phone:not([hidden]) { display: inline-block; } }

/* v4.2: display type, photo slots, gallery, unified contact dial */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-700.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-600.woff") format("woff"); }
:root { --font-display: "Barlow Condensed", "Oswald", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif; }
h1, h2, .qq h2, .brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; }
.hero--video h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); min-height: 190px; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #e9edf3 0 14px, #dfe5ee 14px 28px); color: #5b6b82; text-align: center; font-weight: 700; font-size: .9rem; }
.ph::before { content: attr(data-label); padding: 3.2rem .75rem 0; background: no-repeat center top .6rem / 34px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='1.8'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.ph.has-photo::before { display: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph.has-photo:hover img { transform: scale(1.05); }
.ph--card { margin: -1.5rem -1.5rem 1rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 170px; aspect-ratio: 16 / 9; }
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.gallery .ph { min-height: 220px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery .ph--wide { grid-column: span 2; } .gallery .ph { min-height: 260px; } }
.wa-fab { display: none !important; }
.dial { position: fixed; left: 1rem; bottom: 9.5rem; z-index: 93; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; animation: hero-rise .25s var(--ease) both; }
.dial[hidden] { display: none; }
.dial .btn { box-shadow: 0 6px 18px rgba(0,0,0,.28); background-clip: padding-box; }
.dial .btn--outline { background: #fff; color: var(--navy-800); }
.asst-fab[data-late] { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 1024px) { .dial { left: 1.5rem; bottom: 5.5rem; } }

/* Brand logo (full-color on a white plate so it reads on the dark header) */
.brand img, .footer-brand img { width: auto; height: 52px; background: #fff; padding: 3px 10px; border-radius: 8px; }
.footer-brand img { height: 64px; }
.nav a, .nav-phone, .btn, .eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; }
.nav a, .btn { font-size: 1.08em; }
/* v4.3 size tuning for condensed type and logo */
.brand img { height: 62px; padding: 2px 8px; }
.footer-brand img { height: 120px; padding: 6px 14px; }
.nav a, .nav-phone { font-size: 1.2rem; }
.btn { font-size: 1.15rem; }
.btn--sm { font-size: 1.1rem; }
.eyebrow { font-size: .95rem; letter-spacing: .12em; }
.qq label { font-size: 1rem; }
.qq > p { font-size: 1rem; }
.qq h2 { font-size: 1.7rem; }
:root { --header-h: 84px; }
@media (max-width: 899px) { .brand img { height: 52px; } }

/* ===== v4.4 Brand refresh: palette from the logo (royal navy, flag red, white) ===== */
:root { --navy-900: #0a1445; --navy-800: #0f1d5c; --navy-700: #16287a; --navy-600: #2a3f9a;
  --orange: #d62839; --orange-hover: #e8414f; --orange-text: #b01624; --red-on-dark: #ff6b77; }
.btn--primary, .btn--primary:hover, .asst-fab { color: #fff; }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(214,40,57,.4); }
.opts .chip:hover { color: #fff; }
.hero h1 .accent, .hero .eyebrow, .qq-alt a { color: var(--red-on-dark); }
.hero .eyebrow::before, .hero .eyebrow::after { background: var(--red-on-dark); }
/* Light header so the full-color logo reads without a plate */
.site-header { background: #fff; border-bottom: 0; box-shadow: 0 2px 14px rgba(10,20,69,.12); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--navy-800) 0 38%, #fff 38% 42%, var(--orange) 42% 100%); }
.site-header { position: sticky; }
.nav a { color: var(--navy-800); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-text); }
.nav-phone { color: var(--navy-800); }
.nav-toggle { color: var(--navy-800); border-color: var(--navy-800); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: var(--navy-800); }
.brand img { background: none; padding: 0; border-radius: 0; height: 58px; width: auto; }
.footer-brand img { background: none; padding: 0; height: 110px; }
@media (max-width: 899px) { .brand img { height: 48px; } }
.hero--video { background-color: var(--navy-900); }
.site-header .nav a:not(.btn) { color: var(--navy-800) !important; opacity: 1 !important; }
.site-header .nav a:not(.btn):hover, .site-header .nav a[aria-current="page"] { color: var(--orange-text) !important; }
.site-header::after { background: linear-gradient(90deg, var(--navy-800) 0 50%, var(--orange) 50% 100%); }
@media (max-width: 899px) { .asst-fab[data-late] { opacity: 0; pointer-events: none; transform: translateY(12px); } }
.site-footer { background: var(--navy-900); border-top: 4px solid var(--orange); }

/* ===== v4.5 UX: wizard, tap targets, compact mobile contact button ===== */
fieldset[hidden] { display: none !important; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions [hidden] { display: none !important; }
.form-actions .btn { min-height: 52px; }
.site-footer a { display: inline-block; padding-block: .5rem; }
.breadcrumb a, .breadcrumbs a, nav[aria-label="Breadcrumb"] a { display: inline-block; padding: .65rem .25rem; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; }
a[href^="mailto:"]:not(.btn), a[href^="tel:"]:not(.btn):not(.nav-phone) { display: inline-block; padding-block: .5rem; }
.service-tabs a, .chips a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 759px) {
  .asst-fab { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; font-size: 0; gap: 0; right: auto; }
  .asst-fab svg { width: 26px; height: 26px; }
  .dial { bottom: 9.25rem; }
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.hero :focus-visible, .qq :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
@media (max-width: 759px) { .form-actions .btn { flex: 1 1 100%; } .step-nav { display: flex; } }

/* ===== v4.6 Palette refinement: navy base, flag red for actions only, brass gold for detail ===== */
:root { --gold: #c9a24a; --gold-soft: #e6cf94; --paper: #eef2fa; --royal: #1c3fa3; }
::selection { background: var(--navy-700); color: #fff; }
input, select, textarea { accent-color: var(--orange); }
.section--alt { background: var(--paper); }
.section--dark { background: radial-gradient(900px 420px at 85% 0%, rgba(42,63,154,.55), transparent 70%), var(--navy-900); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .eyebrow::before { background: var(--gold); }
/* desktop nav: the header is white, so links must be navy (mobile panel stays dark) */
@media (min-width: 1024px) {
  .primary-nav li a:not(.btn) { color: var(--navy-800); }
  .primary-nav li a:not(.btn):hover, .primary-nav li a[aria-current="page"] { color: var(--orange-text); }
  .primary-nav li a:not(.btn)::after { background: var(--orange); }
}
/* gold details */
.trust li::before { background: var(--gold); }
.icon-badge { color: var(--gold); }
.icon-badge svg { color: var(--gold); }
.marquee { background: var(--navy-700); color: #fff; border-block: 3px solid var(--gold); }
/* interaction polish */
.card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-600); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(42,63,154,.22); outline: none; }
.btn--outline { border-color: var(--navy-800); }
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); border-left: 6px solid var(--orange); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.section--dark a.btn, .section--dark a.btn:hover { color: #fff; }
.section--dark a.btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }
@media (min-width: 1024px) { /* desktop: contact button on the right, above back-to-top, clear of the content column */
  .asst-fab { left: auto; right: 1.5rem; bottom: 5.5rem; }
  .dial { left: auto; right: 1.5rem; bottom: 9.5rem; align-items: flex-end; }
  .asst { left: auto; right: 1.5rem; bottom: 1.5rem; }
}

/* ===== v5 Mobile polish + real photos ===== */
.hero-img, video.hero-video, img.hero-video { display: block; }
@media (max-width: 899px) {
  /* Hero: real photo as a clear band under the header, text and quote card below on navy */
  .hero--video { display: flex; flex-direction: column; isolation: auto; }
  video.hero-video, img.hero-video { position: relative; inset: auto; width: 100%; height: clamp(190px, 52vw, 320px); object-fit: cover; object-position: 38% 60%; z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hero--video .hero-shade { display: none; }
  .hero--video .hero-grid { padding-top: .25rem; padding-bottom: 1.5rem; }
  .qq { margin-bottom: 0; }
  /* Sticky action bar: compact, one line per button */
  .mobile-cta { gap: .4rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); }
  .mobile-cta .btn { min-height: 44px; padding: .45rem .3rem; font-size: .95rem; white-space: nowrap; letter-spacing: 0; }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 1rem; }
  /* Floating contact button: right side, above the bar; back-to-top stacks above it */
  .asst-fab { left: auto !important; right: .9rem; bottom: calc(4.9rem + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .dial { left: auto; right: .9rem; bottom: calc(8.2rem + env(safe-area-inset-bottom)); align-items: flex-end; }
  .back-to-top { right: .9rem; bottom: calc(8.2rem + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}
@media (min-width: 900px) {
  video.hero-video, img.hero-video { object-position: 60% 55%; }
}
/* Photos: consistent framing everywhere */
.ph--card img, .gallery-item img, .media-frame img { object-fit: cover; }
.media-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.gallery-item { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { height: 100%; }
/* Services page: photo on top of each card, aligned heights */
.service-card .ph--card { flex: none; }
@media (max-width: 480px) { .container { width: min(100% - 2rem, var(--max)); } }
@media (max-width: 899px) { .hero.hero--video { padding-top: 0; min-height: 0; } }
@media (max-width: 899px) { .footer-bottom { padding-right: 4.25rem; padding-bottom: 2.5rem; } }
/* Gallery: 2 columns on phones, 3 on larger screens; no marquee/filters */
.gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.gallery-item { aspect-ratio: 4 / 3; }
.gallery-item .cap { font-size: .8rem; padding: 1.6rem .6rem .55rem; line-height: 1.2; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } .gallery-item .cap { font-size: .95rem; padding: 2rem 1rem .8rem; } }
