/* ==========================
   Kitchen Queen - styles.css
   ========================== */

/* Footer: fixed at bottom, full width, slim */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 8px 0 6px 0; /* slim height, edge-to-edge */
  box-shadow: 0 -2px 20px rgba(0,0,0,0.09);
  border-radius: 0;
  z-index: 1500;
  margin: 0;
  font-size: 1rem;
  pointer-events: auto;
}

/* Remove old margin from previous footer style */
footer p {
  margin: 0;
  padding: 0;
}

/* Base */
:root{
  --accent: #d35400;
  --accent-dark: #c94f00;
  --bg: #fff8f0;
  --text: #333;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.6);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ==========================
   NAVBAR (sticky + responsive)
   ========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 20px;
  background: var(--accent);
  transition: box-shadow 0.28s ease, background-color 0.28s ease, transform 0.28s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  background: var(--accent);
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.logo-text {
  font-size: 1.25rem;
  font-family: 'Georgia', serif;
  font-weight: bold;
  color: white;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s ease, transform 0.12s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255,255,255,0.08);
  outline: none;
}
.nav-links a.active {
  box-shadow: inset 0 -3px 0 white;
  font-weight: 800;
}
.hamburger {
  display: none;
  font-size: 1.6rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.navbar.scrolled {
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
  background-color: var(--accent-dark);
}

/* ==========================
   HERO
   ========================== */
.hero {
  height: 88vh;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18)),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=70');
  background-size: cover;
  background-position: center;
  padding: 2rem;
}
.hero .hero-text {
  max-width: 860px;
  padding: 2rem;
  border-radius: 12px;
}
.hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0 0 1.4rem 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  opacity: 0.95;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(211,84,0,0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.18);
}

/* ==========================
   CONTENT SECTIONS
   ========================== */
main {
  flex: 1 0 auto;
}
.page-section {
  max-width: 1100px;
  margin: 48px auto;
  padding: 28px 20px;
  background: transparent;
}
.page-section h1, .page-section h2 {
  color: var(--accent-dark);
  margin-top: 0;
  margin-bottom: 12px;
}
.page-section p {
  margin: 0 0 1rem 0;
  color: var(--text);
}

/* ==========================
   MENU GRID / CARDS
   ========================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.menu-item {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.22s cubic-bezier(.2,.9,.3,1), box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
.menu-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.menu-item .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-item h3 {
  margin: 0;
  font-size: 1.05rem;
}
.menu-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* ==========================
   GALLERY GRID (ADDED)
   ========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.gallery-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(211,84,0,0.09);
  background: #ffe5d0;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.gallery-photo:hover {
  transform: scale(1.045);
  box-shadow: 0 8px 32px rgba(211,84,0,0.18);
}

/* ==========================
   CONTACT FORM/INFO+MAP FLEX
   ========================== */
.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
}

.contact-info {
  flex: 1 1 220px;
  min-width: 200px;
}

.contact-map {
  flex: 0 1 340px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.contact-map iframe {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: 0;
  display: block;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;
    gap: 18px;
  }
  .contact-map,
  .contact-info {
    max-width: 100%;
    min-width: 0;
  }
  .contact-map iframe {
    height: 180px;
  }
}

/* ==========================
   CONTACT FORM (legacy, not used now)
   ========================== */
form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}
input[type="text"], input[type="email"], textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6e2df;
  font-size: 0.98rem;
  resize: vertical;
}
textarea { min-height: 120px; }
form button[type="submit"] {
  width: fit-content;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

/* ==========================
   ANIMATIONS: reveal on scroll
   ========================== */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.9,.3,1);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Quick fade-in utility (for hero text that should load immediately) */
.fade-in {
  animation: fadeIn 1s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 920px) {
  .menu-item img { height: 160px; }
  .hero { min-height: 480px; }
}
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 12px;
    background: linear-gradient(180deg, rgba(211,84,0,0.98), rgba(201,71,0,0.98));
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a { padding: 8px 12px; }
  .hamburger { display: block; background: transparent; border: none; }
  .hero { padding: 1rem; background-position: center 35%; }
}
@media (max-width: 420px) {
  .hero { height: 70vh; min-height: 380px; }
  .hero .hero-text { padding: 1rem; }
  .logo-img { height: 38px; padding: 4px; }
  .logo-text { font-size: 1.05rem; }
  footer { font-size: 0.92rem; padding: 4px 0 4px 0; }
}