/* ======================================
   ELEGANT & MINIMAL DESIGN SYSTEM
   Color Palette & Theme Variables
   ====================================== */
:root {
  /* Core Color Palette */
  --primary-color: #556B2F;
  --secondary-color: #F5F5DC;
  --background-color: #FFFFFF;
  --footer-bg-color: #2F4F4F;
  --button-color: #6B8E23;
  
  /* Section Backgrounds */
  --section-bg-primary: #FFFFFF;
  --section-bg-secondary: #FAF9F6;
  --section-bg-tertiary: #F0FFF0;
  
  /* Accent Colors */
  --accent-warm: #8B7355;
  --accent-cool: #6B8E23;
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-accent: 'Crimson Text', serif;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(85, 107, 47, 0.08);
  --shadow-soft: 0 2px 8px rgba(85, 107, 47, 0.12);
  --shadow-medium: 0 4px 16px rgba(85, 107, 47, 0.16);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ======================================
   GLOBAL STYLES & BASE OVERRIDES
   ====================================== */

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Enhanced Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--button-color);
}

/* Elegant Underlined Links */
a:not(.btn):not(.nav-link)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: var(--button-color);
  transition: all var(--transition-smooth);
}

a:not(.btn):not(.nav-link):hover::after {
  width: 100%;
  left: 0;
}

/* ======================================
   BOOTSTRAP CUSTOMIZATION
   ====================================== */

/* Enhanced Bootstrap Button Variants */
.btn-primary {
  background-color: var(--button-color);
  border-color: var(--button-color);
  border-radius: var(--radius-pill);
  padding: var(--space-md) var(--space-xl);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-outline-primary {
  color: var(--button-color);
  border-color: var(--button-color);
  border-radius: var(--radius-pill);
  padding: var(--space-md) var(--space-xl);
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.btn-outline-primary:hover {
  background-color: var(--button-color);
  border-color: var(--button-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Custom Pill Button */
.btn-pill {
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth);
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Enhanced Bootstrap Cards */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  background: var(--section-bg-primary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(85, 107, 47, 0.1);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Bootstrap Navigation Enhancement */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-subtle);
  border-bottom: 1px solid rgba(85, 107, 47, 0.05);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: var(--space-sm) var(--space-md) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(107, 142, 35, 0.08);
}

/* ======================================
   CUSTOM COMPONENTS
   ====================================== */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--section-bg-primary) 0%, var(--section-bg-secondary) 100%);
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23556B2F" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%236B8E23" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%238B7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Section Styling */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background-color: var(--section-bg-secondary);
}

.section-accent {
  background-color: var(--section-bg-tertiary);
}

/* Content Blocks */
.content-block {
  margin-bottom: var(--space-3xl);
}

.content-block:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Feature Cards */
.feature-card {
  background: var(--section-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  border: 1px solid rgba(85, 107, 47, 0.08);
  transition: all var(--transition-smooth);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(85, 107, 47, 0.16);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--button-color), var(--primary-color));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: white;
  font-size: 1.5rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--button-color));
  color: white;
  padding: var(--space-4xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  background: var(--section-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-soft);
  position: relative;
  margin-bottom: var(--space-lg);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-xl);
  font-size: 4rem;
  color: var(--button-color);
  font-family: var(--font-heading);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Footer Styling */
footer {
  background-color: var(--footer-bg-color) !important;
  color: var(--secondary-color);
  padding: var(--space-4xl) 0 var(--space-xl);
}

footer h5 {
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

footer a {
  color: var(--secondary-color);
  transition: all var(--transition-fast);
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 245, 220, 0.1);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ======================================
   FORM STYLING
   ====================================== */

.form-control {
  border: 2px solid rgba(85, 107, 47, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  transition: all var(--transition-smooth);
  background-color: var(--section-bg-primary);
}

.form-control:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
  background-color: var(--section-bg-primary);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* ======================================
   UTILITY CLASSES
   ====================================== */

.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--text-secondary) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-color) !important;
}

.bg-button-custom {
  background-color: var(--button-color) !important;
}

/* Spacing Utilities */
.mt-4xl { margin-top: var(--space-4xl); }
.mb-4xl { margin-bottom: var(--space-4xl); }
.pt-4xl { padding-top: var(--space-4xl); }
.pb-4xl { padding-bottom: var(--space-4xl); }

/* Border Radius Utilities */
.rounded-pill { border-radius: var(--radius-pill); }
.rounded-lg-custom { border-radius: var(--radius-lg); }

/* Shadow Utilities */
.shadow-subtle { box-shadow: var(--shadow-subtle); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: var(--space-3xl) 0;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .feature-card {
    padding: var(--space-xl);
  }
  
  .testimonial-card {
    padding: var(--space-xl);
  }
}

@media (max-width: 576px) {
  .btn-primary,
  .btn-outline-primary {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.95rem;
  }
  
  .feature-card,
  .testimonial-card {
    padding: var(--space-lg);
  }
}

/* ======================================
   PRINT STYLES
   ====================================== */

@media print {
  .navbar,
  footer,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
}

/* ======================================
   ACCESSIBILITY ENHANCEMENTS
   ====================================== */

/* Focus States */
*:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ======================================
   ANIMATION & INTERACTIONS
   ====================================== */

/* Smooth Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }
  
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects for Interactive Elements */
.interactive-hover {
  transition: all var(--transition-smooth);
}

.interactive-hover:hover {
  transform: translateY(-2px);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}