:root {
  /* core palette */
  --bg:           #1C1C1C;
  --text:         #ffffff;
  --link:         #FF6F61;
  --accent:       #DAA520;
  --hover:        #4522e0;
  /* surfaces */
  --nav:          #e26651;
  --footer:       #e26651;
  /* form elements */
  --input-bg:     #3a3a3a;
  --input-border: #DAA520;
}


/* General reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background:
    /* opacity to dim the transparent background */
    linear-gradient(rgba(28,28,28,0.969), rgba(28,28,28,0.969)),
    url(assets/SVG/transparent-300x300.svg) repeat,
    var(--bg);
  font-family: sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  /* background-color: var(--bg); */
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

/* Navbar - desktop styles */
nav {
  background-color: var(--nav);
  padding: 0.8em 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 30px;
}

.logo {
  height: 40px;
  position: absolute;
  left: 1em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

.nav-links.desktop-only {
  display: flex;
  flex-direction: row;
  gap: 2em;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

.nav-links li a:hover {
  color: var(--hover);
  text-decoration: underline;
}

.nav-links li a.active,
menu-link.active {
  color: var(--accent);
  text-decoration: underline;
}

.nav-right {
  display: none;
  align-items: center;
  gap: 1em;
  position: absolute;
  right: 1em;
}

.menu-link {
  color: var(--text);
  font-weight: bold;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}

/* Section content styles */
section {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}

section:last-of-type {
  border-bottom: none;
}

section h1,
section h3 {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--text);
}

section p {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Email form styles */
#email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 400px;
  margin-top: 20px;
}

#email-form input[type="email"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 200px;
}

#email-form button {
  padding: 10px 20px;
  background-color: var(--input-bg);
  color: var(--text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#email-form button:hover {
  background-color: #555;
  box-shadow: 0 0 5px #aaa;
}

#form-message {
  margin-top: 10px;
  font-weight: bold;
  color: #20eb20;
}

/* home page menu button */
.home-menu-btn {
  text-align: center;
  margin: 2rem 0;           /* space above/below */
}

.home-menu-btn a {
  display: inline-block;
  background-color: greenyellow;
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.home-menu-btn a:hover {
  background-color: var(--hover);   /* your hover color */
}

/* Homepage image */
.home-image {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
}

#home {
  border-bottom: 1px solid var(--input-border);
}

/* two-column layout on desktop */

#about .about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  /* border-bottom: 1px solid var(--input-border); */
  margin-top: -50px;
}

#about .about-text,
#about .about-image {
  flex: 1;
}

#about .about-image img {
  width: 125%;
  height: auto;
  border-radius: 8px;
  margin-bottom: -80px;
}

#about {
  margin-bottom: 0;  /* remove space below the about section */
}

#map {
  padding: 0;
  margin: 0 auto;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Menu PDF link styling */
#menu a {
  color: purple;
  font-weight: bold;
}

#menu a:hover {
  text-decoration: underline;
}

/* Desktop vs mobile visibility classes */
.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

footer {
  background-color: var(--footer);
  color: var(--text);
  padding: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 46px;
  /* align-items: center; */
}

.footer-left {
  text-align: left;
  /* flex: 1; */
}

.footer-right {
  text-align: left;
  /* flex: 1; */
}

footer h2,
footer h3 {
  margin: 0 0 10px;
}

footer p {
  margin: 0 0 8px;
}

footer form {
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
}

footer form input[type="email"] {
  max-width: 250px;
}

footer form button {
  padding: 10px 16px;
}

.menu-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

/* force galleries with hidden=”” to hide */
.menu-gallery[hidden] {
  display: none !important;
}


.menu-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.menu-gallery a {
  text-decoration: none;
  display: block;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.menu-tabs button {
  background: none;
  border: none;
  font: inherit;
  color: var(--text);
  padding: .5rem 1rem;
  cursor: pointer;
}

.menu-tabs button.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* make Full Menu one-per-row on desktop */
.menu-gallery.full-menu {
  grid-template-columns: 1fr !important;
}

/* for the one-item tabs, collapse to a single column */
.menu-gallery[data-cat="specialties"],
.menu-gallery[data-cat="appetizer"] {
  display: grid;
  grid-template-columns: 1fr !important;
  justify-items: center;
  /* justify-content: center; */
}

.menu-gallery[data-cat="specialties"] img,
.menu-gallery[data-cat="appetizer"] img {
  /* max-width: 70%; */
  /* padding: 0 100px; */
  height: auto;
  display: block;
}

/* for the lone-image tabs, make the <a> shrink-to-fit and center it */
/* .menu-gallery[data-cat="specialties"] a,
.menu-gallery[data-cat="appetizer"] a {
  display: inline-block;
  margin: 0 auto;
} */

.hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  height: 100vh;                      /* fill the viewport */
  background-image: url("assets/home-image.png");
  background-size: cover;             /* scale up/down to cover */
  background-position: center center; /* crop equally on all sides */
  background-repeat: no-repeat;
  /* display: flex; */
  /* center text vertically */
  /* align-items: center; */
  /* center text horizontally */
  /* justify-content: center; */
  color: var(--text);
}

/* Keep text above the bg */
.hero-content {
  /* position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 20px;
  text-align: center; */
  /* center this box exactly in the hero */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 90%;           /* or whatever fits your design */
  max-width: 800px;
  padding: 20px;        /* your inner padding */
  margin: 0;            /* kill default margins */
  text-align: center;
}

/* Optional dark overlay if need more contrast */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

/* only on desktop (541px and up) give extra side-padding to Specialties & Appetizer */
@media (min-width: 541px) {
  .menu-gallery[data-cat="specialties"],
  .menu-gallery[data-cat="appetizer"] {
    padding: 0 150px;   /* adjust the 100px to whatever feels right */
  }
}


/* Mobile styles */
@media (max-width: 540px) {
  .nav-links.desktop-only {
    display: none !important;
  }

  .nav-links.mobile-only {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 1em;
    background-color: #333;
    padding: 1em;
    border-radius: 8px;
    z-index: 999;
  }

  .nav-links.mobile-only.show {
    display: flex;
  }

  .nav-links.mobile-only li a {
    color: var(--text);
    padding: 10px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-right {
    display: flex;
  }

  section {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 40px 15px;
  }

  #about .about-content {
    flex-direction: column-reverse;
    padding: 20px 15px 0;
    /* margin-top: -99px; */
  }

  #about h2{
    margin: 0 0 0.5em;
  }

   #about .about-image img {
    display: block;
    margin: -10px auto -20px;
    width: 110%;
    height: auto;
    margin-left: -5%;
  }
  
  .map-container {
    padding: 0 15px;
    margin-bottom: 40px;
  }

  .map-container {
    padding-bottom: 75%; /* instead of 56.25% for a taller aspect ratio on small screens */
  }

  #email-form {
    flex-direction: column;
  }

  #email-form input,
  #email-form button {
    width: 100%;
  }

  .footer-container {
    max-width: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    flex: none;
    width: 100%;
  }

  footer form {
    justify-content: center;
  }

  footer h3 {
    margin-top: 20px;
  }

  .menu-tabs {
    padding: 0 10px;            /* keep a little side inset */
  }

  .menu-tabs button {
    flex: 1 1 0;                /* allow each to shrink & share space */
    min-width: 0;               /* let them get narrower than their text */
    padding: 0.3rem 0;          /* tighter vertical padding */
    font-size: 0.85rem;         /* smaller type to fit */
    white-space: nowrap;        /* prevent line‐breaks in labels */
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
  }

  .menu-gallery {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
    margin: 0 0 40px;
    padding: 0 15px;
  }

  .menu-gallery a {
    pointer-events: none; /* disable accidental tap on mobile */
  }

  .hero {
    background-position: center top;   /* show the top of the image first */
    background-attachment: scroll;     /* avoid “fixed” glitches on mobile */
  }
}

@media (orientation: landscape) {
  .hero {
    padding: 250px 15px;
  }
}