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

:root {
  --color-primary: #2d5a3d;
  --color-primary-light: #4a8c5e;
  --color-accent: #4ecdc4;
  --color-accent-light: #7be0ad;
  --color-dark: #1a1a2e;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #f8faf9;
  --color-white: #ffffff;
  --color-border: #e0e5e2;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

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;
}

main {
  flex: 1;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }

p { margin-bottom: 1rem; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.5rem; }

.container {
  width: 100%;
  max-width: 1200px;
  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__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

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

.logo__icon {
  width: 40px;
  height: 40px;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

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

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

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

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 5rem 2rem 2rem;
  transition: right var(--transition);
  z-index: 105;
}

.mobile-nav--open {
  right: 0;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__item {
  margin-bottom: 0;
}

.mobile-nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 102;
}

.mobile-nav__overlay--visible {
  opacity: 1;
  visibility: visible;
}

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

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

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

.hero__cta {
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

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

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

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

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

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

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

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

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

.section__intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card__title {
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 1rem;
}

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

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

.feature__icon {
  width: 56px;
  height: 56px;
  padding: 0.75rem;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.feature__content h3 {
  margin-bottom: 0.5rem;
}

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

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

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

.testimonial__text {
  font-style: italic;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
}

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

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

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

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

.contact-item__icon {
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-item__content h4 {
  margin-bottom: 0.25rem;
}

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

/* Legal Pages */
.legal {
  padding: 2rem 0 3rem;
}

.legal__content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.legal__content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.legal__content h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

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

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

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 4rem 0;
}

.thank-you__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--color-accent);
}

.thank-you__title {
  margin-bottom: 1rem;
}

.thank-you__text {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
}

.footer__tagline {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__nav-group h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-list li {
  margin-bottom: 0.5rem;
}

.footer__nav-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__nav-list a:hover,
.footer__nav-list a:focus {
  color: var(--color-accent);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform var(--transition);
  z-index: 200;
}

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

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__text {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.cookie-banner__text a {
  color: var(--color-accent);
}

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

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-banner__btn--accept {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.cookie-banner__btn--accept:hover,
.cookie-banner__btn--accept:focus {
  background-color: var(--color-accent-light);
}

.cookie-banner__btn--settings {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner__btn--settings:hover,
.cookie-banner__btn--settings:focus {
  border-color: var(--color-white);
}

.cookie-banner__btn--reject {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__btn--reject:hover,
.cookie-banner__btn--reject:focus {
  color: var(--color-white);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 300;
}

.cookie-modal--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.cookie-modal__title {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.cookie-modal__close:hover,
.cookie-modal__close:focus {
  color: var(--color-text);
}

.cookie-modal__body {
  padding: 1.5rem;
}

.cookie-modal__intro {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.cookie-option__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option__title {
  font-weight: 600;
  margin-bottom: 0;
}

.cookie-option__description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle__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 {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle__input:checked + .toggle__slider {
  background-color: var(--color-accent);
}

.toggle__input:checked + .toggle__slider::before {
  transform: translateX(22px);
}

.toggle__input:focus + .toggle__slider {
  box-shadow: 0 0 0 2px var(--color-accent-light);
}

.toggle__input:disabled + .toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cookie-modal__btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-modal__btn--save {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cookie-modal__btn--save:hover,
.cookie-modal__btn--save:focus {
  background-color: var(--color-primary-light);
}

.cookie-modal__btn--accept-all {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.cookie-modal__btn--accept-all:hover,
.cookie-modal__btn--accept-all:focus {
  background-color: var(--color-accent-light);
}

/* Utilities */
.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;
}

.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; }

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

  .hero {
    padding: 4rem 0;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

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

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

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer__nav-group {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

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

  .section {
    padding: 4rem 0;
  }

  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav__overlay {
    display: none;
  }

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

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

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .legal__content {
    padding: 3rem;
  }

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

  .footer__brand {
    max-width: 280px;
  }

  .footer__nav {
    flex: 1;
    justify-content: flex-end;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }

  .hero {
    padding: 5rem 0;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

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

  .feature {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 220px;
  }

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

  .section {
    padding: 5rem 0;
  }
}
