/* ============================================
   JUMTA DARBI RĪGĀ — Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: var(--leading-normal);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-family: var(--font-heading);
}

p {
  overflow-wrap: break-word;
}

/* --- Custom Properties — Colors --- */
:root {
  /* PRIMARY - Slate Blue */
  --color-primary: #334E68;
  --color-primary-light: #486581;
  --color-primary-dark: #243B53;
  --color-primary-bg: #E0E8F0;

  /* ACCENT - Cyan Blue */
  --color-accent: #2B8DD6;
  --color-accent-light: #56A8E6;
  --color-accent-dark: #1A6FB0;
  --color-accent-bg: #EBF5FF;

  /* BACKGROUNDS */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F7F9FC;
  --color-bg-tertiary: #EDF1F7;
  --color-bg-dark: #1A2332;
  --color-bg-hover: #F0F4F8;

  /* TEXT */
  --color-text-primary: #1F2933;
  --color-text-secondary: #52606D;
  --color-text-tertiary: #7B8794;
  --color-text-light: #9AA5B1;
  --color-text-on-dark: #F5F7FA;

  /* UI */
  --color-border: #CBD2D9;
  --color-border-light: #E4E7EB;

  /* SEMANTIC */
  --color-success: #2D9C5E;
  --color-success-bg: #E3F9ED;
  --color-error: #D64545;
  --color-error-bg: #FFEEEE;

  /* FORM */
  --color-input-bg: #FFFFFF;
  --color-input-border: #CBD2D9;
  --color-input-border-focus: #2B8DD6;
  --color-input-placeholder: #9AA5B1;

  /* GRADIENTS */
  --gradient-primary: linear-gradient(135deg, #334E68 0%, #486581 100%);
  --gradient-accent: linear-gradient(135deg, #2B8DD6 0%, #1A6FB0 100%);
  --gradient-hero: linear-gradient(160deg, #1A2332 0%, #243B53 40%, #334E68 100%);

  /* --- Typography --- */
  --font-primary: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --h1-mobile: 2.5rem;
  --h1-tablet: 3.25rem;
  --h1-desktop: 4rem;
  --h2-mobile: 1.75rem;
  --h2-tablet: 2.25rem;
  --h2-desktop: 2.75rem;
  --h3-mobile: 1.25rem;
  --h3-desktop: 1.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.03em;

  /* --- Animation Variables --- */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 8px;
  font-weight: var(--font-semibold);
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: var(--color-bg-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .header { height: 72px; }
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .header__container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .header__container { padding: 0 40px; }
}

.header__logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.header__logo img {
  height: 36px;
  width: auto;
}

@media (min-width: 1024px) {
  .header__logo img { height: 42px; }
}

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

.header__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header__actions { display: flex; }
}

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta { display: inline-flex; }
}

/* Mobile Menu Button */
.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-on-dark);
  transition: color var(--transition-fast);
}

.header--scrolled .header__menu-btn {
  color: var(--color-text-primary);
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
}

.mobile-menu__cta {
  margin-top: 1rem;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher__link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.lang-switcher__link:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.lang-switcher__link--active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.header:not(.header--scrolled) .lang-switcher__link {
  color: rgba(255, 255, 255, 0.7);
}

.header:not(.header--scrolled) .lang-switcher__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header:not(.header--scrolled) .lang-switcher__link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.lang-switcher__flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-switcher__divider {
  color: var(--color-border);
}

.header:not(.header--scrolled) .lang-switcher__divider {
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: 10px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  padding: 16px 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 14px 30px;
}

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

.btn--white {
  background: #fff;
  color: var(--color-primary);
  padding: 16px 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
  background: var(--color-bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn--white:active {
  transform: translateY(0);
}

.btn--small {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn--large {
  padding: 18px 40px;
  font-size: var(--text-lg);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-subtext {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.cta-subtext--dark {
  color: var(--color-text-tertiary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(43, 141, 214, 0.05) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(43, 141, 214, 0.05) 25%, transparent 25%);
  background-size: 80px 140px;
  opacity: 0.5;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 16px 60px;
  width: 100%;
}

@media (min-width: 768px) {
  .hero__container {
    grid-template-columns: 3fr 2fr;
    padding: 0 24px;
    min-height: 100vh;
  }
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 55fr 45fr;
    gap: 60px;
    padding: 0 40px;
  }
}

.hero__content {
  animation: fadeInLeft 600ms ease-out 400ms both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(43, 141, 214, 0.15);
  border: 1px solid rgba(43, 141, 214, 0.3);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--h1-mobile);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: 20px;
  color: var(--color-text-on-dark);
}

@media (min-width: 768px) {
  .hero__title { font-size: var(--h1-tablet); }
}

@media (min-width: 1024px) {
  .hero__title { font-size: var(--h1-desktop); }
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--color-text-on-dark);
}

.hero__visual {
  position: relative;
  display: none;
  animation: fadeInRight 600ms ease-out 600ms both;
}

@media (min-width: 768px) {
  .hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .hero__visual { height: 500px; }
}

/* Hero Image */
.hero__image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero__shape {
  position: absolute;
  border-radius: 12px;
}

.hero__shape--1 {
  width: 280px;
  height: 200px;
  background: rgba(43, 141, 214, 0.15);
  border: 1px solid rgba(43, 141, 214, 0.2);
  top: 20%;
  right: 10%;
  transform: rotate(-5deg);
}

.hero__shape--2 {
  width: 200px;
  height: 250px;
  background: rgba(51, 78, 104, 0.3);
  border: 1px solid rgba(72, 101, 129, 0.3);
  top: 30%;
  right: 25%;
  transform: rotate(3deg);
}

.hero__shape--3 {
  width: 160px;
  height: 160px;
  background: rgba(43, 141, 214, 0.1);
  border: 1px solid rgba(43, 141, 214, 0.15);
  top: 10%;
  right: 40%;
  border-radius: 50%;
}

/* ============================================
   RESPONSE BADGE
   ============================================ */
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-accent-bg);
  color: var(--color-accent-dark);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  animation: subtle-pulse 3s ease-in-out infinite;
}

.response-badge--hero {
  background: rgba(43, 141, 214, 0.15);
  color: var(--color-accent-light);
  border: 1px solid rgba(43, 141, 214, 0.3);
  animation: fadeInUp 600ms ease-out 800ms both, subtle-pulse 3s ease-in-out infinite 1.4s;
}

@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 141, 214, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(43, 141, 214, 0); }
}

/* ============================================
   SECTIONS — GENERAL
   ============================================ */
.section {
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .section { padding: 64px 24px; }
}

@media (min-width: 1024px) {
  .section { padding: 80px 40px; }
}

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

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

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--h2-mobile);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section__title { font-size: var(--h2-tablet); }
}

@media (min-width: 1024px) {
  .section__title { font-size: var(--h2-desktop); }
}

.section--dark .section__title {
  color: var(--color-text-on-dark);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.section--dark .section__subtitle {
  color: rgba(245, 247, 250, 0.7);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-bg-primary);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--h3-mobile);
  font-weight: var(--font-bold);
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

@media (min-width: 1024px) {
  .service-card__title { font-size: var(--h3-desktop); }
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   TRUST BAR / STATISTICS
   ============================================ */
.trust-bar {
  background: var(--color-bg-dark);
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .trust-bar { padding: 64px 24px; }
}

@media (min-width: 1024px) {
  .trust-bar { padding: 64px 40px; }
}

.trust-bar__container {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .trust-bar__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-counter__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.stat-counter__icon svg {
  width: 24px;
  height: 24px;
}

.stat-counter__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
}

.stat-counter__label {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.stat-counter--highlight .stat-counter__number {
  font-size: var(--text-5xl);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}

.process-step {
  position: relative;
  text-align: center;
  padding: 24px 16px;
}

.process-step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0 auto 16px;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--h3-mobile);
  font-weight: var(--font-bold);
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

@media (min-width: 1024px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -8px;
    width: 16px;
    height: 2px;
    background: var(--color-border);
  }
  .process-step:last-child::after { display: none; }
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
/* Why Choose Us Image */
.why-us__image {
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.why-us__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
  background: var(--color-bg-primary);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.benefit-card--highlight {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 20px;
}

.benefit-card--highlight .benefit-card__icon {
  background: var(--color-accent);
  color: #fff;
}

.benefit-card__icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: var(--h3-mobile);
  font-weight: var(--font-bold);
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

@media (min-width: 1024px) {
  .benefit-card__title { font-size: var(--h3-desktop); }
}

.benefit-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   SERVICE AREAS
   ============================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.area-tag:hover {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.area-tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

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

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

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: var(--h3-mobile);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq-item__icon .icon-minus {
  display: none;
}

.faq-item.is-open .faq-item__icon .icon-plus {
  display: none;
}

.faq-item.is-open .faq-item__icon .icon-minus {
  display: block;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
  text-align: center;
}

.final-cta .cta-wrapper {
  align-items: center;
}

.final-cta .cta-subtext {
  color: rgba(245, 247, 250, 0.6);
}

.guarantee-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: rgba(245, 247, 250, 0.7);
}

.guarantee-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .footer { padding: 40px 24px; }
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer__left { align-items: flex-start; }
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text-on-dark);
}

/* ============================================
   SLIDE-IN PANEL (Form)
   ============================================ */
.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.panel-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  width: 420px;
  max-width: 100%;
  background: var(--color-bg-primary);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.panel-backdrop.is-open .panel {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    padding-bottom: 40px;
  }
  .panel-backdrop.is-open .panel {
    transform: translateY(0);
  }
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.panel__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  border-radius: 8px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.panel__close:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.panel__close svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.form-input,
.form-select,
.form-textarea {
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-input-border);
  border-radius: 10px;
  background: var(--color-input-bg);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-input-placeholder);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(43, 141, 214, 0.15);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B8794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-textarea {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
  border-color: var(--color-error);
}

.form-group--error .form-error {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__submit {
  height: 56px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
  margin-top: 8px;
}

.form__submit:hover {
  background: var(--color-accent-dark);
}

.form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form__submit-subtext {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: 8px;
}

/* Form Success State */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  gap: 16px;
}

.form-success.is-visible {
  display: flex;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  color: var(--color-success);
}

.form-success__icon svg {
  width: 64px;
  height: 64px;
}

.form-success__icon path {
  stroke-dasharray: 100;
  animation: checkmark 0.6s ease forwards;
}

@keyframes checkmark {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.form-success__message {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.form-success__message strong {
  color: var(--color-accent);
}

.form-success__additional {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Form Error State */
.form-general-error {
  display: none;
  padding: 12px 16px;
  background: var(--color-error-bg);
  color: var(--color-error);
  border-radius: 8px;
  font-size: var(--text-sm);
  text-align: center;
}

.form-general-error.is-visible {
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23334E68' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.angle-divider {
  height: 60px;
  background: linear-gradient(to bottom right, var(--color-bg-secondary) 49%, transparent 50%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid rgba(51, 78, 104, 0.1);
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 90;
}

.toc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toc__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.toc__link:hover,
.toc__link:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 768px) {
  .toc {
    top: 64px;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .toc__container {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 16px;
  }
  .toc__label {
    display: none;
  }
  .toc__link {
    font-size: 0.8rem;
    padding: 5px 10px;
    white-space: nowrap;
  }
}

/* ============================================
   EMERGENCY SECTION
   ============================================ */
.emergency-section {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E6 100%);
  border-top: 3px solid var(--color-accent);
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.emergency-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emergency-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.emergency-card__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.emergency-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.emergency-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.emergency-situations {
  margin-top: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.emergency-situations__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.emergency-situations__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.emergency-situations__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.emergency-situations__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .emergency-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }
  .emergency-card {
    padding: 24px 20px;
  }
  .emergency-situations {
    margin-top: 32px;
    padding: 24px;
  }
  .emergency-situations__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================
   FORM PRIVACY NOTE
   ============================================ */
.form__privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
  line-height: 1.4;
}

.form__privacy-note svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.form__privacy-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__privacy-note a:hover {
  color: var(--color-accent-dark);
}
