@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #047857; /* Darker green for 4.5:1 contrast with white */
  --color-primary-light: #059669;
  --color-primary-dark: #064e3b;
  --color-secondary: #1e293b;
  --color-accent: #f59e0b;
  --color-text: #111827;
  --color-text-light: #374151; /* Darker gray for 4.5:1 contrast on white */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  
  --font-family: 'Outfit', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --color-accent-text: #b45309; /* Darker accent for text contrast */
  --color-muted: #64748b; /* Accessible gray for muted text */
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-primary {
  background-color: rgba(4, 120, 87, 0.1);
  color: var(--color-primary);
}

.badge-accent {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-accent-text);
}

.text-muted {
  color: var(--color-muted);
}

.text-disabled {
  color: #71717a; /* WCAG AA compliant disabled-looking text */
}

.dark-section-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.dark-section-card h3 {
  color: var(--color-white);
}

.dark-section-card p {
  color: rgba(255, 255, 255, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-secondary);
}

h1 { font-size: 3rem; margin-bottom: var(--space-lg); }
h2 { font-size: 2.25rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); }

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
  display: inline-block; /* Ensure min touch target height */
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  min-height: 48px; /* Touch target accessibility */
  min-width: 48px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-base);
  font-size: 1rem;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--color-secondary);
  position: relative;
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger-icon {
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-base);
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  left: 0;
  transition: var(--transition-base);
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: 8px; }

.mobile-menu-toggle.active .hamburger-icon {
  background-color: transparent;
}

.mobile-menu-toggle.active .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-2xl) var(--space-lg);
    transition: var(--transition-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.bento-item {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-item-sm { grid-column: span 4; }
  .bento-item-md { grid-column: span 6; }
  .bento-item-lg { grid-column: span 8; }
}

.bento-img-container {
  flex: 0.5;
  display: none;
}

@media (min-width: 1024px) {
  .bento-img-container {
    display: block;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(30, 41, 59, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  opacity: 1; /* Better contrast */
}

.stats-bar {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-primary-light);
  margin-bottom: var(--space-xs);
}

.stat-item p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-title {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.85); /* Improved contrast */
  padding: 0.25rem 0;
  display: inline-block;
  min-height: 32px;
}

.footer-link:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7); /* Improved contrast */
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #cbd5e1; /* Slightly darker border for visibility */
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-base);
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.error-message {
  color: #dc2626; /* WCAG compliant red */
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-control.invalid {
  border-color: #dc2626;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
  padding: var(--space-lg) 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: var(--transition-slow);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.faq-item {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #e2e8f0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-secondary);
  min-height: 48px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--color-text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-md);
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: var(--transition-base);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.testimonial-card {
  height: 100%;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: -2rem;
  left: -1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}
