/*
 * styles.css for Nisi Bistro
 * Mediterranean-inspired refined simplicity
 * Headings: Playfair Display, Body: Poppins
 * Palette: Deep blues, white, warm accents
 */

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #fff;
  scroll-behavior: smooth;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
h1 {
  font-size: 3.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
}
.nav-logo img { height: 120px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
  text-decoration: none; color: #0d3b66; font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #f4a261; }
.nav-links .nav-cta {
  background-color: #00315e; color: #fff;
  padding: 8px 16px; border-radius: 4px; font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-links .nav-cta:hover {
  background-color: #00315e;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Burger menu */
.burger { display: none; flex-direction: column; width: 30px; height: 30px; border: none; background: none; cursor: pointer; }
.burger .line {
  width: 100%; height: 3px; background-color: #0d3b66; margin: 4px 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.burger.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active .line:nth-child(2) { opacity: 0; }
.burger.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: 0; width: 100%; height: 100%;
  background-color: rgba(13,59,102,0.97);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.4s ease;
  z-index: 1001;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links li { margin: 20px 0; }
.mobile-nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; text-decoration: none; color: #fff; letter-spacing: 1px;
}
.mobile-nav-links a:hover { color: #f4a261; }
.mobile-nav-cta {
  background-color: #00315e; color: #fff; padding: 10px 20px;
  border-radius: 4px; font-weight: 600;
}

/* Hero */
.hero {
  background: url('assets/building.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.hero .overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,59,102,0.35);
}
.hero-logo {
  position: absolute; top: 100px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: auto;
  pointer-events: none; z-index: 1000;
}
.hero-content {
  position: relative; z-index: 2; padding: 20px;
}
.hero .tagline { font-size: 1.4rem; font-weight: 300; margin-top: 8px; }
.cta-btn {
  display: inline-block; margin-top: 20px; padding: 14px 32px;
  border-radius: 4px; background-color: #00315e; color: #fff;
  text-decoration: none; font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-btn:hover { background-color: #00315e; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* Sections */
section { padding: 80px 10%; text-align:center;}
.section-title {
  font-size: 2.4rem; color: #0d3b66;
  margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: #00315e; margin-bottom: 20px;
}

/* Chef / Feature */
.chef-section, .feature-section, .notify-section {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  background-color: #fafafa;
}
.chef-section:nth-of-type(odd), .feature-section:nth-of-type(odd), .notify-section:nth-of-type(odd) {
  background-color: #fff;
}
.chef-image-container img {
  width: 420px; border-radius: 12px; object-fit: cover; margin-right: 40px;
   transition: transform 0.3s ease;
}
.chef-image-container img:hover { transform: scale(1.05); }
.chef-content { max-width: 600px; }
.chef-content p { font-size: 1.1rem; color: #444; }

/* ---------------- Menu Section Masonry ---------------- */
.menu-section {
  background-color: #fff;
  padding: 80px 8% 60px;
}
.menu-section .section-title {
  text-align: center; font-size: 2.2rem; margin-bottom: 10px;
}
.menu-section .section-subtitle {
  text-align: center; color: #555; margin-bottom: 40px;
}
.masonry { margin: 0 auto; }
.grid-sizer { width: 31%; }
.grid-item {
  width: 31%;
  background: #fff; border: 1px solid #eee;
  border-radius: 10px; padding: 16px 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.grid-item:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.grid-item h3 { margin: 0 0 6px; font-size: 1.1rem; color: #0d3b66; font-weight: 600; }
.grid-item .price { float: right; color: #f4a261; font-weight: 600; }
.grid-item p { font-size: 0.95rem; color: #444; margin: 0; clear: both; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.25s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* Notify form */
.notify-content form, .notify-section form { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; }
.notify-content input[type=email], .notify-section input[type=email] {
  padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem;
  width: 280px; max-width: 100%; margin-right: 10px;
}
.notify-content button, .notify-section button {
  padding: 12px 24px; border: none; border-radius: 4px;
  background-color: #00315e; color: #fff; font-size: 1rem; cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.notify-content button:hover, .notify-section button:hover {
  background-color: #00315e; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Modal styles */
.notify-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1002;
}
.notify-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.notify-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.notify-modal .modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 40px 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.4s ease;
}
.notify-modal.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #0d3b66;
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-close:hover {
  color: #00315e;
}
.notify-modal form {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-modal input[type="email"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 280px;
  max-width: 100%;
  margin-right: 10px;
}
.notify-modal button[type="submit"] {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  background-color: #f4a261;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.notify-modal button[type="submit"]:hover {
  background-color: #00315e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.notify-modal .modal-thank-you {
  margin-top: 20px;
  font-size: 1rem;
  color: #0d3b66;
}


/* Footer */
footer, .footer {
  background-color: #0d3b66; color: #fff;
  text-align: center; padding: 40px 20px; font-size: 0.9rem;
}

/* Scroll animation */
* Scroll animation */
.observe-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.observe-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 1024px) {
  .grid-sizer, .grid-item { width: 48%; }
  .gallery { grid-template-columns: repeat(3,1fr); }
  .hero { min-height: 100vh; }
  .hero-logo { width: 350px; top: 80px !important; }
  .hero-content { margin-top: 480px !important; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .chef-image-container img { width: 100%; margin: 0 0 20px; }
  .chef-section, .feature-section, .notify-section { padding: 60px 5%; }
  .hero-logo { width: 280px; top: 60px !important; }
  .hero-content { margin-top: 480px !important; }
  .hero { height: 85vh; }
}
@media (min-width: 200px) and (max-width: 640px ) {
  .grid-sizer, .grid-item { width: 100%; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .hero-logo { width: 220px; top: 80px; }
  .hero-content { margin-top: 480px; }
  .hero { min-height: 70vh; }
    .nav-links { display: none; }
  .burger { display: flex; }
  
}

/* Fix hero so following sections show properly */
.hero {
  height: auto;
  padding: 140px 20px 80px; /* create room for content below navbar */
}

/* Ensure content below hero is visible */
section {
  position: relative;
  z-index: 1;
}


/* Debug border (optional, remove after) */
section {
  border: 1px dashed rgba(0,0,0,.05);
}
.gallery-section {
  background: #fafafa;
  padding: 80px 10%;
}
body {
  padding-top: 80px; /* space below fixed nav */
}

.hero {
  padding-top: 160px; /* space for navbar */
  padding-bottom: 80px; /* space below content */
}

.hero-logo {
  margin-top: 120px !important;
  max-width: 400px !important;
}

.hero-content {
  margin-top: 320px;
}

.gallery-section {
  background: #fafafa;
  padding: 80px 10%;
}

.menu-subheading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d3b66;
  margin: 40px 0 20px;
  text-align: left;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 6px;
}
/* Menu subheadings */
.menu-subheading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d3b66;
  margin: 50px 0 25px;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 6px;
}

/* Chef layout fix */
.chef-section .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.chef-image-container {
  flex: 1 1 40%;
  text-align: right;
}

.chef-image-container img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.chef-content {
  flex: 1 1 55%;
  max-width: 600px;
}
/* Contact Section */
.contact-section {
  background-color: #fafafa;
  padding: 80px 10%;
  text-align: center;
}

.contact-info {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #444;
}

.contact-info a {
  color: #0d3b66;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

#contact-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  background-color: #00315e;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
  background-color: #092b4c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
