/* 
  La Ferme Heureuse - Premium Design System 
  Theme: Angus Beef / Nature / Quality
*/

:root {
  /* Palette */
  --color-primary: #1e3a1f;
  /* Deep Forest Green - Authority, Nature */
  --color-primary-light: #2e5d32;
  --color-secondary: #8d6e63;
  /* Earthy Brown - Warmth, Soil */
  --color-accent: #d4a373;
  /* Gold/Wheat - Premium touch */

  --color-bg: #f9f9f7;
  /* Warm Off-white - Paper/Natural feel */
  --color-surface: #ffffff;

  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-border: #e0e0e0;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* UI Elements */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border-radius: 0;
  /* Boxy/Premium feel */
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 0;
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  /* Reduced for sticky header */
}

/* Add padding to body to prevent content hiding behind fixed header */
body {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  height: 85vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('/public/images/hero-angus-v2.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.btn-hero {
  color: white;
  border: 2px solid white;
  background-color: transparent;
  margin-top: var(--spacing-md);
}

.btn-hero:hover {
  background-color: white;
  color: var(--color-primary);
}

/* Services Section (3 Columns) */
.section {
  padding: var(--spacing-xl) 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  background: var(--color-surface);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.bg-light {
  background-color: #f7f7f5;
  /* Slightly darker than body bg for subtle contrast */
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card .stars {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.testimonial-card .quote {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: auto;
  /* Push to bottom if content varies */
}

/* Reassurance Section */
.reassurance {
  background-color: var(--color-secondary);
  color: white;
  padding: var(--spacing-lg) 0;
}

.reassurance h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.reassurance p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Footer */
.footer {
  background-color: #111;
  color: #888;
  padding: var(--spacing-md) 0;
  font-size: 0.9rem;
}

.footer strong {
  color: white;
}

/* Navigation Styles */
.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .header {
    background: #fff;
  }

  .hero {
    height: 60vh;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .header-container {
    padding: 0 1rem;
    min-height: 60px;
  }

  /* Mobile Menu Button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
  }

  /* Recipe Cards */
  .recipe-card .tag {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
  }

  .recipe-steps {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
  }

  .recipe-steps li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
  }

  .recipe-steps li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger Animation */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Mobile Nav */
  .nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding-top: 100px;
    /* Clear the header */
    padding-left: 2rem;
    padding-right: 2rem;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    /* Behind header (1000) but above content */
    display: flex;
    /* Enable flex for centering if needed */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .nav.active {
    clip-path: circle(150% at 100% 0);
  }

  .nav ul {
    display: flex !important;
    /* Override inline styles */
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center;
    text-align: center;
    width: 100%;
    list-style: none;
    /* Ensure no bullets */
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    /* Force visibility */
    display: block;
    padding: 0.5rem 0;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}