:root {
  /* Premium Color Palette */
  --color-primary: #1D3C26;
  /* Deep Forest Green */
  --color-primary-light: #2E5A3E;
  --color-secondary: #5D4037;
  /* Earthy Brown */
  --color-accent: #C8A051;
  /* Muted Gold */
  --color-accent-hover: #E0C070;
  --color-bg: #F9F7F2;
  /* Warm Cream/Beige */
  --color-white: #FFFFFF;
  --color-text-dark: #1A1A1A;
  --color-text-light: #555555;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Reset & Base Styles */
*,
*::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-dark);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.text-white {
  color: var(--color-white);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.btn-primary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.navbar.scrolled .logo {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  opacity: 0.9;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text-dark);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  opacity: 1;
}

/* Page Header (Inner Pages) */
.page-header {
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background-attachment: fixed;
  /* Parallax effect */
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Dark overlay */
  z-index: 1;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: white;
}

.page-header p {
  font-size: 1.25rem;
  z-index: 2;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .menu-toggle {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--spacing-sm);
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.5s;
  color: var(--color-white);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.8s;
}

.hero .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 1.1s;
}

/* Card Styles */
.card {
  background: var(--color-white);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Feature Cards (Products) */
.feature-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
}

/* Footer (Updated for 4 Columns) */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  font-size: 0.95rem;
}

footer h3,
footer h4 {
  color: var(--color-white);
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

footer p {
  color: #888;
}

footer a {
  color: #bbb;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

footer ul li {
  margin-bottom: 0.8rem;
}

/* Animation Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text-dark);
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: block;
    z-index: 1000;
    position: relative;
  }

  .navbar .logo {
    z-index: 1000;
    position: relative;
  }

  .navbar.scrolled .logo {
    color: var(--color-primary);
  }

  /* Ensure logo is visible on white menu background */
  .nav-links.active~.logo {
    color: var(--color-primary);
  }

  .menu-toggle.active {
    color: var(--color-text-dark);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* Responsive Grid Utilities (Added) */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-2-cols.align-start {
  align-items: start;
}

.grid-2-cols-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.order-2 {
  order: 2;
}

@media (max-width: 768px) {

  .grid-2-cols,
  .grid-2-cols-sm {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* On mobile, sometimes we want to stack differently */
  .grid-2-cols div,
  .grid-2-cols-sm div {
    width: 100%;
  }

  .order-2 {
    order: unset;
    /* Reset order on mobile so it stacks naturally 1, 2 */
  }

  /* Or make image first always? Usually text then image is better for SEO, but image first looks nicer visually */
  /* Let's just stack vertically */
}