/* ============================================================
   Midtown Ranchero — Design System
   Event Venue | Austin, TX | EN/ES/VI/ZH
   ============================================================ */

:root {
  /* Brand Colors */
  --dark:        #0D0B0E;
  --dark2:       #17141A;
  --dark3:       #221F26;
  --dark4:       #2E2A33;
  --brand:       #C4392B;
  --brand-light: #E84A3A;
  --brand-dark:  #8B2820;
  --gold:        #F5A623;
  --gold-light:  #FFC94D;
  --gold-dark:   #C47F0F;
  --cream:       #FBF8F4;
  --text:        #F0EDE8;
  --text-muted:  #A09896;
  --text-dark:   #1A1616;
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(245,166,35,0.25);

  /* Spacing */
  --gap:    clamp(16px, 3vw, 24px);
  --wrap:   1140px;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ─── Layout ─────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--dark { background: var(--dark); }
.section--dark2 { background: var(--dark2); }
.section--dark3 { background: var(--dark3); }
.section--cream { background: var(--cream); color: var(--text-dark); }
.section--brand { background: var(--brand); }
.section--gold  { background: var(--gold); color: var(--text-dark); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--gap); }
.flex { display: flex; flex-wrap: wrap; gap: var(--gap); }
.flex-center { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--gap); }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--gap); }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-family: var(--font-display); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: .03em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-cream .eyebrow { color: var(--brand); }
.lead { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-muted); }
.section--cream .lead { color: #5a5050; }

.gold-text { color: var(--gold); }
.brand-text { color: var(--brand); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--text-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--text-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--text-dark); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ─── Cards ─────────────────────────────────────────── */
.card {
  background: var(--dark3);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-gold); }
.card-body { padding: 24px; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--dark4); }
.card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark4), var(--dark3));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .85rem; text-align: center;
}
.card-tag {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--border-gold); color: var(--gold);
  margin-bottom: 10px;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark2);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(26,15,12,.85) 0%, rgba(13,11,14,.75) 50%, rgba(15,13,20,.85) 100%),
    url('../img/venue/pergola-bougainvillea.jpg') center/cover no-repeat;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 60px; }
.hero-eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(240,237,232,.8); max-width: 580px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding: 80px 0 56px;
  background: linear-gradient(160deg, #1A0F0C 0%, #0D0B0E 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(196,57,43,.15) 0%, transparent 60%);
}
.page-hero .wrap { position: relative; z-index: 2; }

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  background: rgba(13,11,14,.95);
  backdrop-filter: blur(12px);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(13,11,14,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gap);
  max-width: var(--wrap); margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 44px;
  width: auto;
}
@media (max-width: 768px) {
  .nav-logo-img { height: 36px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: rgba(240,237,232,.8); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 8px 18px; border-radius: 7px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--brand-light) !important; color: #fff !important; }
.nav-lang { display: flex; gap: 10px; }
.nav-lang a { font-size: .78rem; color: var(--text-muted); font-weight: 600; letter-spacing: .04em; }
.nav-lang a:hover, .nav-lang a.active { color: var(--gold); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: all .3s; }
.nav-mobile { display: none; background: rgba(13,11,14,.97); padding: 20px var(--gap) 28px; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); color: var(--text); }
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile.open { display: block; }
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .9rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }

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

/* ─── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--dark4);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--dark3);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23A09896' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Feature Row ─────────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
}
.feature-img-wrap {
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px solid var(--border);
}
.feature-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feature-img-placeholder {
  text-align: center; color: var(--text-muted); padding: 24px;
}
.feature-img-placeholder .icon { font-size: 3rem; margin-bottom: 12px; }
.feature-list { list-style: none; margin: 20px 0 28px; }
.feature-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✦'; color: var(--gold); font-size: .7rem; margin-top: 5px; flex-shrink: 0; }

/* ─── Event Type Grid ─────────────────────────────────── */
.event-card {
  background: var(--dark3);
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, background .2s;
  cursor: default;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--border-gold); background: var(--dark4); }
.event-icon { font-size: 2.4rem; margin-bottom: 14px; }
.event-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.event-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ─── Stats Bar ──────────────────────────────────────── */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; }
.stat-item { padding: 36px 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 600px) {
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

/* ─── CTA Band ───────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  padding: 56px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,.02) 20px, rgba(255,255,255,.02) 40px);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 28px; }

/* ─── Gallery Placeholder ────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; gap: 12px; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--dark4); position: relative; cursor: pointer; border: 1px solid var(--border); }
.gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item:nth-child(4) { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--text-muted); font-size: .82rem; text-align: center; padding: 12px; }
.gallery-placeholder .icon { font-size: 2rem; }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 2; }
}

/* ─── Map Embed ──────────────────────────────────────── */
.map-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ─── Tags / Badges ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-gold { background: rgba(245,166,35,.15); color: var(--gold); border: 1px solid rgba(245,166,35,.3); }
.badge-brand { background: rgba(196,57,43,.15); color: #f87162; border: 1px solid rgba(196,57,43,.3); }
.badge-green { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }

/* ─── World Cup Theme Accent ─────────────────────────── */
.worldcup-accent { background: linear-gradient(135deg, #0a3d1f, #1a6030); }
.worldcup-accent .eyebrow { color: #4ade80; }

/* ─── Divider ────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }

/* ─── Smooth scroll offset for fixed nav ────────────── */
[id] { scroll-margin-top: 80px; }

/* ─── Utility ────────────────────────────────────────── */
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; } .mb-md { margin-bottom: 24px; } .mb-lg { margin-bottom: 40px; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 32px; }
.w-full { width: 100%; }
.opacity-60 { opacity: .6; }
.hidden { display: none; }

/* ─── Additional compat styles (contact page) ───────── */
.page-hero-sm { padding: 60px 0 40px; }
.section-pad { padding: clamp(48px, 7vw, 80px) 0; }
.bg-dark { background: var(--dark); }

/* ─── Pre-Opening Banner ─────────────────────────────── */
.prebook-bar {
  background: #b91c1c;
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-weight: 900;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  box-sizing: border-box;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  line-height: 1.3;
}
.prebook-bar a {
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 900;
}
.prebook-bar a:hover { color: #fde68a; }

/* Shift nav down to account for banner */
.nav { top: 0; }
body.has-prebook .nav { top: 60px; }
body.has-prebook .hero { padding-top: 60px; }
body.has-prebook .page-hero { padding-top: 140px; }
body.has-prebook [id] { scroll-margin-top: 140px; }

/* Rendering notice */
.rendering-notice {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: .7;
  margin-top: 4px;
}

/* ─── Flag emoji sizing in nav ───────────────────────── */
.nav-lang a {
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px;
}
.nav-lang a.active {
  filter: drop-shadow(0 0 4px rgba(245,166,35,.6));
}

/* Social circle icons */
.footer-social a {
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);
  transition:background .2s,border-color .2s;
  text-decoration:none;
}
.footer-social a:hover {
  background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.3);
}
.footer-social a svg {
  width:18px;height:18px;fill:#ccc;
}
.footer-social a:hover svg {fill:#fff;}
