/* Q Modern — site styles */

:root {
  --ink: #1F1D1A;
  --ink-soft: #2A2723;
  --paper: #F4F2ED;
  --sand: #E8E1D4;
  --line: #D5CDBF;
  --muted: #625B52;      /* warm grey text, 6:1 on paper */
  --muted-dark: #B3AA9C; /* warm grey text on ink */
  --gold: #A5824A;
  --gold-light: #C7A56C;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font: 500 1rem/1 var(--font); letter-spacing: 0;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #3A352F; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-whatsapp { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-whatsapp:hover { border-color: var(--ink); }
.btn-whatsapp svg { width: 20px; height: 20px; }

.text-link {
  font-weight: 500; text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size .2s ease;
}
.text-link:hover { background-image: linear-gradient(var(--ink), var(--ink)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 237, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; color: var(--ink); }
.brand-text { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }

.site-nav ul { list-style: none; display: flex; gap: 34px; }
.site-nav ul a { text-decoration: none; font-size: .9688rem; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font: 500 .9375rem var(--font); color: var(--ink);
}
.menu-toggle-bars, .menu-toggle-bars::before {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s ease;
}
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-toggle-bars { transform: translateY(-3px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(-90deg); }

@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 40px; }
}

@media (max-width: 899.98px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: 16px 0; font-size: 1.125rem; }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 24px; width: 100%; min-height: 52px; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 140px); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-kicker { color: var(--muted); font-size: 1rem; margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.75rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  max-width: 11ch;
}
.hero-lede { margin-top: 32px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }

.route { margin: 0; position: relative; width: 100%; max-width: 380px; aspect-ratio: 320 / 420; justify-self: center; }
.route-svg { width: 100%; height: 100%; overflow: visible; }
.route-track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.route-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.route-node-end { fill: var(--ink); stroke: var(--ink); }
.route-labels { list-style: none; position: absolute; inset: 0; font-size: .9375rem; }
.rl { position: absolute; transform: translateY(-50%); white-space: nowrap; color: var(--ink); }
.rl-1 { left: 26%; top: 9.5%; }
.rl-2 { right: 27%; top: 47.6%; text-align: right; white-space: normal; max-width: 50%; line-height: 1.3; }
.rl-3 { left: 50%; top: 64.5%; transform: translate(-50%, -50%); }
.rl-4 { left: 28%; top: 90.5%; font-weight: 600; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; }
  .route { justify-self: end; }
}

/* One orchestrated load moment: the route draws itself */
@media (prefers-reduced-motion: no-preference) {
  .js .route-line { stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.65,0,.35,1) .35s forwards; }
  .js .rl { opacity: 0; animation: appear .6s ease forwards; }
  .js .rl-1 { animation-delay: .4s; }
  .js .rl-2 { animation-delay: 1.1s; }
  .js .rl-3 { animation-delay: 1.6s; }
  .js .rl-4 { animation-delay: 2.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sections */
.section { padding: var(--section-y) 0; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.03em; }

.split { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

.about { border-top: 1px solid var(--line); }
.about h2 { max-width: 16ch; }
.prose p { font-size: 1.125rem; line-height: 1.7; max-width: 58ch; }
.prose p + p { margin-top: 1.25em; color: var(--muted); }

/* Services */
.services { background: var(--sand); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 44ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
}

.service-grid { display: grid; border-top: 1px solid var(--ink); }
.service { padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.25; max-width: 22ch; }
.service p { margin-top: 14px; color: var(--muted); max-width: 42ch; }

@media (min-width: 640px) {
  .service-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
  .service { padding: 40px 0 48px; }
}

/* FMCG */
.fmcg { background: var(--ink); color: var(--paper); }
.fmcg-grid { display: grid; gap: 56px; }
.fmcg-intro p { margin-top: 24px; color: var(--muted-dark); font-size: 1.125rem; max-width: 40ch; }
.fmcg-intro .btn { margin-top: 36px; }
.fmcg h2 { max-width: 12ch; }

.steps { list-style: none; counter-reset: step; position: relative; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 8px;
  padding: 22px 0 26px; border-top: 1px solid rgba(244, 242, 237, .14);
}
.steps li:last-child { border-bottom: 1px solid rgba(244, 242, 237, .14); }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-size: .9375rem; font-weight: 500; color: var(--gold-light);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.steps h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.steps p { grid-column: 2; margin-top: 6px; color: var(--muted-dark); max-width: 52ch; }

@media (min-width: 900px) {
  .fmcg-grid { grid-template-columns: 1fr 1.35fr; gap: 80px; align-items: start; }
  .fmcg-intro { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* Trading */
.trading-lede { margin-top: 24px; font-size: 1.125rem; color: var(--muted); max-width: 42ch; }
.support-list { border-top: 1px solid var(--ink); }
.support-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.support-list dt { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.support-list dd { color: var(--muted); max-width: 52ch; }
@media (min-width: 640px) {
  .support-list > div { grid-template-columns: 220px 1fr; gap: 24px; }
}

/* Why */
.why { background: var(--sand); }
.why h2 { max-width: 14ch; }
.why-list { list-style: none; margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 0; border-top: 1px solid var(--ink); }
.why-list li { padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.0625rem; max-width: 100%; }
.why-list strong { color: var(--ink); font-weight: 600; margin-right: .25em; }
@media (min-width: 900px) {
  .why-list { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
  .why-list li:first-child { grid-column: 1 / -1; font-size: 1.25rem; padding: 32px 0; }
}

/* Contact */
.contact-head { display: grid; gap: 20px; justify-items: start; }
.contact-head > p { color: var(--muted); font-size: 1.125rem; max-width: 48ch; }
.contact-email {
  margin-top: 12px;
  font-size: clamp(1.75rem, 5.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none; word-break: break-word;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 6px;
}
.contact-email:hover { background-image: linear-gradient(var(--ink), var(--ink)); }

.enquiry-list { list-style: none; margin-top: clamp(52px, 7vw, 88px); border-top: 1px solid var(--ink); }
.enquiry { display: grid; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.enquiry h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.enquiry p { margin-top: 6px; color: var(--muted); max-width: 56ch; }
.enquiry-actions { display: flex; gap: 28px; align-items: center; }
@media (min-width: 720px) {
  .enquiry { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 32px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .mark { width: 32px; height: 32px; color: var(--paper); flex: none; }
.footer-brand p { font-weight: 500; line-height: 1.5; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-links a { text-decoration: none; color: var(--muted-dark); }
.footer-links a:hover { color: var(--paper); }
.footer-copy { color: var(--muted-dark); font-size: .875rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
  .footer-copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(244, 242, 237, .14); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
