/*
Theme Name: SINDEKS R
Theme URI: https://www.sindeksr.lv/
Author: SIA SINDEKS R
Description: Vienlapes tēma SIA SINDEKS R — durvis, vārti un žogi. Saturs: Meta Box (AIO). Valodas: Polylang (LV/EN). SEO: SEOPress.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sindeksr
Tags: one-page, custom-colors, translation-ready
*/

/* ============================================================
   SINDEKS R — dizains
   Krēms + dzeltenais akcents (#fad306) · Inter (lokāli)
   ============================================================ */

:root {
  --cream: #f6f1ea;
  --cream-2: #efe6d8;
  --ivory: #fbf8f3;
  --ink: #2a2622;
  --ink-2: #6f6558;
  --ink-3: #9b9284;
  --bronze: #fad306;
  --bronze-2: #e0bd00;
  --bronze-text: #8a6f00;
  --sand: #c9b79c;
  --dark: #2a2622;
  --line: rgba(42, 38, 34, .12);
  --line-2: rgba(42, 38, 34, .22);
  --line-bronze: rgba(138, 111, 0, .3);
  --whatsapp: #25d366;

  --radius: 16px;
  --radius-lg: 26px;
  --pill: 100px;
  --shadow-sm: 0 12px 32px rgba(42, 38, 34, .08);
  --shadow: 0 24px 60px rgba(42, 38, 34, .12);
  --shadow-lg: 0 34px 80px rgba(42, 38, 34, .2);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 1.05em 1.9em; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bronze); color: var(--ink); font-weight: 700; box-shadow: 0 10px 26px rgba(250,211,6,.28); }
.btn-primary:hover { background: var(--bronze-2); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(250,211,6,.36); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--bronze); color: var(--ink); border-color: var(--bronze); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: #063; }
.btn-whatsapp:hover { filter: brightness(.96); }
.btn-sm { padding: .75em 1.3em; font-size: .72rem; }
.btn-lg { padding: 1.2em 2.2em; font-size: .84rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 600; }
.logo-img { height: 30px; width: auto; display: block; }
.logo--footer .logo-img { height: 32px; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bronze); color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.logo-mark span { font-size: .78rem; opacity: .9; }
.logo-text { font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }

/* ============ 1. HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246,241,234,.82); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .4s, background .4s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(246,241,234,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1.5rem; }

.nav { display: flex; flex-wrap: nowrap; gap: 1.6rem; margin-left: auto; }
.nav a { white-space: nowrap; font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); position: relative; padding: .3em 0; transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--bronze); transition: width .35s var(--ease); }
.nav a:hover { color: var(--bronze-text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.quick-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.quick-phone svg { width: 20px; height: 20px; fill: var(--bronze-text); }
.quick-phone:hover { color: var(--bronze-text); }

.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; padding: 12px 10px; }
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 84px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 1rem 24px 1.6rem; display: flex; flex-direction: column; gap: .2rem;
  transform: translateY(-120%); transition: transform .4s var(--ease); z-index: 99; box-shadow: var(--shadow-sm);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { padding: .95rem .3rem; font-family: var(--font-head); font-weight: 500; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
.mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.mobile-cta .btn { width: 100%; }

/* ============ 2. HERO (gaišs, silts) ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--cream); overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-overlay { display: block; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,16,12,.86) 0%, rgba(28,22,16,.62) 50%, rgba(28,22,16,.3) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 800px; padding-top: 100px; padding-bottom: 60px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .8rem; font-weight: 700; color: var(--bronze); margin-bottom: 1.4rem; }
.hero-title { font-family: var(--font-head); color: var(--cream); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.hero-title span { font-weight: 800; color: var(--ink); background: var(--bronze); padding: 0 .14em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.32rem); color: rgba(246,241,234,.86); max-width: 560px; margin-bottom: 2.4rem; font-weight: 300; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-buttons .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,.45); }
.hero-buttons .btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.trust-badges { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust-badges li { font-size: .95rem; color: rgba(246,241,234,.82); position: relative; padding-left: 1.6rem; }
.trust-badges li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--bronze); box-shadow: inset 0 0 0 4px var(--cream); }
.trust-badges strong { color: var(--cream); font-weight: 700; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--bronze); border-radius: 3px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ============ SECTIONS (shared) ============ */
.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-head { max-width: 700px; margin: 0 auto 4rem; text-align: center; }
.section-kicker { text-transform: uppercase; letter-spacing: .24em; font-size: .78rem; font-weight: 700; color: var(--bronze-text); margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.section-lead { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.15rem; font-weight: 300; }

/* ---------- Placeholder tiles ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 150px;
  display: grid; place-items: end start; cursor: pointer; isolation: isolate;
  background: var(--sand); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ph::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px); }
.ph::after { content: '📷 Reāls foto šeit'; position: absolute; top: 10px; right: 12px; z-index: 1;
  font-size: .6rem; letter-spacing: .06em; color: var(--ink); background: rgba(251,248,243,.85); padding: 4px 10px; border-radius: var(--pill); }
.ph span { position: relative; z-index: 1; color: var(--ivory); font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .04em; padding: .9rem 1.1rem; text-shadow: 0 2px 12px rgba(42,38,34,.4); }
.ph:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Reāls foto tiles: aizpilda visu un paslēpj placeholder tekstūru/badge */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }
.ph:has(img)::before, .ph:has(img)::after { content: none; background: none; }
.ph-1 { background: linear-gradient(140deg, #c3ac8f, #8f7355); }
.ph-2 { background: linear-gradient(140deg, #cdbca3, #9a8065); }
.ph-3 { background: linear-gradient(140deg, #a47b54, #6e4f34); }
.ph-4 { background: linear-gradient(140deg, #8a7a68, #4a4038); }

/* ============ 3. PRODUKTI ============ */
.products .product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.products .product:last-child { margin-bottom: 0; }
.product--reverse .product-gallery { order: 2; }
.product-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; height: 500px; }
.product-gallery .ph { min-height: 0; }
.product-gallery .ph:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.product-gallery .ph:nth-child(2) { grid-column: 2; grid-row: 1; }
.product-gallery .ph:nth-child(3) { grid-column: 2; grid-row: 2; }
.product-gallery .ph:nth-child(4) { grid-column: 1; grid-row: 3; }
.product-index { font-family: var(--font-head); font-size: 3.4rem; font-weight: 500; color: var(--sand); line-height: 1; display: block; margin-bottom: .4rem; }
.product-body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink); margin-bottom: 1rem; font-weight: 800; letter-spacing: -.025em; }
.product-body p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: .8rem; max-width: 46ch; }
.product-note { font-size: .92rem !important; color: var(--ink-3) !important; }
.product-note em { color: var(--bronze-text); font-style: normal; font-weight: 700; }
.product-body .btn { margin-top: 1.2rem; }

/* ============ 4. KĀPĒC ============ */
.why { background: var(--cream-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1.8rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--cream-2); display: grid; place-items: center; margin-bottom: 1.4rem; }
.why-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--bronze-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: .6rem; font-weight: 500; }
.why-card p { color: var(--ink-2); font-size: .98rem; }

/* ============ 5. PROCESS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; padding: 2.2rem 1.8rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bronze); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.3rem; animation: stepSweep 3s var(--ease) infinite; }
.step:nth-child(1) .step-num { animation-delay: 0s; }
.step:nth-child(2) .step-num { animation-delay: .3s; }
.step:nth-child(3) .step-num { animation-delay: .6s; }
.step:nth-child(4) .step-num { animation-delay: .9s; }
@keyframes stepSweep {
  0%, 10% { background: var(--ink); color: var(--ivory); }
  26%, 100% { background: var(--bronze); color: var(--ink); }
}
.step h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: .5rem; font-weight: 500; }
.step p { color: var(--ink-2); font-size: .96rem; }

/* ============ 6. DARBI ============ */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.works-grid .ph { height: 220px; }
.works-grid .ph:nth-child(4n+1) { background: linear-gradient(140deg, #c3ac8f, #8f7355); }
.works-grid .ph:nth-child(4n+2) { background: linear-gradient(140deg, #a47b54, #6e4f34); }
.works-grid .ph:nth-child(4n+3) { background: linear-gradient(140deg, #cdbca3, #9a8065); }
.works-grid .ph:nth-child(4n+4) { background: linear-gradient(140deg, #8a7a68, #4a4038); }

/* ============ 7. PAR MUMS (silti tumšs) ============ */
.about { background: var(--dark); color: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about .section-kicker { color: var(--bronze); text-align: left; }
.about-text h2 { color: var(--ivory); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.2rem; font-weight: 500; }
.about-text > p { color: rgba(246,241,234,.78); font-size: 1.1rem; margin-bottom: 1.9rem; max-width: 52ch; }
.service-box { background: rgba(164,123,84,.1); border: 1px solid rgba(246,241,234,.16); border-left: 2px solid var(--bronze); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 2.2rem; }
.service-box h3 { color: var(--bronze); font-size: 1.3rem; margin-bottom: .5rem; font-weight: 700; }
.service-box p { color: rgba(246,241,234,.78); font-size: .98rem; }
.service-box em { color: rgba(246,241,234,.55); font-style: italic; }
.about-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem 2rem; }
.about-contacts a:not(.btn) { color: var(--ivory); font-weight: 600; border-bottom: 1px solid var(--bronze); padding-bottom: 3px; }
.about-contacts a:not(.btn):hover { color: var(--sand); }
.about-contacts .btn-primary { background: var(--bronze); color: var(--ink); }
.about-contacts .btn-primary:hover { background: var(--ivory); color: var(--ink); }
.about-visual { min-height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-visual span { font-size: 1.4rem; }

/* ============ 8. KONTAKTI ============ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.contact-info h3, .contact-form h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 1.6rem; font-weight: 500; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); padding: .4rem 1.3rem; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.ci-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ink-3); }
.contact-list a, .contact-list li > span { font-weight: 500; color: var(--ink); }
.contact-list a:hover { color: var(--bronze-text); }
.contact-list em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--bronze-text); }
.contact-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.contact-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow-sm); }
.form-hint { color: var(--ink-2); font-size: .95rem; margin-bottom: 1.6rem; margin-top: -.9rem; }
.contact-form label { display: block; margin-bottom: 1.2rem; }
.contact-form label span { display: block; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: .5rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .95rem 1.1rem; border: 1px solid var(--line-2); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(164,123,84,.14); }
.contact-form textarea { resize: vertical; }
.form-status { margin-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--bronze-text); min-height: 1.2em; }

/* ============ 9. FOOTER ============ */
.site-footer { background: var(--dark); color: rgba(246,241,234,.72); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.5rem; padding: 4rem 24px 3rem; }
.logo--footer .logo-text { color: var(--ivory); }
.footer-brand p { margin-top: 1rem; font-size: .95rem; max-width: 28ch; color: rgba(246,241,234,.6); }
.site-footer h4 { font-family: var(--font-body); color: var(--bronze); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 1.2rem; }
.footer-links, .footer-contacts { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a, .footer-contacts a, .footer-contacts span { font-size: .95rem; color: rgba(246,241,234,.62); transition: color .3s; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--sand); }
.social-icons { display: flex; gap: .8rem; }
.social-icons a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(246,241,234,.2); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.social-icons a:hover { background: var(--bronze); border-color: var(--bronze); }
.social-icons svg { width: 20px; height: 20px; fill: var(--ivory); transition: fill .3s; }
.social-icons a:hover svg { fill: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(246,241,234,.14); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .88rem; color: rgba(246,241,234,.5); }
.footer-privacy { font-size: .88rem; color: rgba(246,241,234,.5); }
.footer-privacy:hover { color: var(--sand); }

/* ============ 10. PELDOŠIE ELEMENTI ============ */
/* pointer-events: none — citādi aizvērtais (caurspīdīgais) panelis pārklāj
   un bloķē “uz augšu” pogu zem sevis. Klikšķus saņem tikai poga un atvērtais panelis. */
.wa-widget { position: fixed; bottom: 26px; right: 26px; z-index: 96; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.float-whatsapp { position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; background: var(--whatsapp); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4); transition: transform .35s var(--ease); pointer-events: auto; }
.float-whatsapp svg { width: 30px; height: 30px; fill: #fff; transition: transform .3s var(--ease); }
.float-whatsapp:hover { transform: translateY(-3px) scale(1.05); }
.wa-widget.open .float-whatsapp svg { transform: scale(1.08); }

/* WhatsApp popup panelis */
.wa-panel { width: 300px; max-width: calc(100vw - 40px); background: var(--ivory); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(42,38,34,.3); transform: translateY(14px) scale(.95); transform-origin: bottom right; opacity: 0; pointer-events: none; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.wa-widget.open .wa-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-head { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; padding: 13px 15px; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-family: var(--font-body); font-weight: 800; font-size: .85rem; color: #04331d; flex-shrink: 0; }
.wa-head-txt { display: flex; flex-direction: column; line-height: 1.25; }
.wa-head-txt strong { font-size: .95rem; letter-spacing: .02em; }
.wa-head-txt span { font-size: .72rem; opacity: .8; }
.wa-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .85; padding: 0 2px; }
.wa-close:hover { opacity: 1; }
.wa-body { padding: 16px; background: #e5ddd5; display: flex; flex-direction: column; gap: 12px; }
.wa-bubble { background: #fff; border-radius: 3px 14px 14px 14px; padding: 10px 13px; font-size: .9rem; line-height: 1.45; color: #2a2622; box-shadow: 0 1px 1px rgba(0,0,0,.12); align-self: flex-start; max-width: 92%; }
.wa-input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: .9rem; resize: none; background: #fff; color: var(--ink); }
.wa-input:focus { outline: none; border-color: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
.wa-send { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: #25d366; color: #fff; border: none; border-radius: 10px; padding: 11px 14px; font-family: var(--font-body); font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .25s, transform .2s; }
.wa-send:hover { background: #1fb457; transform: translateY(-1px); }
.wa-send svg { width: 20px; height: 20px; fill: #fff; }

.back-to-top {
  position: fixed; bottom: 94px; right: 26px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); border: none; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s, transform .4s, visibility .4s, background .3s;
  box-shadow: var(--shadow-sm);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--bronze); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--ivory); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover svg { stroke: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(42,38,34,.9); display: none; place-items: center; padding: 5vw; opacity: 0; transition: opacity .4s; }
.lightbox.open { display: grid; opacity: 1; }
.lightbox-content { max-width: 92vw; width: auto; display: flex; }
.lightbox-content img { max-width: 92vw; max-height: 82vh; object-fit: contain; display: block; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 20px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); border: none; color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s; z-index: 3; }
.lightbox-close:hover { background: var(--bronze); color: var(--ink); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: var(--ivory); border: none; color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, transform .2s; z-index: 3; }
.lightbox-prev { left: max(2vw, 12px); }
.lightbox-next { right: max(2vw, 12px); }
.lightbox-nav:hover { background: var(--bronze); color: var(--ink); }
.lightbox-nav:active { transform: translateY(-50%) scale(.94); }
.lightbox-counter { position: absolute; bottom: 3.5vh; left: 50%; transform: translateX(-50%); font-family: var(--font-body); font-weight: 600; font-size: .85rem; letter-spacing: .1em; color: var(--ivory); background: rgba(42,38,34,.55); padding: .45em 1.1em; border-radius: 100px; z-index: 3; }

/* ---------- Cookie ---------- */
.cookie-notice {
  position: fixed; bottom: 22px; left: 22px; z-index: 95; max-width: 400px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}
.cookie-notice p { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.cookie-actions { display: flex; align-items: center; gap: 1.4rem; }
.cookie-link { font-size: .82rem; color: var(--ink-3); text-decoration: underline; }

/* ============ ANIMĀCIJU SĀKUMA STĀVOKLIS (GSAP) ============ */
[data-anim] { opacity: 0; }
.no-gsap [data-anim] { opacity: 1; }

/* ============ RESPONSIVE ============ */
/* Horizontālā izvēlne (5 punkti + tālrunis + poga) ietilpst tikai plašā ekrānā —
   šaurāk pārslēdzamies uz burgeri, lai vārdi nelūztu / nepārplūstu. */
@media (max-width: 1160px) {
  .nav, .quick-phone, .header-actions .btn-primary { display: none; }
  .burger { display: flex; }
}

@media (max-width: 980px) {
  .why-grid, .steps, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .products .product, .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .product--reverse .product-gallery { order: 0; }
  .about-visual { min-height: 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .quick-phone, .header-actions .btn-primary { display: none; }
  .burger { display: flex; }
  .header-inner { height: 70px; }
  .mobile-menu { top: 70px; }
  html { scroll-padding-top: 82px; }
  .hero-inner { padding-top: 110px; }
  .hero-buttons .btn { flex: 1; }
  .trust-badges { gap: 1rem 1.4rem; }
}

@media (max-width: 560px) {
  .why-grid, .steps, .works-grid, .footer-inner { grid-template-columns: 1fr; }
  .product-gallery { height: 400px; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .contact-cta .btn, .hero-buttons .btn { width: 100%; }
  .wa-widget { bottom: 18px; right: 18px; }
  .back-to-top { bottom: 84px; right: 18px; }
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-anim] { opacity: 1 !important; }
}


/* ============================================================
   WordPress papildinājumi
   ============================================================ */

/* ---------- Valodu pārslēgs ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: .2rem; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 3px; }
.lang-link { font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .35em .7em; border-radius: var(--pill); color: var(--ink-2); transition: background .25s, color .25s; }
.lang-link:hover { color: var(--ink); }
.lang-link.is-active { background: var(--bronze); color: var(--ink); }
.mobile-lang { display: flex; gap: .5rem; padding: 1rem .3rem .2rem; border-top: 1px solid var(--line); margin-top: .6rem; }
.mobile-lang .lang-link { border: 1px solid var(--line-2); }

/* ---------- Forma: GDPR + honeypot + statuss ---------- */
.form-gdpr { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.2rem; cursor: pointer; }
.form-gdpr input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--bronze-text); flex-shrink: 0; }
.form-gdpr span { display: block; font-size: .85rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); margin: 0; }
.form-gdpr a { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: #1b7f4b; }
.form-status.is-error { color: #b3261e; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Lapas saturs (piem. Privātuma politika) ---------- */
.page-content { padding-top: clamp(7rem, 12vw, 10rem); }
.container--narrow { max-width: 760px; }
.entry-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.6rem; }
.entry-body { color: var(--ink-2); font-size: 1.05rem; }
.entry-body h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 2.2rem 0 .8rem; }
.entry-body h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 1.6rem 0 .6rem; }
.entry-body p { margin-bottom: 1rem; }
.entry-body ul, .entry-body ol { margin: 0 0 1rem 1.2rem; }
.entry-body ul { list-style: disc; }
.entry-body ol { list-style: decimal; }
.entry-body li { margin-bottom: .4rem; }
.entry-body a { color: var(--bronze-text); text-decoration: underline; }
.entry-body strong { color: var(--ink); }

/* ---------- WP admin bar korekcija ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: calc(84px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-menu { top: calc(70px + 46px); }
}

/* ---------- Produkta ikona (numura vietā) ---------- */
.product-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--cream-2); display: grid; place-items: center; margin-bottom: 1.4rem; }
.product-icon svg { width: 34px; height: 34px; color: var(--bronze-text); }

/* ---------- Valodu pārslēgs (papildus mobilajam) ---------- */
.mobile-lang { display: flex; gap: .6rem; }

/* ---------- Jaunumu arhīvs ---------- */
.news-archive { padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.news-archive .section-head { text-align: center; margin: 0 auto 3.5rem; max-width: 700px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--sand); }
.news-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-date { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bronze-text); }
.news-title { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.news-title a:hover { color: var(--bronze-text); }
.news-excerpt { color: var(--ink-2); font-size: .96rem; margin: 0; }
.news-more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: .4em; }
.news-more span { transition: transform .3s var(--ease); }
.news-more:hover { color: var(--bronze-text); }
.news-more:hover span { transform: translateX(4px); }
.news-loadmore-wrap { text-align: center; margin-top: 3rem; }
.news-loadmore[disabled] { opacity: .6; cursor: progress; }
.news-empty { text-align: center; color: var(--ink-2); font-size: 1.1rem; padding: 3rem 0; }

/* ---------- Atvērts jaunums ---------- */
.single-post { padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.single-back { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.single-back:hover { color: var(--bronze-text); }
.single-date { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: .6rem; }
.single-title { margin-bottom: 1.6rem; }
.single-hero { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.single-hero img { width: 100%; height: auto; display: block; }
.single-content { font-size: 1.08rem; }
.single-content img { border-radius: var(--radius); height: auto; margin: 1.4rem 0; }
.single-foot { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }
