/* ==========================================
   THE HALF PLATE - MAIN STYLESHEET
   Production-ready CSS Structure
========================================== */

/* ==========================================
   1. CSS VARIABLES & ROOT STYLES
========================================== */
:root {
  /* Professional Color Palette */
  --primary-dark: #2d5016;
  --primary-medium: #4a7c2c;
  --primary-light: #8bc34a;
  --accent-gold: #d4a574;
  --neutral-white: #ffffff;
  --neutral-light-gray: #f8f9fa;
  --neutral-gray: #e8eaed;
  --neutral-dark-gray: #6c757d;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--neutral-white);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

section {
  padding: 5rem 0;
}

/* ==========================================
   2. HEADER & NAVIGATION
========================================== */
header {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 100%
  );
  color: var(--neutral-white);
  padding: 1.25rem 0;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--neutral-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

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

.cta-btn {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.cta-btn:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

/* ==========================================
   3. HERO SECTION
========================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.restaurant-header {
  margin-bottom: 2rem;
}

.restaurant-icons {
  font-size: 2.5rem;
  color: var(--primary-light);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.restaurant-icons i {
  transition: var(--transition);
}

.restaurant-icons i:hover {
  color: var(--accent-gold);
  transform: translateY(-5px);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
}

.hero-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   4. SECTION HEADERS
========================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-gold));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ==========================================
   5. SPECIAL OFFERS SECTION
========================================== */
#offers {
  background: var(--neutral-light-gray);
}

.offer-card {
  background-color: var(--neutral-white);
  border-radius: 8px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-shadow: var(--shadow-medium);
  position: relative;
  border-left: 6px solid var(--primary-light);
}

.offer-side-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge {
  background: linear-gradient(
    135deg,
    var(--primary-medium),
    var(--primary-light)
  );
  color: var(--neutral-white);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.badge-text {
  font-size: 1.4rem;
  line-height: 1.5;
}

.badge-text span {
  display: block;
  font-size: 2rem;
  margin: 0.5rem 0;
  font-weight: 800;
}

.timer-placeholder {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--neutral-gray);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* ==========================================
   6. MENU SECTION
========================================== */
#menu {
  background: var(--neutral-white);
}

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

.menu-category {
  background: var(--neutral-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  border-top: 5px solid var(--primary-light);
  transition: var(--transition);
}

.menu-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.menu-category h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--neutral-gray);
}

.menu-category i {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.menu-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-gray);
}

.menu-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.menu-item-price {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================
   7. GALLERY & TESTIMONIALS
========================================== */
#gallery {
  background: var(--neutral-light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.gallery-placeholder {
  background: var(--neutral-white);
  height: 220px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--neutral-gray);
  box-shadow: var(--shadow-light);
}

.gallery-placeholder:hover {
  border-color: var(--primary-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

.gallery-placeholder i {
  font-size: 2.5rem;
}

.testimonial-module {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: var(--neutral-white);
  padding: 4rem 3rem;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-dark);
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 0;
}

.testimonial-author {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================
   8. FOOTER & CONTACT
========================================== */
footer {
  background: var(--primary-dark);
  color: var(--neutral-white);
  padding: 5rem 0 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-card h3,
.footer-map h3 {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", serif;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info i {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-info strong {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icons a {
  color: var(--neutral-white);
  background-color: rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.social-icons a:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.map-embed-placeholder {
  background: rgba(255, 255, 255, 0.1);
  height: 250px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 600;
  border: 2px dashed rgba(212, 165, 116, 0.5);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   9. RESPONSIVE DESIGN
========================================== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.875rem;
  }

  section {
    padding: 4rem 0;
  }

  .offer-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

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

  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .restaurant-icons {
    font-size: 2rem;
    gap: 1rem;
  }

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

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

  .testimonial-module {
    padding: 2rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .badge {
    width: 150px;
    height: 150px;
  }

  .badge-text span {
    font-size: 1.5rem;
  }

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

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.2rem;
  }

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

  .menu-category {
    padding: 1.5rem;
  }

  .restaurant-header {
    margin-bottom: 1.5rem;
  }

  .nav-logo {
    font-size: 1rem;
  }
}
