/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --gold: #c19d49;
  --gold-hover: #efa765;
  --bg-black: #000000;
  --bg-dark: #1d1922;
  --text-gray: #b8b8be;
  --text-white: #ffffff;
  --text-dark: #000000;

  --font-primary: "Amethysta", serif;
  --font-secondary: "Varela Round", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-black);
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 400;
}

a {
  text-decoration: none;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-width: 177px;
  transition: max-width 0.3s ease;
}

#site-navigation ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

#site-navigation a {
  color: var(--text-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#site-navigation a:hover,
#site-navigation a.active {
  color: var(--gold-hover);
}

/* Global Page Header (for sub-pages without a hero image) */
.page-header {
  padding: 0px 0 40px;
  text-align: center;
  background-color: var(--bg-dark);
  border-bottom: 1px solid #333;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  font-family: var(--font-secondary);
  color: var(--text-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 30px;
  border: 1px solid var(--text-white);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--text-white);
  color: var(--bg-dark);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

/* ==========================================================================
   4. HOME PAGE & STATIC HERO
   ========================================================================== */
#hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0; /* Ensures content never hits the absolute top/bottom */
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* Creates the seamless fade into the black background */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    var(--bg-black) 100%
  );

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

#hero h1 {
  color: var(--text-white);
  font-size: 80px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.video-container {
  margin: 0 auto 40px;
  width: 100%;
  max-width: 900px;
  border: 5px solid rgba(255, 255, 255, 0.1);
}

.video-container video {
  width: 100%;
  display: block;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allows safe wrapping on slightly smaller screens */
}

/* ==========================================================================
   5. REVIEWS SECTION
   ========================================================================== */
#reviews {
  padding: 100px 0;
  background-color: var(--bg-black);
}

.section-title {
  color: var(--gold);
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-box {
  text-align: left;
}

.review-text {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.review-author {
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
}

/* ==========================================================================
   6. HERO CAROUSEL (Used on Menu page)
   ========================================================================== */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-black);
}

.carousel-container.full-height {
  height: 100vh;
}
.carousel-container.mid-height {
  height: 65vh;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
  pointer-events: none;
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  width: 100%;
  pointer-events: none;
  padding: 0 20px;
}

.carousel-text h1 {
  font-size: 60px;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 40px;
  z-index: 5;
}

.carousel-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-white);
  border: 2px solid var(--gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   7. ABOUT PAGE
   ========================================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  border: 2px solid var(--gold);
}

/* ==========================================================================
   8. MENU PAGE
   ========================================================================== */
.menu-wrapper {
  padding: 80px 0;
}
.menu-category {
  margin-bottom: 80px;
}

.category-title {
  color: var(--text-white);
  font-size: 32px;
  margin-bottom: 50px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.menu-item {
  border-bottom: 1px dashed #333;
  padding-bottom: 20px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.menu-item-title {
  color: var(--gold);
  font-size: 20px;
}
.menu-item-price {
  color: var(--text-white);
  font-weight: bold;
  font-size: 16px;
}
.menu-item-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ==========================================================================
   9. FORMS (Contact & Reservations)
   ========================================================================== */
#contact-form-section,
#reservation-form-section {
  padding: 80px 0 60px;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--bg-dark);
  padding: 50px;
  border: 1px solid #333;
  border-top: 4px solid var(--gold);
}

.form-intro {
  text-align: center;
  margin-bottom: 40px;
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-gray);
  font-size: 14px;
}

.required {
  color: #ff4a4a;
}

.form-control {
  width: 100%;
  padding: 15px;
  background-color: transparent;
  border: 1px solid #4d4d4d;
  color: var(--text-white);
  font-family: var(--font-secondary);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

/* Contact Map and Details */
#contact-details {
  padding: 40px 0 100px;
}
.details-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text-white);
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  border: 1px solid #333;
}

.address-box {
  text-align: center;
  padding: 60px 40px;
  border: 1px solid #333;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-box h4 {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 15px;
}

/* ==========================================================================
   10. ORDER ONLINE & GALLERY
   ========================================================================== */
.order-content {
  padding: 80px 0;
  text-align: center;
}
.order-text {
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 18px;
  line-height: 1.8;
}
.delivery-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.delivery-partner-link {
  display: block;
  transition: transform 0.3s ease;
}
.delivery-partner-link:hover {
  transform: translateY(-5px);
}
.delivery-partner-link img {
  max-width: 250px;
  border-radius: 8px;
  border: 2px solid #333;
}

/* Gallery Grid (Bento Style) */
#gallery-section {
  padding: 80px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #333;
  background-color: var(--bg-dark);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .bento-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .bento-tall {
    grid-row: span 2;
  }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
#colophon {
  background-color: var(--bg-black);
  padding: 60px 0 20px;
  border-top: 1px solid #1a1a1a;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  margin-bottom: 40px;
}
.footer-center {
  text-align: center;
}
.widget-title {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 20px;
}
.footer-widget p {
  color: var(--text-gray);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-links a svg {
  transition: fill 0.3s ease;
}
.social-links a:hover svg {
  fill: var(--gold-hover);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  color: #7a7a7a;
  font-size: 12px;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (Tablets & Large Mobiles)
   ========================================================================== */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}

@media (max-width: 921px) {
  #hero h1 {
    font-size: 50px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  /* Activate Hamburger */
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  #site-navigation {
    position: absolute;
  }

  /* Mobile Dropdown Menu */
  #site-navigation ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50vh;
    padding: 100px 0 40px 0; /* Clear the logo */
    display: flex;
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  #site-navigation ul.show {
    transform: translateY(0);
    opacity: 1;
  }

  /* Animate Hamburger to X */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
   13. STRICT MOBILE DESIGN (Phones)
   ========================================================================== */
@media (max-width: 768px) {
  /* Typography Scaling */
  #hero h1 {
    font-size: 38px;
  }
  .carousel-text h1 {
    font-size: 32px;
  }
  .section-title,
  .details-title,
  .category-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Header & Padding Fixes */
  .logo img {
    max-width: 130px;
  } /* Gives hamburger more breathing room */
  .page-header {
    padding: 0px 0 40px;
  } /* Removes massive empty space */
  .menu-wrapper,
  #reviews,
  #contact-form-section,
  #reservation-form-section,
  #gallery-section,
  .about-content {
    padding: 50px 0;
  }

  /* Layout Stacking */
  .about-content {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }

  /* Form Fixing */
  .form-container {
    padding: 30px 20px;
  }
  .form-row,
  .form-row-3,
  .details-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .details-grid {
    gap: 30px;
  }
  .map-container iframe {
    height: 250px;
    min-height: 250px;
  }

  /* Hero Buttons Fix (Stacking) */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    gap: 15px;
  }
  .hero-buttons .btn {
    width: 100%; /* Makes buttons full-width so they don't look awkwardly small */
  }

  /* Carousel Controls */
  .carousel-controls {
    padding: 0 15px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Footer */
  #colophon {
    padding: 40px 0 20px;
  }
}

/* ==========================================================================
   14. GALLERY MODAL (LIGHTBOX)
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  border: 2px solid var(--gold);
  animation: zoomIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--gold);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
