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

:root {
  --color-primary: #1a5f7a;
  --color-secondary: #57c5b6;
  --color-accent: #159895;
  --color-dark: #0a2647;
  --color-light: #f8fafa;
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-white: #ffffff;
  --color-border: #e1e8ed;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --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-white);
  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 {
  color: var(--color-accent);
}

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

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

ul, ol {
  list-style-position: inside;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.nav__link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

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

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

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

/* Mobile Menu Toggle */
.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__bar {
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.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: translateY(-8px) rotate(-45deg);
}

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

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

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

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

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

/* 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: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

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

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

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

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

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

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

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

.hero__content {
  max-width: 700px;
  margin: 0 auto;
}

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

.hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

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

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

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

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

.section__title {
  margin-bottom: 0.75rem;
}

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

.section__subtitle {
  color: var(--color-text-light);
  font-size: 1.0625rem;
}

.section--dark .section__subtitle {
  color: rgba(255,255,255,0.8);
}

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

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

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

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

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

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

.feature__icon {
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-dark);
}

.feature__title {
  font-size: 1.125rem;
}

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

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

.testimonial {
  background: 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-secondary);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.3;
}

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

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

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

.testimonial__info {
  display: flex;
  flex-direction: column;
}

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

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

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

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

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.stat {
  text-align: center;
  padding: 1rem;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* Team */
.team {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-member {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-member__avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member__avatar svg {
  width: 40px;
  height: 40px;
  color: var(--color-white);
}

.team-member__name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-member__role {
  color: var(--color-accent);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.team-member__bio {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* 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: 48px;
  height: 48px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-dark);
}

.contact-item__label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

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

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

.thank-you__icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-dark);
}

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

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

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

.legal__content {
  max-width: 800px;
  margin: 0 auto;
}

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

.legal__content h2:first-of-type {
  border-top: none;
  margin-top: 1rem;
}

.legal__content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

.legal__content li {
  margin-bottom: 0.5rem;
}

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

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

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

.footer__brand {
  text-align: center;
}

.footer__logo {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

.footer__nav-group h4 {
  color: var(--color-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

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

.footer__nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--color-secondary);
}

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

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

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

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

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

.cookie-banner__text {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.cookie-banner__text a {
  text-decoration: underline;
}

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

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

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

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

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

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

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

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

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

.cookie-modal__close svg {
  width: 16px;
  height: 16px;
}

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

.cookie-option:last-of-type {
  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;
}

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

/* 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: var(--color-border);
  border-radius: 26px;
  transition: background var(--transition);
}

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

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

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

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

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

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-modal__btn {
  flex: 1;
  min-width: 120px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  z-index: 10001;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

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

.cta-section__title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section__text {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Media Queries */
@media (min-width: 480px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

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

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 2rem;
  }

  .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% - 0.75rem);
  }

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

  .team-member {
    flex: 1 1 calc(50% - 0.75rem);
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__nav-group {
    min-width: 150px;
  }
}

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

  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

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

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

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

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

  .about-text {
    flex: 1;
  }

  .stats {
    flex: 0 0 auto;
  }

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

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

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

  .cookie-banner__text {
    flex: 1;
    margin-right: 2rem;
  }

  .cookie-banner__actions {
    flex-shrink: 0;
  }
}

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

  .hero {
    padding: 5rem 2rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .section {
    padding: 5rem 2rem;
  }

  .services-list {
    flex-wrap: nowrap;
  }

  .service-card {
    flex: 1;
  }

  .features {
    flex-wrap: nowrap;
  }

  .feature {
    flex: 1;
  }

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

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

  .footer__brand {
    text-align: left;
  }

  .footer__nav {
    gap: 3rem;
  }
}
