/* ============================================
   Restaurant Order Platform – Homepage Template
   White primary + Purple secondary
   Easy to rebrand via CSS variables
   ============================================ */

:root {
  /* Brand – change these for any restaurant */
  --color-primary: #ffffff;
  --color-secondary: #7c3aed;          /* Purple */
  --color-secondary-dark: #6d28d9;
  --color-secondary-light: #a78bfa;
  --color-accent: #f59e0b;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg-soft: #f9fafb;
  --color-whatsapp: #25d366;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: white;
  color: var(--color-secondary);
  border-color: white;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

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

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

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo-text strong {
  color: var(--color-secondary);
}

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

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.nav-cta {
  color: white !important;
  padding: 10px 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 15, 25, 0.85) 0%,
    rgba(15, 15, 25, 0.65) 45%,
    rgba(15, 15, 25, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 720px;
  padding: 60px 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #e9d5ff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* About */
.about {
  background: var(--color-primary);
}

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

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 20px;
  line-height: 1.25;
}

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

.about-points {
  list-style: none;
  margin-top: 24px;
}

.about-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

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

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Gallery / Menu Preview */
.menu-preview {
  background: var(--color-bg-soft);
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 520px;
}

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

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

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
}

.gallery-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

/* Location */
.location {
  background: var(--color-primary);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.location-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 16px;
}

.location-info > p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.map-placeholder {
  background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd6fe;
}

.map-content {
  text-align: center;
  padding: 30px;
}

.map-content img {
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.map-content h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.map-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.map-content .btn-outline {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.map-content .btn-outline:hover {
  background: var(--color-secondary);
  color: white;
}

/* CTA */
.cta {
  background: var(--color-bg-soft);
  padding: 80px 0;
}

.cta-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-box > p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Footer */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}

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

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-secondary-light);
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  opacity: 0.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
    max-height: 360px;
  }

  .about-image img {
    aspect-ratio: 16/10;
  }

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

  .gallery-item.large {
    grid-row: auto;
    height: 280px;
  }

  .gallery-item {
    height: 240px;
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .section {
    padding: 70px 0;
  }

  .cta-box {
    padding: 40px 24px;
  }

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

@media (max-width: 480px) {
  .logo-text {
    font-size: 0.95rem;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

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