/* ============================================
   Clean Corporate Professional Website
   Custom CSS for Tailwind Framework
   ============================================ */

/* CSS Variables - Green Corporate Palette */
:root {
  /* Core Colors */
  --primary-green: #2D5A27;
  --secondary-green: #7FB069;
  --footer-dark: #1A3A1B;
  --light-beige: #FAFAF8;
  --pure-white: #FFFFFF;
  --light-green-bg: #F0F4F0;
  
  /* Extended Palette */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --border-subtle: #e0e0e0;
  --border-medium: #c8c8c8;
  --hover-darken: rgba(45, 90, 39, 0.1);
  --hover-lighten: rgba(127, 176, 105, 0.15);
  
  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-green: 0 4px 6px -1px rgba(45, 90, 39, 0.1), 0 2px 4px -1px rgba(45, 90, 39, 0.06);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* Base Typography */
html {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--light-beige);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
}

/* Enhanced Typography Hierarchy */
h1, .text-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--primary-green);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

h2, .text-h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--primary-green);
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

h3, .text-h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h4, .text-h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h5, .text-h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h6, .text-h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* Links */
a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-green);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Container Overrides for Clean Layout */
.container {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Section Styling */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-light {
  background-color: var(--light-beige);
}

.section-white {
  background-color: var(--pure-white);
}

.section-green-tint {
  background-color: var(--light-green-bg);
}

/* Header Styling */
.header {
  background-color: var(--pure-white);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Navigation */
.nav-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-green);
  background-color: var(--light-green-bg);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-green);
  background-color: var(--light-green-bg);
  font-weight: 600;
}

.nav-link:focus {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

.btn-primary:hover:not(:disabled) {
  background-color: #1e441d;
  border-color: #1e441d;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-green);
}

.btn-primary:focus {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: var(--secondary-green);
  color: white;
  border-color: var(--secondary-green);
}

.btn-secondary:hover:not(:disabled) {
  background-color: #6a9858;
  border-color: #6a9858;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(127, 176, 105, 0.3), 0 2px 4px -1px rgba(127, 176, 105, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-green);
  color: white;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--light-green-bg);
  color: var(--primary-green);
  text-decoration: none;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* Card System */
.card {
  background-color: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-green);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.card-body {
  margin-bottom: var(--space-lg);
}

.card-footer {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
  border: none;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--pure-white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  background-color: var(--light-beige);
  color: var(--text-light);
  cursor: not-allowed;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.form-check-input {
  margin-right: var(--space-sm);
  accent-color: var(--primary-green);
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-beige) 0%, var(--light-green-bg) 100%);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(127, 176, 105, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(1, 1fr); }
}

/* Footer */
.footer {
  background-color: var(--footer-dark);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl) 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-title {
  color: white;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: white;
  padding-left: var(--space-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Utility Classes */
.text-primary { color: var(--primary-green); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-white { color: white; }

.bg-primary { background-color: var(--primary-green); }
.bg-secondary { background-color: var(--secondary-green); }
.bg-light { background-color: var(--light-beige); }
.bg-white { background-color: var(--pure-white); }

.border-primary { border-color: var(--primary-green); }
.border-secondary { border-color: var(--secondary-green); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-green { box-shadow: var(--shadow-green); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }
.p-3xl { padding: var(--space-3xl); }

.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }
.m-2xl { margin: var(--space-2xl); }
.m-3xl { margin: var(--space-3xl); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Status Indicators */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-success {
  background-color: var(--light-green-bg);
  color: var(--primary-green);
  border: 1px solid var(--secondary-green);
}

.badge-warning {
  background-color: #fef3cd;
  color: #b45309;
  border: 1px solid #f59e0b;
}

.badge-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #ef4444;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .text-h1 { font-size: 2rem; }
  h2, .text-h2 { font-size: 1.5rem; }
  h3, .text-h3 { font-size: 1.25rem; }
  
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  
  .grid { gap: var(--space-lg); }
  
  .card { padding: var(--space-lg); }
}

/* Focus Management */
.focus-visible:focus {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .btn, .footer { display: none; }
  body { background: white; color: black; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-subtle: #000000;
    --border-medium: #000000;
    --text-light: #000000;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}