/* ========================================================
   BRC v2 Design System · Cream + American Flag Palette
   Editorial serif (Fraunces) headings + Inter body
   ======================================================== */

:root {
  --navy: #0e1e3f;
  --navy-mid: #17325a;
  --navy-soft: #3a5583;
  --red: #c8102e;
  --red-deep: #9a0c22;
  --red-soft: #ffe6ea;
  --white: #ffffff;
  --cream: #fbf9f5;
  --sand: #f3ede2;
  --paper: #f7f5f0;
  --gray-100: #ecebe6;
  --gray-200: #d9d6cd;
  --gray-400: #8a8578;
  --gray-600: #4a4842;
  --ink: #0f172a;
  --text: #24263a;
  --text-muted: #5e6478;
  --border: #e5e2d9;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.05);
  --shadow: 0 10px 40px rgba(14,30,63,0.08);
  --shadow-lg: 0 30px 80px rgba(14,30,63,0.12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1240px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Moving background layer (all pages) ---------- */
.bg-motion {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-motion .blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.28;
  will-change: transform;
}
.bg-motion .blob-1 { width: 520px; height: 520px; background: #dfe8fb; top: -120px; left: -140px; animation: drift1 34s ease-in-out infinite; }
.bg-motion .blob-2 { width: 460px; height: 460px; background: #ffd9df; top: 30%; right: -160px; animation: drift2 42s ease-in-out infinite; }
.bg-motion .blob-3 { width: 400px; height: 400px; background: #e5efff; bottom: 12%; left: 10%; animation: drift3 38s ease-in-out infinite; }
.bg-motion .blob-4 { width: 340px; height: 340px; background: #ffe4e9; bottom: -100px; right: 15%; animation: drift4 46s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(120px,80px) scale(1.08); } 66% { transform: translate(60px,180px) scale(0.94); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-100px,60px) scale(1.06); } 66% { transform: translate(-40px,-80px) scale(0.98); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(80px,-60px) scale(1.1); } 66% { transform: translate(160px,40px) scale(0.92); } }
@keyframes drift4 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-140px,-40px) scale(1.05); } 66% { transform: translate(-60px,-160px) scale(1); } }

/* Jet silhouettes drifting across */
.jet { position: absolute; color: var(--navy); opacity: 0.10; will-change: transform; }
.jet svg { display: block; }
.jet-1 { top: 12%; left: -180px; animation: fly-lr 55s linear infinite; }
.jet-3 { top: 32%; left: -260px; animation: fly-lr 96s linear infinite; animation-delay: -55s; opacity: 0.06; }
.jet-5 { top: 76%; left: -200px; animation: fly-lr 78s linear infinite; animation-delay: -30s; }
.jet-2 { top: 58%; right: -220px; animation: fly-rl 68s linear infinite; animation-delay: -22s; }
.jet-4 { top: 6%; right: -260px; animation: fly-rl 110s linear infinite; animation-delay: -70s; opacity: 0.05; }
@keyframes fly-lr { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 360px)); } }
@keyframes fly-rl { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 360px)); } }
.jet::before {
  content: ''; position: absolute; top: 50%;
  width: 220px; height: 1.5px;
  transform: translateY(-50%);
  opacity: 0.5; border-radius: 2px;
}
.jet-1::before, .jet-3::before, .jet-5::before { right: 100%; background: linear-gradient(to left, currentColor, transparent); }
.jet-2::before, .jet-4::before { left: 100%; background: linear-gradient(to right, currentColor, transparent); }
@media (prefers-reduced-motion: reduce) {
  .bg-motion .blob, .jet { animation: none !important; }
}

/* Content sits above the moving background */
.announce, .nav, main, section, footer, .ticker-strip, .cta-closer { position: relative; z-index: 1; }

/* ---------- Base typography ---------- */
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 400; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--sans); letter-spacing: -0.005em; }
p { color: var(--text-muted); font-family: var(--sans); }
.italic { font-style: italic; font-weight: 400; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.94rem; font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none; line-height: 1;
  white-space: nowrap; letter-spacing: 0.005em;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(200,16,46,0.28); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); padding: 15px 8px; }
.btn-ghost:hover { color: var(--red); }
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Announcement strip ---------- */
.announce {
  background: var(--navy); color: var(--white);
  font-size: 0.78rem; padding: 10px 0;
  text-align: center; letter-spacing: 0.06em;
  font-family: var(--sans);
}
.announce .dot { display: inline-block; width: 6px; height: 6px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 8px #4ade80; margin-right: 8px; vertical-align: middle; }
.announce a { color: #ffcccc; margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  background: rgba(251,249,245,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,226,217,0.5);
  height: 84px;
  position: sticky; top: 0;
  z-index: 100;
  transition: all var(--transition);
}
.nav.scrolled { background: rgba(251,249,245,0.98); box-shadow: 0 1px 20px rgba(14,30,63,0.05); }
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 68px; width: auto; }
.nav-menu { list-style: none; display: flex; gap: 34px; align-items: center; }
.nav-menu a {
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--red);
  transition: width var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--red); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* ---------- Sections base ---------- */
section { padding: 100px 0; position: relative; }
.section-alt { background: var(--sand); }
.section-heading { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.section-heading h2 { margin-bottom: 20px; }
.section-heading p { font-size: 1.1rem; }

/* ---------- Page header (for subpages) ---------- */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { margin: 0 8px; color: var(--gray-400); }
.page-header h1 { max-width: 900px; margin: 0 auto 24px; }
.page-header .lead { font-size: 1.15rem; max-width: 720px; margin: 0 auto; color: var(--text-muted); }

/* ---------- Ticker strip (charter service names) ---------- */
.ticker-strip {
  background: var(--navy); color: var(--white);
  padding: 22px 0; overflow: hidden;
  border-top: 1px solid var(--navy-mid);
  border-bottom: 1px solid var(--navy-mid);
}
.ticker { display: flex; gap: 60px; animation: scroll 32s linear infinite; white-space: nowrap; }
.ticker span { font-family: var(--serif); font-size: 1.55rem; font-style: italic; font-weight: 400; color: var(--white); opacity: 0.8; }
.ticker span::after { content: '★'; color: var(--red); font-style: normal; margin-left: 60px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA closer ---------- */
.cta-closer {
  background: var(--navy); color: var(--white);
  padding: 120px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-closer::before, .cta-closer::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  filter: blur(80px); z-index: 0;
}
.cta-closer::before { background: rgba(200,16,46,0.28); top: -100px; left: -80px; }
.cta-closer::after { background: rgba(255,255,255,0.06); bottom: -120px; right: -80px; }
.cta-closer > .container { position: relative; z-index: 1; }
.cta-closer h2 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.cta-closer h2 .italic { color: #ff9999; }
.cta-closer p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin: 0 auto 40px; max-width: 620px; }
.cta-closer .btn-primary { background: var(--red); }
.cta-closer .btn-primary:hover { background: var(--white); color: var(--navy); }
.cta-closer .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-closer .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  background: #0a1830;
  color: rgba(255,255,255,0.72);
  padding: 80px 0 32px;
  font-family: var(--sans); font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.foot-brand img { height: 110px; width: auto; margin-bottom: 22px; filter: brightness(0) invert(1) opacity(0.95); }
.foot-brand p { color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 22px; font-size: 0.9rem; }
.foot-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-certs span {
  background: rgba(255,255,255,0.06); color: var(--white);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.13);
}
footer h5 { font-family: var(--sans); color: var(--white); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; font-weight: 700; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 12px; }
footer ul a { color: rgba(255,255,255,0.68); font-size: 0.9rem; }
footer ul a:hover { color: var(--white); }
.foot-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.foot-bottom-links { display: flex; gap: 24px; }
.foot-bottom-links a { color: rgba(255,255,255,0.5); }
.foot-bottom-links a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Shared card patterns ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); }
.card .icon {
  width: 52px; height: 52px;
  background: var(--navy); color: var(--white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background var(--transition);
}
.card:hover .icon { background: var(--red); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card p { font-size: 0.96rem; line-height: 1.6; margin-bottom: 16px; }

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


/* ---------- Hamburger button (mobile only) ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  margin-left: 4px;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav-menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    box-shadow: 0 20px 40px -10px rgba(14,30,63,0.15);
    padding: 0 28px;
    gap: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    z-index: 99;
  }
  .nav-menu.open {
    max-height: calc(100vh - 84px);
    padding: 12px 28px 24px;
    overflow-y: auto;
  }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    font-weight: 500;
  }
  .nav-menu a::after { display: none; }
  .nav-menu a.active { color: var(--red); }
  /* Prevent body scroll when menu is open */
  body.menu-open { overflow: hidden; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 72px 0; }
  .page-header { padding: 56px 0 40px; }
}
@media (max-width: 720px) {
  .nav-inner .btn-primary { display: none; }  /* Hide desktop CTA — Contact is in the drawer */
  .nav-brand img { height: 54px !important; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem) !important; }
  h2 { font-size: clamp(1.65rem, 6vw, 2.2rem) !important; }
}
/* iOS Safari: keep the moving background from breaking scroll */
@supports (-webkit-touch-callout: none) {
  .bg-motion { position: absolute; height: 100vh; }
}
