/* Brand Palette */
:root {
  --primary: #3B5438;          /* Khmer Deep Olive Green */
  --primary-dark: #273A25;
  --accent: #D75A2A;           /* Warm Terracotta Red/Orange */
  --accent-hover: #B84419;
  --bg-main: #FAFAFA;       
  --bg-light: #F2EFE9;        /* Soft warm beige background */
  --text-dark: #232B2B;       
  --text-muted: #556060;     
  --white: #FFFFFF;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-btn {
  background-color: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background-color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section Container */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh; /* Covers most of the screen nicely */
  
  /* High-resolution background properties */
  background-image: 
    linear-gradient(rgba(59, 84, 56, 0.75), rgba(59, 84, 56, 0.75)), 
    url('sabay-cook-hero.jpg'); /* Replace with Media Library URL if needed */
  
  background-size: cover;
  background-position: center 35%; /* Frames the cooking action perfectly */
  background-repeat: no-repeat;
  
  /* Flexbox for perfect text alignment */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  color: #ffffff;
}

/* Crisp Text Styling */
.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Button Group */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background-color: var(--secondary, #D75A2A); /* Terracotta */
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #b8481f;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Features Strip (Inclusion Widgets) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 3rem 8%;
  background: var(--white);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.feature-item .icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Layout Sections */
.section {
  padding: 4.5rem 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-container h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-container p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.bg-light {
  background-color: var(--bg-light);
  max-width: 100%;
}

/* Picture Widget Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25 ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(59, 84, 56, 0.9);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
}

.card-body {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  flex-grow: 1;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.menu-list {
  list-style: none;
  margin-bottom: 1rem;
}

.menu-list li {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #EEE;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-light);
  padding: 1rem 1.5rem;
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Contact Wrapper & Form */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid #CCC;
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.direct-contact {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #DDD;
}

.direct-contact h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.direct-contact p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
}

.primary-btn {
  background-color: var(--accent);
  color: var(--white);
}

.primary-btn:hover {
  background-color: var(--accent-hover);
}

.secondary-btn {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-sm:hover {
  background-color: var(--primary-dark);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 1.2rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero {
    padding: 4.5rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section {
    padding: 3.5rem 5%;
  }
}