/* ============================================================
   RUSTY ANCHOR — Main Stylesheet
   Warm, dark upscale-casual theme with amber/gold accents
   ============================================================ */

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

/* ── Variables ── */
:root {
  --bg:          #141009;
  --bg-surface:  #1e1609;
  --bg-card:     #261d0c;
  --bg-card-alt: #2e2510;
  --accent:      #c8922a;
  --accent-lt:   #e0aa44;
  --accent-dim:  #9a6e1f;
  --text:        #f0e0c0;
  --text-muted:  #9a845a;
  --text-faint:  #6a5a3a;
  --border:      #3a2c14;
  --white:       #fff8ee;
  --nav-h:       72px;
  --ticker-h:    38px;
  --radius:      6px;
  --transition:  0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-lt); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--white);
}

ul { list-style: none; }

/* ── Utility ── */
.section-tag {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: 0 auto 2rem;
}

.section-divider.left { margin: 0 0 2rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0f0900;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  color: #0f0900;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 146, 42, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #0f0900;
  transform: translateY(-2px);
}

section { padding: 90px 5%; }

.container { max-width: 1200px; margin: 0 auto; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Header / Nav ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(20, 16, 9, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent-lt); }

.nav-links .btn { padding: 0.5rem 1.3rem; font-size: 0.8rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 10, 4, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  backdrop-filter: blur(10px);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--accent-lt); }

/* ── Hero ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  filter: brightness(0.38);
  transform: scale(1.04);
  transition: transform 8s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 10, 4, 0.3) 0%,
    rgba(14, 10, 4, 0.1) 40%,
    rgba(14, 10, 4, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 5%;
  animation: heroFade 1.2s ease both;
}

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

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  opacity: 0.88;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 0 auto 2rem;
  opacity: 0.7;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll svg { color: var(--accent); }

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

/* ── About ── */
#about {
  background: var(--bg-surface);
  padding: 100px 5%;
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-tag { display: block; }
.about-text .section-title { text-align: left; margin-bottom: 0.5rem; }

.about-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 2px solid var(--accent);
  opacity: 0.3;
  border-radius: var(--radius);
  z-index: 0;
}

.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── Menu ── */
#menu {
  background: var(--bg);
  padding: 100px 5%;
}

.menu-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.menu-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: var(--accent-dim);
}

.menu-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9);
  transition: filter var(--transition), transform var(--transition);
}

.menu-card:hover .menu-card-img {
  filter: brightness(1) saturate(1.05);
  transform: scale(1.03);
}

.menu-card-img-wrap { overflow: hidden; }

.menu-card-body { padding: 1.3rem 1.4rem 1.5rem; }

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.menu-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.menu-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Gallery ── */
#gallery {
  background: var(--bg-surface);
  padding: 100px 5%;
}

.gallery-header { text-align: center; margin-bottom: 3rem; }

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.82) saturate(0.88);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.95) saturate(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 146, 42, 0);
  transition: background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(200, 146, 42, 0.12);
}

/* ── Location & Hours ── */
#location {
  background: var(--bg);
  padding: 100px 5%;
}

.location-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.location-info .section-tag { display: block; }
.location-info .section-title { text-align: left; }

.hours-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.hours-days { color: var(--text-muted); font-weight: 700; }
.hours-time { color: var(--accent); font-weight: 400; }

.address-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.address-line {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.address-line svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  height: 420px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.5) brightness(0.85);
}

/* ── Contact / Reservation ── */
#contact {
  background: var(--bg-surface);
  padding: 100px 5%;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-info .section-tag { display: block; }
.contact-info .section-title { text-align: left; }

.contact-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-detail svg { color: var(--accent); flex-shrink: 0; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: span 2; }

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
}

.form-control::placeholder { color: var(--text-faint); }

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-submit { margin-top: 0.6rem; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.7rem;
}

.form-message {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(80, 160, 80, 0.12);
  border: 1px solid rgba(80, 160, 80, 0.35);
  color: #7fc87f;
}

.form-message.error {
  display: block;
  background: rgba(180, 60, 60, 0.12);
  border: 1px solid rgba(180, 60, 60, 0.35);
  color: #d88080;
}

/* ── Footer ── */
#footer {
  background: #0c0803;
  padding: 3.5rem 5% 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.footer-brand-name span { color: var(--accent); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.social-icons {
  display: flex;
  gap: 0.9rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 146, 42, 0.08);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-lt); }

.footer-hours-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-hours-row { font-size: 0.84rem; color: var(--text-muted); }
.footer-hours-row .fday { display: block; color: var(--text-faint); font-size: 0.76rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-credit a { color: var(--text-muted); transition: color var(--transition); }
.footer-credit a:hover { color: var(--accent); }

/* ── Announcement Ticker ── */
.ticker-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: var(--ticker-h);
  background: var(--accent);
  overflow: hidden;
  z-index: 900;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-block;
  padding: 0 2.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f0900;
}

.ticker-sep {
  color: rgba(15, 9, 0, 0.45);
  font-size: 0.6rem;
}

/* ── Weekly Events ── */
#events {
  background: var(--bg-surface);
  padding: 100px 5%;
}

.events-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: var(--accent-dim);
}

.event-day-badge {
  background: var(--accent);
  color: #0f0900;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
}

.event-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.event-time {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.event-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  section { padding: 70px 5%; }
  .events-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrap::before { display: none; }
  .about-image-wrap img { height: 280px; }

  .about-stats { gap: 1.5rem; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item:first-child { grid-column: span 1; }
  .section-title { font-size: 1.8rem; }
  .menu-grid { grid-template-columns: 1fr; }
}
