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

:root {
  --color-primary: #0d6e8a;
  --color-primary-dark: #085568;
  --color-secondary: #f4a261;
  --color-accent: #2a9d8f;
  --color-dark: #1a2b3c;
  --color-light: #f8fafc;
  --color-gray: #64748b;
  --color-gray-light: #e2e8f0;
  --color-white: #ffffff;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
}

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

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

p { margin-bottom: 1rem; }

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

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

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

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

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

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

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

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

.nav-menu a {
  color: var(--color-dark);
  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(--color-primary);
  transition: width var(--transition);
}

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

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

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

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 650px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.hero-decoration {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

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

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

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

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

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

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

.section-alt {
  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-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

/* Services Grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-grid .card {
  flex: 1 1 calc(33.333% - 2rem);
  min-width: 280px;
}

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

/* Features */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.feature-item {
  flex: 1 1 calc(50% - 3rem);
  min-width: 280px;
  display: flex;
  gap: 1.5rem;
}

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

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

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

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--color-gray);
}

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

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

.testimonial {
  flex: 1 1 calc(50% - 1rem);
  min-width: 300px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

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

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

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

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

.process-step {
  flex: 1 1 calc(25% - 2rem);
  min-width: 220px;
  text-align: center;
  position: relative;
}

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

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

.faq-item {
  border-bottom: 1px solid var(--color-gray-light);
}

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

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

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--color-gray);
}

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

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.quote-author {
  font-weight: 600;
  opacity: 0.9;
}

/* Contact Info */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1 1 350px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

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

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

.contact-item p {
  color: var(--color-gray);
  margin: 0;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

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

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

/* Highlight Panel */
.highlight-panel {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #e8934f 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.highlight-panel h3 {
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.highlight-panel p {
  color: var(--color-dark);
  opacity: 0.85;
  margin: 0;
}

/* Values Grid */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.value-item {
  flex: 1 1 calc(33.333% - 2rem);
  min-width: 250px;
  text-align: center;
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-primary);
}

/* Industries */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.industry-tag {
  background: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.industry-tag svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

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

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

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

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

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

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

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

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

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

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

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

.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  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(--color-dark);
  color: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
}

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

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

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  margin: 0;
  color: rgba(255,255,255,0.9);
}

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

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

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

.cookie-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-md);
  max-width: 600px;
  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-gray);
  padding: 0.5rem;
}

.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-light);
}

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

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-option h4 {
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.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(--color-gray-light);
  border-radius: 26px;
  transition: var(--transition);
}

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

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

.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-option p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-gray);
}

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

/* Thank You Page */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 500px;
}

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

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

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

.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-light);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

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

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

/* Alternating Blocks */
.alt-block {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.alt-block-content {
  flex: 1 1 400px;
}

.alt-block-visual {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.alt-block:nth-child(even) {
  flex-direction: row-reverse;
}

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

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

.icon-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }

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

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

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0;
  }

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

  .section {
    padding: 3rem 0;
  }

  .services-grid .card,
  .feature-item,
  .testimonial,
  .value-item {
    flex: 1 1 100%;
  }

  .stats {
    gap: 2rem;
  }

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

  .quote-block {
    padding: 2rem;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .highlight-panel {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

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

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

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

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

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

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

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(13, 110, 138, 0.3);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 10001;
  transition: top 0.3s;
}

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