/* ============================================================
   CASA MADRE — SHARED STYLESHEET
   Used by: index.html, menu.html, reserve.html
   ============================================================ */

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

:root {
  --dark:          #1a0f0a;
  --dark-mid:      #231510;
  --dark-card:     #251208;
  --gold:          #c8922a;
  --gold-light:    #e0aa44;
  --gold-dim:      #a07020;
  --salt-glow:     #f4c97e;
  --champagne:     #F7E7CE;
  --cream:         #f5ede0;
  --cream-dim:     #d4c4a8;
  --cream-muted:   #a08060;
  --border:        rgba(200,146,42,0.25);
  --border-subtle: rgba(200,146,42,0.12);
  --glass-bg:      rgba(26,15,10,0.58);
  --glass-border:  rgba(247,231,206,0.18);
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-display:  'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.4rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { font-size: 1rem; font-weight: 300; color: var(--cream-dim); line-height: 1.8; }

/* ── LAYOUT ── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section--mid  { background: var(--dark-mid); }
.section--card { background: var(--dark-card); }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}
.section-title  { margin-bottom: 1rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }

.divider {
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.25rem auto;
  border: none;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(26,15,10,0.97) 0%, rgba(26,15,10,0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem; max-width: 1200px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover img {
  opacity: 0.8;
}

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--cream-dim); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.4rem;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: 0.2s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(26,15,10,0.98); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 0 1rem;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 2rem; }
  .nav-cta { margin: 0.5rem 2rem !important; display: block; text-align: center; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  background: var(--gold); color: var(--dark);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.95rem 2.4rem; border-radius: 2px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 28px rgba(200,146,42,0.28);
}
.btn-primary:hover {
  background: var(--gold-light); color: var(--dark);
  transform: translateY(-2px); box-shadow: 0 8px 38px rgba(200,146,42,0.42);
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  background: transparent; color: var(--cream);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.9rem 2.4rem; border-radius: 2px;
  border: 1px solid rgba(245,237,224,0.38);
  transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: #0d0705;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.75rem;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 26px; width: auto; display: block; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: var(--cream-muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--cream-muted); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.footer-copy { font-size: 0.75rem; color: var(--cream-muted); }

/* ── SCROLL-REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── MOBILE STICKY CTA ── */
#sticky-book { display: none; }
@media (max-width: 768px) {
  #sticky-book {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: rgba(26,15,10,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--champagne);
    padding: 0.85rem 1.5rem; padding-bottom: env(safe-area-inset-bottom, 0.85rem);
  }
  body { padding-bottom: 4.5rem; }
}
.sticky-book-btn {
  display: block; width: 100%; background: var(--gold); color: var(--dark);
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  font-size: 0.82rem; padding: 0.85rem; border: none; border-radius: 2px;
  text-align: center; text-decoration: none; font-family: var(--font-sans);
  transition: background 0.2s;
}
.sticky-book-btn:hover { background: var(--gold-light); color: var(--dark); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .section-header { margin-bottom: 2rem; }
  .hero-cta-group { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
  .ratings-row { gap: 1.5rem; }
}
