/* ===================================
   OCSM — Oak Cliff Society of Mahjong
   Main Stylesheet
   =================================== */

/* --- VARIABLES --- */
:root {
  --pink:       #c61672;
  --gold:       #efcb58;
  --purple:     #cc57c7;
  --peach:      #e3a180;
  --white:      #ffffff;
  --cream:      #fdf8f0;
  --dark:       #2a0a1a;
  --dark2:      #1f0535;
  --text:       #2d1520;
  --text-light: #7a4a5a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Raleway', sans-serif;

  --nav-h: 110px;
  --radius: 12px;
  --shadow: 0 8px 40px rgba(198,22,114,0.12);
  --shadow-lg: 0 20px 60px rgba(198,22,114,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.center { text-align: center; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn-primary:hover {
  background: #a01060;
  border-color: #a01060;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,22,114,0.35);
}

.btn-secondary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: #d4b040;
  border-color: #d4b040;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,203,88,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--pink);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}
.btn-outline-dark:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

/* --- NAVIGATION --- */
.nav {
  background: rgba(253, 248, 240, 0.98);
  box-shadow: 0 2px 20px rgba(198,22,114,0.1);
  border-bottom: 1px solid rgba(198,22,114,0.12);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(253, 248, 240, 0.97);
  box-shadow: 0 2px 20px rgba(198,22,114,0.1);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo-img {
  height: 130px;
  width: 130px;
  object-fit: contain;
  border-radius: 0;
  transition: transform 0.3s ease;
  margin-right: auto;
}
.nav-logo-img:hover { transform: scale(1.05) rotate(3deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
  background: rgba(198,22,114,0.08);
}

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem;
  border: 1px solid rgba(198,22,114,0.1);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,10,18,0.5) 0%,
    rgba(198,22,114,0.3) 50%,
    rgba(26,10,18,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  animation: fadeUp 1s ease both;
}

.hero-logo {
  width: 220px;
  height: 220px;
  border-radius: 0;
  margin: 0 auto 2rem;
  box-shadow: 0 0 60px rgba(239,203,88,0.3), 0 0 100px rgba(198,22,114,0.2);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint { display: none; }

.marquee-strip { display: none; }

/* --- INTRO SECTION --- */
.intro-section { background: var(--cream); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text h2 { margin-bottom: 1.5rem; color: var(--text); }
.intro-text p { margin-bottom: 1rem; }
.intro-text .btn { margin-top: 1rem; }

.intro-photos {
  position: relative;
  height: 500px;
}

.intro-photo {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.intro-photo-main {
  width: 80%;
  height: 80%;
  top: 0; right: 0;
  object-position: center top;
}

.intro-photo-accent {
  width: 55%;
  height: 55%;
  bottom: 0; left: 0;
  border: 4px solid var(--white);
}

/* --- LEAGUES SECTION --- */
.leagues-section {
  background: #2a0a1a;
  position: relative;
  overflow: hidden;
}

.leagues-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(198,22,114,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.leagues-section .eyebrow { color: var(--gold); }
.leagues-section h2 { color: var(--white); margin-bottom: 3rem; }

.leagues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.league-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.league-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.league-monday { background: linear-gradient(135deg, var(--pink), #8a0f50); }
.league-tuesday { background: linear-gradient(135deg, #9a0f5a, #c61672); }

.league-card-inner { padding: 2.5rem; }

.league-day {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.league-card h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.league-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.league-card > .league-card-inner > p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.league-details {
  margin-bottom: 2rem;
}
.league-details li {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

/* --- PHOTO STRIP --- */
.photo-strip {
  display: flex;
  height: 280px;
  overflow: hidden;
}

.photo-strip img {
  flex: 1;
  object-fit: cover;
  transition: flex 0.4s ease;
  filter: brightness(0.85);
}

.photo-strip img:hover {
  flex: 2.5;
  filter: brightness(1);
}

/* --- MEMBERS TEASER --- */
.members-teaser {
  background: linear-gradient(135deg, var(--gold) 0%, #f5d875 50%, var(--gold) 100%);
}

.members-teaser-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.members-teaser .eyebrow { color: var(--pink); }
.members-teaser h2 { color: var(--dark); margin-bottom: 1.5rem; }
.members-teaser p { color: rgba(26,10,18,0.75); margin-bottom: 1rem; }
.members-teaser-crest img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}

/* --- LESSONS TEASER --- */
.lessons-teaser { background: var(--cream); }

.lessons-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lessons-img {
  border-radius: 20px;
  height: 450px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.lessons-content .eyebrow { color: var(--pink); }
.lessons-content h2 { color: var(--text); margin-bottom: 1.5rem; }
.lessons-content p { margin-bottom: 1.5rem; }

/* --- INSTAGRAM SECTION --- */
.insta-section {
  background: var(--pink);
}

.insta-section .eyebrow { color: var(--gold); }
.insta-section h2 { color: var(--white); margin-bottom: 1rem; }
.insta-section p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 2.5rem; }

.insta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: #2a0a1a;
  color: var(--white);
  padding: 5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}
.footer-links ul li a:hover { color: var(--white); }

.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-contact p a:hover { color: var(--gold); }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem !important;
  color: var(--gold) !important;
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 2rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   INNER PAGE STYLES
   =========================== */

/* Page Hero (for inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: #2a0a1a;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(198,22,114,0.3), transparent 70%);
}

.page-hero .eyebrow { color: var(--gold); position: relative; }
.page-hero h1 { color: var(--white); position: relative; margin: 0.5rem 0 1rem; }
.page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  font-size: 1.1rem;
}

/* Content sections */
.content-section { padding: 5rem 0; }
.content-section h2 { color: var(--text); margin-bottom: 1.5rem; }
.content-section h3 { color: var(--pink); margin-bottom: 0.75rem; font-size: 1.3rem; }
.content-section p { margin-bottom: 1rem; }

/* Info Cards */
.info-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(198,22,114,0.08);
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--pink), #8a0f50);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--white);
}
.highlight-box h3 { color: var(--white); margin-bottom: 1rem; }
.highlight-box p { color: rgba(255,255,255,0.85); }
.highlight-box ul li {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Gold highlight box */
.gold-box {
  background: linear-gradient(135deg, var(--gold), #f5d875);
  border-radius: 20px;
  padding: 2.5rem;
}
.gold-box h3 { color: var(--dark); margin-bottom: 1rem; }
.gold-box p { color: rgba(26,10,18,0.75); }

/* Rules list */
.rules-list { margin: 1rem 0 2rem; }
.rules-list li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(198,22,114,0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.rules-list li::before {
  content: '🀄';
  flex-shrink: 0;
  font-size: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(198,22,114,0.15);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(198,22,114,0.1);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* Fave Things / Links grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(198,22,114,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.link-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}
.link-card p {
  font-size: 0.88rem;
  flex: 1;
}
.link-card .btn { align-self: flex-start; font-size: 0.75rem; padding: 0.6rem 1.2rem; }

/* Events list */
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }

.event-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink);
  transition: transform 0.25s ease;
}
.event-item:hover { transform: translateX(4px); }

.event-date {
  text-align: center;
  background: var(--pink);
  color: var(--white);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  min-width: 70px;
}
.event-date .month {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-date .day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.event-info h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.event-info p { font-size: 0.88rem; margin: 0; }

/* Sustaining members */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.perk-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.perk-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.perk-item h4 { font-family: var(--font-display); color: var(--pink); margin-bottom: 0.5rem; font-size: 1.1rem; }
.perk-item p { font-size: 0.88rem; }

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

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(239,203,88,0.3), 0 0 80px rgba(198,22,114,0.2); }
  50%       { box-shadow: 0 0 80px rgba(239,203,88,0.5), 0 0 160px rgba(198,22,114,0.35); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .intro-grid,
  .leagues-grid,
  .two-col,
  .members-teaser-inner,
  .lessons-teaser-inner,
  .footer-inner { grid-template-columns: 1fr; }

  .intro-photos { height: 300px; margin-top: 2rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(198,22,114,0.1);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(198,22,114,0.05);
    display: none;
    border-radius: 8px;
    margin-top: 0.25rem;
  }
  .dropdown.open .dropdown-menu { display: block; }

  .photo-strip { height: 180px; }

  .event-item { grid-template-columns: auto 1fr; }
  .event-item .btn { grid-column: 1 / -1; }

  .members-teaser-crest { display: none; }

  .footer-inner { gap: 2.5rem; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero-logo { width: 150px; height: 150px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .photo-strip { display: none; }
  .leagues-grid { grid-template-columns: 1fr; }
}
