/* South Island Ravens — single-page site */

:root {
  --ink: #111418;
  --ink-2: #1d232b;
  --ink-soft: #4a5562;
  --ice: #f3f6f9;
  --ice-2: #e4ebf1;
  --white: #ffffff;
  --gold: #f2b705;
  --gold-dark: #c99600;
  --line: #d5dee7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 20, 24, 0.12);
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.75rem;
}
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
  line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--ice-2); border-color: var(--ice-2); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 48px; height: 48px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--ink-2); position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--ice-2); }
  .site-nav li a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; width: 100%; }
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242,183,5,.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  padding: clamp(3rem, 7vw, 6rem) 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 0.35em; }
.hero .eyebrow { color: var(--gold); }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d6dde5; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.45); background: var(--white); }
.hero-photo figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: #aab4bf; text-align: center; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
}

/* Facts strip */
.facts { background: var(--gold); color: var(--ink); }
.facts-list {
  list-style: none; margin: 0; padding: 1.5rem 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.facts-list li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 3px solid rgba(17,20,24,.25); }
.facts-list strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.facts-list span { font-size: 0.95rem; font-weight: 600; }
@media (max-width: 820px) { .facts-list { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-ice { background: var(--ice); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark p { color: #d6dde5; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media { margin: 0; }
.photo-card img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.photo-card figcaption { margin-top: 0.75rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
}

/* Program */
.program-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .program-grid { grid-template-columns: 1fr; } }

.pull-quote {
  margin: 2rem 0 0; padding: 1.25rem 1.5rem; border-left: 5px solid var(--gold);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; }

.info-card {
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.info-card h3 { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: 0.85rem; }
.info-card dl { margin: 0 0 1.25rem; }
.info-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-card dt { color: #aab4bf; }
.info-card dd { margin: 0; font-weight: 700; text-align: right; }
.info-card p { color: #d6dde5; font-size: 0.95rem; }
@media (max-width: 860px) { .info-card { position: static; } }

.gallery {
  list-style: none; margin: 3.5rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 200px);
  grid-template-areas:
    "a a b b"
    "c d b b"
    "c e e e";
}
.gallery li { overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery li:hover img { transform: scale(1.04); }
.gallery li:nth-child(1) { grid-area: a; }
.gallery li:nth-child(2) { grid-area: b; }
.gallery li:nth-child(3) { grid-area: d; }
.gallery li:nth-child(4) { grid-area: c; }
.gallery li:nth-child(4) img { object-position: center top; }
.gallery li:nth-child(5) { grid-area: e; }
@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 160px 160px 160px;
    grid-template-areas: "b b" "a c" "d c" "e e";
  }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } .contact-primary { grid-column: 1 / -1; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.contact-card h3 { margin-bottom: 0.4em; }
.contact-card .muted { margin-top: -0.3em; }
.contact-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.contact-primary h3 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-primary address { font-style: normal; color: #d6dde5; }
.contact-primary p { margin-bottom: 1.5rem; }
.contact-email { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; color: var(--white); text-decoration-color: var(--gold); text-underline-offset: 4px; word-break: break-word; }
.contact-email:hover { color: var(--gold); }

.people { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.people li { display: flex; flex-direction: column; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; }
.people span { color: var(--ink-soft); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #aab4bf; padding: 2rem 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.brand-footer { color: var(--white); font-size: 1rem; }
.brand-footer img { width: 40px; height: 40px; border-radius: 50%; background: var(--white); padding: 3px; }
