/* Ploteris.lv — kopīgais stils visām lapām */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg: #fffbf5;
  --ink: #1f1501;
  --ink2: #5e5243;
  --ink3: #8f7f68;
  --accent: #e67e22;
  --accent-dark: #b85f10;
  --border: #e4d9cc;
  --surface: #f5ede2;
  --white: #ffffff;
  --max: 1160px;
  --gutter: clamp(16px, 5vw, 56px);
  --radius: 10px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4em; }
p + p { margin-top: 0.9em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }

/* ── Galvene ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 245, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; letter-spacing: 0.04em; }
.brand img { height: 26px; width: auto; filter: brightness(0); }
.brand span em { font-style: normal; color: var(--accent-dark); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { text-decoration: none; font-size: 0.92rem; color: var(--ink2); font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink); font: inherit; font-size: 0.9rem; }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .header-cta .btn { display: none; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--accent-dark); }
}

/* ── Pogas ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Ceļa norāde ── */
.breadcrumbs { font-size: 0.85rem; color: var(--ink3); padding-top: 20px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.breadcrumbs a { color: var(--ink2); }

/* ── Sākuma bloks ── */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink2); margin-top: 18px; max-width: 38em; }
.hero-img { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 12px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 22px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 600; }
.stat span { font-size: 0.88rem; color: var(--ink2); }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ── Sadaļas ── */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head p { color: var(--ink2); }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin: 0.8em 0; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--accent-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ── Kartītes ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card h3 a { text-decoration: none; }
.card p { color: var(--ink2); font-size: 0.98rem; }
.card ul { margin: 14px 0 0; font-size: 0.95rem; }
.card .price { margin-top: 18px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.7rem; font-weight: 600; }
.card .price small { font-size: 0.85rem; font-weight: 400; color: var(--ink3); margin-left: 4px; }
.card .btn { margin-top: 18px; align-self: flex-start; }
.card-spacer { flex: 1; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { border-top: 2px solid var(--accent); padding-top: 16px; }
.feature p { color: var(--ink2); font-size: 0.98rem; }

/* ── Tabulas ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: none; }
thead th { background: var(--surface); font-weight: 600; }
tbody th { font-weight: 500; color: var(--ink2); width: 42%; }
.num { white-space: nowrap; }

/* ── Cenas bloks produkta lapā ── */
.buy-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.buy-box .price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.2rem; font-weight: 600; }
.buy-box .price small { font-size: 0.95rem; font-weight: 400; color: var(--ink3); }
.buy-box ul { margin-top: 14px; color: var(--ink2); }
.buy-box .btn-row { margin-top: 20px; }

.note { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--ink2); font-size: 0.96rem; margin: 20px 0; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.gallery figure { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.gallery figcaption { font-size: 0.85rem; color: var(--ink3); margin-top: 8px; }

/* ── BUJ ── */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink2); }
.faq a { color: var(--accent-dark); }

/* ── Aicinājuma josla ── */
.cta-band { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 40em; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ── Kontaktforma ── */
.form { display: grid; gap: 14px; }
.form label { font-size: 0.9rem; font-weight: 500; display: block; margin-bottom: 4px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-hint { font-size: 0.85rem; color: var(--ink3); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-list span { display: block; font-size: 0.82rem; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a { font-weight: 600; text-decoration: none; }

/* ── Kājene ── */
.site-footer { background: #17110a; color: rgba(255, 255, 255, 0.72); padding: 48px 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 18px; font-size: 0.85rem; }

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