/* Page name: style.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "brandon-grotesque", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  /* Increase base font size for body copy */
  font-size: 1.05rem;

  /* Prevent horizontal overflow on mobile by restricting body width */
  max-width: 100%;
  overflow-x: hidden;
}

/* Layout with a fixed left sidebar */
.layout {
  display: flex;
}

/* Sidebar styling */
.side-menu {
  background-color: #000;
  color: #fff;
  width: 260px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  /* Ensure sidebar appears above mobile header when open */
  z-index: 1200;
}

.side-menu .side-logo {
  /* Reduce logo size slightly and add margin around it */
  width: 80%;
  height: auto;
  max-width: 200px;
  margin: 20px auto 30px auto;
}

.side-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.side-menu nav li {
  /* Increase spacing between links for better readability */
  margin: 15px 0;
  /* Center align the text inside list items */
  text-align: center;
}

.side-menu nav a {
  color: #fff;
  text-decoration: none;
  display: block;
  /* Use equal left/right padding to center text */
  /* Increase vertical padding for navigation buttons */
  /* Increase vertical padding for clearer touch targets */
  padding: 18px 0;
  border-radius: 4px;
  transition: background-color 0.3s;
  width: 100%;
  /* Center the text and increase font size for better readability */
  /* Force center alignment inside sidebar navigation links */
  text-align: center !important;
  font-size: 1.5rem;
  /* Use flexbox to center text horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
}

.side-menu nav a:hover {
  /* On hover, change text to secondary green without background */
  background-color: transparent;
  color: #494e1e;
}

/* Sidebar phone number styling */
.side-phone {
  margin-top: auto;
  text-align: center;
  /* Increase phone font size for prominence */
  font-size: 1.6rem;
  /* Use secondary green color for phone text */
  color: #494e1e;
  padding-top: 20px;
  font-weight: bold;
}
.side-phone a {
  color: #494e1e;
  text-decoration: none;
  font-weight: bold;
}
.side-phone a:hover {
  text-decoration: underline;
}

/* Content area next to sidebar */
.content {
  margin-left: 260px;
  flex: 1;
}

/* Navigation */
/* Navigation bar */
.navbar {
  display: flex;
  align-items: center;
  background-color: #000;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .logo {
  height: 100px;
  transition: height 0.3s ease;
  /* Add horizontal margin to space nav lists from the logo */
  margin: 0 60px;
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar li {
  /* spacing handled via gap on parent */
  margin: 0;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-size: 0.9rem;
}

.navbar a:hover {
  /* Secondary green for nav hover */
  background-color: #494e1e;
}

/* Hamburger menu button for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

/* Mobile menu styling */
/* Side mobile menu styling */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background-color: #000;
  color: #fff;
  padding: 20px;
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.mobile-menu .close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 20px;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mobile-menu li {
  margin: 15px 0;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  width: 100%;
}

.mobile-menu a:hover {
  background-color: #3e472c;
}

/* Overlay that appears when mobile menu is open */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.overlay.open {
  display: block;
}

/* Mobile toggle button for sidebar */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

/* Mobile overlay for sidebar */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.mobile-overlay.open {
  display: block;
}

/* Mobile header is hidden by default and becomes visible on small screens */
.mobile-header {
  display: none;
}
.mobile-logo-container {
  /* Default styles will be overridden on mobile */
}
.mobile-logo {
  width: 100%;
  height: auto;
}

/* Responsive adjustments for sidebar layout */
@media (max-width: 768px) {
  /* Adjust side menu to slide from the right on mobile */
  .side-menu {
    width: 240px;
    /* Keep sidebar fixed to the right edge and use transform to slide it completely off-screen */
    right: 0;
    left: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .side-menu.open {
    transform: translateX(0);
  }
  /* Remove left margin and add top margin equal to mobile header height */
  .content {
    margin-left: 0;
    /* Offset top content by height of mobile header (approx 90px) */
    margin-top: 90px;
    /* Ensure content container doesn't exceed viewport width */
    width: 100%;
  }

  /* Ensure footer spans full width on mobile */
  footer {
    width: 100%;
  }
  /* Show mobile header and toggle */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
  }
  .mobile-logo-container {
    /* Display logo inside a black square; larger on mobile */
    background-color: #000;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add internal padding to create margin around the logo */
    padding: 4px;
    box-sizing: border-box;
  }
  .mobile-logo {
    /* Fit logo within the square while maintaining aspect ratio */
    max-width: 74px;
    max-height: 74px;
    width: 100%;
    height: auto;
  }
  /* Position the toggle within the header */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  /* Stack contact items and gallery on small screens */
  #contact .contact-grid {
    grid-template-columns: 1fr;
    /* Ensure the contact grid spans the full width */
    width: 100%;
  }
  #gallery .gallery-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  /* On mobile, reduce hero header height to half of viewport */
  /* Note: a more specific override later in the file will ensure this takes precedence */
  header {
    height: 50vh !important;
  }

  /* Hide large sidebar logo on mobile since the logo appears in the header */
  .side-menu .side-logo {
    display: none;
  }
}

/* Responsive behavior */
@media (max-width: 768px) {
  .nav-left, .nav-right {
    display: none;
  }
  .navbar {
    justify-content: space-between;
  }
  .navbar .logo {
    margin: 0;
    height: 80px;
  }
  .hamburger {
    display: flex;
  }
  /* Make sure the logo does not shrink on scroll too much on mobile */
  .navbar.shrink .logo {
    height: 60px;
  }
}

/* Navigation groups flanking the centered logo */
.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

/* Shrink logo when scrolled */
.navbar.shrink .logo {
  height: 70px;
}

/* Hero slider container; slides will be injected via JS */
header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

/* Hero overlay with caption and button */
/* Hide hero overlay caption */
.hero-overlay {
  display: none;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.hero-overlay p {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
}

/* Half-height slider between sections with dynamically injected slides */
.half-slider {
  position: relative;
  width: 100%;
  /* Increase height of secondary slider */
  height: 450px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.2);
}

.half-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.half-slider img.active {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  /* Primary action button color */
  background-color: #41461b;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  /* Secondary color on hover */
  background-color: #494e1e;
}

section {
  /* Provide generous padding for content and remove width restriction */
  padding: 60px 30px;
  max-width: none;
  margin: 0;
  /* Ensure anchor links scroll sections flush to the top of the viewport */
  scroll-margin-top: 0;
}

section h2 {
  font-size: 2rem;
  color: #494e1e;
  margin-bottom: 20px;
  border-bottom: 2px solid #494e1e;
  padding-bottom: 10px;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h3 {
  font-size: 1.5rem;
  color: #494e1e;
  margin-bottom: 10px;
}

.menu-section ul {
  list-style: disc inside;
  margin-left: 20px;
}

/* Description text under menu section titles */
.menu-description {
  font-style: italic;
  margin: 10px 0;
  color: #555;
}

.menu-section li {
  margin-bottom: 10px;
}

.download {
  text-align: center;
  margin-top: 20px;
}

.download a {
  background-color: #41461b;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.download a:hover {
  background-color: #494e1e;
}

/* Gallery */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

#gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#contact p {
  margin-bottom: 8px;
}

footer {
  /* Footer uses primary dark color with lighter text similar to provided example */
  background-color: #41461b;
  color: #e0e0e0;
  text-align: center;
  padding: 25px 15px;
  font-size: 1rem;
  line-height: 1.5;
}

footer a {
  color: #e0e0e0;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

footer p {
  margin: 5px 0;
}

/* Gallery modal styles */
.gallery-modal {
  display: none;
  position: fixed;
  /* Ensure modal appears above sidebar (which has z-index 1200) */
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
}
.gallery-modal.open {
  display: flex;
}
.gallery-modal .gallery-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  margin: 2% auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
/* Ensure modal image uses new class */
.gallery-modal img.gallery-modal-content {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  margin: 2% auto;
  display: block;
  object-fit: contain;
}
.gallery-modal .gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* Contact section styling */
#contact {
  /* Use primary dark green for the contact section */
  background-color: #41461b;
  color: #f5f5f5;
}

#contact h2 {
  color: #fdfdfd;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile-specific override for hero height */
@media (max-width: 768px) {
  /* Use a more specific selector and !important to ensure this rule overrides
     the default header height defined earlier in the file. */
  body header {
    height: 50vh !important;
  }
}

#contact .contact-grid {
  display: grid;
  /* Use auto-fit to create as many columns as fit within available width */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  /* Expand contact grid width to match content area */
  margin: 20px 0;
  padding: 0 20px;
  /* Ensure the grid does not exceed the container width */
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#contact .contact-info a {
  color: #f5f5f5;
  text-decoration: none;
}

#contact .contact-info a:hover {
  text-decoration: underline;
}

/* About section styling */
#about {
  background-color: #111;
  color: #f5f5f5;
  padding: 40px 0;
  max-width: none;
  margin: 0;
}

#about h2 {
  border-color: #444;
}

/* Menu section styling */
#menu {
  background-color: #fff;
  color: #333;
}
#menu h2 {
  border-color: #4C593A;
}


/* Generic container for inner content */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive navigation adjustments */
@media (max-width: 600px) {
  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar li {
    margin: 5px 0;
  }
}