/* ========================================
   Oak's Brew — Styles
   Bold editorial · Forest green & off-white
   ======================================== */

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

:root {
  --green-900: #0D1F17;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --cream: #FAF8F5;
  --cream-dark: #F0EDE8;
  --warm: #D4A574;
  --warm-dark: #B8864E;
  --warm-light: #E8C9A0;
  --text-dark: #1A1A1A;
  --text-muted: #555555;
  --text-light: #F5F0EB;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--green-800);
  margin-bottom: 24px;
}

.section-title--center {
  text-align: center;
}

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

.accent {
  color: var(--warm);
}

.accent-dark {
  color: var(--warm-light);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

.btn-primary {
  background: var(--warm);
  color: var(--green-900);
  border-color: var(--warm);
}

.btn-primary:hover {
  background: var(--warm-dark);
  border-color: var(--warm-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.2);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 248, 245, 0.5);
}

.btn-outline-light:hover {
  background: rgba(250, 248, 245, 0.1);
  border-color: var(--cream);
}

.btn-map {
  margin-top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-800);
}

.logo--light .logo-text {
  color: var(--cream);
}

.logo--light .logo-icon circle {
  fill: var(--warm);
}

.logo--light .logo-icon path[fill*="#1B4332"] {
  fill: var(--green-900);
}

.logo:hover {
  color: var(--green-700);
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-800);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(27, 67, 50, 0.06);
  color: var(--green-700);
}

.nav-cta {
  background: var(--green-800) !important;
  color: var(--cream) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--green-700) !important;
  color: var(--cream) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-900);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 31, 23, 0.7) 0%,
    rgba(27, 67, 50, 0.8) 50%,
    rgba(13, 31, 23, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

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

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5rem);
  color: var(--cream);
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-headline .accent {
  color: var(--warm);
  font-style: italic;
  font-weight: 500;
}

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

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

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(250, 248, 245, 0.5);
  animation: float 2.5s ease-in-out infinite;
}

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

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

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

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(27, 67, 50, 0.15);
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(27, 67, 50, 0.1);
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.menu .section-title--center {
  margin-bottom: 12px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.menu-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid rgba(27, 67, 50, 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27, 67, 50, 0.1);
}

.menu-card-icon {
  margin-bottom: 20px;
  opacity: 0.7;
}

.menu-card-title {
  font-size: 1.35rem;
  color: var(--green-800);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--warm-light);
}

.menu-card-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-card-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 24px;
  background: rgba(27, 67, 50, 0.04);
  border-radius: 8px;
}

/* ---------- Space ---------- */
.space {
  padding: 120px 0 80px;
  background: var(--green-800);
}

.space .section-title {
  margin-bottom: 48px;
  text-align: center;
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.space-gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s var(--ease-out);
}

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

.space-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.space-feature {
  text-align: center;
}

.space-feature svg {
  margin: 0 auto 16px;
}

.space-feature h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.space-feature p {
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.7;
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 100px 0;
  background: var(--cream);
  text-align: center;
}

.testimonial-quote {
  position: relative;
  max-width: 720px;
  margin: 0 auto 24px;
}

.testimonial-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--green-800);
  line-height: 1.6;
}

.testimonial-source {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-dark);
}

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

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

.visit-info .section-title {
  margin-bottom: 32px;
}

.visit-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.visit-details p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.visit-details strong {
  color: var(--green-800);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.visit-details a {
  color: var(--warm-dark);
  border-bottom: 1px solid rgba(184, 134, 78, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.visit-details a:hover {
  color: var(--green-700);
  border-color: var(--green-700);
}

.hours h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-800);
  margin-bottom: 16px;
}

.hours ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.hours .day {
  color: var(--text-dark);
  font-weight: 500;
}

.hours .time {
  color: var(--text-muted);
}

/* Map */
.visit-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(27, 67, 50, 0.12);
}

.map-placeholder {
  background: var(--green-700);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-placeholder svg {
  margin-bottom: 16px;
  opacity: 0.8;
}

.map-placeholder p {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ---------- Contact Form ---------- */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact-inner {
  max-width: 640px;
}

.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid rgba(27, 67, 50, 0.2);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
}

.form-success {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.3);
  border-radius: 8px;
  color: var(--green-700);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand p {
  color: rgba(250, 248, 245, 0.5);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 12px;
}

.footer-brand a {
  color: var(--warm-light);
  transition: color 0.2s;
}

.footer-brand a:hover {
  color: var(--cream);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.6);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--warm-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.3);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .space-gallery-item:last-child {
    grid-column: span 2;
  }

  .space-gallery-item:last-child img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 16px;
  }

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

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

  .about-image img {
    height: 320px;
  }

  .about-stats {
    gap: 24px;
  }

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

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

  .space-gallery-item img,
  .space-gallery-item:last-child img {
    height: 240px;
  }

  .space-gallery-item:last-child {
    grid-column: auto;
  }

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

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    align-self: stretch;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

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

  .about, .menu, .space, .visit, .contact {
    padding: 80px 0;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
