/* ==========================================================================
   Luna's Restaurant — Global Stylesheet
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* --- Design Tokens --- */
:root {
  --luna-midnight: #1a1a2e;
  --luna-deep: #16213e;
  --luna-gold: #d4a574;
  --luna-cream: #f5f0e8;
  --luna-sage: #7c9a72;
  --luna-white: #fefcf9;
  --luna-wine: #8b2635;
  --luna-text: #2d2d2d;
  --luna-text-light: #6b6b6b;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--luna-text);
  background-color: var(--luna-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--luna-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--luna-wine);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--luna-midnight);
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); }

p + p { margin-top: 1em; }

ul, ol { list-style: none; }

.accent-font {
  font-family: var(--font-accent);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sections --- */
section {
  padding: clamp(3rem, 4vw, 6rem) 0;
}

.section-cream { background-color: var(--luna-cream); }
.section-white { background-color: var(--luna-white); }
.section-dark {
  background-color: var(--luna-midnight);
  color: var(--luna-cream);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--luna-cream);
}
.section-dark p {
  color: rgba(245, 240, 232, 0.85);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--luna-text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-header .divider {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--luna-gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--luna-cream);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--luna-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--luna-gold);
  transition: width var(--transition);
}

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

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--luna-cream);
  transition: transform var(--transition), opacity var(--transition);
}

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

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.55) 0%,
    rgba(26, 26, 46, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero-content h1 {
  color: var(--luna-cream);
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.5rem);
  color: rgba(245, 240, 232, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.hero--tall {
  min-height: 85vh;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--luna-gold);
  color: var(--luna-midnight);
  border-color: var(--luna-gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--luna-gold);
  border-color: var(--luna-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--luna-gold);
  border-color: var(--luna-gold);
}

.btn-secondary:hover {
  background: var(--luna-gold);
  color: var(--luna-midnight);
}

.btn-white {
  background: var(--luna-cream);
  color: var(--luna-midnight);
  border-color: var(--luna-cream);
}

.btn-white:hover {
  background: transparent;
  color: var(--luna-cream);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--luna-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--luna-text-light);
  font-size: 0.95rem;
}

/* --- Icon Card (no image) --- */
.icon-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--luna-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.icon-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--luna-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--luna-gold);
}

.icon-card .icon-wrap svg {
  width: 28px;
  height: 28px;
}

.icon-card h4 {
  margin-bottom: 0.5rem;
}

.icon-card p {
  font-size: 0.9rem;
  color: var(--luna-text-light);
}

/* --- Testimonial --- */
.testimonial {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}

.testimonial blockquote {
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-style: italic;
  color: var(--luna-text);
  line-height: 1.8;
  position: relative;
  padding: 0 1.5rem;
}

.testimonial blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--luna-gold);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 600;
  color: var(--luna-gold);
  font-size: 0.95rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: clamp(3rem, 5vw, 5rem) 1.5rem;
  background: var(--luna-midnight);
  color: var(--luna-cream);
}

.cta-banner h2 {
  color: var(--luna-cream);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: rgba(245, 240, 232, 0.8);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--luna-midnight);
  color: rgba(245, 240, 232, 0.75);
  padding: clamp(3rem, 4vw, 4.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--luna-cream);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
}

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

.footer-info .footer-contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.footer-info .footer-contact-line svg {
  width: 16px;
  height: 16px;
  color: var(--luna-gold);
  flex-shrink: 0;
}

.footer-hours ul li {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  font-size: 0.9rem;
}

.footer-social .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luna-cream);
  transition: background var(--transition), color var(--transition);
}

.footer-social .social-links a:hover {
  background: var(--luna-gold);
  color: var(--luna-midnight);
}

.footer-social .social-links a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--luna-gold);
}

/* --- Image Treatments --- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-hover-scale {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-hover-scale img {
  transition: transform 0.5s ease;
}

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

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Photofilm Embed --- */
.photofilm-container {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.photofilm-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* --- Menu Page --- */
.menu-category {
  margin-bottom: clamp(2rem, 3vw, 4rem);
}

.menu-category h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.menu-category h3 .divider {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--luna-gold);
  margin: 0.75rem auto 0;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--luna-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.menu-item-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.menu-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.menu-item p {
  font-size: 0.875rem;
  color: var(--luna-text-light);
}

.menu-image-feature {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.menu-note {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--luna-text-light);
  padding: 1.5rem;
  border: 1px dashed var(--luna-gold);
  border-radius: var(--radius);
  max-width: 640px;
  margin: 2rem auto 0;
}

.price-indicator {
  text-align: center;
  font-size: 0.95rem;
  color: var(--luna-text-light);
  margin-top: 1rem;
}

.price-indicator strong {
  color: var(--luna-gold);
}

/* --- About Page --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-story-text h2 {
  margin-bottom: 1rem;
}

.about-story-text p {
  margin-bottom: 1rem;
  color: var(--luna-text-light);
}

.about-story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-story-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.amenity-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--luna-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition);
}

.amenity-item:hover {
  transform: translateY(-2px);
}

.amenity-item .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--luna-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--luna-gold);
}

.amenity-item .icon-wrap svg {
  width: 22px;
  height: 22px;
}

.amenity-item h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.use-case {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.use-case .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luna-gold);
  flex-shrink: 0;
}

.use-case .icon-wrap svg {
  width: 20px;
  height: 20px;
}

.use-case h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.use-case p {
  font-size: 0.9rem;
  color: var(--luna-text-light);
}

.ratings {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rating-badge {
  text-align: center;
  padding: 1.5rem 2.5rem;
  background: var(--luna-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.rating-badge .rating-score {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--luna-gold);
  line-height: 1;
}

.rating-badge .rating-stars {
  color: var(--luna-gold);
  margin: 0.35rem 0;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-badge .rating-source {
  font-size: 0.85rem;
  color: var(--luna-text-light);
}

/* --- Gallery Page --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(26, 26, 46, 0.15);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--luna-cream);
  cursor: pointer;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--luna-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--luna-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--luna-gold);
}

.contact-card .icon-wrap svg {
  width: 24px;
  height: 24px;
}

.contact-card h4 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--luna-text-light);
}

.contact-card a {
  color: var(--luna-gold);
  font-weight: 500;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-story-img img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    text-align: center;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: 55vh;
  }

  .hero--tall {
    min-height: 65vh;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item img {
    height: 200px;
  }

  .ratings {
    gap: 1.5rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 240px;
  }

  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
}
