/* ============================================================
   eterniit.com — homepage-only styles
   Layered on top of assets/css/styles.css. Loaded only when
   is_front_page() is true (see inc/enqueue.php).
   ============================================================ */

:root {
  --hero-bg:    #ecebe6;
  --section-bg: #f8f7f4;
  --ink-paper:  #1a1d21;
}

/* Push content away from sticky header */
main { padding-bottom: var(--s-9); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/wp-content/uploads/2026/05/Eterniit.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-8);
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.hero-eyebrow .badge {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
}
.hero-eyebrow .est { color: var(--muted); font-weight: 500; }

.hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 var(--s-4);
  color: var(--ink-paper);
}
.hero h1 .stat {
  background: var(--accent);
  color: #fff;
  padding: 0 12px 4px;
  border-radius: 8px;
  display: inline-block;
  margin-right: 4px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 var(--s-6);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.hero-actions .btn {
  height: 56px;
  padding: 0 var(--s-6);
  font-size: 15.5px;
}
.hero-actions .btn-primary { box-shadow: 0 6px 18px rgba(44, 94, 63, 0.25); }
.hero-actions .btn-secondary {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.hero-actions .btn-secondary:hover { background: var(--ink); color: #fff; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: 13px;
  color: var(--ink-3);
}
.hero-meta div {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta .check {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--save-soft);
  color: var(--save);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.hero-vis {
  position: relative;
  aspect-ratio: 5 / 5.4;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1.4fr 1fr 1fr;
  gap: var(--s-3);
}
.hero-vis .ph-card {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--bg-soft);
  position: relative;
}
.hero-vis .ph-1 { grid-row: 1 / 3; }
.hero-vis .ph-2 { grid-row: 1; }
.hero-vis .ph-3 { grid-row: 2 / 4; }
.hero-vis .ph-4 { grid-row: 3; grid-column: 1; }

.hero-vis .ph-card { margin: 0; }
.hero-vis .ph-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-vis .ph-card:hover img { transform: scale(1.04); }
.hero-vis .ph-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px;
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(to top, rgba(20,24,30,0.72) 0%, rgba(20,24,30,0) 100%);
  pointer-events: none;
}

.hero-float {
  position: absolute;
  bottom: -22px; left: -22px;
  background: #fff;
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  box-shadow: 0 12px 32px rgba(20,24,30,0.12);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  z-index: 3;
  min-width: 280px;
}
.hero-float .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-float .label {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.3;
}
.hero-float .label b { color: var(--ink); display: block; font-weight: 600; }

/* ============================================================
   HERO SEARCH
   ============================================================ */
.hero-search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: 0 6px 20px rgba(20,24,30,0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: var(--s-5);
  overflow: hidden;
  max-width: 520px;
}
.hero-search input {
  border: 0;
  background: transparent;
  height: 52px;
  padding: 0 var(--s-4);
  font: 500 15px var(--font-body);
  color: var(--ink);
}
.hero-search input:focus { outline: 0; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  background: var(--ink);
  color: #fff;
  border: 0;
  height: 52px;
  padding: 0 var(--s-5);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-search button:hover { background: var(--accent); }

/* ---- FiboSearch (ajax-search-for-woocommerce) skinned to hero-search ---- */
.hero-search--fibo { padding: 0; }
.hero-search--fibo .dgwt-wcas-search-wrapp {
  width: 100%;
  max-width: none;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.hero-search--fibo .dgwt-wcas-search-form {
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
}
/* Use flex on sf-wrapp (FiboSearch's inner container) instead of display:contents-
   into-grid: FiboSearch wraps 7 children (label, input, preloader, voice, button,
   2 hidden inputs) so grid promotion wraps them across multiple rows.
   padding:0 override drops FiboSearch's default 10px inner padding (otherwise
   the hero box is 72-74px tall instead of the design 52-54px). */
.hero-search--fibo .dgwt-wcas-sf-wrapp {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
}
.hero-search--fibo .dgwt-wcas-search-input,
.hero-search--fibo input.dgwt-wcas-search-input[type="search"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  height: 52px !important;
  line-height: 52px !important;
  padding: 0 var(--s-4) !important;
  font: 500 15px var(--font-body) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
}
.hero-search--fibo .dgwt-wcas-search-input:focus { outline: 0 !important; box-shadow: none !important; }
.hero-search--fibo .dgwt-wcas-search-input::placeholder { color: var(--muted); }
.hero-search--fibo .dgwt-wcas-preloader,
.hero-search--fibo .dgwt-wcas-voice-search,
.hero-search--fibo .dgwt-wcas-close { display: none !important; }
.hero-search--fibo .dgwt-wcas-search-submit,
.hero-search--fibo button.dgwt-wcas-search-submit[type="submit"] {
  flex: 0 0 56px !important;
  background: var(--ink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: 52px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  padding: 0 !important;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  cursor: pointer;
  position: static !important;
  box-shadow: none !important;
}
.hero-search--fibo .dgwt-wcas-search-submit:hover { background: var(--accent) !important; }
.hero-search--fibo .dgwt-wcas-search-submit svg,
.hero-search--fibo .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier {
  position: static !important;
  width: 16px !important;
  height: 16px !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  fill: currentColor !important;
  stroke: currentColor;
}
/* FiboSearch sets the magnifier <path> fill to a dark color via its bundled CSS;
   on our dark button the icon would be invisible. Force white. */
.hero-search--fibo .dgwt-wcas-search-submit svg path {
  fill: currentColor !important;
  stroke: none !important;
}
.hero-search--fibo .dgwt-wcas-suggestions-wrapp {
  border-radius: var(--r-3);
  box-shadow: 0 12px 32px rgba(20,24,30,0.14);
  margin-top: 6px;
}

/* ============================================================
   QUICK ROW (below hero)
   ============================================================ */
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  color: #fff;
}
.quick-row a {
  padding: var(--s-5) var(--s-5);
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.quick-row a:last-child { border-right: 0; }
.quick-row a:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.quick-row .ico {
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  background: rgba(255,255,255,0.07);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.quick-row .tx { display: flex; flex-direction: column; gap: 2px; }
.quick-row .tx b { font-weight: 600; font-size: 15px; }
.quick-row .tx span { font-size: 12.5px; color: rgba(255,255,255,0.6); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section-pad { padding: var(--s-10) 0 var(--s-9); }
.section-head-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.section-head-h .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-head-h .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section-head-h h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 22ch;
  margin: 0;
}
.section-head-h .lede {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 44ch;
  text-align: right;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .section-head-h { flex-direction: column; align-items: flex-start; }
  .section-head-h .lede { text-align: left; }
}

/* ============================================================
   PRODUCT SERIES SHOWCASE — uses archive .pcard markup
   ============================================================ */
.grid.grid--series,
.grid.grid--accessory {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) {
  .grid.grid--series,
  .grid.grid--accessory { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .grid.grid--series,
  .grid.grid--accessory { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  /* Keep 2-up even on small phones — cards are designed paired. */
  .grid.grid--series,
  .grid.grid--accessory { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
}

.pcard--series .pcard-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-height: 0;
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.pcard--series .pcard-sku {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.pcard--series .pcard-specs {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.pbadge.pbadge-green { background: var(--save); }
.pbadge.pbadge-dark  { background: var(--ink); }

/* Make the entire homepage product card clickable while keeping
   swatches, quick-view, and the action button independently clickable. */
.pcard--series .pcard-name a,
.pcard--accessory .pcard-name a { position: static; }
.pcard--series .pcard-name a::after,
.pcard--accessory .pcard-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pcard--series,
.pcard--accessory { cursor: pointer; }
.pcard--series .pcard-swatches a,
.pcard--series .pcard-quick,
.pcard--series .pcard-action,
.pcard--accessory .pcard-swatches a,
.pcard--accessory .pcard-quick,
.pcard--accessory .pcard-action {
  position: relative;
  z-index: 2;
}

/* ============================================================
   LEGACY .series-grid (kept in case other pages reference it)
   ============================================================ */
.series-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}
.series-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20,24,30,0.08);
  border-color: var(--line-strong);
  text-decoration: none;
}
.series-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.series-card .tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  text-transform: uppercase;
  z-index: 2;
}
.series-card.featured .tag { background: var(--accent); }
.series-card .tag.tag-green,
.series-card.featured .tag.tag-green { background: var(--save); color: #fff; }
.series-card .img {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.series-card .series-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.series-card:hover .series-photo { transform: scale(1.04); }
.series-card .profile-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  display: flex;
  align-items: flex-end;
  background: rgba(255,255,255,0.85);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
}
.series-card .profile-strip svg {
  width: 100%; height: 22px;
  color: var(--ink-2);
}
.series-card .body {
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.series-card .nm {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.series-card .nm small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.series-card .blurb {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}
.series-card .specs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 2px;
}
.series-card .specs span {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.series-card .colors {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 2px;
}
.series-card .colors .dot {
  width: 14px; height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.series-card .colors .dot-unpainted {
  border-style: dashed;
  border-color: rgba(0,0,0,0.3);
}

.series-card .price-tag {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  display: flex; align-items: baseline; gap: 6px;
}
.series-card .price-tag .from { font-size: 11px; color: var(--muted); }
.series-card .price-tag .price-now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.series-card .price-tag.is-sale .price-now { color: var(--sale); }
.series-card .price-tag .price-was {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
.series-card .price-tag .price-unit { font-size: 12px; color: var(--muted); }

@media (max-width: 1024px) {
  .series-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
}

/* Procedural roof-tile SVG illustrations (series card placeholders) */
.series-art {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--art-bg, #e7e9ed);
  background-image:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.45) 18px 19px);
  position: relative;
}
.series-art .tile {
  width: 80%; aspect-ratio: 4 / 3;
  background: var(--tile-color, #4a5560);
  box-shadow:
    inset 0 -8px 16px rgba(0,0,0,0.22),
    inset 0 6px 14px rgba(255,255,255,0.06),
    0 12px 20px rgba(0,0,0,0.18);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.series-art .tile.wave-classic {
  background:
    repeating-linear-gradient(
      90deg,
      var(--tile-color, #4a5560) 0,
      var(--tile-color, #4a5560) 12px,
      color-mix(in srgb, var(--tile-color, #4a5560) 78%, #000) 14px,
      color-mix(in srgb, var(--tile-color, #4a5560) 78%, #000) 16px,
      var(--tile-color, #4a5560) 18px,
      var(--tile-color, #4a5560) 30px
    );
}
.series-art .tile.wave-fine {
  background:
    repeating-linear-gradient(
      90deg,
      var(--tile-color) 0,
      var(--tile-color) 8px,
      color-mix(in srgb, var(--tile-color) 75%, #000) 10px,
      color-mix(in srgb, var(--tile-color) 75%, #000) 11px,
      var(--tile-color) 13px,
      var(--tile-color) 20px
    );
}
.series-art .tile.wave-wide {
  background:
    repeating-linear-gradient(
      90deg,
      var(--tile-color) 0,
      var(--tile-color) 20px,
      color-mix(in srgb, var(--tile-color) 70%, #000) 22px,
      color-mix(in srgb, var(--tile-color) 70%, #000) 24px,
      var(--tile-color) 26px,
      var(--tile-color) 44px
    );
}
.series-art .tile.wave-xl {
  background:
    repeating-linear-gradient(
      90deg,
      var(--tile-color) 0,
      var(--tile-color) 28px,
      color-mix(in srgb, var(--tile-color) 70%, #000) 30px,
      color-mix(in srgb, var(--tile-color) 70%, #000) 33px,
      var(--tile-color) 35px,
      var(--tile-color) 60px
    );
}
.series-art .tile.wave-smooth {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tile-color) 90%, #fff) 0%,
      var(--tile-color) 30%,
      color-mix(in srgb, var(--tile-color) 90%, #000) 100%);
}

/* ============================================================
   ORIGIN COMPARE (Leedu vs Ukraina)
   ============================================================ */
.origin-section {
  background: var(--section-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.origin-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 280px;
}
.origin-card.premium {
  box-shadow: 0 14px 38px rgba(20,24,30,0.10), 0 4px 10px rgba(20,24,30,0.05);
  overflow: visible;
}
.origin-card.premium::before {
  content: "Soovitame";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--save);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31,122,77,0.3);
}
.origin-card .flag-side {
  background: var(--bg-soft);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
  border-right: 1px solid var(--line);
}
.origin-card .flag {
  width: 64px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.origin-card .brand-logo {
  display: block;
  max-width: 140px;
  width: auto;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}
.origin-card .flag i {
  flex: 1;
  display: block;
}
.flag-lt i:nth-child(1) { background: #fdb913; }
.flag-lt i:nth-child(2) { background: #006a44; }
.flag-lt i:nth-child(3) { background: #c1272d; }
.flag-ua i:nth-child(1) { background: #0057b7; }
.flag-ua i:nth-child(2) { background: #ffd700; }

.origin-card .country {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.origin-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}
.origin-card .price-anchor {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.origin-card .price-anchor b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.origin-card.premium .price-anchor b { color: var(--accent); }

.origin-card .info-side {
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.origin-card .info-side .row {
  display: flex; gap: var(--s-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.origin-card .info-side .row:last-of-type { border-bottom: 0; }
.origin-card .info-side .row .k {
  width: 130px; flex-shrink: 0;
  color: var(--muted);
}
.origin-card .info-side .row .v {
  color: var(--ink);
  font-weight: 500;
}
.origin-card .info-side .row .v .yes { color: var(--save); font-weight: 700; }
.origin-card .info-side .row .v .no  { color: var(--ink-3); }

.origin-card .cta {
  margin-top: var(--s-3);
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  border-radius: var(--r-2);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.origin-card .cta:hover { background: var(--accent); text-decoration: none; }
.origin-card.premium .cta { background: var(--accent); }
.origin-card.premium .cta:hover { background: var(--accent-2); }

@media (max-width: 820px) {
  .origin-grid { grid-template-columns: 1fr; }
  .origin-card { grid-template-columns: 1fr; min-height: 0; }
  .origin-card .flag-side {
    flex-direction: row; align-items: center;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .origin-card .price-anchor { margin-left: auto; text-align: right; }
}

/* ============================================================
   ROOF CALCULATOR
   ============================================================ */
.calc-section { background: var(--ink-paper); color: #fff; }
.calc-section .container { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.calc-section .eyebrow { color: #6ec291; }
.calc-section .eyebrow::before { background: #6ec291; }
.calc-section h2 { color: #fff; }
.calc-section .lede { color: rgba(255,255,255,0.65); }

.calc-mount {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--r-4);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
}
/* When the real configurator is rendered (i.e. the plugin shortcode mounted
   .eternit-configurator inside), strip the placeholder chrome (dashed border,
   tinted bg, min-height, padding) so the plugin's own layout is uninterrupted. */
.calc-mount:has(.eternit-configurator) {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 0;
  display: block;
}
.calc-mount-pending {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s-7);
  align-items: stretch;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-4);
  overflow: hidden;
}
.calc-form {
  padding: var(--s-7);
  display: flex; flex-direction: column;
  gap: var(--s-4);
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.calc-field {
  display: flex; flex-direction: column; gap: 6px;
}
.calc-field label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.calc-field .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-field input,
.calc-field select {
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--r-2);
  color: #fff;
  font: 600 16px var(--font-body);
  padding: 0 var(--s-4);
  transition: border-color 0.15s, background 0.15s;
  font-variant-numeric: tabular-nums;
}
.calc-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff80' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: 0;
  border-color: #6ec291;
  background: rgba(255,255,255,0.08);
}
.calc-field .unit {
  position: absolute; right: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  font-weight: 500;
}

.calc-form .hint {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-top: 4px;
}
.calc-form .hint a { color: #6ec291; }

.calc-result {
  background: linear-gradient(180deg, #2c5e3f 0%, #1c4029 100%);
  padding: var(--s-7);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  position: relative;
}
.calc-result::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.04) 18px 19px);
  pointer-events: none;
}
.calc-result-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.calc-result .area {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc-result .area .unit {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
  letter-spacing: 0;
  font-family: var(--font-body);
}
.calc-result-rows {
  display: flex; flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-3);
  padding: var(--s-3) var(--s-4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.calc-result-rows .rr {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.calc-result-rows .rr:last-child { border-bottom: 0; }
.calc-result-rows .k { color: rgba(255,255,255,0.7); }
.calc-result-rows .v {
  color: #fff; font-weight: 600;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.calc-result-rows .v.big { font-size: 18px; font-weight: 700; }

.calc-cta-row {
  display: flex; gap: var(--s-3);
  margin-top: auto;
  z-index: 1;
  position: relative;
}
.calc-cta-row .btn {
  flex: 1;
  height: 48px;
  border-radius: var(--r-2);
  font-size: 14px;
  font-weight: 600;
}
.calc-cta-row .btn-primary {
  background: #fff;
  color: var(--accent);
}
.calc-cta-row .btn-primary:hover { background: var(--accent-soft); color: var(--accent-2); }
.calc-cta-row .btn-ghostlight {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
}
.calc-cta-row .btn-ghostlight:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 820px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result .area { font-size: 44px; }
}

/* ============================================================
   ACCESSORIES (lisatarvikud)
   ============================================================ */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.acc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.acc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  text-decoration: none;
}
.acc-card .img {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.acc-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.acc-card:hover .img img { transform: scale(1.04); }
.acc-card .body {
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: 4px;
}
.acc-card .nm {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.acc-card .from .was {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.acc-card .count {
  font-size: 12px;
  color: var(--muted);
}
.acc-card .from {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.acc-card .from b { color: var(--ink); font-weight: 700; }
@media (max-width: 820px) { .acc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   DELIVERY (Estonia map split)
   ============================================================ */
.delivery-section {
  background: var(--section-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.delivery-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.delivery-map {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  aspect-ratio: 4 / 3.4;
  position: relative;
  overflow: hidden;
}
.delivery-map svg { width: 100%; height: 100%; }
.delivery-map .delivery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.delivery-map .city-dot {
  cursor: pointer;
  transition: r 0.15s, fill 0.15s;
}
.delivery-map .city-dot:hover { r: 9; }
.delivery-map .city-label {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--ink-2);
  font-weight: 600;
}
.delivery-map .day-label {
  font-family: var(--font-display);
  font-size: 10px;
  fill: var(--accent);
  font-weight: 700;
}
.delivery-map .legend {
  position: absolute;
  bottom: var(--s-4); left: var(--s-4);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--ink-3);
  display: flex; gap: 10px; align-items: center;
  box-shadow: var(--sh-1);
}
.delivery-map .legend .sw {
  width: 10px; height: 10px;
  border-radius: 999px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: -1px;
}

.delivery-info { display: flex; flex-direction: column; gap: var(--s-5); }
.delivery-info .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.delivery-info .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.delivery-info h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 6px 0 0;
}
.delivery-features {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.delivery-features .item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.delivery-features .item:last-child { border-bottom: 0; }
.delivery-features .item .ic {
  width: 44px; height: 44px;
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.delivery-features .item h4 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.delivery-features .item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .delivery-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ============================================================
   WHY US (trust numbers)
   ============================================================ */
.why-section { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.why-card {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: #fff;
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.why-card .big {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.why-card .big small {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}
.why-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.why-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PROJECT GALLERY
   ============================================================ */
.projects-section {
  background: var(--section-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.projects-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: var(--s-3);
}
.projects-grid .pj {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--bg-soft);
}
.projects-grid .pj:nth-child(1) { grid-row: 1 / 3; }
.projects-grid .pj .meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-3) var(--s-4);
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  font-size: 13px;
}
.projects-grid .pj .meta b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .projects-grid .pj:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-9);
  align-items: start;
}
.faq-aside .eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.faq-aside .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.faq-aside h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--s-5);
  max-width: 14ch;
}
.faq-aside p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 var(--s-5);
}
.faq-aside p b { color: var(--ink); }
.faq-list { display: flex; flex-direction: column; }
.faq-list details {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.faq-list details[open] { padding-bottom: var(--s-5); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4);
  letter-spacing: -0.005em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-list details p {
  margin: var(--s-3) 0 0;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 14.5px;
}
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ============================================================
   CTA STRIP (above footer)
   ============================================================ */
.cta-strip {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-4);
  padding: var(--s-8) var(--s-7);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
  margin: var(--s-9) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}
.cta-strip--image {
  background-color: var(--save);
  background-image:
    linear-gradient(135deg, rgba(15,42,34,0.78) 0%, rgba(15,42,34,0.55) 60%, rgba(15,42,34,0.4) 100%),
    var(--cta-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-strip--image::before { display: none; }
.cta-strip--image .btn-light {
  color: var(--save);
}
.cta-strip--image .btn-light:hover { background: rgba(255,255,255,0.92); color: var(--save); }
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(255,255,255,0.04) 24px 25px);
  pointer-events: none;
}
.cta-strip h3 {
  color: #fff;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  max-width: 26ch;
}
.cta-strip p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 15px;
  max-width: 50ch;
}
.cta-strip .actions {
  display: flex; gap: var(--s-3);
  position: relative;
  z-index: 1;
}
.cta-strip .btn {
  height: 52px;
  padding: 0 var(--s-6);
  font-weight: 600;
}
.cta-strip .btn-light {
  background: #fff;
  color: var(--accent);
}
.cta-strip .btn-light:hover { background: var(--accent-soft); }
.cta-strip .btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.cta-strip .btn-outline:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 820px) {
  .cta-strip { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); }
  .cta-strip .actions { flex-wrap: wrap; }
}

/* ============================================================
   TOAST (homepage; small confirm shown after calc CTAs)
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, calc(100% + 40px));
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-3);
  box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 280px;
}
.toast.visible { transform: translate(-50%, 0); }
.toast .check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--save);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.toast a { color: #fff; text-decoration: underline; margin-left: auto; font-weight: 600; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--s-7);
    padding-top: var(--s-8);
    padding-bottom: var(--s-9);
  }
  .hero-float { left: 12px; bottom: -16px; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .quick-row a { border-right: 1px solid rgba(255,255,255,0.08); }
  .quick-row a:nth-child(2n) { border-right: 0; }
  .quick-row a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .delivery-info h2,
  .faq-aside h2 { font-size: clamp(22px, 4.4vw, 28px); }
  .origin-card h3 { font-size: 19px; }
  .origin-card .brand-logo { height: 28px; max-width: 120px; }
  .origin-card .price-anchor b { font-size: 22px; }
  .calc-mount { min-height: 160px; }
  .pcard--series .pcard-name { font-size: 17px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .quick-row { grid-template-columns: 1fr; }
  .quick-row a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .quick-row a:last-child { border-bottom: 0; }
  .section-pad { padding: var(--s-8) 0 var(--s-7); }
  .hero-vis {
    aspect-ratio: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .hero-vis .ph-card {
    grid-row: auto !important;
    grid-column: auto !important;
    aspect-ratio: 1;
  }
  .hero-vis .ph-card figcaption { font-size: 10px; padding: 14px 8px 6px; letter-spacing: 0.02em; }
  .origin-card .info-side .row {
    flex-direction: column;
    gap: 2px;
  }
  .origin-card .info-side .row .k { width: auto; font-size: 12px; }
  .origin-card .info-side .row .v { font-size: 13px; }
  .cta-strip h3 { font-size: 22px; }
  .cta-strip p { font-size: 13.5px; }
  .why-card .big { font-size: 36px; }
  .why-card .big small { font-size: 15px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { font-size: 12.5px; }
  .why-card .big { font-size: 30px; }
  .origin-card.premium::before { font-size: 9.5px; padding: 5px 10px; }
}
