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

:root {
  --color-primary: #1a365d;
  --color-secondary: #c9a227;
  --color-accent: #2d5a87;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-background-alt: #f8f9fa;
  --color-border: #e2e8f0;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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-background);
  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-secondary);
}

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

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

/* Header */
.header {
  background-color: var(--color-background);
  box-shadow: var(--shadow);
  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;
}

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

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

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

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

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

.menu-toggle__bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: 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: rotate(45deg) translate(6px, 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(6px, -6px);
}

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

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

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

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

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

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

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

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
}

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

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

.btn--primary:hover,
.btn--primary:focus {
  background-color: #b8911f;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

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

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

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

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

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

.section__title {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

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

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

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

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

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

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

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

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

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

.feature__icon {
  width: 64px;
  height: 64px;
  color: var(--color-secondary);
}

.feature__title {
  font-size: 1.125rem;
  color: var(--color-primary);
}

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

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

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

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

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

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

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

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

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

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

.about-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-secondary);
  display: block;
}

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

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

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

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

.contact-item__icon {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

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

.contact-item__label {
  font-weight: 600;
  color: var(--color-primary);
}

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

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

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

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

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

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

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

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

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

.legal__section h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.legal__section h3 {
  font-size: 1.125rem;
  color: var(--color-accent);
}

.legal__section p,
.legal__section li {
  color: var(--color-text-light);
  line-height: 1.7;
}

.legal__section ul {
  list-style-position: inside;
  padding-left: 1rem;
}

.legal__section ul li {
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-background);
  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;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-background);
}

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

.footer__description {
  opacity: 0.8;
  font-size: 0.875rem;
  max-width: 300px;
}

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

.footer__nav-title {
  font-weight: 600;
  font-size: 1rem;
}

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

.footer__nav-link {
  color: var(--color-background);
  opacity: 0.8;
  font-size: 0.875rem;
  transition: opacity var(--transition);
}

.footer__nav-link:hover,
.footer__nav-link:focus {
  opacity: 1;
  color: var(--color-secondary);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

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

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.footer__legal-link {
  font-size: 0.75rem;
  color: var(--color-background);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__legal-link:hover,
.footer__legal-link:focus {
  opacity: 1;
  color: var(--color-secondary);
}

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

.cookie-banner.is-visible {
  display: block;
}

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

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

.cookie-banner__text a {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

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

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

.cookie-banner__btn--accept:hover {
  background-color: #b8911f;
}

.cookie-banner__btn--settings {
  background-color: transparent;
  color: var(--color-background);
  border: 1px solid var(--color-background);
}

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

.cookie-banner__btn--decline {
  background-color: transparent;
  color: var(--color-background);
  opacity: 0.8;
}

.cookie-banner__btn--decline:hover {
  opacity: 1;
}

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

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

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

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

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

.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);
  font-size: 1.5rem;
  line-height: 1;
  transition: color var(--transition);
}

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

.cookie-modal__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background-color: var(--color-background-alt);
  border-radius: 6px;
}

.cookie-option__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  padding-right: 1rem;
}

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

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

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

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

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

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

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: var(--color-secondary);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.cookie-modal__btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

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

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

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

.cookie-modal__btn--accept-all:hover {
  background-color: #b8911f;
}

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

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

.cta__title {
  font-size: 1.75rem;
}

.cta__text {
  opacity: 0.9;
  max-width: 500px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: 8px 16px;
  z-index: 10001;
  transition: top var(--transition);
}

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

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

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

.team-member__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.team-member__name {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

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

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

/* Service Detail Page */
.service-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-detail__header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.service-detail__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.service-detail__title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

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

/* Tablet and up */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .header__inner {
    padding: 1rem 2rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

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

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

  .hero {
    padding: 5rem 0;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section__title {
    font-size: 2rem;
  }

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

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

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

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

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

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

  .contact-content {
    flex-direction: row;
    gap: 3rem;
  }

  .contact-info {
    flex: 1;
  }

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

  .footer__brand {
    flex: 1 1 300px;
  }

  .footer__nav {
    flex: 0 0 auto;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

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

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

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

  .cookie-modal__btn {
    flex: 1;
  }

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

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

/* Desktop */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.25rem;
  }

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

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

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

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

  .about-text {
    flex: 2;
  }

  .about-stats {
    flex: 1;
    flex-direction: column;
  }
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
