/*
  NoHo Pickleball — Styles
  Theme: White & Purple
*/
:root {
  /* Brand colors - purple + yellow */
  --purple: #6F2CFF;
  --purple-600: #5c22e6;
  --purple-700: #4b1cc0;
  --purple-100: #F3ECFF;
  --yellow: #FFD400; /* bright brand yellow */
  --yellow-600: #fbca00;
  --yellow-700: #e6b800;
  --text: #101114;
  --muted: #5b5e6a;
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e9e9ef;
  --shadow: 0 10px 30px rgba(20, 0, 80, 0.15);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo { width: 34px; height: 34px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--yellow); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; width: 32px; height: 32px; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 600; transition: transform .05s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: #000000; box-shadow: var(--shadow); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-600); color: #000000; }
.btn-secondary { background: var(--purple); color: white; border-color: var(--purple); }
.btn-ghost { background: transparent; color: var(--purple); border-color: transparent; }
.btn.secondary-invert { background: var(--purple-100); color: var(--purple); }
.small { padding: 8px 12px; font-size: 14px; }

/* Hero */
.top-banner { width: 100%; position: relative; overflow: hidden; display:flex; align-items:center; justify-content:center; }
/* Background image banner: use background-image for adaptive positioning */
.top-banner { background-repeat: no-repeat; background-position: center center; background-size: contain; background-color: #000; min-height: 220px; height: clamp(160px, 32svh, 380px); }
.top-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08)); pointer-events: none; }

@media (max-width: 640px) {
  /* Shorter banner on phones -- still contain so the full image shows */
  .top-banner { height: clamp(120px, 28svh, 260px); }
}
.hero { position: relative; background: radial-gradient(1200px 400px at 75% -10%, var(--purple-100), transparent 40%); overflow: clip; min-height: 400px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 400px; padding: 60px 0; }

.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 40%, rgba(111,44,255,0.18) 100%); }
.hero-copy h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; min-height: 1.2em; contain: layout; }
.hero-copy p { margin: 0 0 22px; color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); min-height: 3em; contain: layout; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-accent { position: absolute; inset: auto -120px -120px auto; width: 280px; height: 280px; background: conic-gradient(from 200deg, var(--purple) 0%, var(--yellow) 50%, #b08cff 80%); filter: blur(80px); opacity: .22; border-radius: 50%; pointer-events: none; z-index: 1; }

/* Sections */
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 34px); min-height: 1.2em; }
.section-head p { margin: 0; color: var(--muted); min-height: 1.5em; }
.section-head h2 { color: var(--purple); }

/* Booking */
.book { padding: 56px 0; }
.booking-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-height: 200px; }
.booking-card-body { padding: 22px; text-align: center; }
.booking-title { margin: 0 0 6px; font-size: 20px; min-height: 1.3em; }
.booking-desc { margin: 0 0 14px; color: var(--muted); min-height: 1.5em; }
.booking-hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; min-height: 1.2em; }

/* Features */
.features { padding: 56px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); min-height: 180px; }
.card .icon { font-size: 28px; min-height: 28px; }
.card h3 { margin: 12px 0 8px; font-size: 18px; min-height: 1.3em; }
.card p { margin: 0; color: var(--muted); min-height: 1.5em; }

/* FAQ */
.faq { padding: 56px 0; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.contact { padding: 56px 0; background: linear-gradient(180deg, #fff 0%, var(--purple-100) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contact h2 { margin: 0 0 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: grid; gap: 14px; padding: 22px 0; align-items: center; grid-template-columns: 1fr; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 16px; }
.legal { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.legal #year { display: inline-block; min-width: 4ch; }

/* Hero Video Background */
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.7; pointer-events: none; }
.hero-video-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.6); z-index: 1; backdrop-filter: blur(1px); pointer-events: none; }

@media (max-width: 768px) {
  .hero-video { opacity: 0.5; }
  .hero-video-overlay { background: rgba(255, 255, 255, 0.7); }
  .hero { min-height: 300px; }
  .hero-inner { min-height: 300px; padding: 40px 0; }
}

/* Hero Content */
.hero { position: relative; background: radial-gradient(1200px 400px at 75% -10%, var(--purple-100), transparent 40%); overflow: clip; min-height: 400px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 400px; padding: 60px 0; }
.gallery-header { text-align: center; margin-bottom: 56px; }
.gallery-header h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); color: var(--purple); }
.gallery-header p { margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); max-width: 600px; margin-left: auto; margin-right: auto; }

.media-section { margin-bottom: 64px; }
.media-section:last-child { margin-bottom: 0; }
.section-title { margin: 0 0 32px; font-size: clamp(24px, 3.5vw, 32px); color: var(--purple); font-weight: 700; text-align: center; }

/* Media Filter Tabs */
.media-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 10px 20px; border-radius: 24px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); transition: all 0.2s ease; }
.filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.filter-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 4px 12px rgba(111, 44, 255, 0.3); }

/* Grid Layout - Masonry for premium look */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.media-grid.masonry { column-count: 3; column-gap: 20px; display: block; }
@media (min-width: 1200px) {
  .media-grid:not(.masonry) { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .media-grid.masonry { column-count: 4; }
}
@media (max-width: 900px) {
  .media-grid.masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .media-grid:not(.masonry) { grid-template-columns: 1fr; gap: 16px; }
  .media-grid.masonry { column-count: 1; }
}

.media-item { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #6F2CFF, #FFD400); padding: 3px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; break-inside: avoid; margin-bottom: 20px; display: inline-block; width: 100%; }
.media-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
.media-item:active { transform: translateY(-2px); }
.media-item.hidden { display: none; }

.media-thumbnail { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #000; max-height: 320px; }
/* Vertical video (9:16 aspect ratio - 360x640) */
.media-item[data-aspect="vertical"] .media-thumbnail { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; max-height: 640px; }
/* Horizontal video (16:9 aspect ratio - 1920x1080) */
.media-item[data-aspect="horizontal"] .media-thumbnail { aspect-ratio: 16 / 9; max-height: 320px; }
/* Photos maintain 4:3 by default */
.media-photo .media-thumbnail { aspect-ratio: 4 / 3; max-height: 320px; }

.media-thumbnail img,
.media-thumbnail video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.media-item:hover .media-thumbnail img,
.media-item:hover .media-thumbnail video { transform: scale(1.05); }

.media-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.6) 100%); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.media-item:hover .media-overlay { opacity: 1; }

.play-button { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: rgba(111, 44, 255, 0.95); box-shadow: 0 4px 20px rgba(111, 44, 255, 0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.media-item:hover .play-button { transform: scale(1.1); box-shadow: 0 6px 30px rgba(111, 44, 255, 0.6); }
.play-button svg { width: 100%; height: 100%; }

.media-label { position: absolute; bottom: 16px; left: 16px; background: rgba(255, 255, 255, 0.95); color: var(--text); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Legacy support */
.media-hero { padding: 40px 0 16px; }
.media-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.5vw, 40px); }
.player { position: relative; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.aspect-16x9 { position: relative; width: 100%; padding-top: 56.25%; }
.aspect-16x9 iframe,
.aspect-16x9 video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.aspect-16x9 video { background: #000; }
.aspect-9x16 { position: relative; width: 100%; padding-top: 177.78%; max-width: 360px; margin: 0 auto; }
.aspect-9x16 video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.player-vertical { max-width: 360px; margin: 0 auto; }
@media (max-width: 640px) {
  .player-vertical { max-width: 100%; }
  .aspect-9x16 { max-width: 100%; }
}

/* Lightbox/Modal - Enhanced for Videos and Images */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 16, 0.95); backdrop-filter: blur(8px); display: grid; grid-template-columns: 1fr; align-content: center; justify-items: center; padding: 24px; opacity: 0; transition: opacity 0.3s ease; }
.lightbox:not(.hidden) { opacity: 1; }
.lightbox.hidden { display: none; }
.lightbox-content { position: relative; max-width: min(96vw, 1200px); max-height: 90vh; display: grid; justify-items: center; gap: 16px; }
.lightbox-content img,
.lightbox-content video { max-width: 100%; max-height: 85vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-content video { background: #000; }
.lightbox-content .hidden { display: none; }
.lightbox-cap { color: #fff; opacity: .9; margin: 0; text-align: center; font-size: 16px; font-weight: 500; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

body.no-scroll { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; right: 4%; top: 58px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; flex-direction: column; width: 200px; box-shadow: var(--shadow); }
  .nav.nav-open { display: flex; }
  .nav a { padding: 8px 10px; border-radius: 8px; }
  .nav-toggle { display: inline-block; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .hero { min-height: 350px; }
  .hero-inner { min-height: 350px; padding: 40px 0; }
}

/* Breadcrumb */
.breadcrumb {
  background: var(--purple-100);
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

/* Utilities */
.hidden { display: none !important; }

