/* === CSS Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2E7D32;
  --color-primary-dark: #1B5E20;
  --color-accent: #FFCA28;
  --color-accent-dark: #F9A825;
  --color-text: #212121;
  --color-text-light: #616161;
  --color-bg: #FAFAFA;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul, ol {
  list-style: none;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* === Header & Navigation === */
.header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

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

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 1.5rem;
}

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

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

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

/* === Mobile Menu === */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  border-radius: 4px;
  transition: background-color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a:focus {
  background-color: var(--color-bg);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

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

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

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-accent-dark);
}

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

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

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* === Sections === */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0.75rem auto 0;
}

/* === Services === */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

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

.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* === Features === */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

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

.feature-content h3 {
  margin-bottom: 0.25rem;
}

.feature-content p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === Testimonials === */
.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

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

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

/* === About === */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  background-color: var(--color-white);
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.value-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* === Contact === */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

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

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.contact-text a {
  color: var(--color-text);
}

.contact-text a:hover {
  color: var(--color-primary);
}

/* === Thank You Page === */
.thank-you {
  text-align: center;
  padding: 4rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.thank-you-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-white);
}

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

/* === Legal Pages === */
.legal-content {
  background-color: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

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

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

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

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

.legal-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.legal-content a {
  text-decoration: underline;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* === Footer === */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  opacity: 0.85;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.85;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  z-index: 1000;
  display: none;
}

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

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.cookie-buttons .btn {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
}

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

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

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

.cookie-modal h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

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

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

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

.cookie-option-info p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

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

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

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

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

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-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-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-modal-buttons .btn {
  flex: 1;
  min-width: 120px;
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Media Queries === */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 5rem 0;
  }

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

  .hero p {
    font-size: 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .services-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }

  .features-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature-item {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }

  .testimonials-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text {
    flex: 1.5;
  }

  .about-values {
    flex: 1;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand {
    flex: 1;
    max-width: 350px;
  }

  .footer-links {
    flex: 0 0 auto;
  }

  .cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .cookie-content p {
    margin-bottom: 0;
    flex: 1;
  }

  .cookie-buttons {
    flex-wrap: nowrap;
  }

  .legal-content {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .service-card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .testimonial {
    flex: 1 1 calc(33.333% - 1rem);
  }
}
