/* 1. Global Styles and Variables */
:root {
  --off-white: #f8f6f2;
  --charcoal: #2e2e2e;
  --jade-green: #556b2f;
  --warm-terracotta: #c97b63;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Lato", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--off-white);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--jade-green);
  text-align: center;
  margin-bottom: 3rem;
}

/* 2. Header and Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--charcoal);
}

.nav-desktop a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--warm-terracotta);
}

.cta-button {
  background-color: var(--warm-terracotta);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #b86a51; /* Slightly darker terracotta */
}

/* 3. Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is key to making the image cover the area */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 60% black overlay */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-top: 1rem;
}

.hero-button {
  display: inline-block;
  margin-top: 2rem;
  background-color: var(--warm-terracotta);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.hero-button:hover {
  background-color: #b86a51;
}

/* 4. Story Section */
.story {
  padding: 5rem 0;
  background-color: white;
}

.story-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-text h2 {
  text-align: left;
}

/* 5. Menu Section */
.menu {
  padding: 5rem 0;
}

.menu-category {
  margin-bottom: 3rem;
}

.menu-category-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--warm-terracotta);
  padding-bottom: 0.5rem;
}

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

.menu-item {
  display: flex;
  flex-direction: column;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.menu-item-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.menu-item-price {
  font-size: 1.25rem;
  font-weight: bold;
}

.menu-item-description {
  margin: 0.25rem 0 0 0;
  color: #555;
}

/* 6. Gallery Section */
.gallery {
  padding: 5rem 0;
  background-color: white;
}

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

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* 7. Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  text-align: left;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--warm-terracotta);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

.contact-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 8. Footer */
.footer {
  background-color: var(--jade-green);
  color: rgba(248, 246, 242, 0.8);
  text-align: center;
  padding: 1.5rem 0;
}

/* 9. Responsive Design */
@media (max-width: 768px) {
  .nav,
  .cta-button {
    display: none; /* Simple hiding for mobile, can be replaced with a hamburger menu */
  }

  .hero-title {
    font-size: 3rem;
  }

  .story-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

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

/* 10. Mobile Menu Styles */
.hamburger-button {
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: var(--charcoal);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--off-white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 70px; /* Adjust based on your header height */
  left: 0;
  padding: 1rem 0;
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
}

.nav-mobile a {
  padding: 1rem 0;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 1.2rem;
}

/* Style for when the mobile menu is open */
.nav-mobile.is-open {
  transform: translateY(0);
}

.hamburger-button.is-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-button.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button.is-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* 11. Updated Responsive Design */
@media (max-width: 768px) {
  .nav-desktop,
  .cta-button {
    display: none; /* Hide desktop nav and button */
  }

  .hamburger-button {
    display: flex; /* Show the hamburger button */
  }

  .nav-mobile {
    display: flex; /* Allow the mobile nav to be shown */
  }
}

/* Footer & Credit */
.footer-credit {
  margin-top: 0.5rem; /* Adds a little space above the credit */
  font-size: 0.8rem; /* Makes the text slightly smaller */
  opacity: 0.8; /* Makes it slightly more subtle */
}

.footer-credit a {
  color: inherit; /* Makes the link the same color as the surrounding text */
  text-decoration: none; /* Removes the default underline */
  transition: text-decoration 0.2s ease-in-out; /* Smooth transition for the underline */
}

.footer-credit a:hover {
  text-decoration: underline; /* Adds an underline on hover */
}
