/* ============================================================
   Blue Sky Cargo Logistics — styles.css
   Organized as: 1) Design tokens  2) Reset/base  3) Layout helpers
   4) Buttons  5) Header/nav  6) Hero  7) Footer  8) Responsive
   9) Shared content components  10) Split sections (chevron edge)
   11) Why-BSCL reasons  12) Service cards  13) Chips + quotes
   14) CTA + contact form
   Colours and type sampled from the BSCL logo + presentation deck.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ----------
   CSS custom properties = reusable variables. Change a value here
   and it updates everywhere it's used. */
:root {
  /* Brand colours, sampled straight from the logo PNG:
       #012169 navy  ("BLUE SKY" wordmark)
       #0079C1 azure ("CARGO LOGISTICS" + bright chevron face)
       #014D95 mid blue (the folded/darker chevron face) */
  --color-navy:     #012169;  /* main text + dark sections + footer */
  --color-brand:    #014D95;  /* mid blue / strong accents */
  --color-azure:    #0079C1;  /* bright headings, links, chevrons */
  --color-sky:      #2E9BD6;  /* lighter accent / gradients */
  --color-sky-soft: #A9D2EC;  /* light gradient wash */
  --color-mist:     #EAF4FB;  /* faint section tint */
  --color-white:    #FFFFFF;
  --color-ink-60:   #4A5A7A;  /* muted body text */

  /* Gradients */
  --grad-sky:   linear-gradient(120deg, #2E9BD6 0%, #A9D2EC 45%, #FFFFFF 100%);
  --grad-brand: linear-gradient(135deg, #0079C1 0%, #014D95 100%);
  /* Brighter gradient used specifically for buttons */
  --grad-btn:   linear-gradient(135deg, #1FA0DC 0%, #0079C1 100%);

  /* Typography */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing + sizing */
  --header-h: 76px;          /* height of the fixed header */
  --container: 1200px;       /* max content width */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(1, 33, 105, 0.12);
  --transition: 0.3s ease;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }          /* native smooth scrolling for anchors */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;                     /* 17px base body */
  line-height: 1.65;
  color: var(--color-ink-60);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 600;
}

/* Honor users who prefer reduced motion: turn off smooth scroll + animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section--mist { background: var(--color-mist); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;             /* pill shape */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

/* Solid gradient button (main call-to-action) */
.btn--primary {
  background: var(--grad-btn);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 121, 193, 0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 121, 193, 0.45); }

/* Outlined "ghost" button (secondary action) */
.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--ghost:hover { background: var(--color-brand); color: var(--color-white); transform: translateY(-2px); }

/* Smaller button used inside the nav bar */
.btn--nav {
  background: var(--grad-btn);
  color: var(--color-white);
  padding: 10px 22px;
  font-size: 0.9rem;
}
.btn--nav:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 121, 193, 0.4); }

/* ---------- 5. HEADER / NAVIGATION ---------- */
.site-header {
  position: fixed;            /* stays at the top while scrolling */
  inset: 0 0 auto 0;          /* top:0; left:0; right:0 */
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 14px 0;
}

/* JS adds .scrolled once the user scrolls past the hero top */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(1, 33, 105, 0.08);
  padding: 8px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: height var(--transition);
}
.site-header.scrolled .header__logo-img { height: 36px; }

/* This hero is a bright blue sky, so the WHITE logo would vanish against it.
   We show the full-colour logo in the header at all times — it reads cleanly
   over both the light hero and the white scrolled header. (The white logo is
   still used in the dark navy footer.) */
.header__logo-img--white { display: none; }
.header__logo-img--color { display: block; }

/* Desktop nav: a horizontal list */
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: color var(--transition);
}
.primary-nav a:not(.btn):hover { color: var(--color-azure); }

/* On the transparent hero header, the nav text is navy on a light sky photo —
   that reads fine. Keep it navy for consistency. */

/* The hamburger button is hidden on desktop (shown in the mobile media query) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-navy);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background photo fills the whole hero */
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img { object-fit: cover; object-position: center 30%; }

/* Gradient overlay: keeps the left side bright behind the navy text.
   The deck's hero fades sky-blue (left) into white (right); we keep the
   left readable since our text sits on the left. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.55) 42%, rgba(255,255,255,0.15) 100%);
}

.hero__inner {
  position: relative;       /* sits above the overlay */
  z-index: 2;
  display: flex;
  justify-content: flex-start; /* text on the left over the brightest part */
  width: 100%;
}

.hero__content {
  max-width: 640px;
  text-align: left;
  padding: 120px 0;
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-azure);
}

.hero__title {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll-down chevron, centered at the bottom of the hero */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
}
.hero__chevron {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-right: 3px solid var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50%      { transform: rotate(45deg) translate(6px, 6px); opacity: 0.5; }
}

/* ---------- 7. FOOTER ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 36px;
  text-align: center;
}
.site-footer__logo { height: 54px; width: auto; margin: 0 auto 24px; }
.site-footer__tagline {
  font-size: 1.2rem;
  color: var(--color-white);
  margin: 0 0 24px;
  line-height: 1.5;
}
.site-footer__tagline em { color: var(--color-sky-soft); font-size: 0.95rem; font-style: italic; }
.site-footer__copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin: 0; }

/* ============================================================
   8. RESPONSIVE — header / hero (breakpoints 1024px, 768px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__title { font-size: 2.75rem; }
  .primary-nav__list { gap: 18px; }
  .primary-nav a:not(.btn) { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }   /* show hamburger */

  /* The nav becomes a full-height panel sliding in from the right.
     It's hidden off-screen until JS adds .open to the header. */
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--color-white);
    box-shadow: -8px 0 30px rgba(1, 33, 105, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: calc(var(--header-h) + 24px) 32px 32px;
    display: flex;
  }
  .site-header.open .primary-nav { transform: translateX(0); }

  /* backdrop-filter on the scrolled header creates a containing block that
     breaks the fixed full-height menu panel. Remove the blur while the menu
     is open so the panel is sized to the viewport again. */
  .site-header.scrolled.open { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
  }
  .primary-nav a:not(.btn) { font-size: 1.05rem; }
  .btn--nav { width: 100%; text-align: center; }

  /* Turn the hamburger into an "X" when the menu is open */
  .site-header.open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Hero text shrinks on phones (stays left-aligned) */
  .hero__content { padding: 110px 0 90px; }
  .hero__title { font-size: 2.1rem; }
  .hero__eyebrow { font-size: 0.95rem; }
  .hero__actions { }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.8) 100%);
  }
}

/* ============================================================
   9. SHARED CONTENT COMPONENTS
   (eyebrow labels, headings, bullet lists, scroll-reveal)
   ============================================================ */

/* Small uppercase label that sits above each section heading */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-azure);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--color-sky-soft); }   /* used on the dark section */

/* Centered heading block (used by Why-BSCL + Services) */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: 2.25rem; }
.section-head__sub { margin: 16px auto 0; color: var(--color-ink-60); max-width: 640px; }

/* Bullet lists. Three flavours:
   .list--chevron = brand "›" chevron marker (the logo arrow)
   .list--detail  = chevron marker + bold lead-in term + description
   .list--light   = white text for dark backgrounds */
.list { margin: 24px 0 0; display: grid; gap: 14px; }
.list li { position: relative; padding-left: 30px; color: var(--color-ink-60); }

/* The brand chevron marker — mirrors the forward arrow in the logo */
.list--chevron li::before,
.list--detail li::before {
  content: "";
  position: absolute; left: 4px; top: 0.55em;
  width: 8px; height: 8px;
  border-right: 2.5px solid var(--color-azure);
  border-top: 2.5px solid var(--color-azure);
  transform: rotate(45deg);
}
.list--detail li { color: var(--color-ink-60); }
.list--detail li strong { color: var(--color-navy); font-weight: 600; }
.list--light li { color: rgba(255, 255, 255, 0.88); }
.list--light li::before { border-color: var(--color-sky-soft); }

/* Scroll-reveal: elements start slightly down + transparent, then JS adds
   .is-visible when they enter the viewport (see main.js). */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Highlight the nav link for the section you're currently viewing */
.primary-nav a.active:not(.btn) { color: var(--color-azure); }

/* ============================================================
   10. SPLIT SECTIONS (text panel + full-bleed photo, "chevron edge")
   The signature BSCL motif: the white text panel meets the photo along a
   forward-pointing chevron edge (mirrors the arrow mark in the logo).
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }

.split__text { display: flex; align-items: center; background: var(--color-white); }
.split__text-inner { max-width: 600px; padding: 88px 56px; margin-left: auto; }
.split--reverse .split__text-inner { margin-right: auto; margin-left: 0; }
.split__intro { margin-top: 16px; }
/* Closing summary paragraph under a section's list */
.split__note { margin-top: 22px; color: var(--color-ink-60); }
.split--dark .split__note { color: rgba(255, 255, 255, 0.82); }

.split__media { position: relative; min-height: 540px; overflow: hidden; }
.split__media picture { position: absolute; inset: 0; display: block; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* The chevron edge: the photo's inner edge is notched into a forward "›"
   shape, revealing the white panel behind it. Mirrored per side. */
.split__media--right { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 11% 50%); }
.split__media--left  { clip-path: polygon(0 0, 100% 0, 89% 50%, 100% 100%, 0 100%); }

/* Dark variant (Technology) */
.split--dark .split__text { background: var(--color-navy); }
.split--dark h2 { color: #fff; }
.split--dark .split__intro { color: rgba(255, 255, 255, 0.82); }

/* ============================================================
   11. WHY-BSCL REASONS
   ============================================================ */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reason {
  background: #fff;
  border: 1px solid #dceaf6;
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.reason:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.reason__num {
  font-size: 1.1rem; font-weight: 700; color: var(--color-azure);
  letter-spacing: 0.06em;
}
.reason h3 { font-size: 1.18rem; }
.reason p { margin: 0; font-size: 0.98rem; }

/* The 4th and 5th reasons sit centered on the second row of a 3-col grid.
   Using auto-fit keeps them tidy; we let them flow naturally instead. */

/* ============================================================
   12. SERVICE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid #e3ecf6;
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--color-mist);
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--color-azure);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; font-size: 0.98rem; }

/* ============================================================
   13. CHIPS + PULL-QUOTES
   ============================================================ */
.chips { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.chip {
  background: var(--color-mist); color: var(--color-brand);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 8px 18px; border-radius: 999px;
}

/* Pull-quote inside the Why-BSCL section */
.quote {
  max-width: 820px; margin: 56px auto 0; text-align: center;
  position: relative; padding: 0 16px;
}
.quote p {
  font-size: 1.4rem; line-height: 1.45; font-weight: 500;
  font-style: italic; color: var(--color-navy); margin: 0;
}
.quote--light p { color: #fff; }

/* Full-width sky-gradient band holding the sustainability quote */
.quote-band { background: var(--grad-brand); padding: 72px 0; }
.quote-band .quote { margin-top: 0; }

/* ============================================================
   14. CTA BAND + CONTACT FORM
   ============================================================ */
.cta { background: var(--grad-sky); text-align: center; padding: 84px 0; }
.cta__title { font-size: 2.4rem; color: var(--color-navy); }
.cta__sub { font-size: 1.3rem; color: var(--color-brand); margin: 14px 0 0; font-weight: 500; }
.cta__evolve { margin: 18px auto 0; max-width: 720px; color: var(--color-navy); }

.contact__grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 56px; padding: 80px 24px; align-items: start;
}
.form__intro { margin: 0 0 26px; color: var(--color-ink-60); }

.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-weight: 600; color: var(--color-navy); margin-bottom: 8px; font-size: 0.95rem; }
.req { color: var(--color-azure); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid #d6e2f0; border-radius: 10px;
  background: #fff; color: var(--color-navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-azure);
  box-shadow: 0 0 0 3px rgba(0, 121, 193, 0.15);
}
/* Red state when a required field fails validation */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d64545; }
.field__error { color: #d64545; font-size: 0.82rem; margin-top: 6px; min-height: 1em; }

.form__success {
  margin-top: 18px; color: #1a7f4b; font-weight: 600;
  background: #e6f6ee; padding: 12px 16px; border-radius: 10px;
}
/* Error banner shown if the message fails to send */
.form__error-msg {
  margin-top: 18px; color: #b3261e; font-weight: 600;
  background: #fdecea; padding: 12px 16px; border-radius: 10px;
}
/* Honeypot anti-spam field — hidden off-screen and not focusable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.contact__details { background: var(--color-mist); border-radius: var(--radius); padding: 32px; }
.contact__details h3 { margin-bottom: 20px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; }
.contact__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-sky); font-weight: 600; }
.contact__list a { color: var(--color-brand); font-weight: 500; }
.contact__list a:hover { color: var(--color-azure); }

/* ============================================================
   15. RESPONSIVE for the content sections
   ============================================================ */
@media (max-width: 1024px) {
  .cards, .reasons { grid-template-columns: repeat(2, 1fr); }
  .split__text-inner { padding: 72px 40px; }
  .section-head h2, .cta__title { font-size: 2rem; }
  .quote p { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Stack split sections; photo always on top, chevron edge straightens out */
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; min-height: 300px; }
  .split__media--right, .split__media--left { clip-path: none; }
  .split__text-inner { padding: 48px 24px; margin: 0 auto; max-width: none; }

  .cards, .reasons { grid-template-columns: 1fr; }

  .cta { padding: 60px 0; }
  .cta__title { font-size: 1.7rem; }
  .cta__sub { font-size: 1.1rem; }
  .quote-band { padding: 52px 0; }

  .contact__grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
}
