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

:root {
  --color-primary: #1e3a5f;
  --color-secondary: #f4b942;
  --color-accent: #2d5a87;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e0e0e0;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: 0.3s ease;
}

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

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

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

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

/* Header & Navigation */
.header {
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo span {
  color: var(--color-secondary);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  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-secondary);
  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: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-bg);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  padding: 5rem 2rem 2rem;
  transition: right var(--transition);
  z-index: 1000;
  overflow-y: auto;
}

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

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

.nav-mobile li {
  margin-bottom: 1rem;
}

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

.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: all var(--transition);
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 3rem 0;
}

.hero h1 {
  color: var(--color-bg);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .btn {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

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

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

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

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

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

.card {
  background-color: var(--color-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-secondary);
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

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

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

.testimonial {
  background-color: var(--color-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

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

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

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

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

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

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--color-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-bg);
  opacity: 0.8;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 1rem;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

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

.cookie-banner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

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

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

.cookie-modal h3 {
  margin-bottom: 1.5rem;
}

.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.875rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.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: background-color var(--transition);
}

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

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

.toggle input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

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

.toggle input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.3);
}

.cookie-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

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

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

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

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

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.thank-you-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-secondary);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  z-index: 3000;
  font-weight: 600;
}

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

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

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .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-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-section {
    flex: 1 1 calc(50% - 1rem);
    min-width: 200px;
  }

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

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

  .container {
    padding: 0 2rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .section {
    padding: 5rem 0;
  }

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

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

  .footer-section {
    flex: 1 1 calc(25% - 1.5rem);
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
  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;
  }
}
