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

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #8b5cf6;
  --color-accent: #a78bfa;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
  --container-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

/* Header */
.header {
  background-color: var(--color-bg);
  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 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

/* Navigation */
.nav {
  display: none;
}

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

.nav__link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}

.mobile-menu-btn__line {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

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

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

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
}

.mobile-nav__link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color var(--transition), color var(--transition);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

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

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

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

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

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature {
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

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

.feature__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

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

.feature__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.service-card {
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.service-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.service-card__description {
  color: var(--color-text-light);
}

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

.testimonial {
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.testimonial__text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

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

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

.about-text {
  color: var(--color-text);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1rem;
}

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

.value-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.value-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.value-item__text {
  color: var(--color-text-light);
}

/* Contact Page */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  background-color: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 0.75rem;
}

.contact-info__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-info__icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

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

/* Thank You Page */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.thank-you__icon {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.thank-you__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

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

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

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

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

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

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

.footer__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

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

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__link:hover {
  color: white;
}

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

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-text);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
}

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

.cookie-banner__buttons {
  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: 0.375rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

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

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

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

.cookie-banner__btn--settings:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.cookie-banner__btn--reject:hover {
  color: white;
}

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

.cookie-modal--visible {
  display: flex;
}

.cookie-modal__content {
  background-color: var(--color-bg);
  border-radius: 0.75rem;
  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.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cookie-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  border-radius: 0.25rem;
  transition: background-color var(--transition);
}

.cookie-modal__close:hover {
  background-color: var(--color-bg-alt);
}

.cookie-modal__body {
  padding: 1.5rem;
}

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

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

.cookie-option__info {
  flex: 1;
  padding-right: 1rem;
}

.cookie-option__title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

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

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

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

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

.cookie-toggle__input:checked + .cookie-toggle__slider::before {
  transform: translateX(24px);
}

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

.cookie-toggle__input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.cookie-modal__btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

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

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

.cookie-modal__btn--accept-all {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cookie-modal__btn--accept-all:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 200;
  transition: top var(--transition);
}

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

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .nav {
    display: block;
  }

  .nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

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

  .hero {
    padding: 5rem 0;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .section__title {
    font-size: 2.25rem;
  }

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

  .feature {
    flex: 1 1 calc(50% - 1rem);
  }

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

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

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

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

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

  .footer__section {
    flex: 1;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }

  .cookie-banner__text {
    flex: 1;
  }

  .cookie-modal__footer {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .feature {
    flex: 1 1 calc(33.333% - 1.5rem);
  }

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

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