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

:root {
  --color-primary: #2c3e50;
  --color-secondary: #8e44ad;
  --color-accent: #e74c3c;
  --color-light: #f8f9fa;
  --color-dark: #1a1a2e;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --color-border: #e0e0e0;
  --color-gold: #d4af37;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --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: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
}

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(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

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

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.nav-menu.active {
  display: flex;
}

.nav-menu a {
  padding: 0.75rem 1rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.nav-menu a:hover {
  color: var(--color-secondary);
  background: var(--color-light);
}

.nav-menu a:last-child {
  border-bottom: none;
}

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-dark);
  transition: 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);
}

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

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

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

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

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

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

/* Sections */
section {
  padding: 4rem 1rem;
}

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

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

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-accent {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #9b59b6 100%);
  color: var(--color-white);
}

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

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

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

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

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

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

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

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

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

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

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-secondary);
}

.feature-item svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
}

/* Statistics */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
}

.stat-item {
  flex: 1 1 140px;
  max-width: 200px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

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

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--color-secondary);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
}

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

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

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

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

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

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

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

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

/* Values Grid */
.values-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.value-card svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

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

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

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

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

.contact-item h4 {
  margin-bottom: 0.25rem;
}

/* Industries */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.industry-tag {
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  font-weight: 500;
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}

/* Quote Section */
.quote-section {
  text-align: center;
  padding: 4rem 1rem;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  font-family: var(--font-heading);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.quote-author {
  font-weight: 600;
  color: var(--color-gold);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

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

.comparison-table tr:last-child td {
  border-bottom: none;
}

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

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

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

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

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

.team-member h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Milestones */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

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

.milestone-item {
  position: relative;
}

.milestone-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  transform: translateX(-5px);
}

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

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

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

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

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

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

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

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

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

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

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

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

.cookie-content p {
  margin: 0;
  font-size: 0.9375rem;
}

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

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

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

.cookie-modal.active {
  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: 2rem;
}

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

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

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
}

.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 h4 {
  margin: 0;
  font-size: 1rem;
}

.cookie-option p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

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

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

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

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

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

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

.cookie-modal-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

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

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

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

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

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

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

.thank-you-section svg {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
}

.thank-you-section h1 {
  margin-bottom: 1rem;
}

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

/* Highlight Panel */
.highlight-panel {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--color-gold);
}

/* Alternating Content */
.alternating-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.alternating-block-content {
  order: 2;
}

.alternating-block-visual {
  order: 1;
}

.alternating-block-visual svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

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

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

/* Desktop Styles */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }

  .nav-wrapper {
    padding: 1rem 2rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
  }

  .nav-menu a {
    padding: 0.5rem 1rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  .hero {
    padding: 6rem 2rem;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  section {
    padding: 5rem 2rem;
  }

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

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

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

  .feature-item {
    flex: 1 1 calc(50% - 1rem);
    flex-direction: row;
    align-items: flex-start;
  }

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

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

  .process-steps {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .values-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

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

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

  .contact-grid {
    flex-direction: row;
  }

  .contact-info {
    flex: 1;
  }

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

  .footer-section {
    flex: 1;
  }

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

  .alternating-block {
    flex-direction: row;
  }

  .alternating-block-content {
    flex: 1;
    order: 1;
  }

  .alternating-block-visual {
    flex: 1;
    order: 2;
  }

  .alternating-block.reverse .alternating-block-content {
    order: 2;
  }

  .alternating-block.reverse .alternating-block-visual {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .service-card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .feature-item {
    flex: 1 1 calc(33.333% - 1.5rem);
  }

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

  .value-card {
    flex: 1 1 calc(25% - 1.5rem);
  }
}

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

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

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