/* DigiAdrese — zīmola krāsas no logo */
:root {
  --navy: #0C2343;
  --red: #A0211B;
  --red-soft: #F2B8B3;
  --ink: #0C2343;
  --text: #3A4A63;
  --muted: #4A5A72;
  --line: #DCE2EB;
  --tint: #F4F6FA;
  --white: #FFFFFF;
  --radius: 14px;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid rgba(160, 33, 27, 0.45); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--font-head); color: var(--navy); margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
h3 { margin: 0; font-size: 18px; font-weight: 600; }
p { margin: 0; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.eyebrow--light { color: var(--red-soft); }

/* Pogas */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #861A15; color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #163563; color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy); border-color: #B9C2D0; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: #E8ECF3; color: var(--navy); }

/* Galvene */
.site-header { border-bottom: 1px solid #E3E7EE; background: var(--white); position: sticky; top: 0; z-index: 1000; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 42px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { text-decoration: none; }

/* Hero */
.hero { background: var(--tint); border-bottom: 1px solid #E3E7EE; }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 520px; }
.search { display: flex; flex-direction: column; gap: 8px; max-width: 580px; }
.search label { font-size: 14px; font-weight: 600; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search input { flex: 1 1 280px; min-width: 0; height: 56px; padding: 0 18px; font: 400 16px var(--font-body); color: var(--ink); background: var(--white); border: 1.5px solid #B9C2D0; border-radius: 10px; }
.search input:focus { outline: 3px solid rgba(160, 33, 27, 0.35); outline-offset: 1px; border-color: var(--navy); }
.search .btn { height: 56px; padding: 0 28px; }
.hint { font-size: 14px; color: var(--muted); }
.status { min-height: 1.5em; font-size: 14px; color: var(--navy); }
.status--error { color: var(--red); font-weight: 500; }

.results { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.results[hidden] { display: none; }
.results li + li { border-top: 1px solid #EEF1F6; }
.results button { width: 100%; text-align: left; background: none; border: none; padding: 10px 14px; min-height: 44px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font: 400 15px var(--font-body); color: var(--ink); cursor: pointer; }
.results button:hover { background: var(--tint); }
.r-name { font-weight: 600; }
.r-place { grid-column: 1; font-size: 13px; color: var(--muted); }
.r-code { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 15px var(--font-head); color: var(--navy); letter-spacing: 0.03em; }

/* Koda kartīte */
.code-card { flex: 1 1 420px; min-width: 0; max-width: 480px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(12, 35, 67, 0.06); overflow: hidden; }
.card-head { padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.code { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 6vw, 52px); letter-spacing: 0.04em; color: var(--navy); line-height: 1.1; }
.code-tail { color: var(--red); }
.card-address { font-size: 15px; color: var(--text); }
.map { height: 260px; background: #EEF1F6; border-top: 1px solid #E3E7EE; border-bottom: 1px solid #E3E7EE; }
.map-fallback { padding: 24px; color: var(--muted); font-size: 14px; }
.card-body { padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.meaning { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 14px; color: var(--text); }
.meaning strong { color: var(--navy); font-family: var(--font-head); }
.demo-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); background: var(--tint); border-radius: 8px; padding: 8px 10px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card-actions .btn { flex: 1 1 140px; min-height: 44px; font-size: 15px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-links[hidden] { display: none; }
.nav-links .btn { flex: 1 1 140px; min-height: 48px; font-size: 15px; }
.plus-line { flex: 1 1 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.plus-line strong { color: var(--navy); font-family: var(--font-head); letter-spacing: 0.03em; }
.share-line { font-size: 13px; color: var(--muted); }

.pin { background: none; border: none; }

/* Sadaļas */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); border-top: 1px solid #E3E7EE; border-bottom: 1px solid #E3E7EE; }
.section-lead { font-size: 17px; line-height: 1.55; color: var(--text); margin-top: 10px; max-width: 640px; }

.anatomy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.part { display: flex; flex-direction: column; gap: 10px; }
.part p { font-size: 14px; color: var(--muted); }
.tile { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--white); font: 800 44px var(--font-head); }
.tile--navy { background: var(--navy); }
.tile--red { background: var(--red); }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 280px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--text); }
.num { width: 40px; height: 40px; border-radius: 20px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.num--red { background: var(--red); }

.audience { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 440px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.panel h2 { font-size: 30px; }
.panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #24344D; }
.panel--navy { background: var(--navy); border-color: var(--navy); }
.panel--navy h2, .panel--navy strong { color: var(--white); }
.panel--navy ul { color: #E4E9F2; }

.plate-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.plate { flex: 0 1 420px; aspect-ratio: 2 / 1; background: var(--navy); border-radius: 14px; padding: 22px 26px; border: 6px solid var(--white); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto; }
.plate-text { display: flex; flex-direction: column; gap: 6px; }
.plate-brand { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--red-soft); }
.plate-code { font: 800 46px/1 var(--font-head); letter-spacing: 0.04em; color: var(--white); }
.plate-qr { width: 112px; height: 112px; flex: 0 0 112px; border-radius: 8px; background:
  conic-gradient(from 90deg at 30% 30%, var(--navy) 25%, transparent 0) 0 0 / 22px 22px,
  var(--white); border: 10px solid var(--white); }
.plate-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.price { font-size: 22px; font-weight: 600; }

/* Kājene */
.site-footer { background: var(--navy); color: #D5DCE8; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer-brand { font: 800 22px var(--font-head); color: var(--white); margin-bottom: 8px; }
.footer-brand span { color: var(--red-soft); }
.footer-note { font-size: 14px; line-height: 1.55; max-width: 600px; margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-nav a { color: var(--white); }

@media (max-width: 720px) {
  .anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a:not(.btn) { display: none; }
  .panel { padding: 26px; }
  .plate-code { font-size: 36px; }
  .plate-qr { width: 88px; height: 88px; flex-basis: 88px; }
}

/* Karte pa visu ekrānu */
.map-full-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; color: #0C2343; border: 2px solid rgba(0,0,0,0.2); border-radius: 8px; cursor: pointer; padding: 0; }
.map-full-btn:hover { background: #F4F6FA; }
.map--full { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; z-index: 5000 !important; margin: 0 !important; border-radius: 0 !important; }
html.map-open, html.map-open body { overflow: hidden; }

/* Informācijas lodziņš kartē (tikai pilnekrānā) */
.map-info { display: none; background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(12,35,67,0.25); padding: 14px 16px; max-width: min(360px, calc(100vw - 40px)); font-family: Inter, system-ui, sans-serif; color: #0C2343; }
.map--full .map-info:not([hidden]) { display: block; }
.map-info p { margin: 0; }
.mi-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5A72; }
.mi-code { font: 800 30px Archivo, Inter, sans-serif; letter-spacing: 0.04em; line-height: 1.15; }
.mi-code span { color: #A0211B; }
.mi-addr { font-size: 14px; line-height: 1.4; color: #24344D; margin-top: 2px !important; }
.mi-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mi-btns a, .mi-btns button { flex: 1 1 auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; border: none; }
.mi-waze { background: #A0211B; color: #fff !important; }
.mi-g { background: #0C2343; color: #fff !important; }
.mi-copy { background: #F4F6FA; color: #0C2343; border: 1.5px solid #B9C2D0 !important; }
