/*
Theme Name: UK Cargo Service
Theme URI: https://ukcargoservice.co.uk/
Author: UK Cargo Service
Description: Dedicated, accessible theme for the UK Cargo Service multisite tenant.
Version: 1.1.3
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: uk-cargo-service
*/

:root {
  --navy-950: #071a2f;
  --navy-900: #0a2440;
  --navy-800: #123a5f;
  --orange-600: #c14708;
  --orange-500: #f37021;
  --orange-100: #fff0e6;
  --green-700: #176b48;
  --red-700: #a72a32;
  --ink: #172230;
  --muted: #566576;
  --line: #d9e1e8;
  --soft: #f4f7f9;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 26, 47, 0.12);
  --radius: 18px;
  --content: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-800); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ffb37c;
  outline-offset: 3px;
}
h1, h2, h3 { color: var(--navy-950); line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.45rem, 5.5vw, 4.75rem); margin: 0 0 1.2rem; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); margin: 0 0 .65rem; }
p { margin: 0 0 1.2rem; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, 100%); }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 9999; padding: 12px 18px; background: var(--white); color: var(--navy-950); }
.skip-link:focus { top: 12px; }
.topbar { background: var(--navy-950); color: #dce8f2; font-size: .875rem; }
.topbar__inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar p { margin: 0; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 20px; }
.topbar a { color: var(--white); text-decoration: none; }
.site-header { position: relative; z-index: 30; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 230px; max-height: 58px; display: block; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy-950); font: inherit; font-weight: 800; }
.primary-menu { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: 12px 11px; color: var(--navy-950); font-size: .9rem; font-weight: 750; text-decoration: none; border-radius: 8px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--soft); color: var(--orange-600); }
.primary-menu .menu-cta > a { margin-left: 6px; padding-inline: 18px; background: var(--orange-600); color: var(--white); }
.primary-menu .menu-cta > a:hover { background: #bd4510; color: var(--white); }
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); }
.hero::after { content: ""; position: absolute; inset: auto -8% -45% auto; width: 520px; height: 520px; border: 70px solid rgba(243,112,33,.16); border-radius: 50%; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); min-height: 650px; }
.hero__copy { padding: clamp(76px, 9vw, 125px) clamp(28px, 6vw, 84px) clamp(72px, 8vw, 110px) max(20px, calc((100vw - var(--content))/2)); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--orange-600); font-size: .8rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow, .section--navy .eyebrow { color: var(--orange-500); }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero__lead { max-width: 690px; color: #dce7f0; font-size: clamp(1.08rem, 1.8vw, 1.35rem); }
.hero__actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border: 2px solid transparent; border-radius: 10px; background: var(--orange-600); color: var(--white); font-weight: 850; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { background: #bd4510; color: var(--white); }
.button--outline { border-color: rgba(255,255,255,.72); background: transparent; color: var(--white); }
.button--outline:hover { border-color: var(--white); background: var(--white); color: var(--navy-950); }
.button--navy { background: var(--navy-900); }
.hero__visual { position: relative; min-height: 520px; }
.hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-950) 0, transparent 35%), linear-gradient(0deg, rgba(7,26,47,.35), transparent 60%); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.route-chip { position: absolute; z-index: 2; right: 30px; bottom: 34px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: rgba(7,26,47,.88); color: var(--white); font-size: .9rem; font-weight: 800; backdrop-filter: blur(8px); }
.mobile-actions { display: none; }
.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 13px; align-items: center; padding: 26px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item__number { display: grid; width: 36px; height: 36px; place-items: center; flex: 0 0 36px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); font-weight: 900; }
.trust-item p { margin: 0; color: var(--navy-900); font-weight: 750; line-height: 1.35; }
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy-950); color: #dce7f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-heading p { color: #c7d5e1; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 24px rgba(7,26,47,.05); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card__icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 24px; border-radius: 14px; background: var(--navy-950); color: var(--white); font-size: 1.45rem; font-weight: 900; }
.service-card p { color: var(--muted); }
.service-card a { margin-top: auto; font-weight: 850; }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(42px, 7vw, 90px); align-items: center; }
.split__image { overflow: hidden; min-height: 560px; border-radius: 24px; box-shadow: var(--shadow); }
.split__image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.check-list { display: grid; gap: 14px; padding: 0; margin: 28px 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e7f4ed; color: var(--green-700); font-size: .8rem; font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; border-top: 4px solid var(--orange-500); border-radius: 0 0 14px 14px; background: rgba(255,255,255,.06); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 18px; color: var(--orange-500); font-weight: 900; letter-spacing: .08em; }
.step p { margin-bottom: 0; color: #c7d5e1; font-size: .95rem; }
.destinations { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; }
.destinations span { padding: 8px 14px; border: 1px solid #bfd2c7; border-radius: 999px; background: #f2faf6; color: var(--green-700); font-weight: 800; }
.cta-band { padding: 48px 0; background: var(--orange-600); color: var(--white); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0 0 8px; color: var(--white); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-band p { margin: 0; color: #fff4ed; }
.cta-band .button { background: var(--white); color: var(--navy-950); }
.page-hero { padding: 70px 0 62px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.page-hero h1 { max-width: 900px; color: var(--white); font-size: clamp(2.5rem, 5vw, 4.1rem); }
.page-hero p { max-width: 760px; color: #dce7f0; font-size: 1.15rem; }
.breadcrumbs { padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--soft); font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #8291a0; }
.entry-content { width: min(850px, 100%); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .55rem; }
.entry-content .notice, .notice { padding: 20px 22px; border-left: 5px solid var(--orange-500); border-radius: 8px; background: var(--orange-100); }
.entry-content .info-box { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.faq-list { display: grid; gap: 12px; margin: 30px 0; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq-list summary { padding: 20px 54px 20px 22px; color: var(--navy-950); font-weight: 850; cursor: pointer; }
.faq-list details > div { padding: 0 22px 20px; color: var(--muted); }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 50px; align-items: start; }
.quote-aside { padding: 28px; border-radius: var(--radius); background: var(--navy-950); color: #dce7f0; }
.quote-aside h2, .quote-aside h3 { color: var(--white); }
.quote-aside a { color: var(--white); }
.site-footer { padding: 72px 0 26px; background: #061525; color: #bdcbd7; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 44px; }
.footer-brand img { width: 220px; filter: brightness(0) invert(1); }
.footer-grid h2 { color: var(--white); font-size: 1rem; letter-spacing: .04em; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #dce7f0; text-decoration: none; }
.footer-grid a:hover { color: var(--orange-500); }
.footer-company, .footer-company address { font-size: .82rem; font-style: normal; line-height: 1.55; }
.footer-company strong { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.not-found { min-height: 58vh; display: grid; place-items: center; text-align: center; }
.not-found__code { color: var(--orange-600); font-size: 1rem; font-weight: 900; letter-spacing: .2em; }

@media (max-width: 1040px) {
  body { font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { padding: 13px 14px; }
  .primary-menu .menu-cta > a { margin: 4px 0 0; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-left: max(20px, calc((100vw - var(--content))/2)); }
  .hero__visual { min-height: 420px; }
  .hero__visual::after { background: linear-gradient(0deg, rgba(7,26,47,.55), transparent 65%); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--content)); }
  .topbar__inner { justify-content: center; min-height: 38px; }
  .topbar__inner > p, .topbar__links a:last-child { display: none; }
  .site-header__inner { min-height: 74px; }
  .brand img { width: 188px; }
  .hero__grid { min-height: 0; }
  .hero__copy { padding: 58px 20px 54px; }
  .hero__lead { font-size: 1.05rem; }
  .hero__visual { min-height: 310px; }
  .route-chip { right: 14px; bottom: 14px; }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
  .mobile-actions .button { min-height: 48px; padding: 10px 12px; font-size: .9rem; }
  .mobile-actions .button:last-child { border: 2px solid var(--navy-900); background: var(--white); color: var(--navy-900); }
  .trust-strip__grid, .card-grid, .split, .steps, .quote-layout, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 66px 0; }
  .split__image, .split__image img { min-height: 390px; }
  .cta-band__inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 54px 0 48px; }
}

@media (max-width: 390px) {
  body { font-size: 16px; }
  h1 { font-size: 2.25rem; }
  .brand img { width: 165px; }
  .menu-toggle { min-width: 45px; min-height: 45px; font-size: .85rem; }
  .hero__actions, .button-row { align-items: stretch; flex-direction: column; }
  .hero__actions .button, .button-row .button { width: 100%; }
  .mobile-actions { grid-template-columns: 1fr; }
}

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