/* ========================================
   Moonstruck Cafe — Styles
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --charcoal: #1F2937;
  --charcoal-light: #2D3748;
  --charcoal-dark: #111827;
  --coral: #F28474;
  --coral-light: #F7A89A;
  --coral-dark: #E06B5C;
  --cream: #FFFAF6;
  --cream-dark: #F5EDE6;
  --warm-gray: #6B7280;
  --warm-gray-light: #9CA3AF;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 4px 16px rgba(31, 41, 55, 0.1);
  --shadow-lg: 0 8px 32px rgba(31, 41, 55, 0.12);
  --shadow-coral: 0 4px 20px rgba(242, 132, 116, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

em {
  font-style: italic;
  color: var(--coral);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
  box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(242, 132, 116, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

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

.section-desc {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.7;
}

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

.section-header .section-desc {
  margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 250, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255, 250, 246, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--charcoal);
}

.logo-icon {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width var(--transition);
}

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

.nav-list a:hover {
  color: var(--coral);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0 120px;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 132, 116, 0.12);
  color: var(--coral-dark);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--charcoal);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--charcoal);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--cream-dark);
}

.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-float {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.hero-img-float svg {
  color: var(--coral);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--charcoal);
  position: relative;
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--charcoal);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--coral);
  border-radius: var(--radius-lg);
  opacity: 0.2;
  z-index: -1;
}

.about-content .section-label {
  color: var(--coral-light);
}

.about-content .section-title {
  color: var(--white);
  margin-bottom: 24px;
}

.about-content > p {
  color: var(--warm-gray-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(242, 132, 116, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-light);
}

.about-feature strong {
  display: block;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 2px;
}

.about-feature span {
  color: var(--warm-gray-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Menu ---------- */
.menu {
  padding: 100px 0;
  background: var(--cream);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-tab {
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--cream-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-gray);
  cursor: pointer;
  transition: all var(--transition);
}

.menu-tab:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.menu-tab.active {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-coral);
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.menu-card-img {
  height: 200px;
  overflow: hidden;
}

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

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

.menu-card-body {
  padding: 24px;
}

.menu-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.menu-card-body p {
  color: var(--warm-gray);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 100px 0;
  background: var(--cream-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

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

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 41, 55, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-item-overlay span {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.gallery-item--tall {
  grid-row: span 2;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 0;
  background: var(--charcoal);
}

.testimonials .section-title {
  color: var(--white);
}

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

.testimonial-card {
  background: var(--charcoal-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 132, 116, 0.3);
}

.testimonial-quote {
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--warm-gray-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--coral);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Visit / Contact ---------- */
.visit {
  padding: 100px 0;
  background: var(--cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.visit-info .section-title {
  margin-bottom: 16px;
}

.visit-desc {
  color: var(--warm-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(242, 132, 116, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}

.visit-detail strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  margin-bottom: 4px;
}

.visit-detail span,
.visit-detail a {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.6;
}

.visit-detail a:hover {
  color: var(--coral);
}

.visit-form-wrapper {
  position: sticky;
  top: 100px;
}

.visit-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.visit-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.visit-form-card > p {
  color: var(--warm-gray);
  font-size: 0.925rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 132, 116, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  margin: 0 auto 16px;
}

.form-success h4 {
  font-size: 1.35rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

/* ---------- Map ---------- */
.map-section {
  background: var(--charcoal-dark);
}

.map-container {
  border-radius: 0;
  overflow: hidden;
}

.map-container iframe {
  filter: saturate(0.8) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal-dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  color: var(--warm-gray-light);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--warm-gray-light);
  font-size: 0.925rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--warm-gray-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--warm-gray-light);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--warm-gray);
  font-size: 0.825rem;
}

/* ---------- Animations ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .about-grid {
    gap: 48px;
  }

  .visit-grid {
    gap: 48px;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1000;
  }

  .nav-list.open {
    transform: translateX(0);
  }

  .nav-list a {
    font-size: 1.1rem;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0 100px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-img-secondary {
    right: 0;
  }

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

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

  .gallery-item--tall {
    grid-row: span 1;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .visit-form-wrapper {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .menu-tabs {
    flex-direction: column;
    align-items: center;
  }

  .menu-tab {
    width: 100%;
    text-align: center;
  }

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

  .visit-form-card {
    padding: 24px;
  }

  .about-img-secondary {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }
}
