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

:root {
  --color-primary: #2d5a7b;
  --color-primary-dark: #1e3d52;
  --color-secondary: #e8a849;
  --color-accent: #5ba88f;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #1a2a3a;
  --color-border: #e0e4e8;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-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: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

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

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

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

p {
  margin-bottom: 1rem;
}

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

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

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

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

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

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

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

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav__link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

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

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.menu-toggle--active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

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

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

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

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

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

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

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

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

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

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

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

.hero__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

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

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

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

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

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section__subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

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

.card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

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

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

/* Feature blocks */
.feature-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-content {
  flex: 1;
}

.feature-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
}

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

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

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

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

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

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

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

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

.testimonial__name {
  font-weight: 600;
}

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

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

.faq-item {
  background-color: var(--color-bg);
  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-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color var(--transition);
}

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

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

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

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

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

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

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

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

.process-step__number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.process-step__content {
  flex: 1;
}

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

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

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

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

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

.contact-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

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

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

.value-item__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.industry-tag {
  background-color: var(--color-bg-alt);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
}

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

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

.milestone {
  position: relative;
}

.milestone::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  border: 3px solid var(--color-bg);
}

.milestone__year {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

/* Trust Indicators */
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.trust-item__icon {
  width: 64px;
  height: 64px;
}

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

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

.footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__nav h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  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-color: var(--color-bg-dark);
  color: white;
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: none;
}

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

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

.cookie-banner__text {
  font-size: 0.875rem;
}

.cookie-banner__text a {
  color: var(--color-secondary);
}

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

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}

.cookie-banner__btn--accept {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
}

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

.cookie-banner__btn--settings {
  background-color: transparent;
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

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

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

.cookie-modal__content {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.cookie-modal__body {
  padding: 1.5rem;
}

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

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

.cookie-option__info h4 {
  margin-bottom: 0.25rem;
}

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

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

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

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

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

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

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

.toggle input:disabled + .toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

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

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

/* Panel Highlight */
.panel {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-secondary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

/* Comparison */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-item {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.comparison-item--highlighted {
  border: 2px solid var(--color-primary);
  position: relative;
}

.comparison-badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Lists with icons */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icon-list__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.icon-list__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--color-accent);
}

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

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

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

.legal-content h2 {
  margin-top: 2rem;
}

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

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

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

.two-col__main {
  flex: 2;
}

.two-col__side {
  flex: 1;
}

/* Info Box */
.info-box {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.info-box h4 {
  margin-bottom: 1rem;
}

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

  .hero {
    padding: 6rem 2rem;
  }

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

  .section {
    padding: 5rem 2rem;
  }

  .nav {
    display: flex;
  }

  .nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .menu-toggle {
    display: none;
  }

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

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

  .feature-row {
    flex-direction: row;
    align-items: center;
  }

  .feature-row--reverse {
    flex-direction: row-reverse;
  }

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

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

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

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

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

  .value-item {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
  }

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

  .footer__grid > div {
    flex: 1;
    min-width: 200px;
  }

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

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

  .comparison {
    flex-direction: row;
  }

  .comparison-item {
    flex: 1;
  }
}

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

  .hero {
    padding: 8rem 2rem;
  }

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

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

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

/* Focus Styles */
*:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

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