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

:root {
  --primary: #1a1a2e;
  --secondary: #e94560;
  --accent: #0f3460;
  --light: #f8f9fa;
  --dark: #16213e;
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--primary);
  background: var(--white);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--accent); }

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

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo svg {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

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

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

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

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

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

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

/* Sections */
section {
  padding: 5rem 20px;
}

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

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

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

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

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

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

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* Grid Layouts with Flexbox */
.flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.flex-grid-2 > * {
  flex: 1 1 calc(50% - 1rem);
  min-width: 280px;
}

.flex-grid-3 > * {
  flex: 1 1 calc(33.333% - 1.34rem);
  min-width: 280px;
}

.flex-grid-4 > * {
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 220px;
}

/* Stats Section */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
  flex: 1 1 200px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

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

.stat-label {
  font-size: 1rem;
  color: var(--gray);
}

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

/* Testimonials */
.testimonial {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

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

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

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

.testimonial-role {
  color: var(--gray);
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray);
  flex-grow: 1;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 1rem;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  flex: 1 1 200px;
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-content h4 {
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--gray);
  margin: 0;
}

/* Two Column Layout */
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.two-col > * {
  flex: 1 1 400px;
}

.two-col-reverse {
  flex-direction: row-reverse;
}

/* Quote Block */
.quote-block {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem;
  border-radius: var(--radius);
  text-align: center;
}

.quote-block blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.quote-block cite {
  font-style: normal;
  opacity: 0.8;
}

/* Highlight Panel */
.highlight-panel {
  background: var(--secondary);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
}

.highlight-panel h3 {
  margin-bottom: 1rem;
}

.highlight-panel p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

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

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

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

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

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 20px 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  flex: 1 1 200px;
}

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

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 400px;
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
}

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

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.cookie-btn-accept {
  background: var(--secondary);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: #d63050;
}

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

.cookie-btn-settings:hover {
  border-color: var(--white);
}

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

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

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

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

.cookie-modal-header h3 {
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: var(--primary);
}

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

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

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

.cookie-option-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  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: var(--gray);
  border-radius: 26px;
  transition: var(--transition);
}

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

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

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

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

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

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

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

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

.legal-content li {
  margin-bottom: 0.5rem;
}

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

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

.thank-you-icon svg {
  width: 100%;
  height: 100%;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light);
}

.comparison-table th {
  background: var(--primary);
  color: var(--white);
}

.comparison-table tr:hover {
  background: var(--light);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateX(-6px);
}

.timeline-year {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

/* Icon List */
.icon-list {
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.icon-list svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
  flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero { padding: 4rem 20px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  section { padding: 3rem 20px; }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
  }

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

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

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

  .flex-grid-2 > *,
  .flex-grid-3 > *,
  .flex-grid-4 > * {
    flex: 1 1 100%;
  }

  .two-col > * {
    flex: 1 1 100%;
  }

  .two-col-reverse {
    flex-direction: column;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .quote-block {
    padding: 2rem;
  }

  .quote-block blockquote {
    font-size: 1.25rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .card {
    padding: 1.5rem;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 2rem;
  z-index: 10001;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 10px;
}

/* Print Styles */
@media print {
  header,
  footer,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    text-decoration: underline;
  }
}
