/* Povo Racing — shared styles */

@font-face { font-family: 'Titillium Web'; src: url('../fonts/titillium-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/titillium-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/titillium-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/worksans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/worksans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --ink: #10141c;
  --ink-soft: #4c5566;
  --ink-faint: #838ba0;
  --line: #e3e6ec;
  --blue: #1e4fd6;
  --blue-dark: #13379e;
  --blue-soft: #eaf0fe;
  --blue-soft-line: #cddaf9;
  --max: 1240px;
  --gap-section: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Titillium Web', sans-serif; font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { padding: var(--gap-section) 0; }
.eyebrow {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--blue); display: inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo-lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-lockup img { width: 34px; height: auto; }
.logo-lockup .word { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: 0.01em; line-height: 1; }
.logo-lockup .word span { color: var(--blue); }
.logo-lockup .tag { display: block; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-faint); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 28px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 16px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; border: none; background: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { width: 100%; height: 2px; background: var(--ink); display: block; }
}

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 0; }
.hero-media { position: relative; height: min(84vh, 780px); min-height: 460px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(9,12,20,0.92) 0%, rgba(9,12,20,0.35) 46%, rgba(15,25,64,0.18) 100%);
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 clamp(36px, 6vw, 68px); }
.hero-copy .container { max-width: var(--max); }
.hero-copy .eyebrow { color: #8fabff; }
.hero-copy .eyebrow::before { background: #8fabff; }
.hero-copy h1 { font-size: clamp(38px, 6vw, 68px); color: #fff; max-width: 16ch; }
.hero-copy .lede { font-family: 'Work Sans', sans-serif; font-size: clamp(15.5px, 1.6vw, 18px); color: #d3d9ea; max-width: 54ch; margin: 18px 0 30px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ SECTION HEADINGS ============ */
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 16.5px; max-width: 56ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ CARDS / GRID ============ */
.card-grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 30px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ============ STAT ROW ============ */
.stat-row { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { flex: 1; padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .num { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: clamp(26px, 3vw, 38px); color: var(--blue); font-variant-numeric: tabular-nums; }
.stat .label { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
@media (max-width: 700px) { .stat-row { flex-wrap: wrap; } .stat { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--line); } .stat:nth-child(1), .stat:nth-child(2) { border-top: none; } }

/* ============ STORY BLOCKS (About) ============ */
.story-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.story-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.story-block.reverse .story-media { order: 2; }
.story-media img { border-radius: 4px; width: 100%; }
.story-media { position: relative; }
.story-copy h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; }
.story-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.story-copy p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .story-block, .story-block.reverse { grid-template-columns: 1fr; gap: 26px; }
  .story-block.reverse .story-media { order: 0; }
}

blockquote.pull {
  border-left: 3px solid var(--blue);
  margin: 8px 0;
  padding: 4px 0 4px 22px;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

/* ============ GALLERY ============ */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn {
  font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 3px; background: var(--line); aspect-ratio: 1/1; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox {
  position: fixed; inset: 0; background: rgba(8,10,16,0.94); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 2px; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--blue); border-color: var(--blue); }
.lightbox .lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #b9c0d4; font-family: 'Titillium Web', sans-serif; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============ BLOG ============ */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.post-list a.post-row:hover .post-title { color: var(--blue); }
.post-row .post-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.post-row .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-date { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; display: block; }
.post-title { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: 23px; margin: 0 0 10px; }
.post-excerpt { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; } }

.post-article { max-width: 720px; margin: 0 auto; }
.post-article .post-hero { aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; margin-bottom: 36px; }
.post-article .post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-article h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.post-article .post-meta { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 24px; }
.post-article .post-body p { color: var(--ink-soft); font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.post-article .post-body h3 { font-size: 21px; margin: 32px 0 12px; color: var(--ink); }
.post-article .post-body strong { color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--blue); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { padding-bottom: 0; }
.contact-item .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; font-family: 'Titillium Web', sans-serif; font-weight: 900; }
.contact-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--ink-soft); font-size: 15px; text-decoration: none; }
.contact-item a:hover { color: var(--blue); }

/* ============ CTA BAND ============ */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); max-width: 26ch; margin: 0 auto; }
.cta-band p { color: #aab3c8; margin: 16px auto 30px; max-width: 46ch; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 34px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--ink-soft); font-size: 13.5px; font-family: 'Titillium Web', sans-serif; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a:hover { color: var(--blue); }
.site-footer .foot-note { font-size: 12.5px; color: var(--ink-faint); }

/* ============ PAGE HEADER (non-home pages) ============ */
.page-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-header p { color: var(--ink-soft); margin-top: 16px; max-width: 58ch; font-size: 16.5px; }

/* ============ NAV HIGHLIGHT (Cape York) ============ */
.nav-highlight {
  background: var(--amber, #d9822b) !important; color: #1a1206 !important;
  padding: 6px 14px !important; border-radius: 999px !important; border-bottom: none !important;
}
.nav-highlight:hover { background: #c67420 !important; color: #1a1206 !important; }

/* ============ CAPE YORK — expedition page ============ */
.cy-page { --amber: #d9822b; --amber-light: #f0b46e; --cy-ink: #12100e; --cy-sub: #b9b0a4; --cy-line: rgba(255,255,255,0.14); }
.cy-page body, .cy-page { background: var(--cy-ink); }
.cy-hero { position: relative; background: var(--cy-ink); color: #fff; overflow: hidden; }
.cy-hero-media { position: relative; height: min(88vh, 820px); min-height: 480px; }
.cy-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cy-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,16,14,0.95) 0%, rgba(18,16,14,0.4) 50%, rgba(18,16,14,0.15) 100%); }
.cy-hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 clamp(36px, 6vw, 68px); }
.cy-hero-copy .eyebrow { color: var(--amber-light); }
.cy-hero-copy .eyebrow::before { background: var(--amber-light); }
.cy-hero-copy h1 { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: clamp(38px, 6.4vw, 72px); color: #fff; max-width: 20ch; line-height: 1.02; text-wrap: balance; }
.cy-hero-copy .lede { font-family: 'Work Sans', sans-serif; font-size: clamp(15.5px, 1.6vw, 18.5px); color: #d8d2c8; max-width: 58ch; margin: 18px 0 0; line-height: 1.7; }

.cy-section { background: var(--cy-ink); color: #efece6; padding: var(--gap-section) 0; }
.cy-section.alt { background: #17140f; }
.cy-stat-row { display: flex; border-top: 1px solid var(--cy-line); border-bottom: 1px solid var(--cy-line); }
.cy-stat { flex: 1; padding: 26px 24px; border-left: 1px solid var(--cy-line); }
.cy-stat:first-child { border-left: none; }
.cy-stat .num { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: clamp(24px, 2.8vw, 34px); color: var(--amber-light); font-variant-numeric: tabular-nums; }
.cy-stat .label { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cy-sub); margin-top: 6px; }
@media (max-width: 700px) { .cy-stat-row { flex-wrap: wrap; } .cy-stat { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--cy-line); } .cy-stat:nth-child(1), .cy-stat:nth-child(2) { border-top: none; } }

.cy-day { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; padding: 56px 0; border-top: 1px solid var(--cy-line); }
.cy-day:first-child { border-top: none; padding-top: 0; }
.cy-day.reverse { grid-template-columns: 1.15fr 0.85fr; }
.cy-day.reverse .cy-day-media { order: 2; }
.cy-day-media img, .cy-day-media video { width: 100%; border-radius: 4px; display: block; }
.cy-day-media { position: relative; }
.cy-day-label { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 12px; display: block; }
.cy-day h3 { font-family: 'Titillium Web', sans-serif; font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); color: #fff; margin: 0 0 16px; text-wrap: balance; }
.cy-day p { color: var(--cy-sub); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.cy-day p:last-child { margin-bottom: 0; }
.cy-day p em { color: #fff; font-style: italic; }
@media (max-width: 860px) { .cy-day, .cy-day.reverse { grid-template-columns: 1fr; gap: 24px; } .cy-day.reverse .cy-day-media { order: 0; } }

.cy-note { background: rgba(217,130,43,0.1); border: 1px solid rgba(217,130,43,0.35); border-radius: 4px; padding: 22px 24px; margin-top: 8px; }
.cy-note p { color: #efece6; margin: 0; font-size: 15.5px; }
.cy-note .cy-note-label { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-light); display: block; margin-bottom: 8px; }

.cy-roster { display: flex; flex-wrap: wrap; gap: 10px; }
.cy-roster span { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.03em; color: #efece6; background: rgba(255,255,255,0.06); border: 1px solid var(--cy-line); border-radius: 999px; padding: 8px 18px; }

.cy-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cy-gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 3px; background: #1c1812; aspect-ratio: 1/1; cursor: zoom-in; }
.cy-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cy-gallery-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 980px) { .cy-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cy-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.cy-video-frame { position: relative; border-radius: 4px; overflow: hidden; background: #000; }
.cy-video-frame video { width: 100%; display: block; max-height: 620px; }

.cy-page .btn-primary { background: var(--amber); }
.cy-page .btn-primary:hover { background: #c67420; }
.cy-page .btn-ghost-light:hover { border-color: var(--amber-light); color: var(--amber-light); }
.cy-section .eyebrow, .cy-page .eyebrow { color: var(--amber-light); }
.cy-section .eyebrow::before, .cy-page .eyebrow::before { background: var(--amber-light); }
.cy-section .section-head p { color: var(--cy-sub); }

.cy-ext-video {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--cy-line); border-radius: 4px;
  padding: 16px 18px; text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.cy-ext-video:hover { border-color: var(--amber); background: rgba(217,130,43,0.08); }
.cy-ext-video .cy-ext-play {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--amber);
  display: flex; align-items: center; justify-content: center; color: #1a1206; font-size: 15px;
}
.cy-ext-video .cy-ext-title { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 14.5px; color: #fff; margin: 0 0 3px; }
.cy-ext-video .cy-ext-meta { font-size: 12.5px; color: var(--cy-sub); }
