/* clearcargo.ae – styles
   Brand colours live here; change them once and the whole site follows. */

/* ---------- Fonts (Poppins, SIL OFL – see assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2"), url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2"), url("../fonts/poppins-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2"), url("../fonts/poppins-700.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --orange: #F28C28;
  --orange-dark: #D97614;
  --slate: #55657A;
  --mist: #9FB0C3;
  --sand: #F5F2EC;
  --white: #FFFFFF;
  --line: #E3E7ED;
  --ok: #1F8A4C;
  --err: #C0392B;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .10);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .22);
  --wrap: 1160px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--orange); color: var(--navy); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px;
  font: 600 1rem/1 var(--font);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-accent { background: var(--orange); color: var(--navy); }
.btn-accent:hover { background: var(--orange-dark); box-shadow: 0 8px 20px rgba(242, 140, 40, .35); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 37, 69, .06); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy);
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--orange); transition: right .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { right: 0; }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow / shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before { content: ""; width: 12px; height: 12px; background: var(--orange); border-radius: 2px; }
.eyebrow.dark { color: var(--slate); }
.accent { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, var(--navy-2), transparent 60%), var(--navy);
  color: var(--white);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.hero-mark {
  position: absolute; right: -120px; bottom: -160px;
  width: 560px; height: auto; opacity: .06; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: #D3DCE7; max-width: 36em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; color: #D3DCE7; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B2545' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.track-card {
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 32px;
  border-top: 6px solid var(--orange);
}
.track-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.track-card > p { color: var(--slate); margin-bottom: 20px; }
#track-form { display: flex; gap: 10px; }
#track-form input { flex: 1; min-width: 0; }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font); color: var(--navy);
  background: var(--white);
  border: 1.5px solid #CDD5DF; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2355657A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
input::placeholder, textarea::placeholder { color: #8A97A8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 140, 40, .2); }
.invalid, input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }

.msg { min-height: 1.5em; margin: 12px 0 0; font-size: .92rem; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.section-navy .msg.ok { color: #7FD9A3; }
.section-navy .msg.err { color: #FFB4A8; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Promise strip ---------- */
.strip { background: var(--orange); color: var(--navy); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; }
.strip-grid > div + div { border-left: 1px solid rgba(11, 37, 69, .18); }
.strip strong { font-size: 1.05rem; font-weight: 700; }
.strip span { font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--slate); font-size: 1.05rem; margin-bottom: 0; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card svg {
  width: 52px; height: 52px; margin-bottom: 20px; padding: 12px;
  background: var(--sand); border-radius: 12px;
  fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card:hover svg { background: var(--orange); }
.card p { color: var(--slate); margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 26px; }
.steps li p { color: var(--slate); margin: 0; }
.num {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  background: var(--navy); color: var(--white);
  font-weight: 700; border-radius: 10px;
}
.steps li:first-child .num { background: var(--orange); color: var(--navy); }

/* Coverage */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.coverage > div:first-child p { color: var(--slate); }
.chips-wrap h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 24px 0 12px; }
.chips-wrap h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: .9rem; font-weight: 500;
}
.chips-next li { background: var(--white); color: var(--navy); border: 1.5px solid var(--orange); }
.chips-alt li { background: var(--white); color: var(--slate); border: 1.5px dashed var(--mist); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.quote-copy > p { color: #D3DCE7; font-size: 1.05rem; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B2545' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.form {
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 32px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.form .btn { width: 100%; margin-top: 4px; }
.form .msg.ok { color: var(--ok); }
.form .msg.err { color: var(--err); }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-weight: 600; font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px; border-radius: 8px;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%230B2545' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s, background-color .25s;
}
details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
summary:hover { color: var(--slate); }
details p { color: var(--slate); padding: 0 48px 22px 0; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-grid > div p { color: var(--slate); }
.contact-list { background: var(--white); border-radius: var(--radius); padding: 8px 28px; box-shadow: var(--shadow); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; align-items: baseline; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list span { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--orange-dark); text-decoration: underline; }
.contact-list b { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); padding: 48px 0; }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.foot img { height: 36px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.foot nav a { color: var(--white); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--orange); }
.foot p { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(159, 176, 195, .2); font-size: .88rem; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .coverage, .quote-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .track-card { max-width: 560px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(11, 37, 69, .12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; min-height: 48px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div + div { border-left: 0; border-top: 1px solid rgba(11, 37, 69, .18); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 34px; }
  .cards, .steps, .row { grid-template-columns: 1fr; }
  .row { gap: 0; }
  .track-card, .form { padding: 24px 20px; }
  #track-form { flex-direction: column; }
  .contact-list { padding: 4px 20px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .hero-mark { width: 360px; right: -140px; bottom: -120px; }
  summary { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
