/* ========================================
   Federal Tavern — Styles
   Classic · Elegant · Forest Green & Off-White
======================================== */

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

:root {
  --forest: #2C4A3E;
  --forest-deep: #1E3529;
  --forest-light: #3D6B58;
  --forest-muted: #4A7B65;
  --cream: #F5F0E8;
  --cream-light: #FAF7F2;
  --cream-dark: #E8E0D0;
  --charcoal: #1A1A1A;
  --text-dark: #2A2A2A;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --gold: #C4A265;
  --gold-light: #D4B878;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(44, 74, 62, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 74, 62, 0.1);
  --shadow-lg: 0 8px 40px rgba(44, 74, 62, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--cream-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--forest-deep);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  color: var(--forest-deep);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.5);
}

.btn-secondary:hover {
  background: rgba(245, 240, 232, 0.1);
  border-color: var(--cream);
}

.btn-light {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.btn-light:hover {
  background: var(--cream-dark);
  border-color: var(--cream-dark);
}

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

.btn-outline-dark:hover {
  background: var(--forest);
  color: var(--cream);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(30, 53, 41, 0.97);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-logo-icon {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: var(--cream);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--forest-deep) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  transition: all var(--transition) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.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: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/18609561/pexels-photo-18609561.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 35, 28, 0.72) 0%,
    rgba(30, 53, 41, 0.65) 50%,
    rgba(20, 35, 28, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  color: var(--cream);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ── About ── */
.about {
  padding: 120px 0;
  background: var(--cream-light);
}

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  padding: 20px 0;
}

.about-content p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 500;
}

.about-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

/* ── Menu ── */
.menu {
  padding: 120px 0;
  background: var(--cream);
}

.menu-header {
  text-align: center;
  margin-bottom: 48px;
}

.menu-header .section-sub {
  margin: 0 auto;
}

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-cat {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 28px;
  border: 1.5px solid var(--forest-muted);
  border-radius: 50px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: all var(--transition);
}

.menu-cat:hover,
.menu-cat.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.menu-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.menu-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.menu-item-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-img img {
  transform: scale(1.05);
}

.menu-item-body {
  padding: 4px 0;
}

.menu-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.menu-item-top h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.menu-item-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 162, 101, 0.12);
  padding: 3px 8px;
  border-radius: 3px;
}

.menu-item-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.menu-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── Drinks ── */
.drinks {
  padding: 120px 0;
  background: var(--forest-deep);
  color: var(--cream);
}

.drinks .section-title {
  color: var(--cream);
}

.drinks .section-sub {
  color: rgba(245, 240, 232, 0.7);
}

.drinks-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.drinks-content {
  padding: 20px 0;
}

.drinks-content p {
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.drinks-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.drink-highlight h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.drink-highlight p {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.6;
  margin-bottom: 0;
}

.drinks-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.drinks-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Gallery ── */
.gallery {
  padding: 120px 0;
  background: var(--cream-light);
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 53, 41, 0);
  transition: background var(--transition);
  border-radius: var(--radius-md);
}

.gallery-item:hover::after {
  background: rgba(30, 53, 41, 0.15);
}

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

.gallery-item--tall {
  grid-row: span 2;
}

/* ── Visit ── */
.visit {
  padding: 120px 0;
  background: var(--cream);
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.visit-info {
  padding: 20px 0;
}

.visit-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 40px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-detail svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.visit-detail strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 4px;
}

.visit-detail p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.visit-detail a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: rgba(44, 74, 62, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition);
}

.visit-detail a:hover {
  color: var(--forest-deep);
  text-decoration-color: var(--forest);
}

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

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 450px;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
}

/* ── Footer ── */
.footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-logo svg {
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-col li {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color var(--transition);
}

.footer-col a:hover,
.footer-col li:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid,
  .drinks-layout {
    gap: 48px;
  }

  .menu-grid {
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
  }

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

  .gallery-item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .drinks-layout,
  .visit-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
    max-height: 400px;
  }

  .about-image img {
    height: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--forest-deep);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .menu-item {
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .menu-item-img {
    aspect-ratio: 1;
  }

  .drinks-highlights {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 160px);
  }

  .gallery-item--large {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .visit-map {
    min-height: 300px;
  }

  .visit-map iframe {
    min-height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .about,
  .menu,
  .drinks,
  .gallery,
  .visit {
    padding: 80px 0;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .menu-item-img {
    aspect-ratio: 16/9;
  }

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

  .gallery-item--large {
    grid-column: span 1;
  }

  .gallery-item img {
    height: 200px;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .visit-cta {
    flex-direction: column;
  }

  .visit-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}
