/* SR Sailing — DEN 48 · 49erFX · OL 2028 */

:root {
  --navy: #14263f;
  --navy-light: #1f3a5c;
  --cream: #ece7dd;
  --white: #ffffff;
  --ink: #16202c;
  --red: #b3341f;
  --muted: #6b7480;
  --radius-pill: 999px;
  --max-width: 1240px;
}

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

body {
  margin: 0;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: "Anton", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

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

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 28px 0;
}

.site-header.solid {
  position: relative;
  background: var(--navy);
  padding: 20px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Anton", sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.brand span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 78%;
    max-width: 320px;
    background: var(--navy);
    flex-direction: column;
    padding: 100px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,30,0.22) 0%, rgba(10,18,30,0.05) 35%, rgba(10,18,30,0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 90px;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  max-width: 900px;
}

.hero p {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 520px;
  color: rgba(255,255,255,0.9);
}

.hero-meta {
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--red);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-content.align-right {
  text-align: left;
  margin-left: 62%;
  max-width: 38%;
  padding-right: 24px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-content.align-right {
    margin-left: 0;
    max-width: none;
    padding-right: 24px;
    flex-shrink: 1;
    width: 100%;
  }
  .hero-content.align-right .hero-actions {
    justify-content: flex-start;
  }
}

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

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); }

.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-red { background: var(--red); color: var(--white); }

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

section { padding: 90px 0; }

.section-navy { background: var(--navy); color: var(--white); }
.section-cream { background: var(--cream); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}

.section-navy .eyebrow { color: #ff8a6b; }

.big-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin-bottom: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.lede { font-size: 1.2rem; max-width: 46ch; }

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

@media (max-width: 780px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  border-left: 3px solid var(--red);
  padding-left: 18px;
}

.stat .num {
  font-family: "Anton", sans-serif;
  font-size: 2.6rem;
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-navy .stat .label { color: rgba(255,255,255,0.65); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 40px;
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 220px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  background: rgba(20,38,63,0.65);
  border-radius: var(--radius-pill);
}

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

.card {
  background: var(--white);
  border-radius: 4px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(20, 38, 63, 0.08);
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

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

.person-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  margin-bottom: 20px;
}

.person-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.person-role {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Timeline / Results ---------- */

.timeline { margin-top: 50px; }

.timeline-group { margin-bottom: 50px; }

.timeline-group h3 {
  font-size: 1.5rem;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(20,38,63,0.1);
}

.result-row .year {
  font-family: "Anton", sans-serif;
  font-size: 1.1rem;
  color: var(--red);
  min-width: 64px;
}

.result-row .what { flex: 1; font-weight: 600; }
.result-row .place { color: var(--muted); font-size: 0.95rem; }

.badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 10px;
}

/* ---------- Sponsors ---------- */

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.sponsor-pill {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 38, 63, 0.15);
}

.section-cream .sponsor-pill {
  background: var(--white);
  border: 1px solid rgba(20,38,63,0.15);
  color: var(--navy);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

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

.offer-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-transform: none;
  font-family: "Work Sans", sans-serif;
  font-weight: 800;
}

/* ---------- Blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 50px;
}

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

.post-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 20px;
}

.post-date {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 700;
}

.post-card h3 { margin-top: 8px; font-size: 1.4rem; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

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

.contact-item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.contact-item .label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 6px;
}

.contact-item a, .contact-item span.value {
  font-size: 1.2rem;
  font-weight: 700;
}

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

.site-footer {
  background: var(--cream);
  padding: 50px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .brand { color: var(--ink); }
.site-footer .brand span { color: var(--red); }

.footer-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(20,38,63,0.15);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 180px 0 70px;
}

.page-hero .eyebrow { color: #ff8a6b; }
.page-hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  animation: slideInLeft 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-hero .eyebrow {
  display: inline-block;
  animation: slideInLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero h1,
  .page-hero .eyebrow {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-cta-col {
  padding: 90px clamp(24px, 5vw, 70px);
}

.split-cta-col + .split-cta-col {
  border-left: 1px solid rgba(20, 38, 63, 0.12);
}

@media (max-width: 780px) {
  .split-cta-col + .split-cta-col {
    border-left: none;
    border-top: 1px solid rgba(20, 38, 63, 0.12);
  }
}

@media (max-width: 780px) {
  .split-cta {
    grid-template-columns: 1fr;
  }
}

.ig-strip {
  text-align: center;
  padding: 36px 24px;
  background: var(--cream);
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.ig-link:hover {
  color: var(--red);
}

.ig-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 14s linear infinite;
}

.marquee-track span {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 6.5rem);
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 8px 34px rgba(0,0,0,0.55);
  white-space: nowrap;
  padding-right: 60px;
}

.marquee.on-light {
  margin-top: 0;
  margin-bottom: 30px;
}

.marquee.on-light .marquee-track span {
  color: var(--red);
  text-shadow: none;
}

@keyframes marqueeScroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.page-hero.with-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 560px;
  padding: 140px 0 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero.with-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,30,0.08) 0%, rgba(10,18,30,0.02) 40%, rgba(10,18,30,0.6) 100%);
}

.page-hero.with-photo .container {
  position: relative;
  z-index: 2;
}

.full-photo {
  height: 60vh;
  min-height: 380px;
  background-size: cover;
  background-position: center;
}

/* ---------- Full-bleed feature video (no controls, autoplay muted) ---------- */

.video-feature {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 420px;
  max-height: 820px;
  background: #000;
  overflow: hidden;
}

.video-feature video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mute-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 38, 63, 0.55);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mute-toggle:hover {
  background: rgba(20, 38, 63, 0.8);
}

/* ---------- Video embeds ---------- */

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 40px;
  background: #000;
  overflow: hidden;
}

.video-wrap iframe,
.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
