/* =============================================================
   Allied Air Cargo — Design System
   Colours: existing brand palette (magenta + navy).
   Fonts: Archivo (display) + Hanken Grotesk (body) — modern.
   ============================================================= */

:root {
  --brand: #c4205c;
  --brand-deep: #8f1140;
  --brand-dark: #99173f;
  --brand-soft: #fdeef4;
  --navy: #1f2c73;
  --navy-deep: #17205a;
  --ink: #232630;
  --muted: #69707d;
  --line: #e7e9ee;
  --mist: #f5f6f8;
  --paper: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 40, 0.06), 0 2px 8px rgba(21, 24, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 24, 40, 0.12);
  --font-body: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --font-display: "Archivo", "Segoe UI", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 6px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-white { background: #fff; border-color: #fff; color: var(--brand); }
.btn-white:hover { background: transparent; border-color: #fff; color: #fff; }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: #fff; }
.topbar-group { display: flex; gap: 22px; align-items: center; }
.topbar svg { width: 13px; height: 13px; fill: var(--brand); vertical-align: -2px; margin-right: 6px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand-logo { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo svg { height: 44px; width: auto; }
.brand-logo img { height: 46px; width: auto; }
.brand-logo .custom-logo { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul, .main-nav li { display: contents; list-style: none; }
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 11px;
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand); }

.nav-cta { margin-left: 10px; padding: 11px 18px !important; border-radius: 6px; background: var(--brand); color: #fff !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(31, 44, 115, 0.35), transparent 60%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #d84f7f 100%);
  color: #fff;
}

/* Photo hero: the image sits behind a brand-tinted scrim so text stays legible. */
.hero-photo, .page-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
/* Strong brand wash on the left where the copy sits, clearing towards the
   right so the aircraft in the photograph stays clearly visible. */
.hero-photo::after, .page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg,
    rgba(143, 17, 64, 0.94) 0%,
    rgba(152, 18, 70, 0.86) 34%,
    rgba(178, 27, 84, 0.55) 62%,
    rgba(196, 32, 92, 0.26) 100%);
}
.page-hero-photo::after {
  background: linear-gradient(96deg,
    rgba(143, 17, 64, 0.93) 0%,
    rgba(155, 19, 71, 0.8) 30%,
    rgba(180, 28, 85, 0.48) 60%,
    rgba(196, 32, 92, 0.22) 100%);
}

@media (max-width: 760px) {
  /* Narrow screens: text spans the full width, so wash the whole frame. */
  .hero-photo::after, .page-hero-photo::after {
    background: linear-gradient(170deg, rgba(143, 17, 64, 0.9) 0%, rgba(170, 25, 80, 0.84) 60%, rgba(196, 32, 92, 0.72) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(90px, 14vh, 160px) 0 clamp(110px, 15vh, 170px);
  max-width: 780px;
}
.hero .eyebrow { color: #ffc3d7; }
.hero .eyebrow::before { background: #ffc3d7; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 strong { font-weight: inherit; color: #ffd0e0; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.82); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-plane {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: min(52vw, 640px);
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 90% 0%, rgba(31, 44, 115, 0.3), transparent 60%),
    linear-gradient(130deg, var(--brand-deep), var(--brand) 70%);
  color: #fff;
}
.page-hero-inner { position: relative; z-index: 2; padding-top: clamp(64px, 9vh, 104px); padding-bottom: clamp(64px, 9vh, 104px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -0.02em; }
.page-hero .breadcrumb {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .hero-plane { width: min(40vw, 480px); opacity: 0.12; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: linear-gradient(135deg, #a2154b, var(--brand)); color: #fff; }
.section-navy .section-title, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255, 255, 255, 0.8); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }

/* Two-column intro: pull-quote + body (mirrors original layout, modernised) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split .lead { border-left: 3px solid var(--brand); padding-left: 26px; }
.split-body p + p { margin-top: 1.2em; }
.split-body h3 { font-size: 1.25rem; font-weight: 600; margin: 1.8em 0 0.6em; font-family: var(--font-body); }
.split-body .role { font-style: italic; color: var(--muted); margin-bottom: 0.9em; }

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin: 18px 0 10px; font-family: var(--font-body); }
.card p { color: var(--muted); font-size: 15px; }

.card.has-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.card.has-media:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 30px 32px; }
.card-body h3 { margin-top: 0; }

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; fill: var(--brand); }

/* ---------- Stats band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.stat-num strong { font-weight: inherit; }
.stat-label {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- Feature list (What sets us apart) ---------- */

.feature { text-align: center; padding: 0 14px; }
.feature .icon-badge { margin: 0 auto 20px; width: 74px; height: 74px; }
.feature .icon-badge svg { width: 34px; height: 34px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Route / schedule ---------- */

.route-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.route-item .route-city { font-weight: 700; font-size: 15px; }
.route-item .route-freq {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.schedule-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.schedule-table th, .schedule-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.schedule-table thead th {
  background: var(--navy);
  color: #fff;
  font: 700 12px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.schedule-table td:first-child, .schedule-table th:first-child { text-align: left; }
.schedule-table td:first-child { font-weight: 700; }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-table tbody tr:nth-child(even) { background: var(--mist); }
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

/* ---------- Partners strip ---------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}
.partners img {
  height: 36px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.partners img:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.partners span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a6adba;
  transition: color 0.2s;
}
.partners span:hover { color: var(--navy); }

/* ---------- News ---------- */

.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card .news-top { height: 6px; background: linear-gradient(90deg, var(--brand), var(--navy)); }
.news-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-card .news-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-date { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.news-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand); }
.news-more { margin-top: auto; font: 700 12.5px var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Management profiles ---------- */

.profile { border-top: 4px solid var(--brand); }
.profile .role-title {
  font: 700 12px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.profile h3 { font-family: var(--font-display); font-weight: 650; font-size: 1.4rem; margin: 8px 0 16px; }
.profile p { font-size: 15px; color: var(--muted); }
.profile p + p { margin-top: 1em; }

/* ---------- Fleet specs ---------- */

.spec-list { list-style: none; display: grid; gap: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .spec-label { color: var(--muted); }
.spec-list .spec-value { font-weight: 700; text-align: right; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.office h3 { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; margin-bottom: 14px; }
.office address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.9; }
.office a { font-weight: 600; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 700 12px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  font: 400 15px var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 32, 92, 0.12);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-alert { padding: 14px 18px; border-radius: 8px; font-size: 14.5px; margin-bottom: 20px; }
.form-alert.success { background: #e8f7ee; color: #14713d; border: 1px solid #bfe8cf; }
.form-alert.error { background: #fdeef0; color: #a41e34; border: 1px solid #f5c6cf; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(31, 44, 115, 0.35), transparent 60%),
    linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: 16px;
  padding: clamp(44px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { color: #fff; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 560px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; max-width: 560px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: clamp(56px, 8vw, 84px);
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font: 700 12.5px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-logo svg { height: 42px; width: auto; margin-bottom: 18px; }
.footer-about p { max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; font-size: 13px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- WP content defaults ---------- */

.entry-content p + p { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 0.6em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1.4em; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid-3, .route-list { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--mist); }
  .main-nav a::after { display: none; }
  .nav-cta { margin: 14px 0 0; text-align: center; justify-content: center; display: inline-flex; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .topbar .topbar-group.topbar-secondary { display: none; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .route-list { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
