/* ── Silicon Valley Country Club ── */

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

:root {
  --midnight:  #0c1a0e;
  --forest:    #1a2e1c;
  --ivy:       #2a4a2c;
  --gold:      #c4a35a;
  --gold-soft: rgba(196, 163, 90, .25);
  --cream:     #f5f1ea;
  --linen:     #ebe5d8;
  --white:     #fdfcf9;
  --text:      #3a3a35;
  --muted:     #7a7a70;
  --line:      rgba(196, 163, 90, .2);
  --serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:      'Montserrat', 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #d4b36a; }

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--forest);
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── Layout ── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 100px 0;
}

/* ── Fade-in ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════
   NAV
   ═══════════════════════════ */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s, padding .4s, box-shadow .4s;
}

.topnav.scrolled {
  background: rgba(12, 26, 14, .95);
  padding: 12px 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.topnav-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 1px;
}

.topnav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.topnav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245, 241, 234, .7);
  transition: color .3s;
}

.topnav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 24px;
  cursor: pointer;
}

/* ═══════════════════════════
   HERO
   ═══════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
  background: var(--midnight);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(42, 74, 44, .3) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 30%, var(--gold-soft) 0%, transparent 50%);
  pointer-events: none;
}

.hero-crest {
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
}

.hero-crest::after {
  content: "SVCC";
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 auto 24px;
}

.hero-tagline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(245, 241, 234, .5);
  max-width: 400px;
}

/* ═══════════════════════════
   INTRODUCTION
   ═══════════════════════════ */

.intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro .content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 28px;
  line-height: 1.2;
}

.intro p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.intro .accent {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin-top: 24px;
}

/* ═══════════════════════════
   AMENITIES
   ═══════════════════════════ */

.amenities {
  background: var(--cream);
}

.amenities h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 56px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.amenity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px 32px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

.amenity-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.amenity-card h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 14px;
}

.amenity-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════
   GALLERY
   ═══════════════════════════ */

.gallery {
  background: var(--forest);
  padding: 100px 0;
}

.gallery .section-label,
.gallery h2 {
  text-align: center;
}

.gallery h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--cream);
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 3 / 2;
  background: rgba(245, 241, 234, .05);
  border: 1px solid rgba(245, 241, 234, .08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: border-color .3s;
}

.gallery-item:hover {
  border-color: var(--gold);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder */
.gallery-item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item--placeholder::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 1px solid rgba(245, 241, 234, .1);
  border-radius: 50%;
}

/* ═══════════════════════════
   MEMBERSHIP
   ═══════════════════════════ */

.membership {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.membership .content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.membership h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 28px;
}

.membership p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.membership-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 44px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cream);
  background: var(--forest);
  border-radius: 3px;
  transition: background .2s, transform .15s;
}

.membership-cta:hover {
  background: var(--ivy);
  color: var(--cream);
  transform: translateY(-1px);
}

/* ═══════════════════════════
   CONTACT
   ═══════════════════════════ */

.contact {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.contact .content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 28px;
}

.contact p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact .address {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--forest);
  margin: 24px 0;
  line-height: 1.6;
}

.contact .email-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s;
  margin-bottom: 8px;
}

.contact .email-link:hover {
  border-color: var(--gold);
}

.contact .phone {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */

footer {
  background: var(--midnight);
  text-align: center;
  padding: 40px 24px;
  font-size: 11px;
  color: rgba(245, 241, 234, .3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .topnav-links { display: none; }
  .nav-toggle { display: block; }

  .topnav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 26, 14, .97);
    padding: 24px 32px;
    gap: 20px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Members Nav Link ── */
.nav-members-link {
  color: var(--gold) !important;
  border: 1px solid rgba(196, 163, 90, .4);
  padding: 6px 16px;
  border-radius: 3px;
  transition: background .2s, border-color .2s, color .2s !important;
}

.nav-members-link:hover {
  background: rgba(196, 163, 90, .15);
  border-color: var(--gold);
}
