/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --secondary: #f77f00;
  --secondary-light: #fcbf49;
  --accent: #d62828;
  --text: #2b2d42;
  --text-light: #555b6e;
  --bg: #fefefe;
  --bg-alt: #f8f9fa;
  --bg-warm: #fff8f0;
  --white: #ffffff;
  --border: #e9ecef;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-md: rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
  padding: 1rem;
  z-index: 999;
}

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

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--bg-alt);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

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

.btn-secondary:hover {
  background: #e06f00;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* Hero Section */
.hero {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-alt) 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 400px;
}

/* Section Styles */
section {
  padding: 3rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.bg-warm {
  background: var(--bg-warm);
}

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

.bg-primary h2,
.bg-primary h3,
.bg-primary p {
  color: var(--white);
}

/* Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 280px;
  max-width: 380px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

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

.card p {
  font-size: 0.95rem;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.3s ease;
  flex: 1 1 300px;
  max-width: 400px;
  border-left: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow-md);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1rem 0;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.feature-content h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  flex: 1 1 300px;
  max-width: 400px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-dark);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Stats Section */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  flex: 1 1 150px;
  max-width: 200px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.bg-primary .stat-number {
  color: var(--secondary-light);
}

.stat-label {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: var(--text-light);
}

.bg-primary .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

/* Values Grid */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.value-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  flex: 1 1 200px;
  max-width: 280px;
  box-shadow: 0 4px 12px var(--shadow);
  border-top: 4px solid var(--primary);
}

.value-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

/* Quote Section */
.quote-section {
  text-align: center;
  padding: 4rem 1rem;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-dark);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.quote-author {
  font-weight: 600;
  color: var(--text);
}

/* Contact Info */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px var(--shadow);
  flex: 1 1 280px;
  max-width: 350px;
  text-align: center;
}

.contact-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-5.5px);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
}

.comparison-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  flex: 1;
  padding: 1rem;
  text-align: center;
}

.comparison-header {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.comparison-feature {
  text-align: left;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 1rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 1rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px var(--shadow-md);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text h4 {
  margin-bottom: 0.5rem;
}

.cookie-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.cookie-btn-accept:hover {
  background: var(--primary-dark);
}

.cookie-btn-reject {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.cookie-btn-reject:hover {
  background: var(--bg-alt);
}

.cookie-btn-settings {
  background: transparent;
  border: none;
  color: var(--primary);
  text-decoration: underline;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.cookie-modal-overlay.active {
  display: flex;
}

.cookie-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h3 {
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close svg {
  width: 24px;
  height: 24px;
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.cookie-option-info p {
  font-size: 0.85rem;
  margin: 0;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Thank You Page */
.thank-you-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.thank-you-content svg {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
}

.thank-you-content h1 {
  color: var(--primary);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.legal-content h1 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.legal-content h2 {
  color: var(--primary);
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  color: var(--text);
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-light);
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Highlight Box */
.highlight-box {
  background: var(--bg-warm);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin: 0;
}

/* Icon Grid */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.icon-item {
  text-align: center;
  flex: 1 1 140px;
  max-width: 180px;
}

.icon-item svg {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
}

.icon-item p {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .hero {
    padding: 5rem 2rem;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  section {
    padding: 5rem 2rem;
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-text {
    flex: 1;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  .process-steps {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .process-step {
    flex: 1 1 45%;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.25rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-question:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .cookie-modal-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}
