/* ============================================
   Olive Kitchen — Design System & Styles
   ============================================ */

/* --- Tokens --- */
:root {
  --color-olive:         #556B2F;
  --color-olive-dark:    #3F4F22;
  --color-cream:         #F5F1E8;
  --color-cream-dark:    #EDE6D3;
  --color-charcoal:      #2B2B2B;
  --color-charcoal-soft: #4A4A4A;
  --color-gold:          #B8860B;
  --color-white:         #FFFFFF;
  --color-grey:          #6B6B6B;
  --color-grey-light:    #D9D4C7;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;

  --text-hero:   clamp(3rem, 8vw, 6rem);
  --text-h1:     clamp(2.25rem, 5vw, 3.75rem);
  --text-h2:     clamp(1.75rem, 3.5vw, 2.5rem);
  --text-h3:     1.5rem;
  --text-body:   1.0625rem;
  --text-small:  0.9375rem;
  --leading-body:  1.7;
  --leading-tight: 1.2;

  --max-width: 1200px;
  --section-padding: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 2px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-olive);
  color: var(--color-cream);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 600;
  font-size: var(--text-small);
}

.skip-link:focus {
  top: 1rem;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-olive);
  margin: 0 auto 2rem;
  border: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid var(--color-olive);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--color-olive-dark);
  border-color: var(--color-olive-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-olive);
}

.btn-secondary:hover {
  background-color: var(--color-olive);
  color: var(--color-cream);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.btn-ghost:hover {
  background-color: var(--color-cream);
  color: var(--color-olive);
}

/* --- Opening Soon Banner --- */
.banner {
  background-color: var(--color-olive);
  color: var(--color-cream);
  text-align: center;
  padding: 0.625rem 1.5rem;
  font-size: var(--text-small);
  font-weight: 500;
}

.banner a {
  color: var(--color-cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.banner a:hover {
  color: var(--color-gold);
}

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-cream);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-olive);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
  letter-spacing: 0.03em;
}

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

.nav-links .nav-phone {
  font-weight: 600;
  color: var(--color-olive);
  border: 1px solid var(--color-olive);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links .nav-phone:hover {
  background-color: var(--color-olive);
  color: var(--color-cream);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-olive);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

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

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-cream);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 2rem 1.5rem;
}

.hero-content .eyebrow {
  color: var(--color-cream);
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Smaller hero strip for interior pages */
.hero-strip {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
  overflow: hidden;
}

.hero-strip .hero-bg::after {
  background: rgba(43, 43, 43, 0.5);
}

.hero-strip .hero-content {
  padding: 4rem 1.5rem;
}

.hero-strip .hero-title {
  font-size: var(--text-h1);
}

/* --- Welcome section --- */
.welcome {
  padding: var(--section-padding) 0;
  text-align: center;
}

.welcome-inner {
  max-width: 720px;
  margin: 0 auto;
}

.welcome h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

.welcome p {
  color: var(--color-charcoal-soft);
  margin-bottom: 1.5rem;
}

.welcome .story-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-olive);
  transition: color 0.2s ease;
}

.welcome .story-link:hover {
  color: var(--color-olive-dark);
}

/* --- Featured Dishes --- */
.featured {
  background-color: var(--color-cream-dark);
  padding: var(--section-padding) 0;
  text-align: center;
}

.featured h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-charcoal);
  margin-bottom: 3rem;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.dish-card {
  background: var(--color-white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.dish-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dish-card-body {
  padding: 1.5rem;
}

.dish-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.dish-card p {
  font-size: var(--text-small);
  color: var(--color-charcoal-soft);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.dish-card .price {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--color-gold);
}

/* --- Menu page grid --- */
.menu-section {
  padding: var(--section-padding) 0;
}

.menu-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
}

.menu-notice {
  background-color: var(--color-cream-dark);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.menu-notice p {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--text-body);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

.menu-notice a {
  font-weight: 600;
  color: var(--color-olive);
}

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

/* --- Hours & Contact --- */
.contact-section {
  padding: var(--section-padding) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.contact-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-charcoal);
}

.contact-detail {
  margin-bottom: 1rem;
  color: var(--color-charcoal-soft);
}

.contact-detail a {
  color: var(--color-olive);
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--color-olive-dark);
}

.contact-detail .muted {
  font-size: var(--text-small);
  color: var(--color-grey);
  font-style: italic;
}

.hours-list {
  color: var(--color-charcoal-soft);
}

.hours-list dt {
  font-weight: 600;
  color: var(--color-charcoal);
  margin-top: 1rem;
}

.hours-list dt:first-child {
  margin-top: 0;
}

.hours-list dd {
  margin-top: 0.25rem;
}

.contact-cta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-grey-light);
}

.contact-cta p {
  font-size: 1.125rem;
  color: var(--color-charcoal-soft);
  margin-bottom: 1.5rem;
}

/* --- About page --- */
.about-content {
  padding: var(--section-padding) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}

.portrait-wrapper img,
.portrait-wrapper svg {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.story h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-tight);
  margin-bottom: 2rem;
}

.story p {
  color: var(--color-charcoal-soft);
  margin-bottom: 1.5rem;
}

.story .signature {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-charcoal);
  margin-top: 2rem;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-olive);
  border-left: 3px solid var(--color-olive);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

.about-cta {
  text-align: center;
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--color-grey-light);
}

.about-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  margin-bottom: 2rem;
}

.about-cta .hero-buttons {
  margin-top: 1.5rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .wordmark {
  color: var(--color-cream);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: var(--text-small);
  color: var(--color-grey);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-grey);
  border-radius: 2px;
  color: var(--color-grey);
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  font-size: var(--text-small);
  color: var(--color-grey);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

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

.footer-contact p,
.footer-contact a {
  font-size: var(--text-small);
  color: var(--color-grey);
  margin-bottom: 0.5rem;
  display: block;
}

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

.footer-divider {
  border: none;
  height: 1px;
  background-color: var(--color-olive);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-grey);
}

.footer-bottom a {
  color: var(--color-grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }

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

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

  .nav-toggle {
    display: block;
  }

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

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .about-grid .portrait-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: 75vh;
  }

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

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