/* nopermani.lv — dizains "1b · klīniski gaišais"
   Avots: design_handoff_nopermani_landing (oklch žetoni ir autoritatīvie, hex — fallback) */

/* ===== Fonti (pašhostēti, latin + latin-ext VIENĀ failā katram stilam) =====
   Apzināti bez unicode-range dalīšanas: Chromium latviešu ī vietā sintezēja
   punktotu i + kombinējošo U+0304 no latin apakškopas, ja garumzīmju burti
   dzīvo atsevišķā failā. Apvienots fails šo ceļu izslēdz. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-roman-lv.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-italic-lv.woff2') format('woff2');
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-lv.woff2') format('woff2');
}

/* ===== Žetoni — hex fallback (aptuvenas vērtības pirms-oklch pārlūkiem) ===== */
:root {
  --bg:         #f6f7f3;
  --ink:        #202521;
  --ink-muted:  #5a655f;
  --ink-faint:  #7c8781;
  --pine:       #3d6b52;
  --pine-ink:   #35604a;
  --pine-tint:  #d8e8db;
  --card:       #ebefe9;
  --card-2:     #eaf1ea;
  --line:       #d0d8d1;
  --line-soft:  #dae0da;
  --line-faint: #e2e6e2;
  --paper:      #f6f7f3;
  --pine-hover: #35604a;
  --frame:      #dfdeda;
  --shadow: 0 40px 90px -40px rgba(61, 107, 82, 0.35);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Familjen Grotesk', system-ui, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
}

/* ===== Žetoni — oklch (autoritatīvais avots) ===== */
@supports (color: oklch(0.5 0.1 150)) {
  :root {
    --bg:         oklch(0.97 0.006 120);
    --ink:        oklch(0.20 0.010 150);
    --ink-muted:  oklch(0.42 0.015 150);
    --ink-faint:  oklch(0.55 0.020 150);
    --pine:       oklch(0.45 0.080 155);
    --pine-ink:   oklch(0.40 0.080 155);
    --pine-tint:  oklch(0.90 0.040 150);
    --card:       oklch(0.94 0.010 150);
    --card-2:     oklch(0.95 0.020 150);
    --line:       oklch(0.85 0.020 150);
    --line-soft:  oklch(0.88 0.015 150);
    --line-faint: oklch(0.90 0.010 150);
    --paper:      oklch(0.97 0.006 120);
    --pine-hover: oklch(0.40 0.08 155);
    --frame:      oklch(0.90 0.005 90);
    --shadow: 0 40px 90px -40px oklch(0.45 0.08 155 / 0.35);
  }
}

/* ===== Bāze ===== */
* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--frame);
  font-family: var(--sans);
  padding: 48px;
}

.page {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow); /* vienīgā ēna lapā — iekšpuse plakana ("flat + tinted") */
}

section[id] { scroll-margin-top: 24px; }

a { color: inherit; }

/* ===== Fotogrāfijas ===== */
.photo {
  display: block;
  width: 100%;
  height: auto;
}
.photo-hero { border-radius: 8px; }
.photo-band { border-radius: 10px; }

/* ===== Navigācija ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  text-decoration: none;
}
.navlinks {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-muted);
}
.navlinks a {
  text-decoration: none;
  transition: color 160ms ease;
}
.navlinks a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 16px;
  background: linear-gradient(var(--ink) 0 2px, transparent 2px 7px, var(--ink) 7px 9px, transparent 9px 14px, var(--ink) 14px 16px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Pogas ===== */
.btn-primary {
  display: inline-block;
  background: var(--pine);
  color: var(--paper);
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.btn-nav {
  display: inline-block;
  background: var(--pine);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.btn-primary:hover,
.btn-nav:hover { background: var(--pine-hover); }
.btn-ghost {
  display: inline-block;
  color: var(--pine-ink);
  padding: 15px 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 64px 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--pine-tint);
  color: var(--pine-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 68px;
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 440px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== Sadaļas ===== */
.section { padding: 0 48px 56px; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

/* Pēršanas rīki — chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: border-color 160ms ease;
}
.chip:hover { border-color: var(--pine); }

/* Kā tas notiek — soļi */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px;
}
.step-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--pine);
}
.step h3 {
  font-weight: 600;
  margin: 10px 0 6px;
  font-size: 17px;
}
.step p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* Kas per · Vietas */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tag-accent {
  /* apzināti inline (kā atsaucē) — padding izlīst no rindas boksa, nesastiepjot grid rindu */
  background: var(--pine-tint);
  color: var(--pine-ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--card);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  transition: box-shadow 160ms ease;
}
.tag:hover { box-shadow: inset 0 0 0 1px var(--pine); }

/* Pakotnes */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.price.featured {
  border: 2px solid var(--pine);
  background: var(--card-2);
}
.price-label {
  font-size: 15px;
  color: var(--ink-muted);
}
.price.featured .price-label {
  color: var(--pine-ink);
  font-weight: 600;
}
.price .amt {
  font-family: var(--serif);
  font-size: 42px;
  margin: 6px 0 2px;
}
.price .amt--sm { font-size: 30px; }
.price-sub {
  font-size: 13px;
  color: var(--ink-faint);
}
.price.featured .price-sub { color: var(--pine-ink); }

/* Pirtnieka banneris */
.band {
  margin: 0 48px 56px;
  padding: 36px;
  background: var(--pine);
  color: var(--paper);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.band-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}
.band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}
.band p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 12px 0 0;
}

/* ===== Kājene ===== */
.footer {
  padding: 34px 48px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

/* ===== Kustību ierobežošana ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ===== Responsīvs (≤900px) ===== */
@media (max-width: 900px) {
  body { padding: 0; }
  .page {
    border-radius: 0;
    box-shadow: none;
  }

  .nav { padding: 18px 22px; }
  .nav-toggle { display: inline-flex; }
  .navlinks {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line-faint);
    padding-top: 8px;
  }
  .nav[data-open] .navlinks { display: flex; }
  .navlinks a {
    padding: 14px 2px;
    font-size: 16px;
  }

  .hero {
    padding: 40px 22px 48px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  h1 { font-size: 42px; }

  .section { padding: 0 22px 48px; }
  .steps, .duo, .prices { grid-template-columns: 1fr; }

  .band {
    margin: 0 22px 48px;
    padding: 28px 24px;
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 26px 22px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Bez JS: mobilajā izvēlne vienmēr redzama */
@media (scripting: none) and (max-width: 900px) {
  .navlinks { display: flex; }
  .nav-toggle { display: none; }
}
