﻿/* ===== CSS Variables ===== */
:root {
  --primary-color: #CC6666;
  --primary-dark: #b35959;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f5f7fa;
  --card-bg: #fff;
  --border-radius: 12px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --header-height: 70px;
  
  /* Status Colors */
  --ok-bg: #d4f8d4;
  --ok-border: #3ba55d;
  --warn-bg: #fff3b0;
  --warn-border: #e0a800;
  --avoid-bg: #f8d4d4;
  --avoid-border: #c53030;  
}

/* ===== Reset & Base Styles ===== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  background-color: #ece0c6;
  font-family: 'Nunito', 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
    max-width: 60px;
    border-radius: 50%;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-links a {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Language Selector */
.lang-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.lang-selector:focus {
  outline: 2px solid white;
}


/* Force readable dropdown list (Windows / Chrome / Edge) */
.lang-selector option {
  color: black;
  background-color: white;
}


/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}


.headerInner {
  text-align:center
}

.headerInner h1 {
  color: var(--primary-color);
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .headerInner {
        margin: 1rem auto 0;
        padding: 1rem;
    }
    
    .headerInner h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .headerInner h1 {
        font-size: 1.2rem;
    }
}


/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url("https://www.bangtech.com/share/mm/food/lemon_garlic_ginger.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}


/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  
  /* Hero */
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}


/* ===============================
   Mobile Navigation
   =============================== */

@media (max-width: 768px) {

  /* Hamburger toggle */
  .menu-toggle {
    display: block;
  }

  .menu-toggle i {
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded=true] i {
    transform: rotate(90deg);
  }

  /* Mobile nav drawer */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;

    background: linear-gradient(
      to bottom,
      var(--primary-color),
      var(--primary-dark)
    );

    display: flex;
    flex-direction: column;

    padding: 1.5rem 1rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));

    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;

    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;

    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Navigation links */
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;

    font-size: 1.1rem;
    text-align: center;

    padding: 1rem 1.25rem;
    border-radius: 8px;

    color: white;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;

    transition: background 0.25s ease;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Separate language selector */
  .nav-links li:last-child {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  /* Language selector styling */
  .lang-selector {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;

    border-radius: 8px;
    border: none;

    color: white;
    background: rgba(255, 255, 255, 0.18);

    appearance: none;
    cursor: pointer;

    background-image:
      linear-gradient(45deg, transparent 50%, white 50%),
      linear-gradient(135deg, white 50%, transparent 50%);
    background-position:
      calc(100% - 20px) 50%,
      calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
  }

  .lang-selector:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
  }
}

/* ===============================
   Mobile Backdrop
   =============================== */

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 999;
}

body.menu-open .mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   Motion Safety
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .menu-toggle i,
  .mobile-backdrop {
    transition: none !important;
  }
}
