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

:root {
  --primary: #1a4d8c;
  --primary-dark: #0f3460;
  --secondary: #3498db;
  --accent: #27ae60;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --bg-light: #f8fafc;
  --bg-alt: #eef3f8;
  --white: #ffffff;
  --border: #dce4ec;
  --shadow: rgba(26, 77, 140, 0.08);
}

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);
  background: var(--white);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--primary-dark);
  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;
}

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

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

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

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

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

.main-nav {
  display: none;
}

.main-nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 1rem;
}

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

.main-nav li {
  border-bottom: 1px solid var(--border);
}

.main-nav li:last-child {
  border-bottom: none;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.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(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: #219a52;
  color: var(--white);
}

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

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

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

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

/* Section Styles */
.section {
  padding: 4rem 0;
}

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

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

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

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

/* Cards */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  flex: 1 1 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

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

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

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  flex: 1 1 100%;
  border-left: 4px solid var(--primary);
}

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

.service-price {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 1rem;
}

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

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

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

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

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

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

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

.stat-item {
  flex: 1 1 45%;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  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;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.author-info strong {
  display: block;
  color: var(--primary-dark);
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
}

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

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

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.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.25rem 1.25rem;
  color: var(--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 {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

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

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

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

.industry-tag {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.industry-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.value-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.value-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

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

.contact-info-block {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
}

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

.contact-item:last-child {
  margin-bottom: 0;
}

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

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

/* Milestones */
.timeline {
  position: relative;
  padding-left: 30px;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 5px;
  width: 15px;
  height: 15px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.cookie-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
}

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

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

.cookie-btn-settings {
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
}

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

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

.modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
}

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

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

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

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

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

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

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

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

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

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

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

.toggle-switch input:checked + .toggle-slider {
  background: 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 {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

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

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

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

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

.legal-content h1 {
  margin-bottom: 2rem;
}

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

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

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

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

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

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

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

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

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

/* Highlight Panel */
.highlight-panel {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-light) 100%);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

/* Two Column Layout */
.two-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.column {
  flex: 1;
}

/* Quote Block */
.quote-block {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.quote-block::before {
  content: '"';
  font-size: 6rem;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.2;
  line-height: 1;
}

.quote-block p {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
}

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

/* Media Queries */
@media (min-width: 640px) {
  h1 { font-size: 2.75rem; }
  .hero h1 { font-size: 2.5rem; }

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

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

  .stat-item {
    flex: 1 1 22%;
  }

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

  .footer-section {
    flex: 1 1 45%;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 0.5rem;
  }

  .main-nav li {
    border-bottom: none;
  }

  .main-nav a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
  }

  .hero {
    padding: 6rem 0;
  }

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

  .section {
    padding: 5rem 0;
  }

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

  .testimonial-card {
    flex: 1;
  }

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

  .contact-info-block {
    flex: 1;
  }

  .two-columns {
    flex-direction: row;
  }

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

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

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

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

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

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

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

  .footer-section {
    flex: 1;
  }

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

  .feature-item {
    flex: 1 1 calc(50% - 0.75rem);
  }

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

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px;
  z-index: 10001;
}

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