/* ============================================================
   STRAIT MARINE — Shared stylesheet (all pages)
   ============================================================ */

:root {
  --navy: #0A1628;
  --navy-deep: #050D1A;
  --navy-soft: #13253F;
  --navy-card: #0E1C32;
  --steel: #4A90B8;
  --steel-bright: #6BB0D6;
  --steel-faint: rgba(74, 144, 184, 0.15);
  --steel-line: rgba(74, 144, 184, 0.3);
  --white: #FFFFFF;
  --white-soft: #E8EEF4;
  --grey: #8A9BAE;
  --grey-dim: #4A5A6F;
  --line: rgba(232, 238, 244, 0.08);
  --line-bright: rgba(232, 238, 244, 0.15);
  --warn: #E8B43A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--white-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.2 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-line { width: 18px; height: 2px; background: var(--steel); border-radius: 2px; }
.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
}
.logo-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--steel);
  margin-left: 4px;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--white-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--steel-bright); }
.nav-links a.active { color: var(--steel-bright); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--steel);
}

.nav-cta {
  background: var(--steel);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--steel-bright); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ═══ MAIN CONTAINER + SECTIONS ═══ */
main { position: relative; z-index: 2; }

.section {
  padding: 120px 48px;
  position: relative;
}
.section-inner {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 768px) {
  .section { padding: 80px 24px; }
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--steel);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}
.section-title .accent {
  font-style: italic;
  color: var(--steel-bright);
}

.section-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 540px;
}

/* ═══ HERO (home + sub-pages) ═══ */
.hero {
  padding: 160px 48px 100px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(74, 144, 184, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(74, 144, 184, 0.08) 0%, transparent 50%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 0;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 2px;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--steel);
  border-radius: 50%;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 144, 184, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(74, 144, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 144, 184, 0); }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 1100px;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--steel-bright);
}
.hero-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--grey);
  max-width: 720px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero.subpage { padding: 120px 24px 60px; min-height: auto; }
  .hero h1 { margin-bottom: 24px; }
  .hero-sub { margin-bottom: 32px; font-size: 15px; }
  .hero-eyebrow { margin-bottom: 24px; font-size: 11px; }
  .btn-row { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 12px; }
}

/* Hero (sub-page version — shorter) */
.hero.subpage {
  min-height: 56vh;
  padding: 160px 48px 80px;
}
.hero.subpage h1 {
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: 24px;
}

/* ═══ BUTTONS ═══ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--steel);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--steel-bright);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--white-soft);
  border-color: var(--line-bright);
}
.btn-secondary:hover {
  border-color: var(--steel);
  color: var(--steel-bright);
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══ CARDS / GRIDS ═══ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--navy);
  padding: 36px 32px;
  transition: background 0.25s;
}
.card:hover { background: var(--navy-card); }
.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--steel);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.card-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.card-body {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.65;
}

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--line);
  padding: 48px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col { font-size: 12px; }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col p, .footer-col a {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.8;
  display: block;
}
.footer-col a:hover { color: var(--steel-bright); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--grey-dim);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  footer { padding: 32px 20px; }
}

/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ TAG / BADGE ═══ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--line-bright);
  color: var(--grey);
}
.tag.live {
  border-color: var(--steel);
  color: var(--steel-bright);
}
.tag.live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--steel-bright);
  border-radius: 50%;
}
.tag.q3 {
  border-color: rgba(232, 180, 58, 0.4);
  color: var(--warn);
}
