/* ============================================================
   MO MEGA PIZZA — Style Luxe / Chic — Glassmorphism
   ============================================================ */

:root {
  --bg: #0d0b09;
  --bg-soft: #16120e;
  --gold: #d4af37;
  --gold-light: #e8c96a;
  --cream: #f5efe0;
  --muted: #b8ad97;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --danger: #e05d5d;
  --success: #4fae6b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Playfair Display", Georgia, serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================ NAVBAR ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .brand-gold {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.55) 0%, rgba(13, 11, 9, 0.35) 45%, var(--bg) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 780px;
  padding: 0 24px;
}

.hero .eyebrow {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 34px;
}

.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: #1a1406;
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ============================ SECTIONS ============================ */
section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  font-style: italic;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 16px;
}

.section-head .line {
  width: 70px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* ============================ ABOUT ============================ */
.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 22px;
}

.about-text .accent {
  color: var(--gold);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-text .sig {
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ============================ FEATURED PIZZAS ============================ */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pizza-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  transform-style: preserve-3d;
}

.pizza-card:hover {
  transform: translateY(-12px) perspective(900px) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.pizza-card .img-wrap {
  height: 250px;
  overflow: hidden;
}

.pizza-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pizza-card:hover .img-wrap img {
  transform: scale(1.08);
}

.pizza-card .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #1a1406;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}

.pizza-card .info {
  padding: 24px;
}

.pizza-card .info .cat {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.pizza-card .info h3 {
  font-size: 1.35rem;
  margin: 8px 0 10px;
}

.pizza-card .info p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.pizza-card .price {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
}

/* ============================ TESTIMONIALS ============================ */
.testimonials {
  background: var(--bg-soft);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testi-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 34px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.testi-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
}

.testi-card .stars {
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.testi-card p {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

.testi-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-card .author .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1406;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testi-card .author .name {
  font-weight: 600;
}

.testi-card .author .role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================ CTA ============================ */
.cta {
  position: relative;
  text-align: center;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 9, 0.8);
  z-index: -1;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================ MENU PAGE ============================ */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.6), var(--bg));
  z-index: -1;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
}

.page-hero .eyebrow {
  font-style: italic;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.menu-category {
  margin-bottom: 64px;
}

.menu-category > h2 {
  font-size: 2rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: 12px;
}

.menu-category > .cat-desc {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
  font-style: italic;
}

.menu-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.menu-item:hover {
  transform: translateX(6px);
  border-color: rgba(212, 175, 55, 0.4);
}

.menu-item .thumb {
  width: 140px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
}

.menu-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .thumb img {
  transform: scale(1.08);
}

.menu-item .detail h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.menu-item .detail p {
  font-size: 0.88rem;
  color: var(--muted);
}

.menu-item .menu-price {
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

/* ============================ GALLERY ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 9, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-style: italic;
  letter-spacing: 1px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* ============================ CONTACT ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-info-item .icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.contact-info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--muted);
}

.contact-form {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background: rgba(79, 174, 107, 0.15);
  border: 1px solid rgba(79, 174, 107, 0.4);
  color: #7cd695;
}

.form-message.error {
  display: block;
  background: rgba(224, 93, 93, 0.15);
  border: 1px solid rgba(224, 93, 93, 0.4);
  color: #f09090;
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ============================ FOOTER ============================ */
.footer {
  background: #0a0806;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--gold);
}

.footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .logo {
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ============================ REVEAL ANIMATION ============================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: revealFallback 0.8s ease 0.4s forwards;
}

/* ============================ ADMIN ============================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login .login-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 44px;
  width: 100%;
  max-width: 420px;
}

.admin-login h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}

.admin-login .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.admin-panel {
  min-height: 100vh;
  padding: 60px 24px;
}

.admin-panel.hidden {
  display: none;
}

.admin-login.hidden {
  display: none;
}

.admin-panel h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.admin-panel .sub {
  color: var(--muted);
  margin-bottom: 32px;
}

.messages-list {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.message-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 22px;
}

.message-card .msg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.message-card .msg-head strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.message-card .msg-head .email {
  color: var(--muted);
  font-size: 0.85rem;
}

.message-card .date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.message-card p {
  color: var(--cream);
}

.domain-card {
  background: var(--glass-strong);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 28px;
}

.domain-card h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.domain-card p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.domain-card .form-group {
  margin-bottom: 16px;
}

.domain-card label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.domain-card input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
}

.domain-card input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .pizza-grid,
  .testi-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-item {
    grid-template-columns: 110px 1fr;
  }
  .menu-item .menu-price {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 76%;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 11, 9, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 320px;
  }

  .pizza-grid,
  .testi-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .menu-item {
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 14px;
  }

  .menu-item .thumb {
    width: 90px;
    height: 84px;
  }

  .menu-item .menu-price {
    grid-column: 2;
    font-size: 1.15rem;
  }

  .contact-form {
    padding: 26px;
  }
}
