/* SIA "GL Rožkalni" - glrozkalni.lv
   Zing Static Starter Kit 2026. Versionēts ar ?v=N (skat. index.html). */

:root {
  --brand: #fd7e23;          /* zīmola oranžā - ikonas, akcenti, apmales */
  --action: #d45f0a;         /* darbības oranžā - pogas/saites ar baltu tekstu (4.6:1) */
  --action-dark: #b04d05;
  --cream: #fcefa8;          /* kultūru joslas fons */
  --cream-soft: #fdf7dd;
  --ink: #1e1b16;
  --muted: #5c574f;
  --line: #e6e1d6;
  --white: #fff;
  --shadow: 0 2px 8px rgba(30, 27, 22, .08);
  --shadow-lg: 0 12px 32px rgba(30, 27, 22, .12);
  --radius: 6px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-dark); text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: 0; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-soft); }
.lead { font-size: 1.15rem; }
.center { text-align: center; }
.visually-hidden {
  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 {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 2px solid var(--action); border-radius: var(--radius);
  background: var(--action); color: var(--white);
  font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--action-dark); border-color: var(--action-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Ghost poga uz foto fona - puscaurspīdīgs balts, lai teksts vienmēr lasāms */
.btn--ghost { background: rgba(255, 255, 255, .82); color: var(--action); }
.btn--ghost:hover { background: var(--action); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--action-dark); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--action-dark); }
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- Galvene ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 190px; max-width: 52vw; height: auto; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap;
  min-height: 44px; padding: 0 6px;   /* pieskāriena zona mobilajā */
}
.header__phone:hover { color: var(--action); text-decoration: none; }
.header__phone svg { width: 18px; height: 18px; fill: var(--brand); flex: none; }
.header__cta { padding: 11px 20px; font-size: .85rem; }
@media (max-width: 720px) {
  .header__cta { display: none; }
  .header__phone { font-size: 1rem; }
  .logo img { width: 150px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(78vh, 640px); padding: 88px 0;
  background: #f2ecd5 url("img/hero-lauks.webp") center/cover no-repeat;
  text-align: center;
}
/* Pārklājums pietiekams teksta kontrastam, bet lauks paliek redzams */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.42) 45%, rgba(255,255,255,.62) 100%);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
/* Apakšvirsraksts ir paskaidrojums, ne otrais virsraksts - vieglāks svars,
   lai tipogrāfijas kaskāde no H1 uz pogām būtu skaidra. */
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 500; color: #3a352d;
  margin: 0 auto 32px; max-width: 34ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__meta {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center;
  font-size: 1.05rem; font-weight: 600; color: #2e2a24;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta svg { width: 19px; height: 19px; fill: var(--action); flex: none; }

/* Mobilajā: pogas vienāda platuma, pierādījumu punkti vienā kolonnā */
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { flex-direction: column; align-items: center; gap: 8px; }
}

/* ⚠ Mobilajā oriģinālais 1920x1000 foto ar `cover` NETIEK apgriezts vertikāli
   (mērķa proporcija šaurāka par avotu), tāpēc baltās debesis un horizonts krīt
   virsraksta vidū. Lietojam atsevišķu portretisku izgriezumu tikai ar lauku. */
@media (max-width: 720px) {
  .hero { background-image: url("img/hero-lauks-mob.webp"); }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 3rem); line-height: 1.08; }
}

/* ---------- Kultūras ---------- */
.crops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.crop { text-align: center; }
.crop svg { width: 76px; height: 76px; margin: 0 auto 16px; fill: var(--brand); display: block; }
.crop h3 { margin: 0; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 640px) { .crops { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* ---------- Par uzņēmumu ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about > * { min-width: 0; }   /* bez šī grid bērni var pārplūst horizontāli */
.about img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.fact { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 18px 20px; }
.fact strong { display: block; color: var(--ink); font-size: 1.5rem; line-height: 1.2; }
.fact span { font-size: .9rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Kontakti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact > * { min-width: 0; }   /* novērš 13px horizontālo pārplūdi mobilajā */
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

.contact__list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact__list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(30,27,22,.1); }
.contact__list li:last-child { border-bottom: 0; }
.contact__list li > span { min-width: 0; overflow-wrap: anywhere; }
.contact__list svg { width: 20px; height: 20px; fill: var(--action); flex: none; margin-top: 3px; }
.contact__list strong { display: block; color: var(--ink); }
/* pieskāriena zona tālruņa un e-pasta saitēm */
.contact__list a { display: inline-block; padding: 6px 0; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.form-card h2 { margin-bottom: .2em; }
.form-card > p { margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #9a927f; border-radius: var(--radius);
  /* #9a927f uz balta = 3.1:1, atbilst WCAG 1.4.11 UI elementu robežām */
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(212,95,10,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field--half { grid-template-columns: 1fr; } }
.field-hint { font-size: .82rem; color: var(--muted); margin: -8px 0 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status--err { color: #b3261e; }
.form-ok {
  display: none; background: var(--cream-soft); border: 1px solid var(--brand);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.form-ok h3 { color: var(--ink); }
.cf-turnstile { margin-bottom: 16px; }
@media (max-width: 560px) {
  .form-card { padding: 24px 20px; }
  .form-card button[type="submit"] { width: 100%; }
}

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; }
@media (max-width: 640px) { .map iframe { height: 320px; } }

/* ---------- Kājene ---------- */
.footer { background: var(--ink); color: #c9c3b8; padding: 56px 0 28px; font-size: .95rem; }
.footer a { color: #f0e9db; }
.footer a:hover { color: var(--brand); }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }
.footer a { display: inline-block; padding: 5px 0; }   /* pieskāriena zona */
.footer h3 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer p { margin-bottom: .5em; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .875rem;
}

/* ---------- Fiksēta "Zvanīt" josla mobilajā ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; justify-content: center; gap: 10px;
    min-height: 60px; padding: 14px 20px;
    background: var(--action); color: var(--white);
    font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    box-shadow: 0 -2px 14px rgba(30, 27, 22, .28);
  }
  .callbar:hover, .callbar:focus { color: var(--white); text-decoration: none; }
  .callbar svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  body { padding-bottom: 60px; }   /* lai josla neaizsedz futeri */
}

/* ---------- "Uz augšu" poga ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--white); color: var(--action);
  box-shadow: 0 3px 14px rgba(30, 27, 22, .22);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--action); color: var(--white); }
.totop svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 720px) {
  .totop { bottom: 76px; right: 16px; }   /* virs "Zvanīt" joslas */
}

/* ---------- Fokusa redzamība (tastatūra) ---------- */
a:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 3px; }

/* ---------- 404 ---------- */
.err { padding: 110px 0; text-align: center; }
.err h1 { font-size: clamp(3rem, 12vw, 6rem); color: var(--brand); }

/* ---------- Saturs (privātuma politika) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
