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

:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --secondary: #4fc3f7;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

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

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

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

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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
}

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

.nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

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

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

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

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

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
}

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

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

.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

/* Sections */
.section {
  padding: 60px 20px;
}

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

.section-title {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* Services */
.service-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

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

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonial {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

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

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 30px;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.testimonial-name {
  font-weight: 600;
  color: var(--text-dark);
}

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

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature h3 {
  margin-bottom: 8px;
}

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

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-white);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--bg-light);
  padding: 50px 20px 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-section h4 {
  color: var(--bg-white);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.cookie-accept {
  background: var(--primary);
  color: var(--bg-white);
}

.cookie-accept:hover {
  background: var(--secondary);
}

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

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

.cookie-reject {
  background: transparent;
  color: var(--text-light);
}

.cookie-reject:hover {
  color: var(--bg-white);
}

/* 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: 20px;
}

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

.modal-content {
  background: var(--bg-white);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 5px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 25px;
}

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

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

.cookie-option-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.cookie-option-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

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

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

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

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

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

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

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

.modal-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  padding: 50px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
}

/* Content Sections */
.content-section {
  padding: 40px 20px;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.content-section h3 {
  font-size: 1.25rem;
  margin: 25px 0 10px;
  color: var(--text-dark);
}

.content-section p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.content-section ul {
  margin: 15px 0;
  padding-left: 25px;
}

.content-section li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 80px 20px;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--bg-white);
}

.thank-you h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.thank-you p {
  color: var(--text-light);
  margin-bottom: 30px;
}

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

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--bg-white);
  padding: 10px 20px;
  z-index: 10001;
  transition: top var(--transition);
}

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

/* Desktop Styles */
@media (min-width: 768px) {
  .header-inner {
    padding: 20px 40px;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

  .nav-list {
    flex-direction: row;
    gap: 5px;
  }

  .nav-link {
    padding: 10px 15px;
    border-bottom: none;
    border-radius: 6px;
  }

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

  .hero {
    padding: 100px 40px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 80px 40px;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

  .card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
  }

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

  .testimonial {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
  }

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

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

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

  .footer-section {
    flex: 1;
  }

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

  .cookie-text {
    flex: 1;
    margin-right: 30px;
  }

  .page-header {
    padding: 80px 40px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .content-section {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
  }
}

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

  .cards {
    gap: 30px;
  }

  .feature {
    flex: 1 1 calc(33.333% - 25px);
  }
}
