/* ============================================================
   THE FINANCE LINKS — Main Stylesheet
   ============================================================ */

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

/* ---- Variables ---- */
:root {
  --green:       #1B3A2D;
  --gold:        #C9A84C;
  --offwhite:    #F5F2EC;
  --charcoal:    #2E2E2E;
  --header-h:    76px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif:  'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --border-gold: 1px solid rgba(201, 168, 76, 0.18);
}

/* ── Skip to content (accessibility) ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--gold);
  color: var(--green);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageFade 0.5s ease both;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--green);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.site-header--hero {
  border-bottom-color: transparent;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--offwhite);
  transition: color 0.3s;
  white-space: nowrap;
}

.logo:hover { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.site-nav a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.72);
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--offwhite);
  transition: all 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle span:nth-child(3) { width: 22px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--offwhite);
  transition: color 0.3s;
}

.nav-overlay a:hover { color: var(--gold); }

/* ============================================================
   HERO (index.html)
   ============================================================ */

.hero {
  min-height: 100vh;
  background-color: var(--green);
  background-image: url('../images/pattern.svg');
  background-repeat: repeat;
  background-size: 800px 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 2rem 6rem;
}

.hero-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5.5vw, 4.8rem);
  letter-spacing: 0.3em;
  color: var(--offwhite);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 3.5rem;
}

.hero-rule {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3.5rem;
  animation: ruleExpand 0.9s 0.65s var(--ease) forwards;
}

.hero-member-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.65);
  transition: color 0.3s;
}

.hero-member-link:hover {
  color: var(--gold);
}

.hero-desc {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.05em;
  color: rgba(245, 242, 236, 0.78);
  max-width: 400px;
  line-height: 1.95;
  margin-bottom: 3.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.95rem 2.75rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.btn:hover {
  background: var(--gold);
  color: var(--green);
}

.btn--charcoal {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn--charcoal:hover {
  background: var(--charcoal);
  color: var(--offwhite);
}

/* ============================================================
   PAGE LAYOUT — INNER PAGES
   ============================================================ */

.page-main {
  padding-top: var(--header-h);
}

/* Inner page banner strip */
.page-banner {
  background-color: var(--green);
  background-image: url('../images/pattern.svg');
  background-repeat: repeat;
  background-size: 800px 200px;
  padding: 7rem 2rem 6rem;
  text-align: center;
}

.page-banner-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.page-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: 0.18em;
  color: var(--offwhite);
  font-weight: 300;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 7rem 2rem;
}

.section-inner {
  max-width: 740px;
  margin: 0 auto;
}

.section-inner--wide {
  max-width: 1100px;
  margin: 0 auto;
}

.section--dark {
  background-color: var(--green);
  background-image: url('../images/pattern.svg');
  background-repeat: repeat;
  background-size: 800px 200px;
}

/* Labels */
.label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

/* Section headings */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.section--dark .section-title {
  color: var(--offwhite);
}

/* Section body copy */
.section-body {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.95;
  max-width: 580px;
}

.section--dark .section-body {
  color: rgba(245, 242, 236, 0.78);
}

/* Gold rule */
.gold-rule {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 3rem 0;
}

.gold-rule--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   THREE RULES (about.html)
   ============================================================ */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem 4rem;
  margin-top: 5rem;
}

.rule-numeral {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.rule-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 1.25rem;
}

.rule-desc {
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.72);
}

/* ============================================================
   MEMBERSHIP — ELIGIBILITY & PERKS
   ============================================================ */

.eligibility-list {
  list-style: none;
  margin: 2rem 0;
}

.eligibility-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  font-size: 0.95rem;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(46, 46, 46, 0.08);
}

.eligibility-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.perks-list {
  list-style: none;
  margin: 2rem 0;
}

.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(46, 46, 46, 0.08);
  line-height: 1.7;
}

.perks-list li::before {
  content: '';
  display: block;
  min-width: 18px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.8rem;
}

/* Founding cohort callout */
.founding-callout {
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 5rem 3.5rem;
  text-align: center;
  margin: 5rem 0 4rem;
  background: rgba(201, 168, 76, 0.025);
}

.founding-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.founding-sublabel {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(46, 46, 46, 0.5);
  margin-bottom: 2.5rem;
}

.founding-text {
  font-size: 0.95rem;
  color: var(--charcoal);
  max-width: 400px;
  margin: 0 auto 3rem;
  line-height: 1.95;
}

/* ============================================================
   APPLICATION FORM (apply.html)
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  margin-bottom: 3rem;
}

.field label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(46, 46, 46, 0.2);
  padding: 0.6rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.35s var(--ease);
  -webkit-appearance: none;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(46, 46, 46, 0.6);
  font-weight: 300;
}

.field textarea {
  resize: none;
  min-height: 140px;
  line-height: 1.8;
  padding-top: 0.5rem;
}

.form-submit {
  margin-top: 1rem;
}

.form-note {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(46, 46, 46, 0.1);
  font-size: 0.8rem;
  color: rgba(46, 46, 46, 0.45);
  letter-spacing: 0.03em;
  line-height: 2;
  max-width: 540px;
}

/* Field error */
.field-error {
  display: block;
  font-size: 0.7rem;
  color: #a85c5c;
  letter-spacing: 0.03em;
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* Form success */
#form-success {
  display: none;
  text-align: center;
  padding: 5rem 0;
}

#form-success.visible { display: block; }

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.success-text {
  font-size: 0.9rem;
  color: rgba(46, 46, 46, 0.55);
  line-height: 1.9;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-wrap {
  min-height: 100vh;
  background-color: var(--green);
  background-image: url('../images/pattern.svg');
  background-repeat: repeat;
  background-size: 800px 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) 2rem 4rem;
}

.contact-label {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
}

.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.14em;
  color: var(--offwhite);
  font-weight: 300;
  margin-bottom: 3.5rem;
}

.contact-rule {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3.5rem;
}

.contact-line {
  font-size: 0.875rem;
  color: rgba(245, 242, 236, 0.72);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.contact-email:hover { opacity: 0.65; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--green);
  padding: 2.75rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

footer p {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.32);
}

.footer-member-link {
  margin-top: 0.85rem;
}

.footer-member-link a {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.14);
  transition: color 0.3s;
}

.footer-member-link a:hover {
  color: rgba(201, 168, 76, 0.45);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Page exit transition ─────────────────────────────────── */
body {
  transition: opacity 0.22s ease;
}

body.is-leaving {
  opacity: 0 !important;
  animation: none;
}

/* ── Focus styles (WCAG AA) ───────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-anim {
    opacity: 1;
    transform: none;
  }

  .hero-rule {
    width: 60px;
  }

  html {
    scroll-behavior: auto;
  }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruleExpand {
  to { width: 60px; }
}

/* Hero entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.95s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.48s; }
.delay-4 { animation-delay: 0.72s; }
.delay-5 { animation-delay: 0.96s; }

/* ── Golf icons ───────────────────────────────────────────── */

.hero-icon {
  margin-bottom: 2.75rem;
}

.hero-icon svg {
  margin: 0 auto;
}

.banner-icon {
  margin: 1.25rem auto 1.5rem;
}

.banner-icon svg {
  margin: 0 auto;
  opacity: 0.85;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }

/* ── Language toggle ───────────────────────────────────── */

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.28);
  padding: 0.25rem 0.45rem;
  transition: color 0.3s;
  line-height: 1;
}

.lang-btn.active {
  color: var(--gold);
}

.lang-btn:hover:not(.active) {
  color: rgba(245, 242, 236, 0.6);
}

.lang-divider {
  color: rgba(245, 242, 236, 0.12);
  font-size: 0.65rem;
  pointer-events: none;
  user-select: none;
}

/* ── Privacy footer link ───────────────────────────────── */

.privacy-footer-link {
  margin-top: 0.5rem;
}

.privacy-footer-link a {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.1);
  transition: color 0.3s;
}

.privacy-footer-link a:hover {
  color: rgba(201, 168, 76, 0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-top: 4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 1.75rem; }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 5rem 1.5rem; }

  .page-banner { padding: 5.5rem 1.5rem 4.5rem; }

  .founding-callout { padding: 3.5rem 1.75rem; }
}

@media (max-width: 480px) {
  .hero-wordmark { letter-spacing: 0.15em; }
  .founding-number { font-size: 3.5rem; }
  .btn { padding: 0.9rem 2rem; }
}
