/* ============================================================
   Queer Pickleball Miami Beach
   Palette: Miami sunset + ocean + pride accents
   ============================================================ */

:root {
  --coral:   #ff5a8a;
  --pink:    #ff7eb6;
  --orange:  #ff9d5c;
  --gold:    #ffd166;
  --teal:    #2ec4b6;
  --aqua:    #3ddbd9;
  --deep:    #1a1035;   /* deep plum navy */
  --deep-2:  #241448;
  --ink:     #2a2140;
  --muted:   #6c6486;
  --paper:   #fff7fb;
  --white:   #ffffff;

  --grad-sunset: linear-gradient(120deg, #ff5a8a 0%, #ff9d5c 55%, #ffd166 100%);
  --grad-pride:  linear-gradient(90deg, #ff5a8a, #ff9d5c, #ffd166, #2ec4b6, #3ddbd9, #7b6cff);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -18px rgba(26, 16, 53, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(26, 16, 53, 0.4);

  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; }

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Soft dark scrim at the very top so the white nav text is legible over the
   bright hero sky. Fades to nothing below the bar, and disappears on scroll. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220%;
  pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 8, 26, 0.62) 0%, rgba(12, 8, 26, 0.28) 45%, transparent 100%);
  transition: opacity 0.35s ease;
}
/* Once scrolled past the hero, the bar becomes a frosted dark strip */
.site-header.scrolled {
  background: rgba(26, 16, 53, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
.site-header.scrolled::after { opacity: 0; }
.nav {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.5rem; }
.brand-name em { font-style: normal; background: linear-gradient(90deg, #ffd166, #ff9d5c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-links a { color: #fff; font-weight: 500; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-cta {
  background: var(--grad-sunset); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { filter: brightness(1.05); }

/* Subtle shadow keeps text legible over the bright hero before you scroll */
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav-links > li > a:not(.nav-cta) {
  text-shadow: 0 1px 16px rgba(26, 16, 53, 0.45);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
/* Background media: placeholder image by default; swap for a real photo/video */
.hero-media {
  position: absolute; inset: 0;
  background: url(/assets/hero.jpg) center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Dark + pride tint so white text stays legible over any photo/video */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,16,53,0.30) 0%, rgba(26,16,53,0.62) 100%),
    linear-gradient(115deg, rgba(255,90,138,0.42), rgba(46,196,182,0.30) 70%);
}
.hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 120px 22px 128px; }
.eyebrow {
  display: inline-block; margin: 0 0 20px; padding: 7px 16px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; font-weight: 600; font-size: 0.92rem; backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 4px 30px rgba(26,16,53,0.25); }
.lede { max-width: 640px; margin: 22px 0 0; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,0.96); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 22px;
  margin: 40px 0 0; padding: 0; font-weight: 600; font-size: 0.98rem;
}
.hero-badges li { background: rgba(255,255,255,0.14); padding: 8px 16px; border-radius: 999px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--coral); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 22px 44px -18px rgba(26,16,53,0.5); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 22px; }
.section-alt { max-width: none; background: linear-gradient(180deg, #fff 0%, #fdeef6 100%); }
.section-alt > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 0.82rem;
  margin: 0 0 12px; background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-copy p { font-size: 1.08rem; margin: 0 0 18px; }
.about-copy strong { color: var(--coral); }
.feature-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card {
  background: #fff; border: 1px solid rgba(26,16,53,0.07); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Two rules band ---------- */
.rules {
  text-align: center; color: #fff; padding: 56px 22px;
  background:
    radial-gradient(100% 140% at 50% 0%, rgba(61,219,217,0.35), transparent 60%),
    var(--deep);
}
.rules-intro { margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.rules-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 26px; }
.rule {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.rule-num {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; font-size: 0.5em;
  border-radius: 999px; background: var(--grad-sunset); color: #fff;
}
.rule-amp { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--aqua); }
.rules-note { margin: 18px 0 0; color: rgba(255,255,255,0.72); }

/* ---------- All welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.welcome-card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; text-align: left;
}
.welcome-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-pride);
}
.welcome-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.welcome-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 0 0 10px; color: var(--ink); }
.welcome-card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Contact ---------- */
.section-contact { max-width: none; padding-top: 40px; }
.contact-card {
  max-width: var(--wrap); margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(61,219,217,0.4), transparent 60%),
    var(--grad-sunset);
  color: #fff; padding: 64px 40px; box-shadow: var(--shadow);
}
.contact-card .kicker { -webkit-text-fill-color: #fff; color: #fff; background: none; opacity: 0.9; }
.contact-card .section-sub { color: rgba(255,255,255,0.94); }
.contact-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 560px; margin: 8px auto 0; }
.contact-method {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.32);
  border-radius: var(--radius); padding: 26px 20px; text-align: center; color: #fff;
  display: flex; flex-direction: column; gap: 4px; transition: transform 0.15s, background 0.2s;
}
.contact-method:hover { text-decoration: none; transform: translateY(-3px); background: rgba(255,255,255,0.26); }
.contact-icon { font-size: 1.9rem; }
.contact-label { font-weight: 700; font-size: 1.05rem; }
.contact-value { font-size: 0.92rem; color: rgba(255,255,255,0.9); word-break: break-word; }
.contact-fineprint { text-align: center; margin: 26px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.82); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 50px 22px; text-align: center; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin: 0 0 8px; }
.footer-tag { margin: 0 0 18px; }
.footer-copy { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(26,16,53,0.97); backdrop-filter: blur(12px); padding: 8px 22px 20px;
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a { display: block; padding: 14px 4px; }
  .nav-cta { text-align: center; margin: 12px 0 0; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 64px 20px 76px; }
  .feature-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
