/* ============================================================
   803 North Shore Sabre Squadron — site styles
   Mobile-first. Edit the variables below to re-theme the site.
   ============================================================ */

:root {
  --navy: #081830;
  --navy-2: #0e2342;
  --navy-3: #16335f;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --sky: #7dd3fc;
  --gold: #f0b541;
  --gold-dark: #d99a1b;
  --bg: #f4f7fc;
  --card: #ffffff;
  --text: #16213a;
  --text-muted: #5b6880;
  --border: #e3e9f4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(8, 24, 48, 0.05), 0 6px 18px rgba(8, 24, 48, 0.07);
  --shadow-lg: 0 4px 10px rgba(8, 24, 48, 0.08), 0 18px 45px rgba(8, 24, 48, 0.16);
  --max-w: 1120px;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; }

::selection { background: var(--gold); color: var(--navy); }

/* ---------- Language toggle ---------- */
html[data-lang="en"] [lang="fr"] { display: none !important; }
html[data-lang="fr"] [lang="en"] { display: none !important; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 24, 48, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand svg { flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.14); }

.lang-toggle {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(240, 181, 65, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.lang-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240, 181, 65, 0.5); }

.site-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  padding-bottom: 0.75rem;
}
.site-nav.open { display: flex; animation: navIn 0.25s ease both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.site-nav a {
  position: relative;
  color: #dfe7f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.site-nav a.active { color: var(--gold); }

.site-nav a.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  text-align: center;
  font-weight: 800;
  margin: 0.4rem 1rem 0;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(240, 181, 65, 0.35);
}
.site-nav a.nav-cta:hover { filter: brightness(1.06); }

@media (min-width: 880px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: auto;
    padding-bottom: 0;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.5rem 0.8rem; }
  .site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0.8rem; right: 0.8rem; bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a.active:not(.nav-cta)::after { transform: scaleX(1); }
  .site-nav a.nav-cta { margin: 0 0 0 0.6rem; padding: 0.5rem 1.15rem; }
  .lang-toggle { margin-left: 0.6rem; }
}
@media (max-width: 879.98px) {
  .header-inner { flex-wrap: wrap; }
  .lang-toggle { order: 2; margin-left: 0.25rem; }
  .nav-toggle { order: 3; }
  .site-nav { order: 4; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4.5rem 1rem 5rem;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(37, 99, 235, 0.45), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(240, 181, 65, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: var(--grid-px, 0px) var(--grid-py, 0px);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }

.hero-crest {
  display: block;
  width: 150px;
  height: auto;
  max-width: 38vw;
  margin: 0 0 1.1rem;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  color: #fde9bd;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  backdrop-filter: blur(6px);
}
@keyframes eyebrowPulse {
  0%, 100% { box-shadow: 0 0 6px var(--gold); transform: scale(1); }
  50%       { box-shadow: 0 0 18px var(--gold), 0 0 30px rgba(240,181,65,0.45); transform: scale(1.4); }
}
.hero .eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: eyebrowPulse 2.2s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
  max-width: 18ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--gold) 0%, #ffd98a 50%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.02rem, 2.5vw, 1.25rem);
  color: #b9c8de;
  max-width: 58ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 3rem;
}
@media (min-width: 720px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fact:hover { transform: translateY(-3px); border-color: rgba(240, 181, 65, 0.5); }
.fact strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.fact span { font-size: 0.84rem; color: #aebdd4; }
.fact strong span { color: inherit; font-size: inherit; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 3.25rem 1rem;
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(37, 99, 235, 0.4), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 20%, transparent 80%);
  pointer-events: none;
}
.page-hero .hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.page-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; }
.page-hero p { margin: 0; color: #b9c8de; max-width: 65ch; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(240, 181, 65, 0.4);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(240, 181, 65, 0.55); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue), #1d4fd8);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.btn-blue:hover { box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45); }

/* ---------- Layout ---------- */
.section { padding: 4rem 1rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section.alt { background: linear-gradient(180deg, #eaf0f9 0%, var(--bg) 100%); }

.section h2 {
  position: relative;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--navy);
  padding-top: 1.1rem;
}
.section h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.section h2.reveal::before { width: 0; }
.section h2.visible::before { width: 44px; }
.center h2::before {
  left: 50%;
  width: 44px;
  transform: translateX(-50%) scaleX(1);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.center h2.reveal::before { transform: translateX(-50%) scaleX(0); }
.center h2.visible::before { transform: translateX(-50%) scaleX(1); }
.section .section-sub { color: var(--text-muted); margin: 0 0 2.25rem; max-width: 65ch; font-size: 1.02rem; }

.cards { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3ddee; }
.card h3 { margin: 0 0 0.55rem; font-size: 1.12rem; color: var(--navy); }
.card p { margin: 0 0 0.85rem; color: var(--text-muted); font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }

.card .card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(8, 24, 48, 0.25);
}
@keyframes iconWiggle {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-14deg) scale(1.18); }
  45%  { transform: rotate(11deg) scale(1.12); }
  65%  { transform: rotate(-7deg) scale(1.06); }
  82%  { transform: rotate(4deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}
.card:hover .card-icon { animation: iconWiggle 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

a.card { display: block; text-decoration: none; color: inherit; }
a.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  pointer-events: none;
}
a.card:hover::after { border-color: var(--gold); }
.card .card-link { color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* ---------- Link lists (resources) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.9rem;
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.link-list a:hover { background: #edf3fc; color: var(--blue); padding-left: 1.15rem; }
.link-list a::before { content: "→"; color: var(--gold-dark); font-weight: 800; flex: 0 0 auto; }

/* ---------- Steps (Join page) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.15rem; position: relative; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.6rem 4.8rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.3rem;
  top: 1.45rem;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(240, 181, 65, 0.45);
}
.step h3 { margin: 0 0 0.45rem; color: var(--navy); font-size: 1.1rem; }
.step p { margin: 0 0 0.7rem; color: var(--text-muted); font-size: 0.95rem; }
.step code {
  display: inline-block;
  background: #eef3fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.84rem;
  word-break: break-word;
  color: var(--navy);
}

/* ---------- Notices ---------- */
.notice {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, #fdf4dd, #fdf8ec);
  border-radius: 0 14px 14px 0;
  padding: 1rem 1.2rem;
  margin: 0 0 1.6rem;
  font-size: 0.96rem;
  box-shadow: var(--shadow);
}
.notice.blue {
  border-left-color: var(--blue);
  background: linear-gradient(135deg, #e5eefc, #eef4fd);
}

/* ---------- Staff grid ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1.05rem;
}
.staff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.staff-card .role {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 0.3rem;
}
.staff-card .name { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--navy); }
.staff-card a { color: var(--blue); font-size: 0.84rem; text-decoration: none; word-break: break-all; }
.staff-card a:hover { text-decoration: underline; }

/* ---------- Accordions (awards) ---------- */
details.acc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
details.acc[open] { box-shadow: var(--shadow-lg); }
details.acc summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  padding: 1.1rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s ease;
}
details.acc summary:hover { background: #f4f7fd; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: #f0e3c4;
  color: var(--gold-dark);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
details.acc[open] summary::after { content: "–"; transform: rotate(180deg); }
details.acc .acc-body { padding: 0 1.3rem 1.3rem; }

.award-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.award-table th, .award-table td { text-align: left; padding: 0.6rem 0.65rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.award-table tbody tr:last-child td { border-bottom: none; }
.award-table tbody tr:hover { background: #f7fafd; }
.award-table th { color: var(--text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; }
@media (max-width: 560px) {
  .award-table thead { display: none; }
  .award-table tr { display: block; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
  .award-table td { display: block; border: none; padding: 0.1rem 0; }
  .award-table td:first-child { font-weight: 700; color: var(--navy); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.15rem; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- Calendar gate ---------- */
.gate {
  max-width: 470px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.4rem 1.8rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate h2 { padding-top: 0; }
.gate h2::before { display: none; }
.gate input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin: 0.8rem 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gate input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.gate .error { color: #c0331f; font-size: 0.9rem; min-height: 1.3em; margin: 0.25rem 0 0.5rem; }
.gate .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    var(--navy);
  color: #aebccf;
  padding: 3rem 1rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 1.9rem;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: #fff; margin: 0 0 0.7rem; font-size: 0.98rem; }
.site-footer a { color: #d3deec; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2.25rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #7e90aa;
}
.social-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-row a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Scroll reveal (added by js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   WOW effects — cursor glow, card tilt/spotlight, hero FX
   (all injected/driven by js/main.js, auto-disabled for
   touch devices and prefers-reduced-motion)
   ============================================================ */

/* ---------- Custom cursor glow (desktop only) ---------- */
.cursor-dot, .cursor-glow {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(240, 181, 65, 0.9);
}
.cursor-glow {
  width: 42px; height: 42px;
  border: 1.5px solid rgba(240, 181, 65, 0.65);
  background: radial-gradient(circle, rgba(240, 181, 65, 0.12), transparent 70%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cursor-glow.is-link {
  width: 64px; height: 64px;
  border-color: rgba(125, 211, 252, 0.8);
  background: radial-gradient(circle, rgba(125, 211, 252, 0.14), transparent 70%);
}
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-glow { opacity: 0; }

/* ---------- Card tilt + cursor spotlight ---------- */
.fx-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.fx-spot { position: relative; overflow: hidden; }
.fx-spot-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(240, 181, 65, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.fx-spot:hover .fx-spot-layer { opacity: 1; }

/* ---------- Hero entrance animation ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero .hero-crest { animation: riseIn 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0s both; }
.hero .eyebrow    { animation: riseIn 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.05s both; }
.hero h1          { animation: riseIn 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.15s both; }
.hero p.lead      { animation: riseIn 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.28s both; }
.hero-actions     { animation: riseIn 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.4s both; }
.hero-facts       { animation: none; } /* individual facts bounce in */
@keyframes factBounce {
  0%   { opacity: 0; transform: translateY(28px) scale(0.85); }
  55%  { opacity: 1; transform: translateY(-7px) scale(1.03); }
  80%  { transform: translateY(3px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero .fact:nth-child(1) { animation: factBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both; }
.hero .fact:nth-child(2) { animation: factBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.68s both; }
.hero .fact:nth-child(3) { animation: factBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.81s both; }
.hero .fact:nth-child(4) { animation: factBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.94s both; }
.page-hero h1     { animation: riseIn 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.05s both; }
.page-hero p      { animation: riseIn 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.16s both; }

/* ---------- Animated gradient headline ---------- */
.hero h1 .grad {
  background-size: 220% 100%;
  animation: gradShift 5s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ---------- Particle canvas (injected into heroes) ---------- */
.fx-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero .hero-inner, .page-hero .hero-inner { z-index: 2; }

/* ---------- Wave divider (bottom of home hero) ---------- */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 72px;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #ffd98a, var(--sky));
  z-index: 10000;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ---------- Plane fly-by (home hero) ---------- */

/* Lead plane — white, mid-hero */
.fx-plane {
  position: absolute;
  top: 22%;
  left: -12%;
  z-index: 0;
  pointer-events: none;
  animation: flyAcross 15s linear 1.2s infinite;
  opacity: 0;
}
.fx-plane svg {
  width: clamp(32px, 5vw, 54px);
  height: auto;
  fill: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.8));
  animation: planeBob 2.4s ease-in-out infinite alternate;
}
.fx-plane::before {
  content: "";
  position: absolute;
  top: 55%;
  right: 88%;
  width: 26vw;
  height: 2px;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.55), transparent);
  border-radius: 2px;
  animation: contrailPulse 1.6s ease-in-out infinite alternate;
}
@keyframes flyAcross {
  0%   { transform: translateX(0) translateY(0) rotate(6deg); opacity: 0; }
  4%   { opacity: 1; }
  18%  { transform: translateX(18vw) translateY(-2vh) rotate(0deg); }
  60%  { transform: translateX(70vw) translateY(-6vh) rotate(0deg); opacity: 1; }
  78%  { opacity: 0; }
  100% { transform: translateX(124vw) translateY(-10vh) rotate(0deg); opacity: 0; }
}
@keyframes planeBob {
  from { transform: rotate(74deg) translateY(0); }
  to   { transform: rotate(92deg) translateY(-10px); }
}
@keyframes contrailPulse {
  from { opacity: 0.45; }
  to   { opacity: 0.9; }
}

/* Gold plane — lower altitude */
.fx-plane-2 {
  position: absolute;
  top: 42%;
  left: -10%;
  z-index: 0;
  pointer-events: none;
  animation: flyAcross2 22s linear 8s infinite;
  opacity: 0;
}
.fx-plane-2 svg {
  width: clamp(20px, 3vw, 36px);
  height: auto;
  fill: rgba(240, 181, 65, 0.8);
  filter: drop-shadow(0 0 10px rgba(240, 181, 65, 0.65));
  animation: planeBob2 3.1s ease-in-out infinite alternate;
}
.fx-plane-2::before {
  content: "";
  position: absolute;
  top: 55%;
  right: 88%;
  width: 18vw;
  height: 1.5px;
  background: linear-gradient(270deg, rgba(240, 181, 65, 0.45), transparent);
  border-radius: 2px;
  animation: contrailPulse 2s ease-in-out infinite alternate;
}
@keyframes flyAcross2 {
  0%   { transform: translateX(0) translateY(0) rotate(4deg); opacity: 0; }
  5%   { opacity: 1; }
  16%  { transform: translateX(16vw) translateY(1vh) rotate(0deg); }
  65%  { transform: translateX(72vw) translateY(4vh) rotate(0deg); opacity: 1; }
  82%  { opacity: 0; }
  100% { transform: translateX(130vw) translateY(7vh) rotate(0deg); opacity: 0; }
}
@keyframes planeBob2 {
  from { transform: rotate(76deg) translateY(0); }
  to   { transform: rotate(88deg) translateY(-7px); }
}

/* Tiny white plane — high altitude */
.fx-plane-3 {
  position: absolute;
  top: 8%;
  left: -8%;
  z-index: 0;
  pointer-events: none;
  animation: flyAcross3 34s linear 18s infinite;
  opacity: 0;
}
.fx-plane-3 svg {
  width: clamp(14px, 2vw, 24px);
  height: auto;
  fill: rgba(255, 255, 255, 0.45);
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.4));
  animation: planeBob3 4.5s ease-in-out infinite alternate;
}
@keyframes flyAcross3 {
  0%   { transform: translateX(0) translateY(0); opacity: 0; }
  4%   { opacity: 0.65; }
  72%  { transform: translateX(82vw) translateY(-5vh); opacity: 0.65; }
  88%  { opacity: 0; }
  100% { transform: translateX(140vw) translateY(-8vh); opacity: 0; }
}
@keyframes planeBob3 {
  from { transform: rotate(77deg) translateY(0); }
  to   { transform: rotate(84deg) translateY(-4px); }
}

/* ---------- Button shine sweep ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.btn:hover::after { left: 130%; }

/* ---------- Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-crest, .hero .eyebrow, .hero h1, .hero p.lead, .hero-actions, .hero-facts,
  .page-hero h1, .page-hero p { animation: none; }
  .hero h1 .grad { animation: none; }
  .fx-plane, .fx-plane-2, .fx-plane-3 { display: none; }
  .hero .eyebrow::before { animation: none; }
  .btn::after { display: none; }
  .hero .fact:nth-child(1), .hero .fact:nth-child(2),
  .hero .fact:nth-child(3), .hero .fact:nth-child(4) { animation: none; opacity: 1; transform: none; }
  .card:hover .card-icon { animation: none; }
  .section h2.reveal::before { width: 44px; }
  .center h2.reveal::before { transform: translateX(-50%) scaleX(1); }
}

/* ---------- Photo gallery (pictures.html) ---------- */
.back-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.back-link:hover { text-decoration: underline; }

.album-card { padding: 0 0 1.2rem; }
.album-card h3 { margin: 0.9rem 1.3rem 0.2rem; }
.album-card .album-meta { margin: 0 1.3rem; color: var(--text-muted); font-size: 0.85rem; }
.album-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.album-card:hover .album-cover img { transform: scale(1.06); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-thumb {
  padding: 0;
  border: none;
  background: var(--navy-2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-thumb:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 13, 28, 0.93);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: riseIn 0.3s ease both;
}
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.lb-btn:hover { background: rgba(240, 181, 65, 0.85); color: var(--navy); transform: scale(1.08); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.7rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.7rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-count {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #cfd9e8;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
