/* ============================================
   EGATE - PROFESSIONAL MINIMAL DESIGN SYSTEM
   Dark/Light mode + Clean typography
============================================ */

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

/* CSS VARIABLES - Light mode defaults */
:root {
  --primary: #f66722;
  --primary-hover: #d95a1a;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --header-bg: rgba(255,255,255,0.97);
  --topbar-bg: #f8fafc;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-heading: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --dropdown-bg: #ffffff;
  --input-bg: #ffffff;
  --nav-link-color: #334155;
}

/* DARK MODE */
html.dark {
  --bg: #0b1120;
  --bg-subtle: #111827;
  --bg-card: #1a2235;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-subtle: #1e293b;
  --header-bg: rgba(11,17,32,0.97);
  --topbar-bg: #0f172a;
  --footer-bg: #060c18;
  --footer-text: #64748b;
  --footer-heading: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --dropdown-bg: #1a2235;
  --input-bg: #1a2235;
  --nav-link-color: #cbd5e1;
}

/* BASE */
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-primary); line-height: 1.6; transition: background 0.3s, color 0.3s; }

/* LAYOUT */
.max-width-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* HEADER */
header {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: background 0.3s;
}
.topbar a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--primary); }
html.dark .topbar a { color: #e2e8f0; }
html.dark .topbar a:hover { color: var(--primary); }

/* NAV */
nav { padding: 0.875rem 0; }
.nav-link {
  padding: 0.625rem 1rem;
  color: var(--nav-link-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: inline-block;
}
.nav-link:hover { color: var(--primary); background: rgba(246,103,34,0.06); }

/* DROPDOWN */
.services-dropdown-parent { position: relative; }
.services-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  width: max-content;
  max-width: calc(100vw - 2rem);
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 200;
}
.services-dropdown-parent:hover .services-dropdown { display: block; }
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.dropdown-link:hover { background: rgba(246,103,34,0.06); color: var(--primary); }

/* LANGUAGE */
.language-dropdown-parent { position: relative; }
.language-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 130px;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  z-index: 200;
}
.language-dropdown-parent:hover .language-dropdown { display: block; }
.lang-link { display: block; padding: 0.5rem 0.875rem; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; border-radius: 6px; transition: all 0.2s; }
.lang-link:hover { color: var(--primary); background: rgba(246,103,34,0.06); }
.lang-link.active { color: var(--primary); font-weight: 600; }

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.sun-icon { display: none; }
.moon-icon { display: block; }
html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }

/* CTA BUTTON */
.cta-button {
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s;
  display: inline-block;
}
.cta-button:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* MOBILE MENU */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); padding: 0.5rem; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 1rem 0; }
.mobile-menu.open { display: block; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; }
@media (max-width: 1023px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}
.mobile-nav-link { display: block; padding: 0.875rem 1.5rem; color: var(--text-primary); text-decoration: none; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border-subtle); }

/* HERO */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-subtle);
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-top: 5rem; padding-bottom: 5rem; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(246,103,34,0.1);
  color: var(--primary);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.15; color: var(--text-primary); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 540px; margin-bottom: 2rem; line-height: 1.7; }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-subtle); }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.0625rem; color: var(--text-secondary); max-width: 560px; line-height: 1.7; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.25s;
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(246,103,34,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

/* GRID HELPERS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* BUTTONS */
.btn-primary { padding: 0.75rem 1.75rem; background: var(--primary); color: white; font-weight: 600; border-radius: 8px; text-decoration: none; display: inline-block; transition: all 0.2s; border: none; cursor: pointer; font-size: 0.9375rem; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { padding: 0.75rem 1.75rem; border: 2px solid var(--border); color: var(--text-primary); font-weight: 600; border-radius: 8px; text-decoration: none; display: inline-block; transition: all 0.2s; font-size: 0.9375rem; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* PLAN CARDS */
.plan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; transition: all 0.25s; }
.plan-card.featured { border-color: var(--primary); background: linear-gradient(135deg, rgba(246,103,34,0.05), rgba(246,103,34,0.02)); }
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan-feature { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9rem; color: var(--text-secondary); padding: 0.375rem 0; }
.plan-feature-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(246,103,34,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-input { width: 100%; padding: 0.75rem 1rem; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.9375rem; transition: border-color 0.2s; outline: none; font-family: inherit; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(246,103,34,0.1); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* CTA SECTION */
.cta-section { background: var(--primary); padding: 4rem 0; text-align: center; }
.cta-section h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.0625rem; margin-bottom: 2rem; }
.btn-white { padding: 0.75rem 2rem; background: white; color: var(--primary); font-weight: 700; border-radius: 8px; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* FOOTER */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 4rem 0 2rem; transition: background 0.3s; }
.footer-logo { display: block; }
.footer-heading { color: var(--footer-heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-link { display: block; color: var(--footer-text); text-decoration: none; font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 3rem; padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; flex-wrap: wrap; gap: 1rem; }

/* PROCESS STEPS */
.step-number { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9375rem; flex-shrink: 0; }

/* TECH SLIDER */
.slider-container { overflow: hidden; }
.slider-track { display: flex; gap: 0; align-items: center; animation: slide 25s linear infinite; width: max-content; }
.slider-container:hover .slider-track { animation-play-state: paused; }
@keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-name { margin-right: 4rem; font-size: 1.25rem; font-weight: 700; color: var(--border); letter-spacing: 0.05em; white-space: nowrap; transition: color 0.2s; }
.slider-track:hover .partner-name:hover { color: var(--text-muted); }

/* DIVIDER */
.divider { height: 1px; background: var(--border); margin: 0; }

/* AWARD BLOCK */
.award-block { background: linear-gradient(135deg, var(--primary), #ff8c42); border-radius: 14px; padding: 2.5rem; color: white; }

/* INFO ROW */
.info-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(246,103,34,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .max-width-container { padding: 0 1.25rem; }
  .hero-content { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   TOPBAR ANIMATIONS - pulse one by one
============================================ */
:root { --splashtop-filter: none; }
html.dark { --splashtop-filter: brightness(0) invert(1); }

.topbar-item { transition: color 0.2s; }

@keyframes topbarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.topbar-animate { animation: topbarPulse 4s ease-in-out infinite; }
.topbar-animate:nth-child(1) { animation-delay: 0s; }
.topbar-animate:nth-child(2) { animation-delay: 1.5s; }

/* Splashtop logo bounce animation */
@keyframes splashtopBounce {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}
.topbar-splashtop img {
  animation: splashtopBounce 4s ease-in-out infinite;
  animation-delay: 3s;
}

/* ============================================
   DARK MODE - HERO OVERLAY FIX
============================================ */
html.dark .hero-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.82), rgba(0,0,0,0.55)) !important;
}

html.dark .hero {
  background-color: #0b1120;
}

html.dark .hero-title { color: #f1f5f9 !important; }
html.dark .hero-subtitle { color: #cbd5e1 !important; }
html.dark .hero-tag { background: rgba(246,103,34,0.2); color: var(--primary); }

/* DARK MODE - LOGO */
html.dark .nav-logo-light { display: none !important; }
html.dark .nav-logo-dark { display: block !important; }

/* DARK MODE - gradient backgrounds fix */
html.dark section[style*="background:linear-gradient"] {
  background: linear-gradient(135deg, #0f172a, #1a2235) !important;
}

/* ============================================
   MARKETPLACE NAV LINK
============================================ */
a[href="marketplace.html"].nav-link {
  color: var(--primary) !important;
  font-weight: 600;
}


/* ============================================
   DARK MODE HERO - TUMŠS OVERLAY
============================================ */
.hero-dark-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1;
  pointer-events: none;
}
html.dark .hero-dark-overlay { display: block !important; }
html.dark .hero-overlay { opacity: 0.1 !important; }
html.dark .hero-content { z-index: 3 !important; }
html.dark .hero-title { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
html.dark .hero-subtitle { color: #e2e8f0 !important; }
html.dark .hero-tag { background: rgba(246,103,34,0.3) !important; color: #fb923c !important; }

/* Topbar animācija - spilgti mirgo */
@keyframes topbarGlow {
  0%, 70%, 100% { opacity: 0.75; }
  85% { opacity: 1; color: #f66722; }
}
.topbar-animate {
  animation: topbarGlow 4s ease-in-out infinite !important;
}
.topbar-animate:nth-child(1) { animation-delay: 0s !important; }
.topbar-animate:nth-child(2) { animation-delay: 2s !important; }

@keyframes splashtopGlow {
  0%, 70%, 100% { opacity: 0.75; transform: scale(1); }
  85% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 4px #2196f3); }
}
.topbar-splashtop img {
  animation: splashtopGlow 4s ease-in-out infinite !important;
  animation-delay: 1s !important;
}

/* Quick contact form dark mode */
.quick-form-card {
  background: #ffffff;
}
html.dark .quick-form-card {
  background: #1a2235 !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4) !important;
}
html.dark .quick-form-card h3 {
  color: #f1f5f9 !important;
}
html.dark .quick-form-card p {
  color: #94a3b8 !important;
}
html.dark .quick-form-card input {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #f1f5f9 !important;
}
html.dark .quick-form-card input::placeholder {
  color: #64748b !important;
}


/* ============================================
   LABOJUMI — funkcionalitāte un mobilais izkārtojums
============================================ */

/* Nolaižamās izvēlnes: neredzams "tilts" pāri 8px spraugai, lai izvēlne
   nepazustu, pārvietojot peli no "Pakalpojumi" uz izvēlni */
.services-dropdown::before,
.language-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
/* Atvēršana ar klikšķi / skārienu un tastatūru */
.services-dropdown-parent.open .services-dropdown,
.services-dropdown-parent:focus-within .services-dropdown,
.language-dropdown-parent.open .language-dropdown,
.language-dropdown-parent:focus-within .language-dropdown { display: block; }

/* Kājenes režģis (vienots visām lapām) */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 0; }

/* Mobilās izvēlnes tēmas poga */
.mobile-theme-btn {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex !important;
  align-items: center;
  gap: 0.625rem;
}

/* Formas */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-input.is-invalid,
.quick-form-card input.is-invalid,
html.dark .quick-form-card input.is-invalid { border-color: #dc2626 !important; }
.form-status { flex-basis: 100%; width: 100%; margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; }
.form-status.is-ok { color: #16a34a; }
.form-status.is-error { color: #dc2626; }
html.dark .form-status.is-ok { color: #4ade80; }
html.dark .form-status.is-error { color: #f87171; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Tastatūras fokuss */
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Planšetes */
@media (max-width: 1023px) {
  .split-2 { gap: 3rem !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Telefoni un šauri ekrāni */
@media (max-width: 860px) {
  .split-2 { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}
@media (max-width: 767px) {
  .topbar-inner { justify-content: center !important; flex-wrap: wrap; gap: 0.5rem 1.25rem !important; }
  .quick-form-wrap { padding: 0 !important; }
  .quick-form-card { padding: 1.5rem 1.25rem !important; gap: 1.25rem !important; }
  .award-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .award-block { padding: 2rem 1.5rem; }
  .split-2 > div[style*="padding:2.5rem"], form.js-contact-form[style*="padding:2.5rem"] { padding: 1.75rem !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Lietotājiem, kas izvēlējušies mazāk kustību */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-track, .topbar-animate, .topbar-splashtop img { animation: none !important; }
}

/* Hero saturs aizņem visu konteinera platumu (citādi flex to saspieda un nobīdīja uz centru) */
.hero > .hero-content { width: 100%; }

/* Lielāks tālruņa numurs augšējā joslā */
.topbar .topbar-phone { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary); }
html.dark .topbar .topbar-phone { color: #ffffff; }
.topbar .topbar-phone:hover { color: var(--primary); }

/* Valodas izvēle mobilajā izvēlnē */
.mobile-lang { display: flex; gap: 0.5rem; padding: 0.875rem 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.mobile-lang a { padding: 0.375rem 0.875rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.mobile-lang a.active { border-color: var(--primary); color: var(--primary); }

/* Pakalpojumu izvēlnes punkti vienā rindā */
.services-dropdown .dropdown-link { white-space: nowrap; }

/* ============================================
   VIZUĀLIE SATURA BLOKI (pakalpojumu lapas)
============================================ */

/* Attēls + teksts */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.media-split.reverse .media-frame { order: 2; }
.media-frame { position: relative; z-index: 0; }
.media-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.media-frame::before {
  content: ""; position: absolute; z-index: -1;
  left: -18px; bottom: -18px; width: 45%; height: 55%;
  border-radius: 16px; background: linear-gradient(135deg, var(--primary), #ff8c42); opacity: 0.9;
}
.media-split.reverse .media-frame::before { left: auto; right: -18px; }
.media-badge {
  position: absolute; right: -20px; top: 28px;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.8rem 1.1rem; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 0.875rem; color: var(--text-primary); max-width: 260px; line-height: 1.35;
}
.media-split.reverse .media-badge { right: auto; left: -20px; }
.media-badge .info-icon { width: 34px; height: 34px; }

/* Čipi */
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border: 1px solid var(--border); border-radius: 100px;
  background: var(--bg-card); color: var(--text-primary); font-size: 0.875rem; font-weight: 500;
}
.chip svg, .chip i { color: var(--primary); flex-shrink: 0; }

/* Mazs saraksts ar ķeksīšiem */
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin: 1.5rem 0 0; }
.tick-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text-primary); font-weight: 500; font-size: 0.9375rem; }
.tick-list .plan-feature-check { margin-top: 2px; }

/* Procesa soļi */
.steps { --n: 4; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 24px; height: 2px;
  left: calc(100% / (var(--n) * 2)); right: calc(100% / (var(--n) * 2));
  background: linear-gradient(90deg, var(--primary), rgba(246,103,34,0.25));
}
.step { text-align: center; position: relative; }
.step .step-number { width: 48px; height: 48px; margin: 0 auto 1.25rem; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg); font-size: 1.05rem; }
.section-alt .step .step-number { box-shadow: 0 0 0 8px var(--bg-subtle); }
.step h4 { font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; font-size: 1rem; }
.step p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; max-width: 260px; margin: 0 auto; }

/* Ikonu flīzes (centrētas, pēdējā rinda centrā) */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.tiles > .card { flex: 0 1 calc(25% - 1.125rem); max-width: calc(25% - 1.125rem); text-align: center; }
.tiles.cols-3 > .card { flex-basis: calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
.tile-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(246,103,34,0.1); color: var(--primary);
}
.tiles h3 { font-weight: 700; color: var(--text-primary); font-size: 1rem; line-height: 1.4; }
.tiles p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-top: 0.5rem; }

/* Oranžā akcentu josla */
.band { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.band-icon { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; color: #fff; }
.band .band-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 0.5rem; }
.band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 0.6rem; }
.band p { color: rgba(255,255,255,0.9); line-height: 1.7; max-width: 760px; }

/* Faktu josla */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.fact { display: flex; gap: 0.875rem; align-items: flex-start; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.fact strong { display: block; color: var(--text-primary); font-size: 0.95rem; }
.fact span { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.2rem; line-height: 1.5; }

@media (max-width: 1023px) {
  .media-split { gap: 3rem; }
  .tiles > .card, .tiles.cols-3 > .card { flex-basis: calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .media-split { grid-template-columns: 1fr; gap: 3rem; }
  .media-split.reverse .media-frame { order: 0; }
  .media-frame { margin: 0 18px 18px; }
}
@media (max-width: 639px) {
  .tiles { gap: 0.875rem; }
  .tiles > .card, .tiles.cols-3 > .card { flex-basis: calc(50% - 0.4375rem); max-width: calc(50% - 0.4375rem); padding: 1.25rem 0.875rem; }
  .tiles h3 { font-size: 0.875rem; }
  .tiles p { font-size: 0.8125rem; }
  .tile-icon { width: 46px; height: 46px; margin-bottom: 0.875rem; }
  .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; text-align: left; align-items: start; }
  .step .step-number { margin: 0; grid-row: span 2; }
  .step p { margin: 0; max-width: none; }
  .band { grid-template-columns: 1fr; gap: 1.25rem; }
  .media-badge { right: 12px !important; left: auto !important; top: auto; bottom: 12px; max-width: 220px; }
}

/* Attēlu pārklājums — tāds pats princips kā sākumlapas hero */
.media-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 16px;
  background: linear-gradient(to right, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0) 75%);
}
.media-split.reverse .media-frame::after {
  background: linear-gradient(to left, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0) 75%);
}
html.dark .media-frame::after { background: linear-gradient(to right, rgba(11,17,32,0.6) 0%, rgba(11,17,32,0.2) 50%, rgba(11,17,32,0) 80%); }
html.dark .media-split.reverse .media-frame::after { background: linear-gradient(to left, rgba(11,17,32,0.6) 0%, rgba(11,17,32,0.2) 50%, rgba(11,17,32,0) 80%); }
.media-badge { z-index: 2; }

/* Lielāks logo galvenē */
.site-logo { height: 60px; }
@media (max-width: 767px) { .site-logo { height: 46px; } }

/* ============================================
   WORDPRESS PAPILDINĀJUMI
============================================ */
.nav-link.accent { color: var(--primary) !important; font-weight: 600; }
.form-note { flex-basis: 100%; width: 100%; margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.quick-form-card .form-note { margin-top: 0; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.partner-logo img { height: 28px; width: auto; display: block; filter: grayscale(1); opacity: 0.55; transition: opacity 0.2s, filter 0.2s; }
.partner-logo:hover img { filter: none; opacity: 1; }
html.dark .partner-logo img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.45; }
.egate-content p { margin-bottom: 1rem; }
.egate-content a { color: var(--primary); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.offer-tight { margin-top: -2rem; }
@media (max-width: 767px) { .offer-tight { margin-top: -0.5rem; } }

/* ===== Contact Form 7 — EGATE izskats ===== */
.egate-cf7 .hidden-fields-container { display: none; }
.egate-cf7 .wpcf7-form-control-wrap { display: block; }
.egate-cf7 .wpcf7-spinner { display: none !important; }
.egate-cf7.submitting .wpcf7-submit { opacity: 0.6; pointer-events: none; }
.egate-cf7 .wpcf7-submit { width: 100%; padding: 0.875rem; cursor: pointer; border: none; font-family: inherit; }
.egate-cf7 .wpcf7-not-valid { border-color: #dc2626 !important; }
.egate-cf7 .wpcf7-not-valid-tip { display: block; color: #dc2626; font-size: 0.8125rem; margin-top: 0.35rem; }
html.dark .egate-cf7 .wpcf7-not-valid-tip { color: #f87171; }
.egate-cf7 .wpcf7-turnstile { margin: 0 0 1rem; }
.wpcf7 form.egate-cf7 .wpcf7-response-output { margin: 0.75rem 0 0; padding: 0; border: 0; font-size: 0.875rem; line-height: 1.5; flex-basis: 100%; width: 100%; color: #dc2626; }
.wpcf7 form.egate-cf7.sent .wpcf7-response-output { color: #16a34a; }
html.dark .wpcf7 form.egate-cf7 .wpcf7-response-output { color: #f87171; }
html.dark .wpcf7 form.egate-cf7.sent .wpcf7-response-output { color: #4ade80; }
.wpcf7 form.egate-cf7.init .wpcf7-response-output, .wpcf7 form.egate-cf7.resetting .wpcf7-response-output, .wpcf7 form.egate-cf7.submitting .wpcf7-response-output { display: none; }
/* Ātrā forma vienā rindā */
.egate-cf7-quick { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; }
.egate-cf7-quick .wpcf7-form-control-wrap { flex: 1; min-width: 130px; }
.egate-cf7-quick .quick-input { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 0.875rem; outline: none; transition: border 0.2s; background: var(--input-bg); color: var(--text-primary); font-family: inherit; }
.egate-cf7-quick .quick-input:focus { border-color: #f66722 !important; }
.egate-cf7-quick .wpcf7-submit { width: auto; white-space: nowrap; padding: 0.7rem 1.75rem; font-size: 0.875rem; }
.egate-cf7-quick .wpcf7-turnstile, .egate-cf7-quick .form-note { flex-basis: 100%; margin: 0; }
.egate-cf7-quick .wpcf7-not-valid-tip { font-size: 0.75rem; }
@media (max-width: 640px) { .egate-cf7-quick .wpcf7-form-control-wrap, .egate-cf7-quick .wpcf7-submit { flex-basis: 100%; width: 100%; } }
.egate-cf7 .form-note a { color: inherit; }
html.dark .quick-form-card input.wpcf7-submit { background: var(--primary) !important; color: #fff !important; border: none !important; }
html.dark .quick-form-card input.wpcf7-submit:hover { background: var(--primary-hover) !important; }
.egate-cf7 .wpcf7-submit:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Kļūdas teksts nepabīda pogu (citādi pirmais klikšķis „aizslīd”) */
.egate-cf7:not(.egate-cf7-quick) .wpcf7-form-control-wrap { position: relative; }
.egate-cf7:not(.egate-cf7-quick) .wpcf7-not-valid-tip { position: absolute; left: 0; top: 100%; margin-top: 0.15rem; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; }
