/* ─────────────────────────────────────────────────────
   The Ranch Saloon — Styles
   Palette: Charcoal #3D405B · Coral #E07A5F · Cream #F4F1DE
   Fonts: Playfair Display + Inter
   ───────────────────────────────────────────────────── */

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

:root {
  --charcoal:    #3D405B;
  --charcoal-deep: #2B2D42;
  --coral:       #E07A5F;
  --coral-dark:  #C96A52;
  --cream:       #F4F1DE;
  --cream-light: #FDFCFA;
  --sand:        #E8E4D9;
  --white:       #FFFFFF;
  --text-dark:   #1A1A2E;
  --text-muted:  #6B6D80;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(61, 64, 91, .10);
  --shadow-lg:   0 12px 48px rgba(61, 64, 91, .14);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--cream-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}

.section__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section {
  padding: 96px 0;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn--coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn--coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 122, 95, .35);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 250, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 64, 91, .08);
  transition: var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--charcoal);
}

.nav__brand-mark {
  width: 38px;
  height: 38px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  transition: var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover { color: var(--coral); }

.nav__cta {
  padding: 10px 22px;
  font-size: .85rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle-line {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(43, 45, 66, .88) 0%,
    rgba(61, 64, 91, .72) 50%,
    rgba(224, 122, 95, .35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 720px;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.hero__headline {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--cream);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero__accent {
  font-style: italic;
  color: var(--coral);
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(244, 241, 222, .8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244, 241, 222, .5);
  animation: bounce 2s infinite;
}

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

/* ── STRIP ──────────────────────────────────────────── */
.strip {
  background: var(--charcoal);
  padding: 0;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 28px;
  border-right: 1px solid rgba(244, 241, 222, .08);
}

.strip__item:last-child { border-right: none; }

.strip__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--coral);
}

.strip__item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.strip__item span,
.strip__item a {
  font-size: .88rem;
  color: rgba(244, 241, 222, .65);
  line-height: 1.6;
}

.strip__item a:hover { color: var(--coral); }

/* ── MENU ───────────────────────────────────────────── */
.menu { background: var(--cream-light); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section__lead { margin: 0 auto; }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 3/2;
}

.menu-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.menu-card:hover .menu-card__img-wrap img {
  transform: scale(1.05);
}

.menu-card__body {
  padding: 28px;
}

.menu-card__title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.menu-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.menu-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.menu__note {
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── STORY ──────────────────────────────────────────── */
.story { background: var(--cream); }

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 8/9;
}

.story__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__content { max-width: 520px; }

.story__content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.story__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand);
}

.story__stat { display: flex; flex-direction: column; gap: 4px; }

.story__stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
}

.story__stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── GALLERY ────────────────────────────────────────── */
.gallery { background: var(--cream-light); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* ── VISIT ──────────────────────────────────────────── */
.visit { background: var(--charcoal); color: var(--cream); }

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit .section__eyebrow { color: var(--coral); }

.visit .section__title { color: var(--cream); }

.visit__address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(244, 241, 222, .8);
  margin: 28px 0;
}

.visit__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.visit__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: rgba(244, 241, 222, .75);
  transition: var(--transition);
}

.visit__contact-item:hover { color: var(--coral); }

.visit__hours strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.visit__hours table {
  border-collapse: collapse;
  font-size: .9rem;
  color: rgba(244, 241, 222, .65);
}

.visit__hours td {
  padding: 6px 0;
  border-bottom: 1px solid rgba(244, 241, 222, .08);
}

.visit__hours td:first-child {
  padding-right: 20px;
  color: rgba(244, 241, 222, .85);
  font-weight: 500;
}

.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}

/* ── CTA ────────────────────────────────────────────── */
.cta {
  background: var(--coral);
  padding: 80px 0;
  text-align: center;
}

.cta__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta .btn--outline-light {
  border-color: rgba(255,255,255,.7);
}
.cta .btn--outline-light:hover {
  background: var(--white);
  color: var(--coral);
  border-color: var(--white);
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--charcoal-deep);
  color: rgba(244, 241, 222, .6);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 241, 222, .08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__brand .nav__brand-mark {
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
}

.footer__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
}

.footer__brand p {
  font-size: .9rem;
  color: rgba(244, 241, 222, .5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: .9rem;
  color: rgba(244, 241, 222, .6);
  transition: var(--transition);
}

.footer__links a:hover { color: var(--coral); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
}

.footer__contact a {
  color: rgba(244, 241, 222, .6);
  transition: var(--transition);
}

.footer__contact a:hover { color: var(--coral); }

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(244, 241, 222, .35);
}

/* ── REVEAL (progressive enhancement) ───────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default state for JS-enhanced reveals: hidden */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 252, 250, .98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(61, 64, 91, .1);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__toggle { display: flex; }

  .strip__grid { grid-template-columns: 1fr; }
  .strip__item { border-right: none; border-bottom: 1px solid rgba(244,241,222,.08); }
  .strip__item:last-child { border-bottom: none; }

  .menu__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }

  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .story__img { aspect-ratio: 4/3; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { min-height: 300px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .gallery__grid { grid-template-columns: 1fr; }
  .story__stats { flex-direction: column; gap: 24px; }
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}
