/* ================================================================
   FUFA INVITATIONAL — MASTERS SHARED STYLESHEET
   Used by all inner pages. Index.html is self-contained.
   Augusta Deep Green · Warm Ivory · Burnished Gold
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ---- Tokens ---- */
:root {
  --green-deep:   #003D1F;
  --green-mid:    #00572B;
  --green-hi:     #007A3D;
  --gold:         #C9A227;
  --gold-hi:      #E2BD55;
  --gold-dim:     rgba(201,162,39,0.35);
  --cream:        #F6F1E5;
  --cream-dark:   #EDE6D3;
  --ink:          #1A1916;
  --ink-mute:     #5A5750;
  --white:        #FEFCF6;
  --red:          #6B1717;
  --line-dark:    rgba(0,61,31,0.18);
  --line-light:   rgba(245,240,228,0.15);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: none; border: none; background: none; color: inherit; }

/* ---- Custom Cursor ---- */
#fufa-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 38px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-3px, -36px);
  transition: opacity 0.2s;
  will-change: left, top;
}
#fufa-cursor.clicking { transform: translate(-3px, -36px) scale(0.85); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 52px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s, padding 0.4s, box-shadow 0.4s;
  background: rgba(0,45,22,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201,162,39,0.2);
}

.nav--hero {
  background: linear-gradient(180deg, rgba(0,35,17,0.85) 0%, transparent 100%);
  backdrop-filter: none;
  box-shadow: none;
}

.nav__brand {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex; align-items: center; gap: 14px;
}

.nav__brand-rule {
  width: 28px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.nav__links {
  display: flex; gap: 32px; align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__links a {
  color: rgba(246,241,229,0.68);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: "";
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav__links a:hover { color: var(--gold-hi); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--gold); }
.nav__links a.active::after { width: 100%; }

.nav__signin {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--gold-dim);
  padding: 11px 26px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav__signin:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* Mobile nav burger */
.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 32px; padding: 4px 0;
  cursor: none;
}
.nav__burger span {
  display: block; height: 1.5px;
  background: rgba(246,241,229,0.7);
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 860px) {
  .nav { padding: 18px 24px; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(0,40,20,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-dim);
    padding: 8px 0 16px;
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 14px 24px; width: 100%; border-bottom: 1px solid rgba(201,162,39,0.08); }
  .nav__links a::after { display: none; }
  .nav__burger { display: flex; }
  .nav__signin { padding: 9px 16px; font-size: 9px; }
}

/* ---- PAGE HERO (inner pages) ---- */
.phead-m {
  padding: clamp(110px, 14vw, 160px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse at 70% 0%, rgba(0,87,43,0.5), transparent 55%),
    var(--green-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.phead-m::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.phead-m .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
}

.phead-m__kicker {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}

.phead-m__kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.phead-m__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.phead-m__title em {
  font-style: italic;
  color: var(--gold-hi);
}

.phead-m__sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.6;
  color: rgba(246,241,229,0.65);
  max-width: 680px;
}

/* ---- SECTION HEADER ---- */
.shead-m {
  margin-bottom: 52px;
  display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap;
}

.shead-m__kicker {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.shead-m__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 68px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--green-deep);
}

[class*="section--dark"] .shead-m__title,
.on-dark .shead-m__title { color: var(--cream); }

.shead-m__title em { font-style: italic; color: var(--green-hi); }
.on-dark .shead-m__title em { color: var(--gold-hi); }

.shead-m__rule {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 18px 0 0;
}

.shead-m__sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
  margin-left: auto;
  align-self: flex-end;
  max-width: 380px;
  text-align: right;
}

.on-dark .shead-m__sub { color: rgba(246,241,229,0.5); }

/* ---- SECTIONS ---- */
.m-section {
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
}

.m-section--dark {
  background: var(--green-deep);
  color: var(--cream);
}

.m-section--surface {
  background: var(--cream-dark);
}

.wrap-m {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
}

/* ---- BUTTONS ---- */
.btn-m {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 40px;
  display: inline-block;
  transition: all 0.35s ease;
}

.btn-m--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-m--gold:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.btn-m--green {
  background: var(--green-mid);
  color: var(--cream);
}
.btn-m--green:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,45,22,0.3);
}

.btn-m--outline {
  border: 1px solid var(--gold-dim);
  color: var(--cream);
}
.btn-m--outline:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-2px);
}

.btn-m--outline-dark {
  border: 1px solid var(--line-dark);
  color: var(--ink);
}
.btn-m--outline-dark:hover {
  border-color: var(--green-mid);
  color: var(--green-mid);
  transform: translateY(-2px);
}

/* ---- PROSE ---- */
.prose-m {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.8;
  max-width: 720px;
  color: var(--ink);
}

.prose-m p { margin-bottom: 1.2em; }

.prose-m h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  margin: 1.6em 0 0.5em;
  line-height: 1.1;
}

.prose-m h3 {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.4em 0 0.5em;
}

.prose-m strong { font-weight: 600; }

.prose-m em { font-style: italic; }

.prose-m ul {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.prose-m ul li { margin-bottom: 0.5em; }

.on-dark .prose-m { color: rgba(246,241,229,0.78); }
.on-dark .prose-m h2 { color: var(--cream); }

/* ---- DIVIDER ---- */
.m-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  border: none;
  margin: 0;
}

/* ---- FOOTER ---- */
.foot-m {
  background: #001811;
  color: rgba(246,241,229,0.38);
  padding: 64px 0 36px;
}

.foot-m__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
}

.foot-m__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,162,39,0.15);
  margin-bottom: 32px;
}

.foot-m__brand {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246,241,229,0.55);
}

.foot-m__brand span {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-top: 6px;
}

.foot-m__nav {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot-m__nav a { transition: color 0.2s; }
.foot-m__nav a:hover { color: var(--gold); }

.foot-m__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot-m__charity { color: rgba(201,162,39,0.5); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.up { opacity: 1; transform: none; }

.reveal-l {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-l.up { opacity: 1; transform: none; }

.reveal-r {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-r.up { opacity: 1; transform: none; }

/* Stagger delays */
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---- KEYFRAMES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 680px) {
  .wrap-m { padding: 0 24px; }
  .phead-m .wrap { padding: 0 24px; }
  .foot-m__inner { padding: 0 24px; }
  .foot-m__top { flex-direction: column; }
  .foot-m__bottom { flex-direction: column; gap: 8px; }
  .shead-m { flex-direction: column; gap: 12px; }
  .shead-m__sub { margin-left: 0; text-align: left; }
}

/* ================================================================
   SHIELD BACKGROUND WATERMARK (shared across all pages)
================================================================ */
.m-section--dark,
.phead-m {
  overflow: hidden;
}

.shield-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20vw;
  height: 20vw;
  background: url('../assets/fufa-shield-white.png') center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: width, height, opacity;
}

/* All inner content must sit above shield */
.m-section--dark > .wrap-m,
.m-section--dark > .wrap,
.phead-m > .wrap {
  position: relative;
  z-index: 1;
}

/* ================================================================
   NAV BRAND LOGO IMAGE
================================================================ */
.nav__brand-logo {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.92;
}

@media (max-width: 680px) {
  .nav__brand-logo { height: 22px; }
}
