/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: sticky; /* Piestiprina augšā scrollējot */
  top: 0; /* Augšējā malā */
  z-index: 1000; /* Augsts lai virs satura */
  background: var(--color-bg); /* Fona krāsa (lai nav caurspīdīgs) */
  border-bottom: 1px solid var(--color-border);
  /* backdrop-filter: blur(10px); */ /* Opcionāli: stikla efekts */
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0; /* Neļaut logo sarauties */
}

.logo img {
  display: block;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Desktop Nav */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-primary);
}

/* CTA */
.header__cta {
  flex-shrink: 0; /* Neļauj samazināties */
  min-width: 200px; /* Aptuvenais platums poga telefonam */
}

.header__cta .btn {
  white-space: nowrap; /* Neļauj tekstam pārcelties uz jaunu rindu */
}

/* Utility Classes - Desktop/Mobile Toggle */
.desktop-only {
  display: flex; /* vai block, atkarībā no elementa */
}

.mobile-only {
  display: none;
}

.phone-icon {
  display: none; /* vai flex mobile */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  text-decoration: none;
  /* JAUNS: Novērš, ka ikona ir 0x0 kamēr lādējas */
  background: transparent; /* vai var(--color-bg), lai nesaplūstu */
}

/* JAUNS: Placeholder kamēr Lucide ielādējas */
.phone-icon i {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  display: block; /* Novērš inline elementa "lēkāšanu" */
  min-width: 24px; /* Aizsardzība */
  min-height: 24px; /* Aizsardzība */
}

/* Burger Button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: 0.3s ease;
  margin: 0 auto;
}

/* Mobile Nav Dropdown */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  flex-direction: column;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  z-index: 99;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile .nav__link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

/* ==========================================================================
   MOBILE BREAKPOINT (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Slēpt desktop elementus */
  .desktop-only {
    display: none !important;
  }
  .header__inner {
    padding: 0.75rem 1rem; /* vertikāli 0.75rem, horizontāli 1rem (16px) */
  }

  /* Rādīt mobile elementus */
  .mobile-only {
    display: flex;
  }

  /* Kartība: Logo | Phone | Burger */
  .header__inner {
    flex-wrap: nowrap; /* Liegt pārnešanu jaunā rindā */
  }

  .logo {
    order: 1;
    margin-right: auto; /* Pieglūt pa kreisi */
  }

  /* Paslēpt logo tekstu, atstāt tikai bildīti */
  .logo-text {
    display: none;
  }

  .phone-icon {
    order: 2;
    margin-right: 0.5rem;
  }

  .burger {
    order: 3;
    display: flex;
  }

  /* Burger Animation (X) */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* ==========================================================================
   COMPONENTS (Cards, Forms, etc.)
   ========================================================================== */

/* Cards */
.card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  background: white;
}
.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card__text {
  color: var(--color-muted, #333);
  margin-bottom: 1rem;
}
.card__link {
  color: var(--color-primary);
  font-weight: 600;
}

/* Forms */
.form {
  max-width: 600px;
  margin: 0 auto;
}
.form__group {
  margin-bottom: 1.5rem;
}
.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

/* Trust Bar */
.trust-bar__label {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.trust-bar__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}
.trust-bar__logo {
  height: 32px;
  width: auto;
}

/* Process */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.process__number {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* FAQ */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}
.faq__question {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq__question::after {
  content: "+";
}
.faq__item[open] .faq__question::after {
  content: "−";
}
.faq__answer {
  margin-top: 1rem;
  color: var(--color-muted);
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: 2rem;
}
.testimonial {
  background: var(--color-bg-alt, #f5f5f5);
  padding: 2rem;
  border-radius: var(--radius-md);
}
.testimonial__quote {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial__author {
  font-weight: 600;
  font-style: normal;
}
/* Reserve icon box to avoid tiny CLS when lucide injects SVG */
i[data-lucide] {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  flex: 0 0 24px;
}
svg.lucide {
  width: 24px;
  height: 24px;
  display: block;
}
