/* ============================================
   HOMELAND HEARTH — DESIGN SYSTEM
   ============================================ */

:root {
  /* Colors */
  --surface: #131313;
  --surface-dim: #131313;
  --surface-bright: #3a3939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  --on-surface: #e5e2e1;
  --on-surface-variant: #d0c5af;
  --outline: #99907c;
  --outline-variant: #4d4635;
  --primary: #f2ca50;
  --on-primary: #3c2f00;
  --primary-container: #d4af37;
  --on-primary-container: #554300;
  --inverse-primary: #735c00;
  --secondary: #c6c6c7;
  --on-secondary: #2f3131;
  --secondary-container: #454747;
  --on-secondary-container: #b4b5b5;
  --tertiary: #d0cdcd;
  --on-tertiary: #313030;
  --background: #131313;
  --on-background: #e5e2e1;
  --error: #ffb4ab;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  /* Spacing */
  --unit: 8px;
  --gutter: 24px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --stack-lg: 80px;
  --stack-md: 40px;
  --container-max: 1280px;

  /* Radii */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* 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);
  background-color: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* space for bottom nav */
}

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

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

/* Buta Pattern Background */
.buta-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 45c-8.25 0-15-6.75-15-15 0-5.25 3-9.75 7.5-12.75C20.5 15 19 10.5 19 6c7.5 4.5 12 12 12 20.25 0 3-1.5 6-3.75 8.25C27.75 36 30 37.5 30 37.5c3 0 6-1.5 8.25-3.75C40.5 31.5 42 25.5 42 18c0-8.25-4.5-15-12-19.5 4.5 3 7.5 7.5 7.5 12.75 0 3.75-1.5 7.5-4.5 9.75C28.5 24 27 28.5 27 33c0 6.75 5.25 12 12 12 0 0-3 0-9 0z' fill='%23f2ca50' fill-opacity='0.025' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */
.glass-panel {
  background: rgba(19, 19, 19, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(242, 202, 80, 0.15);
  border-left: 1px solid rgba(242, 202, 80, 0.08);
  border-radius: var(--radius-lg);
}

.glass-card {
  background: rgba(32, 31, 31, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(242, 202, 80, 0.12);
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:active {
  transform: scale(0.98);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-display {
  font-family: var(--font-display);
}

.text-display {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-headline {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  font-family: var(--font-display);
}

.text-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-body {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.text-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 5px 15px;
}

.text-gold { color: var(--primary); }
.text-muted { color: var(--on-surface-variant); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

.section {
  padding-top: var(--stack-md);
  padding-bottom: var(--stack-md);
}

.stack-lg { margin-bottom: var(--stack-lg); }
.stack-md { margin-bottom: var(--stack-md); }
.gutter { gap: var(--gutter); }

/* Grid */
.grid-1 { display: grid; grid-template-columns: 1fr; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:active {
  background: var(--primary-container);
  transform: translateY(1px);
}

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

.btn-outline:active {
  background: rgba(242, 202, 80, 0.1);
}

.btn-glow:hover,
.btn-glow:active {
  box-shadow: 0 0 24px rgba(242, 202, 80, 0.25);
}

/* ============================================
   FORMS
   ============================================ */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  padding: 12px 8px;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form-input:focus {
  border-bottom-color: var(--primary);
}

.form-input::placeholder {
  color: var(--outline);
}

/* ============================================
   CHIPS / TAGS
   ============================================ */
.chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* ============================================
   HEADER
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(19, 19, 19, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(242, 202, 80, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--margin-mobile);
  transition: all 0.3s ease;
}

.topbar-scrolled {
  background: rgba(19, 19, 19, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.logo-img {
  height: 68px;
  width: auto;
}

/* Mobile Menu Toggle */
.menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}

/* Full-screen Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--on-surface);
  transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  color: var(--primary);
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

/* ============================================
   BOTTOM NAV (Mobile-First)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(19, 19, 19, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(242, 202, 80, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--outline);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  padding: 8px 16px;
}

.bottom-nav a svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.bottom-nav a.active,
.bottom-nav a:active {
  color: var(--primary);
}

/* Hide bottom nav on large tablets/desktop if desired, but keep for usability */
@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--margin-mobile) 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(19,19,19,0.3) 0%, rgba(19,19,19,0.85) 70%, var(--background) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* ============================================
   MENU CARDS
   ============================================ */
.menu-card {
  overflow: hidden;
  cursor: pointer;
}

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

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

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

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.menu-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.3;
}

.menu-card-desc {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--outline-variant);
}

.price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

/* Horizontal scroll for mobile featured */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-left: calc(-1 * var(--margin-mobile));
  margin-right: calc(-1 * var(--margin-mobile));
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
}

/* ============================================
   CONTACT & INFO CARDS
   ============================================ */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.info-card > a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}


.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius);
  background: rgba(242, 202, 80, 0.1);
  border: 1px solid rgba(242, 202, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.info-value {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.5;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--outline-variant);
  padding: 40px var(--margin-mobile);
  text-align: center;
  color: var(--outline);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-logo {
  height: 90px;
  opacity: 0.7;
  margin-bottom: 20px;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 1;
}

/* ============================================
   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);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* ============================================
   DESKTOP BREAKPOINT
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }

  .text-display {
    font-size: 64px;
    line-height: 72px;
    letter-spacing: -0.02em;
  }

  .text-headline {
    font-size: 32px;
    line-height: 40px;
  }

  .hero {
    padding: 120px var(--margin-desktop) 80px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

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

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

  .scroll-row {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }

  .scroll-card {
    flex: none;
    scroll-snap-align: none;
  }

  .section {
    padding-top: var(--stack-lg);
    padding-bottom: var(--stack-lg);
  }

  .topbar {
    padding: 0 var(--margin-desktop);
    height: 72px;
  }

  .logo-text {
    font-size: 22px;
  }

  .menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
    gap: 40px;
  }

  .desktop-nav a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    transition: color 0.2s;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
  }

  .desktop-nav a:hover,
  .desktop-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }

  .footer {
    padding: 60px var(--margin-desktop);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(19, 19, 19, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--primary);
  border-top: 2px solid var(--primary);
  color: var(--on-surface);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(242, 202, 80, 0.15);
  white-space: nowrap;
}

.toast-content svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(64px + env(safe-area-inset-top));
  }
  .hero {
    padding-top: calc(100px + env(safe-area-inset-top));
  }
}