/* La Sociedad — shared styles */

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

:root{
  --black: #0b0a0c;
  --charcoal: #17151a;
  --wine: #5c1027;
  --wine-light: #7a1836;
  --gold: #c9a86a;
  --gold-bright: #d8bd85;
  --cream: #f1ece2;
  --muted: #a89e91;
  --border: rgba(201,168,106,0.25);
}

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

html{ scroll-behavior: smooth; }

body{
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--cream);
}

h1{
  font-weight: 700;
  text-shadow: 0 0 60px rgba(201,168,106,0.28), 0 0 2px rgba(201,168,106,0.15);
}

.serif-accent{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

a{ color: inherit; text-decoration: none; }

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

.wrap{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Entry gate — full page */
#join-gate{
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 999;
  overflow-y: auto;
}
#join-gate.hidden{ display: none; }

body.gate-active{ overflow: hidden; }
body.gate-active .site{ display: none; }

.gate-page{
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(201,168,106,0.06), transparent 60%),
    var(--black);
}
.gate-page-header{
  text-align: center;
  padding: 56px 24px 8px;
}
.gate-page-logo{
  height: 130px;
  width: auto;
  margin: 0 auto;
}
.gate-page-body{
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 32px 90px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px){
  .gate-page-body{ grid-template-columns: 1fr; gap: 44px; padding: 24px 24px 70px; }
  .gate-page-logo{ height: 96px; }
}
.gate-page-intro{ padding-top: 12px; }
.gate-page-intro h1{
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 22px;
}
.gate-page-intro .lead{
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 34px;
  max-width: 480px;
}
.gate-reassure{
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 460px;
}
.gate-reassure li{
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 22px;
  position: relative;
}
.gate-reassure li::before{
  content: '—';
  color: var(--gold);
  position: absolute;
  left: 0;
}
.gate-page-form-wrap{
  background: var(--charcoal);
  border: 1px solid var(--border);
  padding: 44px 40px;
}
@media (max-width: 500px){
  .gate-page-form-wrap{ padding: 32px 22px; }
}

/* Buttons */
.btn{
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}
.btn:hover{ background: var(--gold); color: var(--black); }
.btn-solid{ background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-solid:hover{ background: transparent; color: var(--gold); }
.btn-ghost{ border-color: var(--muted); color: var(--muted); }
.btn-ghost:hover{ border-color: var(--cream); color: var(--cream); background: transparent; }

/* Header / nav */
header.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,10,12,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 0;
}
.logo{
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo span{ color: var(--gold); }
nav.main-nav ul{
  list-style:none; display:flex; gap: 36px;
}
nav.main-nav a{
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--gold); }
.nav-cta{ display:flex; align-items:center; gap: 20px; }
.menu-toggle{ display:none; background:none; border:none; color: var(--cream); font-size:1.4rem; cursor:pointer; }

@media (max-width: 820px){
  nav.main-nav{
    position: fixed; top: 73px; left:0; right:0; bottom:0;
    background: var(--black);
    display:none;
    padding: 40px 32px;
  }
  nav.main-nav.open{ display:block; }
  nav.main-nav ul{ flex-direction:column; gap: 26px; }
  .menu-toggle{ display:block; }
}

/* Hero */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex; align-items:center;
  background: radial-gradient(ellipse at top, var(--charcoal) 0%, var(--black) 65%);
  overflow: hidden;
}
.hero::after{
  content:'';
  position:absolute; inset:0;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(201,168,106,0.03) 40px 41px);
  pointer-events:none;
}
.hero-content{ max-width: 680px; }
.eyebrow{
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display:block;
}
.hero h1{
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 26px;
}
.hero p.lead{
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 38px;
}
.hero-actions{ display:flex; gap: 18px; flex-wrap: wrap; }

/* Sections */
section{ padding: 110px 0; }
section.tight{ padding: 70px 0; }
.section-head{ max-width: 620px; margin-bottom: 60px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{ font-size: clamp(2rem, 3.4vw, 2.8rem); }
.section-head p{ color: var(--muted); margin-top: 18px; }

.alt-bg{ background: var(--charcoal); }

/* Pillars / cards grid */
.grid-3{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.grid-2{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}
.card{
  border: 1px solid var(--border);
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(201,168,106,0.04), transparent);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.card .num{ color: var(--gold); font-family:'Playfair Display',serif; font-size:0.85rem; letter-spacing:0.1em; }
.card h3{ font-size: 1.4rem; margin: 16px 0 14px; }
.card p{ color: var(--muted); font-size: 0.95rem; }
.card a.card-link{ display:inline-block; margin-top: 20px; color: var(--gold); font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Divider strip */
.strip{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Event / listing rows */
.listing{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.listing:first-child{ border-top: 1px solid var(--border); }
.listing .tag{
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display:block;
}
.listing h3{ font-size: 1.5rem; margin-bottom: 10px; }
.listing p{ color: var(--muted); max-width: 520px; font-size: 0.95rem; }
.listing .meta{ min-width: 180px; text-align: right; color: var(--muted); font-size: 0.85rem; }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--wine), var(--wine-light));
  text-align:center;
  padding: 100px 0;
}
.cta-band h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }
.cta-band p{ color: rgba(241,236,226,0.8); max-width: 560px; margin: 0 auto 34px; }

/* Form */
form.inquire{ display:grid; gap: 20px; max-width: 560px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px){ .form-row{ grid-template-columns: 1fr; } }
label{ font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display:block; margin-bottom: 8px; }
input, textarea, select{
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus{ outline: none; border-color: var(--gold); }
textarea{ min-height: 120px; resize: vertical; }
.checkline{ display:flex; align-items:flex-start; gap: 10px; }
.checkline input{ width:auto; margin-top: 4px; }
.checkline label{ text-transform:none; letter-spacing:normal; font-size: 0.85rem; }

/* Footer */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid h4{ color: var(--cream); font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-grid ul{ list-style:none; display:grid; gap: 10px; }
.footer-grid ul a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 12px;
  font-size: 0.75rem;
}
.discretion-note{
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 640px;
  margin-top: 10px;
}

.footer-contact{
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 14px;
  line-height: 1.8;
}
.footer-contact a{
  color: var(--muted);
}
.footer-contact a:hover{
  color: var(--text);
}

/* Legal / policy pages */
.legal-content{ max-width: 760px; }
.legal-content .updated{
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 40px;
}
.legal-content h2.legal-h{
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--gold);
  margin: 40px 0 14px;
}
.legal-content h2.legal-h:first-child{ margin-top: 0; }
.legal-content p{
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol{
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 14px 22px;
}
.legal-content li{ margin-bottom: 6px; }
.legal-note{
  border: 1px solid var(--border);
  background: var(--charcoal);
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 40px;
}
.legal-note p{ margin-bottom: 0; font-size: 0.85rem; }

/* Entry / membership application gate */
.join-gate-box{
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 8px 4px;
}
.gate-intro{
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.gate-form{ text-align: left; }
.gate-form .btn{ margin-top: 6px; }
.selfie-preview{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.selfie-preview img{
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.selfie-preview span{
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}
.gate-error{
  color: #e08a8a;
  font-size: 0.85rem;
  margin-top: -6px;
}
#gate-submitted{ text-align: center; padding: 12px 4px; }
#gate-submitted h3{ margin-bottom: 14px; }
#gate-submitted p{ color: var(--muted); margin-bottom: 26px; }
.gate-fine-print{
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 22px;
  line-height: 1.5;
}

/* Gallery */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (max-width: 800px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
.gallery-item{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--charcoal);
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img{ transform: scale(1.05); }
.gallery-item.placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}
.gallery-item.placeholder span{
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Logo mark */
.logo-mark{ display:flex; align-items:center; }
.logo-mark img{
  height: 58px;
  width: auto;
  display: block;
}
.gate-logo{ display:flex; justify-content:center; margin-bottom: 20px; }
.gate-logo img{
  height: 168px;
  width: auto;
}
.footer-logo img{
  height: 74px;
  width: auto;
}
@media (max-width: 500px){
  .logo-mark img{ height: 44px; }
  .gate-logo img{ height: 128px; }
}
