/* ==========================================================
   Force 10 Sailing — Falcon
   ========================================================== */

:root {
  --navy: #0a1a2f;
  --navy-2: #0f2542;
  --ocean: #13406b;
  --falcon: #2a3db5;
  --accent: #eb5100;
  --accent-2: #ff7a2f;
  --sand: #f6f3ec;
  --ink: #16202e;
  --muted: #5b6676;
  --line: rgba(255, 255, 255, .12);
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(5, 15, 30, .45);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1.02rem, .96rem + .25vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; }

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: 1.05rem; text-decoration: none;
  padding: .85rem 2.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(235, 81, 0, .7); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }

.contact-pills { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.contact-pills.left { justify-content: flex-start; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.25rem; border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  font-weight: 600; transition: background-color .2s ease, transform .2s ease;
  word-break: break-all;
}
.pill:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.pill svg { width: 18px; height: 18px; fill: var(--accent-2); flex: none; }

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-nav.scrolled {
  background: rgba(10, 26, 47, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.nav-inner {
  height: 100%; width: min(1280px, 100% - 2.5rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand-logo { width: 92px; height: auto; filter: brightness(0) invert(1); }
.brand-text { font-family: var(--head); font-weight: 600; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }

.nav-menu ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav-menu a {
  display: block; padding: .5rem .85rem; color: rgba(255, 255, 255, .88); text-decoration: none;
  font-family: var(--head); font-weight: 500; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 8px; transition: color .2s ease, background-color .2s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-menu a.nav-cta { background: var(--accent); color: #fff; margin-left: .5rem; padding-inline: 1.2rem; }
.nav-menu a.nav-cta:hover { background: var(--accent-2); }
.nav-menu-title { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .12); position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 110;
    background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu-title {
    display: block; color: var(--accent-2); font-family: var(--head); letter-spacing: .3em;
    text-transform: uppercase; font-size: .95rem; margin: 0 0 1.5rem;
  }
  .nav-menu ul { flex-direction: column; gap: .5rem; }
  .nav-menu a { font-size: 1.9rem; padding: .4rem 1.2rem; text-align: center; }
  .nav-menu a.nav-cta { margin: 1rem 0 0; }
  .brand-text { font-size: 1.15rem; }
  .brand-logo { width: 70px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 5rem;
}
.hero-bg {
  position: absolute; inset: -4%;
  background:
    linear-gradient(180deg, rgba(10, 26, 47, .55) 0%, rgba(10, 26, 47, .25) 40%, rgba(10, 26, 47, .85) 100%),
    url(../img/hero.jpg) center 40% / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1%); } }

.hero-content { position: relative; max-width: 960px; }
.eyebrow {
  font-family: var(--head); letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin: 0 0 .5rem; font-size: clamp(.9rem, .8rem + .4vw, 1.1rem);
}
.hero h1 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(3.2rem, 1.5rem + 8vw, 8.5rem); line-height: .92; margin: 0;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.hero-sub {
  font-family: var(--head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2.2rem); margin: 1rem 0 .25rem; line-height: 1.2;
}
.hero-tag { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-style: italic; opacity: .9; margin: 0 0 2.2rem; }

.scroll-cue {
  position: absolute; bottom: 1.75rem; left: 50%; translate: -50% 0;
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

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

.section { padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0; position: relative; }
.section-light { background: var(--sand); }
.section-dark { background: var(--navy); color: #e8edf4; }
.section-ocean { background: linear-gradient(150deg, var(--ocean) 0%, var(--navy-2) 100%); color: #eef3fa; }

.section-logo { width: 150px; margin: 0 auto 1rem; }
.split .section-logo, .footer .section-logo { margin-left: 0; }
.logo-light { filter: brightness(0) invert(1); opacity: .9; }

.section-title {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.8rem); line-height: 1; margin: 0 0 1.5rem;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; background: var(--accent);
  margin-top: 1rem; border-radius: 2px;
}
.center .section-title::after, .section-title.center::after, #about .section-title::after { margin-inline: auto; }
#about { text-align: center; }
.section-sub { margin: -0.5rem 0 2.5rem; color: var(--muted); font-style: italic; font-size: 1.15rem; }

.lead { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); line-height: 1.65; color: #2b3647; font-weight: 300; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem;
}
.stat {
  background: #fff; border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
  box-shadow: 0 10px 30px -18px rgba(10, 26, 47, .35); border-top: 3px solid var(--accent);
}
.stat-num { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); color: var(--navy); line-height: 1; }
.stat-num small { font-size: .45em; margin-left: .15em; color: var(--accent); letter-spacing: .05em; }
.stat-label { display: block; margin-top: .4rem; color: var(--muted); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Split layouts */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split.reverse { grid-template-columns: 7fr 5fr; }
.split.reverse .split-head { order: 2; }
.split-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.split-body p { margin: 0 0 1.4rem; }
.section-dark .split-body p { color: #cfd8e5; }
.split-body p:first-child::first-letter {
  font-family: var(--head); font-weight: 700; float: left; font-size: 4.2em; line-height: .8;
  margin: .08em .12em 0 0; color: var(--accent);
}
.split-photo { margin: 1.5rem 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .8s ease; }
.split-photo:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-head { order: 0; }
  .split-head { position: static; }
}

/* Callout */
.callout {
  height: clamp(320px, 65vh, 760px);
  background: url(../img/callout.jpg) center / cover no-repeat fixed;
}
@media (max-width: 1024px), (hover: none) { .callout { background-attachment: scroll; } }

/* Calendar */
.card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 2.25rem 2rem; backdrop-filter: blur(6px);
}
.card-kicker { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: #b9c8db; }
.card-headline { margin: 0; font-family: var(--head); font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); letter-spacing: .03em; color: #fff; }
.card-headline strong { font-weight: 600; }

/* Videos */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-feature { max-width: 1000px; margin: 0 auto 1.5rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin-inline: auto; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery {
  --cols: 4; --gap: .75rem;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: calc((min(1180px, 100vw - 2.5rem) - (var(--cols) - 1) * var(--gap)) / var(--cols) / 2);
  grid-auto-flow: dense;
}
@media (max-width: 900px) { .gallery { --cols: 3; } }
@media (max-width: 600px) { .gallery { --cols: 2; --gap: .5rem; } }
.gallery button {
  position: relative; padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden;
  background: #d9dde3;
}
.gallery button.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.gallery button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 26, 47, .55));
  opacity: 0; transition: opacity .3s ease;
}
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.06); }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 12, 22, .95);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem;
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lb-figure img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-figure figcaption { color: #cdd6e3; margin-top: 1rem; font-family: var(--head); letter-spacing: .12em; text-transform: uppercase; }
.lb-nav, .lb-close {
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer;
  border-radius: 999px; width: 54px; height: 54px; font-size: 2.2rem; line-height: 1;
  transition: background-color .2s ease;
}
.lb-nav:hover, .lb-close:hover { background: var(--accent); }
.lb-close { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 1.25rem; }
  .lb-prev { left: 1.25rem; } .lb-next { right: 1.25rem; }
}

/* Article */
.article { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.article-cover { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); transition: transform .4s ease; }
.article-cover:hover { transform: rotate(0) scale(1.02); }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .article-cover { transform: none; } }

/* Specs */
.specs-model {
  font-family: var(--head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: .18em;
  color: var(--accent-2); margin: -0.5rem 0 3rem;
}
.specs-grid { columns: 3 300px; column-gap: 1.25rem; }
.spec-card {
  break-inside: avoid; margin: 0 0 1.25rem; padding: 1.6rem 1.6rem 1.2rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--radius);
}
.spec-card h3 {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  font-size: 1.1rem; color: var(--accent-2); margin: 0 0 .75rem;
}
.spec-card h3:not(:first-child) { margin-top: 1.5rem; }
.spec-card dl { margin: 0; }
.spec-card dl div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .98rem;
}
.spec-card dl div:last-child { border-bottom: 0; }
.spec-card dt { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: #8ea0b8; padding-top: .15rem; }
.spec-card dd { margin: 0; color: #f0f4fa; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; font-size: .98rem; }
.spec-list li { position: relative; padding-left: 1.1rem; color: #f0f4fa; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Footer */
.footer { position: relative; color: #e8edf4; overflow: hidden; background: var(--navy); }
.footer-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 47, .9), rgba(10, 26, 47, .97)), url(../img/gallery/3.jpg) center / cover no-repeat;
}
.footer-inner {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem;
  padding: clamp(4.5rem, 3rem + 6vw, 7rem) 0 3rem;
}
.footer-org { margin: 0; font-size: 1.2rem; }
.footer-name { margin: .1rem 0 0; font-size: 1.45rem; color: #fff; }
.ports {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem;
  align-self: end;
}
.ports li {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: 1.15rem;
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03);
}
.footer-col:last-child { display: flex; align-items: flex-end; }
.footer-bottom {
  position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; font-size: .92rem; color: #8ea0b8;
}
.footer-bottom p { margin: 0; }
.to-top { color: #cdd6e3; text-decoration: none; }
.to-top:hover { color: var(--accent-2); }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .ports { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .scroll-cue span { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .callout { background-attachment: scroll; }
}
