/* Rafila Transport. White first, Royal Blue as the accent, Night Ink text, Regal Purple only as the logo's road line.
   Built on the Sixagentic kit's layout (header, main, footer). Light only, by the owner's brief (22 Nov 2026). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --blue: #2341C4;
  --blue-deep: #1A33A0;
  --purple: #4D2A92;
  --ink: #14132B;
  --ink-2: #45465E;
  --mist: #F4F3FA;
  --line: #E5E5EF;
  --white: #FFFFFF;

  --c-paper: var(--white);
  --c-ink: var(--ink);
  --c-muted: var(--ink-2);
  --c-accent: var(--blue);
  --c-on-accent: var(--white);
  --c-radius: 14px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
  color-scheme: light;

  --page: 76rem;
  --measure: 40rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
  --shadow: 0 1px 2px rgba(20, 19, 43, 0.06), 0 12px 32px -12px rgba(20, 19, 43, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body);
  font-size: 1.0625rem; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
[id] { scroll-margin-top: 5.5rem; }
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(35, 65, 196, 0.16); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.prose { max-width: var(--measure); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--blue); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 0.75rem; }

/* Type */
h1, h2, h3, .display { font-family: var(--font-display); font-stretch: 87.5%; font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.75rem, 7.2vw, 5.75rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: 0; }
p { margin: 0 0 var(--space-2); }
.eyebrow { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 var(--space-2); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.small { font-size: 0.9375rem; color: var(--ink-2); }
.accent { color: var(--blue); }
.road { display: block; width: 4rem; height: 4px; border-radius: 2px; background: var(--purple); margin: 0 0 var(--space-3); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: 4.5rem; }
.wordmark { display: inline-flex; margin-right: auto; color: var(--ink); }
.wordmark svg { height: 2.6rem; width: auto; display: block; }
.site-header nav ul { display: flex; align-items: center; gap: 0.25rem clamp(0.75rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.975rem; padding: 0.4rem 0; }
.site-header nav a:hover { color: var(--blue); }
.site-header nav a[aria-current="page"] { color: var(--blue); }
.site-header nav li:last-child a { background: var(--blue); color: var(--white); padding: 0.65rem 1.15rem; border-radius: 999px; }
.site-header nav li:last-child a:hover { background: var(--blue-deep); color: var(--white); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.8rem 1.6rem;
  border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: var(--white);
  font: 600 1.0625rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.button.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); background: var(--white); }
.button.big { min-height: 3.75rem; padding: 1rem 2rem; font-size: 1.125rem; }
.button .arrow { display: inline-block; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero: full-width video with a still poster; text over a white wash on the left. */
.hero { position: relative; overflow: hidden; background: var(--mist); min-height: min(88vh, 50rem); display: flex; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media video { position: absolute; inset: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 32%, rgba(255,255,255,0.55) 52%, rgba(255,255,255,0) 70%); }
.hero .wrap { width: 100%; padding-top: var(--space-5); padding-bottom: var(--space-5); }
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: var(--space-3); }
.hero .lead { color: var(--ink); max-width: 30rem; margin-bottom: var(--space-4); }
@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) { .hero-media video { display: none; } }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: var(--space-3) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.trust li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1rem; }
.trust li::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }

/* Sections */
.section { padding: var(--space-6) 0; }
.section.tint { background: var(--mist); }
.section-head { display: grid; gap: var(--space-2) var(--space-5); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; margin-bottom: var(--space-5); }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(4, 1fr); }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--c-radius); padding: var(--space-4) var(--space-3) var(--space-3); display: flex; flex-direction: column; }
.service .num { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--blue); letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.service h3 { margin-bottom: var(--space-2); }
.service p { color: var(--ink-2); margin: 0; }

.split { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.figure img { width: 100%; height: auto; }
.reasons { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.reasons li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 var(--space-2); }
.reasons .icon { width: 3rem; height: 3rem; border-radius: 12px; background: rgba(35, 65, 196, 0.08); color: var(--blue); display: grid; place-items: center; }
.reasons .icon svg { width: 1.5rem; height: 1.5rem; }
.reasons h3 { font-size: 1.375rem; margin: 0.35rem 0 0.4rem; }
.reasons p { color: var(--ink-2); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--space-3); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; line-height: 1; color: var(--blue); margin-bottom: var(--space-2); }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); margin: 0; }

.figure.wide { margin-bottom: var(--space-5); aspect-ratio: 21 / 9; }
.figure.wide img { height: 100%; object-fit: cover; object-position: center 60%; }
.owner-name { font-size: 1.125rem; margin: var(--space-2) 0 0; }
.owner-name strong { color: var(--blue); }
.placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; border: 2px dashed #C9C8DA; border-radius: 20px; color: var(--ink-2); background: var(--mist); padding: var(--space-3); }

/* Big call to action */
.cta { padding: var(--space-6) 0; }
.cta-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--blue); color: var(--white); padding: clamp(2.5rem, 6vw, 5rem); isolation: isolate; }
.cta-card h2 { color: var(--white); max-width: 14ch; margin-bottom: var(--space-3); }
.cta-card p { color: rgba(255, 255, 255, 0.88); font-size: 1.2rem; max-width: 32rem; margin-bottom: var(--space-4); }
.cta-card .button { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta-card .button:hover { background: var(--mist); border-color: var(--mist); }
.cta-card .button.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.cta-card .button.ghost:hover { border-color: var(--white); }
.cta-card :focus-visible { outline-color: var(--white); }

/* Inner pages */
.page-head { padding: var(--space-5) 0 var(--space-4); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: var(--space-2); }
.ph { display: inline-block; border: 1px dashed #B4007A; color: #9B006A; background: #FFF2FA; border-radius: 6px; padding: 0 0.45em; font-size: 0.92em; }
.contact-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: var(--space-5); }
.contact-card { border: 1px solid var(--line); border-radius: var(--c-radius); padding: var(--space-3); }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-card p { margin: 0; color: var(--ink-2); }
.policy h2 { font-size: 1.75rem; margin: var(--space-4) 0 var(--space-2); }

/* Quote form */
.quote-layout { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; padding-bottom: var(--space-6); }
.quote-aside h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); margin-bottom: var(--space-3); }
.quote-aside ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: 0.75rem; }
.quote-aside li { display: flex; gap: 0.75rem; align-items: baseline; font-weight: 600; }
.quote-aside li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--blue); transform: rotate(45deg) translateY(-0.1rem); }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.progress { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-4); font-size: 0.875rem; font-weight: 600; }
.progress li { flex: 1; border-top: 4px solid var(--line); padding-top: 0.5rem; color: var(--ink-2); }
.progress li[aria-current="step"], .progress li.done { border-top-color: var(--blue); color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--font-display); font-stretch: 87.5%; font-weight: 700; font-size: 2rem; line-height: 1.05; margin-bottom: var(--space-3); padding: 0; }
.field { margin-bottom: var(--space-3); }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #CFCEDD; border-radius: 12px; padding: 0.75rem 0.9rem; min-height: 3.25rem; }
textarea { min-height: 6.5rem; resize: vertical; }
input:hover, textarea:hover { border-color: #A9A8BE; }
input:focus-visible, textarea:focus-visible { border-color: var(--blue); outline: 3px solid rgba(35, 65, 196, 0.2); outline-offset: 0; }
[aria-invalid="true"] { border-color: #C0262D !important; }
.two { display: grid; gap: 0 var(--space-2); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.choices { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.choice { display: flex; flex-direction: column; gap: 0.15rem; position: relative; border: 1.5px solid #CFCEDD; border-radius: 12px; padding: 0.8rem 0.9rem 0.8rem 2.6rem; cursor: pointer; }
.choice input { position: absolute; left: 0.9rem; top: 1.05rem; margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: rgba(35, 65, 196, 0.05); }
.choice strong { font-weight: 600; }
.choice span { font-size: 0.875rem; color: var(--ink-2); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button { font: inherit; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.linkish { background: none; border: 0; color: var(--ink); font-weight: 600; text-decoration: underline; padding: 0.5rem 0; cursor: pointer; }
.error { color: #A3141C; background: #FDECEC; border-radius: 10px; padding: 0.75rem 1rem; font-weight: 600; margin: 0 0 var(--space-3); }
.done-panel h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--space-2); }
.ref { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: 0.04em; color: var(--blue); margin: 0 0 var(--space-3); }
.note { font-size: 0.9rem; color: var(--ink-2); background: var(--mist); border-radius: 10px; padding: 0.75rem 1rem; }

/* Footer */
.site-footer { background: var(--mist); color: var(--ink-2); font-size: 0.9375rem; margin-top: 0; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer strong { color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }
.site-footer strong::after { content: ""; display: block; width: 3rem; height: 3px; border-radius: 2px; background: var(--purple); margin: 0.5rem 0 0.75rem; }
.site-footer a { color: var(--ink); }

/* Phone: one main action per screen, and Call / WhatsApp / Get a price always in reach. */
.sticky-bar { display: none; }
@media (max-width: 60rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .split, .quote-layout, .section-head { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 47.99rem) {
  .site-header nav li:not(:last-child) { display: none; }
  .wordmark svg { height: 2.2rem; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: var(--white); }
  .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .hero::before { display: none; }
  .hero .wrap { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .hero .actions .button { flex: 1 1 100%; }
  .section { padding: var(--space-5) 0; }
  .cta { padding: var(--space-4) 0 var(--space-5); }
  .services, .steps { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .quote-layout { gap: 0; }
  .quote-aside ul { display: none; }
  .quote-aside.page-head { padding-bottom: var(--space-2); }
  .quote-layout > .page-head:last-child { padding-top: 0; }
  .sticky-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.5rem; position: sticky; bottom: 0; z-index: 40;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); }
  .sticky-bar a { display: flex; align-items: center; justify-content: center; min-height: 2.9rem; border-radius: 999px; border: 1.5px solid var(--line);
    color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
  .sticky-bar a.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
}

/* Motion: only transform and opacity, only for people who haven't asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: drift 24s ease-in-out infinite alternate; }
  .hero-copy > * { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .button, .service, .choice, .site-header nav a { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
  .button:hover .arrow { transform: translateX(3px); }
  .button .arrow { transition: transform 160ms ease; }
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
