/*!
 * Granīta Dizains — granitadizains.lv
 * © 2026 Granīta Dizains. All rights reserved.
 * Unauthorized copying or reproduction is prohibited.
 */

/* ==============================
   GRANĪTA DIZAINS — Main Styles
   ============================== */

/* ── Custom Properties ── */
:root {
  --black:       #0d0d0d;
  --dark:        #1a1a1a;
  --dark-mid:    #252525;
  --mid:         #333333;
  --mid-light:   #444444;
  --border:      #2e2e2e;
  --gold:        #c9a84c;
  --gold-light:  #dfc27a;
  --gold-dim:    rgba(201, 168, 76, 0.15);
  --text:        #e8e4dc;
  --text-muted:  #a8a29e;
  --text-dim:    #8a8480;
  --white:       #ffffff;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
  --transition:  0.3s ease;
  --nav-h:       72px;
  --font-serif:  'Cinzel', Georgia, serif;
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --combo-label: 'iekļauts';
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* overflow-x: clip (not hidden) — clip does NOT create a scroll container so
     position:sticky children still work, but it does clip ripple/shadow overflow
     that would otherwise cause horizontal scroll on mobile. */
  overflow-x: clip;
  /* Prevent iOS rubber-band horizontal scroll (overscroll bounce) */
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--white);
}

h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; }

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ── Content visibility — skip rendering of off-screen sections ── */
#gallery, #about, #process, #contact {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 14px auto 0;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  min-height: 44px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--mid-light);
  color: var(--text);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ── Focus-visible: keyboard navigation styles ── */
.btn:focus-visible,
.nav-builder-btn:focus-visible,
.lang-btn:focus-visible,
.nav-toggle:focus-visible,
.filter-btn:focus-visible,
.gallery-more-btn:focus-visible,
.gallery-item:focus-visible,
.btn-outline-gold:focus-visible,
.cta-popup-btn:focus-visible,
.qpopup-btn:focus-visible,
.qpopup-close:focus-visible,
.cta-popup-close:focus-visible,
.calc-tab-btn:focus-visible,
.adv-preset:focus-visible,
.adv-toggle-row:focus-visible,
.granite-more-btn:focus-visible,
.radio-card:focus-visible,
.check-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* ── Fade-up animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PROMO BANNER
   ======================================== */
:root {
  --banner-h: 34px;
  /* total banner height including iPhone notch/Dynamic Island safe area */
  --total-banner-h: calc(var(--banner-h) + env(safe-area-inset-top, 0px));
}

#promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--total-banner-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(90deg, #1a1208 0%, #211a08 40%, #1a1208 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.promo-track {
  display: flex;
  white-space: nowrap;
  animation: promo-scroll 50s linear infinite;
  will-change: transform;
}

.promo-segment {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(223, 194, 122, 0.88);
}

.promo-badge {
  display: inline-block;
  background: var(--gold);
  color: #0d0d0d;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 2px;
  flex-shrink: 0;
}

.promo-hl {
  color: var(--gold-light);
  font-weight: 600;
}

.promo-sep {
  color: rgba(201, 168, 76, 0.45);
  font-size: 9px;
}

@keyframes promo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
  position: fixed;
  top: var(--total-banner-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.nav-logo-glow-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: fit-content;
}

.nav-logo-glow-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201,168,76,0.14) 0%,
    rgba(201,168,76,0.05) 50%,
    transparent 72%);
  animation: haloBreath 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.nav-logo-glow-wrap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 110px; height: 110px;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(201,168,76,0.03) 0deg,
    rgba(201,168,76,0.03) 7deg,
    transparent 7deg,
    transparent 20deg
  );
  -webkit-mask-image: radial-gradient(circle,
    transparent 22%,
    rgba(0,0,0,0.5) 38%,
    rgba(0,0,0,0.3) 58%,
    transparent 74%);
  mask-image: radial-gradient(circle,
    transparent 22%,
    rgba(0,0,0,0.5) 38%,
    rgba(0,0,0,0.3) 58%,
    transparent 74%);
  animation: divineRotate 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.nav-logo-img {
  max-height: 56px;
  width: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.7));
  animation: navLogoGlow 5s ease-in-out infinite;
}

@keyframes navLogoGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 4px rgba(201,168,76,0.15)); }
  50%       { filter: brightness(1.08) drop-shadow(0 0 10px rgba(201,168,76,0.35)); }
}

/* Thin vertical separator between logo and text */
.nav-logo-sep {
  display: block;
  width: 1px;
  height: 32px;
  background: rgba(201, 168, 76, 0.28);
  flex-shrink: 0;
}

/* Brand text block */
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

/* Animated gold shimmer on the main name */
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  /* GPU layer prevents iOS shimmer flicker */
  transform: translateZ(0);
  backface-visibility: hidden;
  background: linear-gradient(
    90deg,
    #c9a84c 0%,
    #f0d98a 30%,
    #c9a84c 50%,
    #dfc27a 70%,
    #c9a84c 100%
  );
  background-size: 280% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 5s linear infinite;
}

@keyframes brandShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 280% center; }
}

/* Subtle .LV domain suffix */
.nav-brand-tld {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(201, 168, 76, 0.68);
  text-transform: uppercase;
  padding-left: 1px;
}

/* ── Hero logo ── */
.hero-logo-wrap {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Divine halo — deep radial glow behind logo */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201,168,76,0.22) 0%,
    rgba(201,168,76,0.10) 40%,
    rgba(201,168,76,0.03) 62%,
    transparent 76%);
  animation: haloBreath 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes haloBreath {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

/* Divine rays — slow rotating conic light emanating from logo */
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 540px; height: 540px;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(201,168,76,0.06) 0deg,
    rgba(201,168,76,0.06) 7deg,
    transparent 7deg,
    transparent 20deg
  );
  -webkit-mask-image: radial-gradient(circle,
    transparent 18%,
    rgba(0,0,0,0.7) 32%,
    rgba(0,0,0,0.5) 52%,
    transparent 70%);
  mask-image: radial-gradient(circle,
    transparent 18%,
    rgba(0,0,0,0.7) 32%,
    rgba(0,0,0,0.5) 52%,
    transparent 70%);
  animation: divineRotate 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes divineRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-logo-img {
  width: 320px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  /* GPU layer prevents iOS Safari filter-animation flicker */
  transform: translateZ(0);
  backface-visibility: hidden;
  animation:
    heroLogoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
    logoGlow   4s ease-in-out 1.1s infinite;
}

.hero-logo-img:hover {
  animation-play-state: paused;
  filter:
    drop-shadow(0 0 24px rgba(201,168,76,0.9))
    drop-shadow(0 0 60px rgba(201,168,76,0.45))
    brightness(1.2);
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: scale(0.78);
    filter: brightness(0.4) drop-shadow(0 0 0px rgba(201,168,76,0));
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 16px rgba(201,168,76,0.3));
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter:
      brightness(1)
      drop-shadow(0 0 10px rgba(201,168,76,0.28))
      drop-shadow(0 0 28px rgba(201,168,76,0.10));
  }
  50% {
    filter:
      brightness(1.2)
      drop-shadow(0 0 32px rgba(201,168,76,0.80))
      drop-shadow(0 0 80px rgba(201,168,76,0.38))
      drop-shadow(0 0 130px rgba(201,168,76,0.14));
  }
}

/* ── Animated ornament ── */
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-ornament-line {
  height: 1px;
  width: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(201,168,76,0.6), transparent);
  animation: ornamentLine 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-ornament-line:last-child {
  background: linear-gradient(270deg, rgba(201,168,76,0.6), transparent);
}

@keyframes ornamentLine {
  to { width: 88px; opacity: 1; }
}

.hero-ornament-gem {
  color: var(--gold);
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0;
  animation: gemPop 0.4s ease 0.9s forwards;
}

@keyframes gemPop {
  0%   { opacity: 0; transform: scale(0) rotate(45deg); }
  70%  { transform: scale(1.3) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Cycling animated subtitle ── */
.hero-cycle-wrap {
  height: 26px;
  overflow: hidden;
  margin-bottom: 26px;
}

.hero-cycle-text {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(201, 168, 76, 0.45);
  animation: cycleSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-cycle-text.exiting {
  animation: cycleSlideOut 0.38s ease forwards;
}

@keyframes cycleSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cycleSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-builder-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  color: #0d0d0d;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  /* overflow:clip instead of overflow:hidden — clip does not create a scroll container
     so position:sticky ancestors are unaffected, and focus rings on this focusable
     button are no longer clipped by the ::before shimmer overflow. */
  overflow: clip;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  animation: builder-pulse 3s ease-in-out infinite;
}

.nav-builder-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.nav-builder-btn:hover::before {
  transform: translateX(100%);
}

.nav-builder-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #0d0d0d;
  box-shadow: 0 4px 18px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

.nav-builder-btn svg {
  flex-shrink: 0;
}

@keyframes builder-pulse {
  0%, 100% { box-shadow: 0 0 4px 0 rgba(201,168,76,0.2), 0 0 0 0 rgba(201,168,76,0); border-color: var(--gold); }
  50%       { box-shadow: 0 0 14px 3px rgba(201,168,76,0.45), 0 0 0 4px rgba(201,168,76,0.1); border-color: var(--gold-light); }
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color var(--transition);
  padding: 5px 8px;
  border-radius: var(--radius);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--gold);
}

.lang-btn.active {
  background: var(--gold-dim);
}

.lang-btn span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }


.lang-sep {
  color: var(--border);
  font-size: 0.75rem;
  -webkit-user-select: none;
  user-select: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url('images/granita-pieminekli-latvija-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.88) 0%,
    rgba(13, 13, 13, 0.65) 60%,
    rgba(13, 13, 13, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: calc(var(--total-banner-h) + var(--nav-h) + 40px) 24px 40px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* .hero-badge replaced by .hero-tagline */

.hero-content h1 {
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-title-gold {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.hero-services-line {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 10px;
  letter-spacing: 0.03em;
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(232, 228, 220, 0.85);
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats bar ── */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 32px;
  flex: 1;
  min-width: 150px;
  cursor: default;
  position: relative;
  transition: background 0.35s ease;
  overflow: hidden;
}

/* Gold top-bar reveal on hover */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  background: rgba(201, 168, 76, 0.045);
}

/* Big gold count number */
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: text-shadow 0.35s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.stat-item:hover .stat-num {
  text-shadow: 0 0 28px rgba(201, 168, 76, 0.45);
}

/* Quality gem icon */
.stat-icon-gem {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  /* filter removed from transition — transitioning filter triggers a compositor
     layer promotion on every frame, causing jank. filter snaps on hover instead. */
  transition: transform 0.35s ease;
}
.stat-icon-gem svg {
  width: 52px;
  height: 44px;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.25));
}
.stat-item:hover .stat-icon-gem {
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.55));
  transform: scale(1.08);
}

/* Stars row */
.stat-stars-row {
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 4px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* letter-spacing removed from transition — animating it triggers layout on every frame.
     Using transform: scaleX() instead for a GPU-composited spread effect. */
  transition: text-shadow 0.35s ease, transform 0.35s ease;
  transform-origin: center;
}

.stat-item:hover .stat-stars-row {
  text-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
  transform: scaleX(1.08);
}

/* Guarantee shield icon */
.stat-shield {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  /* filter removed from transition — same jank reason as .stat-icon-gem above. */
  transition: transform 0.35s ease;
}

.stat-shield svg {
  width: 40px;
  height: 40px;
  display: block;
}

.stat-item:hover .stat-shield {
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.55));
  transform: scale(1.08);
}

/* Short gold rule between number and label */
.stat-bar {
  width: 28px;
  height: 1px;
  background: rgba(201, 168, 76, 0.4);
  transition: width 0.35s ease, background 0.35s ease;
}

.stat-item:hover .stat-bar {
  width: 44px;
  background: rgba(201, 168, 76, 0.75);
}

/* Uppercase tracked label */
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.35s ease;
}

.stat-item:hover .stat-label {
  color: rgba(201, 168, 76, 0.7);
}

.stat-divider {
  width: 1px;
  background: rgba(201, 168, 76, 0.1);
  align-self: stretch;
  margin: 20px 0;
  flex-shrink: 0;
}

/* ========================================
   SERVICES
   ======================================== */
#services {
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--dark);
  padding: 48px 36px 44px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: #1e1c17;
}

.svc-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(201, 168, 76, 0.18);
  transition: color var(--transition);
}

.service-card:hover .svc-num {
  color: rgba(201, 168, 76, 0.45);
}

.service-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(201, 168, 76, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

/* subtle outer glow ring on hover */
.service-card:hover .service-icon {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.06);
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.05);
}

.service-icon svg {
  width: 38px;
  height: 38px;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ========================================
   GALLERY
   ======================================== */
#gallery {
  background: var(--black);
}

.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.gallery-item {
  position: relative;
  /* overflow:clip instead of overflow:hidden — .gallery-item is keyboard-focusable
     (it's in the :focus-visible list). overflow:hidden clips the :focus-visible outline;
     overflow:clip masks the image/overlay without creating a scroll container,
     so the outline paints correctly outside the element boundary. */
  overflow: clip;
  aspect-ratio: 1;
  background: var(--dark-mid);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.gallery-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  font-size: 0.9rem;
}

/* Gallery — View More */
.gallery-item.gallery-hidden {
  display: none !important;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 48px;
}

.gallery-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.gallery-more-btn:hover {
  background: var(--gold);
  color: var(--black);
}

.gmb-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background var(--transition);
}

.gallery-more-btn:hover .gmb-count {
  background: rgba(0,0,0,0.2);
}

.gmb-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.gallery-more-btn.expanded .gmb-arrow {
  transform: rotate(180deg);
}

/* ========================================
   CTA STRIP
   ======================================== */
.cta-strip {
  background: linear-gradient(135deg, #1a1508 0%, #211c0d 50%, #1a1508 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-strip-text {
  flex: 1;
  min-width: 0;
}

.cta-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cta-strip-text h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.cta-strip-text h2::after {
  display: none;
}

.cta-strip-text > p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}

.cta-strip-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cta-phone-btn {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  gap: 10px;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius);
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-outline-gold:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .cta-strip-text > p:last-child {
    margin: 0 auto;
  }
  .cta-strip-actions {
    justify-content: center;
  }
}

/* ========================================
   ABOUT
   ======================================== */
#about {
  background: var(--dark);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  filter: brightness(0.92);
}

.about-years {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--black);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.about-years strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.about-years span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-text h2 {
  margin: 10px 0 16px;
}

.about-text > p {
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.8;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 2px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.feature-item p {
  font-size: 0.87rem;
  line-height: 1.6;
}

/* ========================================
   PROCESS
   ======================================== */
#process {
  background: var(--dark-mid);
}

/* ── Timeline layout ── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  padding-top: 8px;
}

/* Single continuous gold line behind all circles */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 76px; /* align with circle centers: num(2.8rem≈45px) + mb(20px) + half-circle(30px) */
  left: calc(12.5%);   /* start at center of first step */
  right: calc(12.5%);  /* end at center of last step */
  height: 1px;
  background: linear-gradient(to right,
    rgba(201,168,76,0.15),
    rgba(201,168,76,0.5) 20%,
    rgba(201,168,76,0.5) 80%,
    rgba(201,168,76,0.15)
  );
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px 40px;
  position: relative;
  z-index: 1;
}

.pstep-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.13);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.pstep-node {
  margin-bottom: 22px;
}

.pstep-line { display: none; } /* replaced by ::before on parent */

.pstep-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--dark-mid);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.process-step:hover .pstep-circle {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(201, 168, 76, 0.18);
}

.pstep-circle svg {
  width: 22px;
  height: 22px;
}

.pstep-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.pstep-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
#contact {
  background: var(--dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact info */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 2px;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-val {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

a.contact-val:hover {
  color: var(--gold);
}

.hours-table {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 20px;
  align-items: center;
}

.hours-table span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hours-table span:nth-child(even) {
  color: var(--text);
  font-weight: 500;
}

/* Map */
.map-wrap {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  display: block;
}

/* Contact form */
.contact-form-wrap {
  background: var(--dark-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-wrap h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.contact-form-wrap > p {
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: var(--dark-mid);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-success {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-error {
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #e07070;
  font-size: 0.88rem;
  margin-top: 10px;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-logo-wrap {
  position: relative;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
}

.footer-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201,168,76,0.20) 0%,
    rgba(201,168,76,0.08) 42%,
    transparent 68%);
  animation: haloBreath 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.footer-logo-wrap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(201,168,76,0.05) 0deg,
    rgba(201,168,76,0.05) 7deg,
    transparent 7deg,
    transparent 20deg
  );
  -webkit-mask-image: radial-gradient(circle,
    transparent 18%,
    rgba(0,0,0,0.6) 32%,
    rgba(0,0,0,0.4) 52%,
    transparent 70%);
  mask-image: radial-gradient(circle,
    transparent 18%,
    rgba(0,0,0,0.6) 32%,
    rgba(0,0,0,0.4) 52%,
    transparent 70%);
  animation: divineRotate 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.footer-logo-img {
  width: 160px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  animation: logoGlow 4s ease-in-out infinite;
}

.footer-brand-name-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-bottom: 14px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.footer-brand-tld {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(201,168,76,0.6);
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-list svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-contact-list a,
.footer-contact-list span {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-contact-list a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom span,
.footer-bottom a {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-reg {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.65;
}

/* ========================================
   FLOATING PHONE BUTTON
   ======================================== */
.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

/* ── FAB stack container — both buttons share one fixed anchor so they can never misalign ── */
.fab-stack {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-btn {
  position: relative;
  bottom: auto;
  right: auto;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45);
}

.phone-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(201, 168, 76, 0.6);
}

.phone-btn svg {
  width: 22px;
  height: 22px;
}

/* Ripple pulse rings */
.phone-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201,168,76,0.65);
  animation: phoneRipple 2.6s ease-out infinite;
}

@keyframes phoneRipple {
  0%   { box-shadow: 0 0 0 0   rgba(201,168,76,0.65); }
  70%  { box-shadow: 0 0 0 20px rgba(201,168,76,0);   }
  100% { box-shadow: 0 0 0 20px rgba(201,168,76,0);   }
}

/* CTA label that slides in on hover */
.float-btn-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: rgba(12,12,12,0.93);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 3px;
  border: 1px solid rgba(201,168,76,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.float-btn-label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid rgba(201,168,76,0.28);
}

.float-btn:hover .float-btn-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ========================================
   QUESTIONS POPUP
   ======================================== */
.qpopup {
  position: fixed;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  z-index: 500;
  width: 300px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.qpopup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.qpopup-inner {
  background: var(--dark-mid);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  position: relative;
}

.qpopup-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.qpopup-close:hover { color: var(--gold); }

.qpopup-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.qpopup-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.qpopup-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.qpopup-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.qpopup-actions {
  display: flex;
  gap: 8px;
}

.qpopup-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.qpopup-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.qpopup-btn-phone {
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.25);
}
.qpopup-btn-phone:hover { background: rgba(201,168,76,0.25); }

.qpopup-btn-wa {
  background: rgba(37,211,102,0.12);
  color: #4ade80;
  border: 1px solid rgba(37,211,102,0.2);
}
.qpopup-btn-wa:hover { background: rgba(37,211,102,0.22); }

.qpopup-btn-msg {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.qpopup-btn-msg:hover { background: rgba(255,255,255,0.1); }

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--dark-mid);
  border-top: 1px solid var(--border);
  padding: 18px calc(24px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ========================================
   CTA POPUP
   ======================================== */
.cta-popup {
  position: fixed;
  bottom: 164px;
  right: 24px;
  width: 272px;
  z-index: 89;
  background: var(--dark-mid);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 10px;
  /* overflow:clip instead of overflow:hidden — .cta-popup-btn is keyboard-focusable.
     overflow:hidden would clip the :focus-visible outline; overflow:clip masks the
     rounded corners without creating a scroll container, allowing focus rings to show. */
  overflow: clip;
  box-shadow: 0 12px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(201,168,76,0.06);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), opacity 0.38s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

@media (max-width: 480px) {
  .cta-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 14px 14px 0 0;
    transform: translateY(110%);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 400;
  }
  .cta-popup.visible {
    transform: translateY(0);
  }
  .cta-popup-backdrop {
    display: block;
  }
}

.cta-popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 399;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cta-popup-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.cta-popup.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cta-popup-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, #f0d98a 50%, var(--gold) 100%);
  background-size: 200% auto;
  animation: brandShimmer 4s linear infinite;
}

.cta-popup-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.cta-popup-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

.cta-popup-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px 10px 16px;
}

.cta-popup-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.cta-popup-heading {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.cta-popup-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cta-popup-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.cta-popup-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-popup-phone {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.cta-popup-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.5);
  color: var(--black);
}

.cta-popup-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.cta-popup-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  color: #fff;
}

/* ========================================
   RESPONSIVE — Tablet (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  /* Hide connecting line on items that wrap to new row */
  .process-step:nth-child(2) .pstep-line,
  .process-step:nth-child(4) .pstep-line {
    display: none;
  }

  .about-inner {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   RESPONSIVE — Mobile (max 900px)
   ======================================== */
@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
    --banner-h: 30px;
  }

  section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-builder-btn {
    display: none;
  }

  .nav-brand-tld {
    display: none;
  }

  .nav-brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .promo-segment {
    font-size: 10.5px;
    gap: 10px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--total-banner-h) + var(--nav-h));
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(13,13,13,0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  /* Hero */
  #hero {
    min-height: 88vh;
    min-height: 88svh;
  }

  .hero-content {
    padding: calc(var(--total-banner-h) + var(--nav-h) + 40px) 20px 28px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(201,168,76,0.12);
    padding: 0;
  }

  .stat-item {
    width: 100%;
    padding: 16px 12px;
    background: rgba(10,10,10,0.97);
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .stat-num {
    font-size: 1.8rem;
    min-height: auto;
  }

  .stat-icon-gem,
  .stat-stars-row,
  .stat-shield {
    min-height: auto;
  }

  .stat-stars-row {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  .stat-label {
    font-size: 0.68rem;
    text-align: center;
  }

  .stat-bar {
    display: none;
  }

  .stat-divider {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .service-card {
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-icon {
    margin-bottom: 18px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-more-wrap { margin-top: 32px; }
  .gallery-more-btn { padding: 12px 24px; font-size: 0.88rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { min-height: 44px; font-size: 16px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-photo img {
    height: 320px;
  }

  .about-years {
    bottom: -16px;
    right: 16px;
  }

  /* Process */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .process-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-bottom: 1px solid var(--border);
  }
  .process-step:last-child { border-bottom: none; }
  .pstep-num {
    font-size: 2rem;
    margin-bottom: 0;
    min-width: 44px;
  }
  .pstep-node {
    flex-direction: column;
    width: auto;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .pstep-line { display: none; }
  .pstep-circle { width: 52px; height: 52px; }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrap {
    padding: 28px 22px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Cookie */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   RESPONSIVE — Small mobile (max 480px)
   ======================================== */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 260px;
  }

  .about-years {
    right: 12px;
    bottom: -12px;
  }

  .hero-stats .stat-item {
    padding: 14px 10px;
  }

  #hero {
    min-height: 85vh;
    min-height: 85svh;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 22px 16px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 44px;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }

  /* Nav brand smaller on tiny screens */
  .nav-brand-name {
    font-size: 0.65rem;
  }

  /* Hero cycle text — tighter on small screens */
  .hero-cycle-text {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  /* Calculator radio cards — better touch targets */
  .radio-card {
    min-height: 56px;
  }

  /* Questions popup — full-width minus margin */
  .qpopup {
    width: calc(100% - 32px);
    right: 16px;
  }

  /* FAB stack — pull in from edge on mobile */
  .fab-stack { right: 16px; }
  .phone-btn,
  .whatsapp-btn {
    width: 48px;
    height: 48px;
  }

  /* Cookie banner buttons — stack vertically on tiny screens */
  .cookie-btns {
    flex-direction: column;
    width: 100%;
  }
  .cookie-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── WhatsApp button ── */
.whatsapp-btn {
  position: relative;
  bottom: auto;
  right: auto;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37,211,102,0.55);
}
.whatsapp-btn svg { width: 24px; height: 24px; }

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
  animation: waRipple 2.6s ease-out 1.3s infinite;
}

@keyframes waRipple {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0);  }
  100% { box-shadow: 0 0 0 18px rgba(37,211,102,0);  }
}

/* ── Price Calculator ── */
#calculator { background: var(--dark-mid); }

.calc-wrapper {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  /* overflow:hidden removed — clips keyboard focus outlines on inner elements.
     Use overflow:clip instead which still paints the border-radius mask without
     creating a new scroll container that would break position:sticky inside. */
  overflow: clip;
}

.calc-header {
  padding: 48px 48px 0;
  text-align: center;
}
.calc-header h2 { margin: 8px 0 12px; }
.calc-header p { max-width: 500px; margin: 0 auto; }

.calc-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  margin-top: 40px;
}

.calc-options { padding: 0 48px 48px; border-right: 1px solid var(--border); }

.calc-group { margin-bottom: 32px; }
.calc-group:last-child { margin-bottom: 0; }

.calc-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.calc-radios { display: flex; gap: 10px; flex-wrap: wrap; }

.calc-radio { position: relative; }
.calc-radio input { position: absolute; opacity: 0; width: 0; height: 0; }

.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-width: 110px;
  text-align: center;
  background: var(--dark-mid);
}

.radio-icon { width: 28px; height: 28px; color: var(--text-muted); transition: color var(--transition); }

.radio-card strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.radio-card span {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.calc-radio input:checked + .radio-card {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.calc-radio input:checked + .radio-card strong { color: var(--gold); }
.calc-radio input:checked + .radio-card .radio-icon { color: var(--gold); }
.radio-card:hover { border-color: rgba(201,168,76,0.5); }

/* Checkboxes */
.calc-checks { display: flex; gap: 10px; flex-wrap: wrap; }

/* Borders + surface included in combo — dim first two, show "iekļauts" via CSS */
.calc-checks.combo-active .calc-check:nth-child(1),
.calc-checks.combo-active .calc-check:nth-child(2) {
  opacity: 0.4;
  pointer-events: none;
}
.calc-checks.combo-active .calc-check:nth-child(1) .check-card::after,
.calc-checks.combo-active .calc-check:nth-child(2) .check-card::after {
  content: var(--combo-label, 'iekļauts');
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.calc-check { position: relative; }
.calc-check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: var(--dark-mid);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.check-card svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: color var(--transition); }

.calc-check input:checked + .check-card {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--text);
}
.calc-check input:checked + .check-card svg { color: var(--gold); }
.check-card:hover { border-color: rgba(201,168,76,0.5); }

/* Result panel */
.calc-result {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(201,168,76,0.07) 0%, transparent 60%);
  gap: 0;
}

.result-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.result-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-price #calcMin,
.result-price #calcMax {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  transition: opacity 0.3s ease;
}

.result-dash { font-family: var(--font-serif); font-size: 1.8rem; color: var(--text-dim); }
.result-currency { font-size: 1.4rem; font-weight: 700; color: var(--gold); align-self: flex-start; margin-top: 4px; }

.result-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 16px 0 28px;
  max-width: 240px;
}

.result-individual { margin: 8px 0 4px; }
.result-indiv-label {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.calc-cta { width: 100%; justify-content: center; margin-bottom: 16px; }

.result-phone {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.result-phone a { color: var(--gold); font-weight: 600; }

/* Calculator responsive */
@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-options { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 36px; }
  .calc-header { padding: 36px 28px 0; }
  .calc-options { padding: 0 28px 36px; }
  .calc-result { padding: 36px 28px; }
}

@media (max-width: 600px) {
  .calc-header { padding: 28px 20px 0; }
  .calc-options { padding: 0 20px 28px; }
  .calc-result { padding: 28px 20px; }
  .calc-radios { flex-direction: column; }
  .radio-card {
    min-width: unset;
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    text-align: left;
    align-items: center;
  }
  .radio-card .radio-icon { grid-column: 1; grid-row: 1 / 3; justify-self: center; }
  .radio-card strong     { grid-column: 2; grid-row: 1; align-self: end; }
  .radio-card > span     { grid-column: 2; grid-row: 2; align-self: start; }
  .calc-checks { flex-direction: column; }
  .calc-tabs { width: 100%; }
  .calc-tab-btn { flex: 1; padding: 10px 12px; font-size: 0.8rem; }
  .hero-logo-img { width: 240px; }
  .map-wrap iframe { height: 180px; }
}

/* ========================================
   CALCULATOR TABS
   ======================================== */
.calc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* overflow:hidden removed — it clips keyboard focus outlines on first/last tab button.
     Individual tab buttons clip their own backgrounds via border-radius inherited from parent. */
  width: fit-content;
  max-width: 100%;
}

.calc-tab-btn {
  padding: 11px 28px;
  background: var(--dark);
  color: var(--text-muted);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.calc-tab-btn.active {
  background: var(--gold);
  color: var(--black);
}

.calc-tab-btn:not(.active):hover {
  background: var(--dark-mid);
  color: var(--text);
}

/* Round the outer corners of the first and last tab so backgrounds don't bleed
   outside the container now that overflow:hidden was removed to allow focus rings */
.calc-tab-btn:first-child { border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
.calc-tab-btn:last-child  { border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }

.calc-panel { display: block; }
.calc-panel.hidden { display: none; }

/* ========================================
   ADVANCED CALCULATOR
   ======================================== */
.adv-calc-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

/* Left config column */
.adv-config {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adv-section {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition);
}

.adv-section:hover {
  border-color: rgba(201,168,76,0.25);
}

.adv-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.adv-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.adv-toggle-row input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.adv-section-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold);
  opacity: 0.75;
}
.adv-section-icon svg {
  width: 16px;
  height: 16px;
}
.adv-toggle-row:has(input:checked) .adv-section-icon {
  opacity: 1;
}

.adv-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

/* Sub-toggle: smaller row inside a component config */
.adv-sub-toggle {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.adv-sub-toggle .adv-toggle-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.adv-size-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adv-size-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.adv-size-inp {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.adv-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.adv-badge-monument { background: rgba(45,58,74,0.8);   color: #c8dff0; }
.adv-badge-border   { background: rgba(74,85,104,0.8);  color: #d0dce8; }
.adv-badge-surface  { background: rgba(113,128,150,0.6);color: #e8edf2; }
.adv-badge-fill     { background: rgba(55,75,40,0.6);   color: #c0e896; }
.adv-badge-klumb    { background: rgba(80,55,30,0.7);   color: #f0c890; }
.adv-badge-entry    { background: rgba(201,168,76,0.2); color: #e0bf6e; }
.adv-badge-vases    { background: rgba(60,90,60,0.6);   color: #b4e8a0; }
.adv-badge-lantern  { background: rgba(80,70,20,0.7);   color: #f0dc80; }
.adv-badge-photo    { background: rgba(40,60,90,0.7);   color: #a8ccf0; }
.adv-badge-bench    { background: rgba(55,45,80,0.7);   color: #d8ccf8; }
.adv-badge-zeme     { background: rgba(90,65,40,0.6);   color: #e8c898; }
.adv-badge-montaza  { background: rgba(50,70,100,0.7);  color: #b8d8f4; }
.adv-badge-flower   { background: rgba(45,106,79,0.4);  color: #98e4c0; }
.adv-badge-gravel   { background: rgba(90,90,90,0.4);   color: #d0d0d0; }

.adv-component-config {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.adv-sub-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 12px;
}

.adv-sub-label:first-child { margin-top: 0; }

.adv-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px; /* small gap after a preset group before the next label */
}

.adv-preset {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), color var(--transition);
  font-family: var(--font-sans);
}

.adv-preset:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--text);
}

.adv-preset.active {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.adv-custom-size {
  margin-top: 10px;
  /* Smooth reveal via @starting-style (Chrome 117+ / Safari 17.4+).
     JS toggles display:none/block; @starting-style fires on the first paint
     after display:block, allowing the opacity transition to run. */
  transition: opacity 0.2s ease;
}
@starting-style {
  .adv-custom-size {
    opacity: 0;
  }
}

/* ── Granite swatch grid ── */
.granite-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 2px;
}
/* .granite-swatch overrides .adv-preset text-button styles */
.granite-swatch,
.adv-preset.granite-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.12) !important;
  padding: 0 !important;
  cursor: pointer;
  background: transparent !important;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  color: transparent !important;
  font-size: 0 !important;
}
.adv-preset.granite-swatch:hover {
  transform: scale(1.14);
  z-index: 1;
  border-color: rgba(255,255,255,0.2) !important;
  color: transparent !important;
}
.adv-preset.granite-swatch.active {
  background: transparent !important;
  box-shadow: 0 0 0 2px #c9a84c, 0 0 0 4px rgba(201,168,76,0.28) !important;
  transform: scale(1.18);
  border-color: rgba(255,255,255,0.25) !important;
}
.gs-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.granite-selected-name {
  font-size: 11px;
  color: #c8c8c8;
  margin-top: 3px;
  min-height: 14px;
  letter-spacing: 0.02em;
}
/* "More colors" button — sits inline with swatches */
.granite-more-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #c8c8c8;
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  align-self: center;
}
.granite-more-btn:hover,
.granite-more-btn.open {
  border-color: rgba(201,168,76,0.5);
  color: #c9a84c;
}
/* Extra swatches row */
.granite-swatch-extra {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Wrap preset row (for slab sizes) */
.adv-presets-wrap {
  flex-wrap: wrap;
  gap: 4px;
}
/* Slab shape selector grid — 4 equal columns */
.adv-shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 4px;
}
.adv-shape-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px 6px !important;
  font-size: 0.65rem !important;
  line-height: 1.1;
  min-height: unset !important;
  color: var(--text-muted);
}
.adv-shape-btn svg {
  width: 34px;
  height: 52px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.adv-shape-btn:hover svg { color: rgba(255,255,255,0.8); }
.adv-shape-btn.active svg { color: #c9a84c; }
.adv-shape-btn.active    { color: #c9a84c; }

.adv-size-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.adv-size-row input[type=number] {
  width: 68px;
  padding: 6px 8px;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-align: center;
  /* Hide browser spinner arrows — they don't match the dark theme */
  -moz-appearance: textfield;
  appearance: textfield;
}
/* Webkit/Blink spinner pseudo-elements */
.adv-size-row input[type=number]::-webkit-inner-spin-button,
.adv-size-row input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.adv-size-row input[type=number]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

/* Right preview column */
.adv-preview-col {
  position: sticky;
  top: calc(var(--total-banner-h) + var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adv-preview-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* Plot canvas wrapper */
.plot-canvas-wrap {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 300px;
}

/* Outer wrap: canvas + bench side by side */
.plot-outer-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* The plot rectangle — background = border/apmale color */
.plot-canvas {
  position: relative;
  /* overflow:clip instead of overflow:hidden — both clip child content at the element
     boundary, but overflow:hidden also creates a scroll container and, critically,
     causes Chrome to allocate a SEPARATE GPU compositing clip surface when combined
     with transform:translateZ(0). That clip surface can be initialised white by
     Chrome's compositor, leaking white pixels where clip-path sub-layers have
     partial transparency (AA edges). overflow:clip clips without creating the
     separate compositing surface → no white initialisation.
     The klumbiņas' outset border (1.5px) and shadows still get clipped cleanly. */
  overflow: clip;
  background: #1e1e1e; /* default: melna granīts */
  /* GPU compositing layer: snaps canvas boundary to physical pixels, eliminating
     sub-pixel fringe visible on dark granites at non-integer device pixel ratios.
     Safe to use with overflow:clip (unlike overflow:hidden which allocates a white
     clip surface). All children use polygon() clips (software, no GPU sub-layers)
     so there is no white intermediate compositing buffer from child elements. */
  transform: translateZ(0);
  border-radius: 0;
  width: 144px;
  height: 252px;
  /* No transitions on canvas — all color/size changes must be instant. */
  flex-shrink: 0;
}
/* ── Granite swatch dot colors ── */
.gs-melna         { background: url('images/granites/absolute-black.jpg') center/cover no-repeat; }
.gs-peleka        { background: url('images/granites/kuru-grey.jpg') center/cover no-repeat; filter: brightness(1.15) saturate(0.7); }
.gs-aurora        { background: url('images/granites/aurora.jpg') center/cover no-repeat; }
.gs-swedish-black { background: url('images/granites/absolute-black.jpg') center/cover no-repeat; filter: brightness(0.75) hue-rotate(220deg); }
.gs-vanga-red     { background: url('images/granites/vanga.jpg') center/cover no-repeat; }
.gs-baltic-brown  { background: url('images/granites/aurora.jpg') center/cover no-repeat; filter: sepia(0.6) hue-rotate(10deg) saturate(1.4) brightness(0.85); }
.gs-bohus-red     { background: url('images/granites/bohus-red.jpg') center/cover no-repeat; }
.gs-blue-pearl    { background: url('images/granites/blue-pearl.jpg') center/cover no-repeat; }
.gs-baltic-green  { background: url('images/granites/baltic-green.jpg') center/cover no-repeat; }
.gs-olivia-green  { background: url('images/granites/baltic-green.jpg') center/cover no-repeat; filter: sepia(0.4) hue-rotate(20deg) saturate(0.7) brightness(0.9); }
.gs-kuru-grey     { background: url('images/granites/kuru-grey.jpg') center/cover no-repeat; }
.gs-bohus-grey    { background: url('images/granites/kuru-grey.jpg') center/cover no-repeat; filter: brightness(1.3) saturate(0.4); }
.gs-hallandia     { background: repeating-linear-gradient(148deg, #141414 0px, #2a2a2a 2px, #747474 4px, #c0c0c0 6px, #747474 8px, #2a2a2a 10px, #141414 12px); }
.gs-viscount-white{ background: radial-gradient(circle at 35% 30%, #e2e2e6 0%, #caccce 48%, #9a9eac 100%); }
.gs-carrara-white {
  background:
    linear-gradient(112deg, transparent 36%, rgba(130,130,150,0.42) 36.3%, rgba(130,130,150,0.16) 38%, transparent 38.5%),
    radial-gradient(ellipse at 50% 50%, #fafaf8 0%, #f2efec 65%, #e8e4e0 100%);
}
.gs-giallo-veneziano {
  background:
    radial-gradient(circle at 62% 38%, rgba(90,18,10,0.75) 0%, transparent 22%),
    radial-gradient(circle at 22% 65%, rgba(255,248,220,0.6) 0%, transparent 18%),
    radial-gradient(circle at 38% 30%, #eac038 0%, #c89820 42%, #8b6818 80%, #4a3a10 100%);
}
.gs-kashmir-gold {
  background:
    radial-gradient(circle at 64% 34%, rgba(110,22,10,0.65) 0%, transparent 20%),
    radial-gradient(circle at 24% 68%, rgba(255,244,200,0.55) 0%, transparent 18%),
    radial-gradient(circle at 38% 30%, #e0b030 0%, #c89020 42%, #906818 80%, #4a3010 100%);
}

/* ── Border color variants — applied as class on .plot-canvas ── */
.plot-canvas.bc-melna         { background: url('images/granites/absolute-black.jpg') center/cover no-repeat; }
.plot-canvas.bc-peleka        { background: linear-gradient(rgba(120,145,165,0.22), rgba(100,125,145,0.22)), url('images/granites/kuru-grey.jpg') center/cover no-repeat; }
.plot-canvas.bc-aurora        { background: url('images/granites/aurora.jpg') center/cover no-repeat; }
.plot-canvas.bc-swedish-black { background: linear-gradient(rgba(10,10,28,0.55), rgba(10,10,28,0.55)), url('images/granites/absolute-black.jpg') center/cover no-repeat; }
.plot-canvas.bc-vanga-red     { background: url('images/granites/vanga.jpg') center/cover no-repeat; }
.plot-canvas.bc-baltic-brown  { background: linear-gradient(rgba(80,45,18,0.45), rgba(60,30,10,0.45)), url('images/granites/aurora.jpg') center/cover no-repeat; }
.plot-canvas.bc-bohus-red     { background: url('images/granites/bohus-red.jpg') center/cover no-repeat; }
.plot-canvas.bc-blue-pearl    { background: url('images/granites/blue-pearl.jpg') center/cover no-repeat; }
.plot-canvas.bc-baltic-green  { background: url('images/granites/baltic-green.jpg') center/cover no-repeat; }
.plot-canvas.bc-olivia-green  { background: linear-gradient(rgba(55,65,25,0.35), rgba(45,55,20,0.35)), url('images/granites/baltic-green.jpg') center/cover no-repeat; }
.plot-canvas.bc-kuru-grey     { background: url('images/granites/kuru-grey.jpg') center/cover no-repeat; }
.plot-canvas.bc-bohus-grey    { background: linear-gradient(rgba(220,220,220,0.35), rgba(200,200,200,0.35)), url('images/granites/kuru-grey.jpg') center/cover no-repeat; }
.plot-canvas.bc-hallandia     { background: repeating-linear-gradient(172deg, #1e1e1e 0px, #303030 3px, #606060 6px, #929292 10px, #b0b0b0 13px, #929292 16px, #606060 19px, #303030 22px, #1e1e1e 25px); }
.plot-canvas.bc-viscount-white{ background:
  radial-gradient(ellipse 22px 16px at 32% 42%, rgba(132,136,152,0.6) 0%, transparent 55%),
  radial-gradient(ellipse 18px 13px at 72% 65%, rgba(160,164,174,0.5) 0%, transparent 50%),
  linear-gradient(160deg, #d8d8dc 0%, #c2c4c8 50%, #a8aab0 100%); }
.plot-canvas.bc-carrara-white { background:
  linear-gradient(108deg, transparent 35%, rgba(144,144,160,0.22) 35.5%, rgba(144,144,160,0.1) 37%, transparent 37.5%),
  linear-gradient(115deg, transparent 55%, rgba(184,180,176,0.28) 55.5%, rgba(184,180,176,0.12) 57%, transparent 57.5%),
  radial-gradient(ellipse at 50% 50%, #f8f8f6 0%, #f2efec 60%, #e8e5e2 100%); }

/* ── Klumbiņas inherit border granite color, slightly lighter-faced ── */
.plot-canvas.bc-melna          .plot-klumb-el { background: linear-gradient(135deg, #525252, #2a2a2a); }
.plot-canvas.bc-peleka         .plot-klumb-el { background: linear-gradient(135deg, #9aaab6, #6a7a86); }
.plot-canvas.bc-aurora         .plot-klumb-el { background: linear-gradient(135deg, #a85848, #7a3825); }
.plot-canvas.bc-swedish-black  .plot-klumb-el { background: linear-gradient(135deg, #2e2e2e, #141414); }
.plot-canvas.bc-vanga-red      .plot-klumb-el { background: linear-gradient(135deg, #a03030, #5a1818); }
.plot-canvas.bc-baltic-brown   .plot-klumb-el { background: linear-gradient(135deg, #c89060, #6b3525); }
.plot-canvas.bc-bohus-red      .plot-klumb-el { background: linear-gradient(135deg, #e8a888, #9c4838); }
.plot-canvas.bc-blue-pearl     .plot-klumb-el { background: linear-gradient(135deg, #5080b0, #1e2838); }
.plot-canvas.bc-baltic-green   .plot-klumb-el { background: linear-gradient(135deg, #6a8068, #2a3c2c); }
.plot-canvas.bc-olivia-green   .plot-klumb-el { background: linear-gradient(135deg, #8a8a60, #3a4232); }
.plot-canvas.bc-kuru-grey      .plot-klumb-el { background: linear-gradient(135deg, #a0a4ae, #606470); }
.plot-canvas.bc-bohus-grey     .plot-klumb-el { background: linear-gradient(135deg, #c0c0c0, #808080); }
.plot-canvas.bc-hallandia      .plot-klumb-el { background: repeating-linear-gradient(140deg, #282828 0px, #707070 4px, #b0b0b0 8px, #707070 12px, #282828 16px); }
.plot-canvas.bc-viscount-white .plot-klumb-el { background: linear-gradient(135deg, #d8d8dc, #a0a4ae); }
.plot-canvas.bc-carrara-white  .plot-klumb-el { background: linear-gradient(135deg, #f8f8f6, #d4d0cc); }
.plot-canvas.bc-giallo-veneziano .plot-klumb-el { background: linear-gradient(135deg, #e8c850, #a07820); }
.plot-canvas.bc-kashmir-gold     .plot-klumb-el { background: linear-gradient(135deg, #e0b050, #906018); }

.plot-canvas.bc-giallo-veneziano { background:
  radial-gradient(circle at 22% 28%, rgba(232,200,80,0.7) 0%, transparent 30%),
  radial-gradient(circle at 65% 60%, rgba(200,160,48,0.6) 0%, transparent 28%),
  radial-gradient(circle at 48% 18%, #3a3020 0%, transparent 10%),
  radial-gradient(circle at 80% 75%, #3a3020 0%, transparent 8%),
  linear-gradient(160deg, #d4a828 0%, #c09020 50%, #8b6c1a 100%); }
.plot-canvas.bc-kashmir-gold { background:
  radial-gradient(circle at 25% 35%, rgba(224,176,80,0.65) 0%, transparent 28%),
  radial-gradient(circle at 70% 58%, rgba(196,144,60,0.55) 0%, transparent 25%),
  radial-gradient(circle at 50% 20%, #2a200a 0%, transparent 10%),
  radial-gradient(circle at 82% 78%, #2a200a 0%, transparent 8%),
  linear-gradient(160deg, #cc9828 0%, #b07e18 50%, #7a5810 100%); }

/* Base class for all absolutely positioned plot elements.
   No transition here — individual elements set transition:none via JS to prevent
   Chrome from promoting them to GPU compositing layers, which causes 1px white seams
   between adjacent composited/non-composited elements. */
.plot-el {
  position: absolute;
  border-radius: 0;
}

/* ── Loose fill element (oļi/šķembas/smiltis) — same z as surface, covers ground ── */
.plot-fill-el { z-index: 2; box-shadow: none; border-radius: 0; }

/* ── Slab frame — rectangular granite base that shaped slabs sit on ── */
/* NOTE: this class is NEVER assigned by JS (JS uses plot-surface-slab instead).
   Kept for reference only. No border here — a border with box-sizing:border-box
   would steal px from clip-path coordinates and produce white fringe on inner edge. */
.plot-slab-frame-el {
  z-index: 1;
  border-radius: 2px;
  filter: brightness(0.48) saturate(0.55);
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* ── Ground / zeme — always visible inside border ring ── */
.plot-ground-el {
  z-index: 1;
  background:
    radial-gradient(ellipse at 35% 55%, #6b5030 0%, transparent 50%),
    radial-gradient(ellipse at 68% 28%, #7a5c38 0%, transparent 42%),
    radial-gradient(ellipse at 55% 78%, #5c4228 0%, transparent 38%),
    #704e2c;
}

/* ── Surface — sits on top of fill (z=2) ── */
.plot-surface-el { z-index: 3; }

/* Solid slab (granīts, bruģis): raised appearance with shadow, earth visible around it */
.plot-surface-slab {
  box-shadow: 0 2px 8px rgba(0,0,0,0.65);
  border-radius: 1px;
}
/* Loose fill (oļi, šķembas, smiltis): flat, no shadow, covers entire interior */
.plot-surface-loose {
  box-shadow: none;
  border-radius: 0;
}

.plot-surface-granite {
  background: linear-gradient(160deg, #8a9eb2 0%, #718596 100%);
}
/* ═══════════════════════════════════════════════════════════════
   GRANITE SLAB COLOURS — SVG feTurbulence + feColorMatrix thresholding
   Technique: noise → feColorMatrix alpha-row threshold → discrete crystals/specks
   background-size: 200px 300px on noise layer = correct grain scale for 80-100px wide divs
   ═══════════════════════════════════════════════════════════════ */

/* ── BLACK (Melna) — deep polished black ── */
.plot-surface-granite.plot-slab-melna {
  background: url('images/granites/absolute-black.jpg') center/cover no-repeat;
  box-shadow: 0 2px 14px rgba(0,0,0,0.95);
}

/* ── GREY (Pelēka) — medium grey crystalline ── */
.plot-surface-granite.plot-slab-peleka {
  background: url('images/granites/kuru-grey.jpg') center/cover no-repeat;
  filter: brightness(1.12) saturate(0.65);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* ── AURORA RED — dark brownish-red, coarse feldspar crystals ── */
.plot-surface-granite.plot-slab-aurora {
  background: url('images/granites/aurora.jpg') center/cover no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(200,130,100,0.1);
}

/* ── SWEDISH BLACK — pure black with slight blue-grey shimmer ── */
.plot-surface-granite.plot-slab-swedish-black {
  background: url('images/granites/absolute-black.jpg') center/cover no-repeat;
  filter: brightness(0.72) hue-rotate(210deg) saturate(1.8);
  box-shadow: 0 2px 16px rgba(0,0,0,0.98);
}

/* ── VANGA RED — deep brick-red with dark matrix ── */
.plot-surface-granite.plot-slab-vanga-red {
  background: url('images/granites/vanga.jpg') center/cover no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,0.82), inset 0 1px 0 rgba(180,60,60,0.1);
}

/* ── BALTIC BROWN — aurora base with warm amber/brown tint ── */
.plot-surface-granite.plot-slab-baltic-brown {
  background: url('images/granites/aurora.jpg') center/cover no-repeat;
  filter: sepia(0.55) hue-rotate(10deg) saturate(1.5) brightness(0.82);
  box-shadow: 0 2px 8px rgba(0,0,0,0.72), inset 0 1px 0 rgba(210,150,90,0.15);
}

/* ── BOHUS RED — pink-salmon with large feldspar crystals ── */
.plot-surface-granite.plot-slab-bohus-red {
  background: url('images/granites/bohus-red.jpg') center/cover no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,0.58);
}

/* ── BLUE PEARL (Larvikite) — near-black with iridescent blue crystals ── */
.plot-surface-granite.plot-slab-blue-pearl {
  background: url('images/granites/blue-pearl.jpg') center/cover no-repeat;
  box-shadow: 0 2px 14px rgba(0,0,0,0.9), inset 0 1px 0 rgba(148,200,252,0.22);
}

/* ── BALTIC GREEN — very dark forest green with mineral inclusions ── */
.plot-surface-granite.plot-slab-baltic-green {
  background: url('images/granites/baltic-green.jpg') center/cover no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,0.72), inset 0 1px 0 rgba(100,150,100,0.1);
}

/* ── OLIVIA GREEN — dark olive-green, warmer tint ── */
.plot-surface-granite.plot-slab-olivia-green {
  background: url('images/granites/baltic-green.jpg') center/cover no-repeat;
  filter: sepia(0.35) hue-rotate(25deg) saturate(0.75) brightness(0.88);
  box-shadow: 0 2px 8px rgba(0,0,0,0.65), inset 0 1px 0 rgba(148,148,96,0.1);
}

/* ── KURU GREY — light-medium grey, fine uniform crystal texture ── */
.plot-surface-granite.plot-slab-kuru-grey {
  background: url('images/granites/kuru-grey.jpg') center/cover no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,0.48);
}

/* ── BOHUS GREY — light silver-grey, fine crystalline texture ── */
.plot-surface-granite.plot-slab-bohus-grey {
  background: url('images/granites/kuru-grey.jpg') center/cover no-repeat;
  filter: brightness(1.28) saturate(0.35);
  box-shadow: 0 2px 7px rgba(0,0,0,0.42);
}

/* ── HALLANDIA — black/white parallel banding (gneiss not granite)
   Key: turbulence type + asymmetric baseFrequency 0.01 x 0.08 = horizontal bands ── */
.plot-surface-granite.plot-slab-hallandia {
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='turbulence' baseFrequency='0.01 0.08' numOctaves='3' seed='12' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='400' height='400' filter='url(%23n)' opacity='0.88'/></svg>"),
    linear-gradient(168deg, #2a2a2a 0%, #888 50%, #1a1a1a 100%);
  background-size: 280px 380px, 100% 100%;
  background-blend-mode: overlay, normal;
  box-shadow: 0 2px 8px rgba(0,0,0,0.58);
}

/* ── VISCOUNT WHITE — white/grey base, scattered dark mineral grains
   feColorMatrix threshold: dark speckles only where noise > 0.6 ── */
.plot-surface-granite.plot-slab-viscount-white {
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0 0.25  0 0 0 5 -3'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>"),
    linear-gradient(148deg, #deded4 0%, #c8cace 50%, #aaacb2 100%);
  background-size: 200px 300px, 100% 100%;
  background-blend-mode: multiply, normal;
  box-shadow: 0 2px 7px rgba(0,0,0,0.32);
}

/* ── CARRARA WHITE — pure white marble with flowing grey veins
   turbulence type + asymmetric frequency = flowing directional veins
   feColorMatrix: dark veins only on high-intensity peaks, rest stays white ── */
.plot-surface-granite.plot-slab-carrara-white {
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='turbulence' baseFrequency='0.015 0.008' numOctaves='4' seed='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.82  0 0 0 0 0.82  0 0 0 0 0.85  -2 -2 -2 6 -2'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 50% 40%, #fefefe 0%, #f5f2ee 55%, #edebe6 100%);
  background-size: 300px 400px, 100% 100%;
  background-blend-mode: multiply, normal;
  box-shadow: 0 2px 7px rgba(0,0,0,0.26);
}

/* ── GIALLO VENEZIANO — golden-yellow, discrete dark garnet/biotite speckles
   feColorMatrix alpha threshold = hard black dots on gold ── */
.plot-surface-granite.plot-slab-giallo-veneziano {
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' seed='9' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 5 -2.5'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>"),
    linear-gradient(148deg, #d8a820 0%, #c09018 48%, #8a6818 100%);
  background-size: 180px 280px, 100% 100%;
  background-blend-mode: multiply, normal;
  box-shadow: 0 2px 8px rgba(0,0,0,0.52);
}

/* ── KASHMIR GOLD — rich amber-gold, red garnet + cream quartz speckles ── */
.plot-surface-granite.plot-slab-kashmir-gold {
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' seed='14' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 5 -2.5'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>"),
    linear-gradient(148deg, #cc9618 0%, #b07c12 48%, #7a580e 100%);
  background-size: 180px 280px, 100% 100%;
  background-blend-mode: multiply, normal;
  box-shadow: 0 2px 8px rgba(0,0,0,0.52), inset 0 1px 0 rgba(220,174,56,0.22);
}


.plot-surface-bruge {
  background: repeating-linear-gradient(
    0deg,
    #5c6b77 0px, #5c6b77 7px,
    #4e5d69 7px, #4e5d69 8px
  );
}
.plot-surface-oli {
  background:
    radial-gradient(ellipse at 25% 35%, #6e6552 0%, transparent 38%),
    radial-gradient(ellipse at 72% 55%, #5e5748 0%, transparent 32%),
    radial-gradient(ellipse at 55% 15%, #7a7260 0%, transparent 28%),
    radial-gradient(ellipse at 40% 75%, #625c4e 0%, transparent 35%),
    #5c5848;
}
/* Granīta šķembas — crushed granite chips, angular, dark grey */
.plot-surface-skembas {
  background:
    radial-gradient(ellipse at 30% 40%, #4a4a4a 0%, transparent 30%),
    radial-gradient(ellipse at 68% 25%, #555555 0%, transparent 28%),
    radial-gradient(ellipse at 50% 70%, #424242 0%, transparent 35%),
    radial-gradient(ellipse at 20% 80%, #4e4e4e 0%, transparent 25%),
    #3e3e3e;
}
/* Smiltis — decorative sand/quartz, warm beige */
.plot-surface-smilts {
  background:
    radial-gradient(ellipse at 35% 30%, #c8b88a 0%, transparent 40%),
    radial-gradient(ellipse at 65% 65%, #b8a870 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, #c0ae80 0%, transparent 50%),
    #baa870;
}

/* ── Monument upright stone ── */
.plot-monument-el {
  background: linear-gradient(170deg, #1d2c3e 0%, #263747 60%, #1a2535 100%);
  border: 1px solid rgba(100,145,185,0.25);
  border-radius: 40% 40% 2px 2px / 28% 28% 2px 2px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55), inset 0 1px 0 rgba(160,200,240,0.08);
}

/* Laukakments (fieldstone) — warmer, more irregular natural look */
.plot-monument-laukakments {
  background: radial-gradient(ellipse at 35% 30%, #7a7060 0%, #5c5248 50%, #4a4038 100%);
  border: 1px solid rgba(140,120,90,0.4);
  border-radius: 30% 40% 25% 35% / 20% 25% 15% 20%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200,180,140,0.06);
}

/* ── Monument base / pamatne ── */
.plot-base-el {
  background: linear-gradient(180deg, #2a3c50 0%, #1e2d3e 100%);
  border: 1px solid rgba(80,120,160,0.2);
  border-radius: 1px;
  z-index: 4;
}

/* ── Corner klumbiņas — same size as border width, gold accent border for visibility ── */
.plot-klumb-el {
  z-index: 6;
  border-radius: 0;
  background: linear-gradient(135deg, #4a4a4a 0%, #282828 100%);
  /* Gold accent border ensures klumbiņas are always visible against any granite color */
  border: 1.5px solid rgba(201,168,76,0.65);
  box-shadow: 0 1px 4px rgba(0,0,0,0.7);
  transition: none; /* no transition on klumbiņas — position changes are instant */
}

/* ── Granite vases ── */
.plot-vase-el {
  background: linear-gradient(180deg, #c9a84c 0%, #8a6c22 100%);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50% 50% 25% 25%;
  z-index: 5;
}

/* ── Entry plate ── */
.plot-entry-el {
  background: rgba(180,148,55,0.4);
  border: 1px solid rgba(201,168,76,0.55);
  border-radius: 1px;
  z-index: 3;
}

/* ── Bench (outside plot to the right) ── */
.plot-bench-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.plot-bench-el {
  border-radius: 2px;
  position: relative;
}

.plot-bench-granite {
  background: linear-gradient(180deg, #5c6e82 0%, #465260 100%);
  /* box-shadow instead of border: JS sets width/height in px; border with box-sizing:border-box
     steals 2px from the rendered size, making the bench 2px narrower/shorter than intended. */
  box-shadow: inset 0 0 0 1px rgba(120,145,170,0.3);
}

.plot-bench-metal {
  background: repeating-linear-gradient(
    90deg,
    #8b6c40 0px, #8b6c40 5px,
    #8a8a8a 5px, #8a8a8a 7px,
    #8b6c40 7px
  );
  /* box-shadow instead of border — same reason as .plot-bench-granite above */
  box-shadow: inset 0 0 0 1px rgba(160,130,80,0.35);
}

.plot-bench-lbl {
  font-size: 0.5rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Dimension label below preview */
.plot-dims {
  font-size: 0.68rem;
  color: rgba(201,168,76,0.6);
  text-align: center;
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
}

/* Legend */
.plot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.leg-monument { background: #1d2c3e; border: 1px solid rgba(100,145,185,0.4); }
.leg-border   { background: #52606d; }
.leg-surface  { background: #8a9eb2; }
.leg-klumb    { background: #8a7535; }
.leg-entry    { background: rgba(180,148,55,0.5); border: 1px solid rgba(201,168,76,0.5); }
.leg-vases    { background: #c9a84c; border-radius: 50%; }

/* Price box */
.adv-price-box {
  background: var(--dark);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.adv-cta-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.adv-price-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.adv-price-total {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}

.adv-breakdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.adv-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
}

.adv-breakdown-row span:first-child { color: var(--text-muted); }
.adv-breakdown-row span:last-child  { color: var(--text); white-space: nowrap; margin-left: 8px; }

.adv-breakdown-empty {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  padding: 8px 0;
}

/* ── Responsive: tablet (≤900px) ── */
@media (max-width: 900px) {
  .adv-calc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .adv-preview-col {
    position: static;
  }
}

/* ── Responsive: mobile (≤600px) ── */
@media (max-width: 600px) {
  .adv-calc-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Preview col at top but NOT sticky — only the canvas wrap is sticky */
  .adv-preview-col {
    order: -1;
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 0;
    margin: 0;
    gap: 8px;
  }

  /* Canvas wrap: not sticky on mobile (too tall) — canvas stays at top via order */
  .plot-canvas-wrap {
    position: static;
    border-radius: var(--radius);
    padding: 10px 12px 8px;
    min-height: 0;
    justify-content: center;
    gap: 8px;
  }

  /* Preview title inside the sticky wrap */
  .adv-preview-title { font-size: 0.62rem; margin-bottom: 2px; }

  /* Hide legend on mobile — saves space in sticky area */
  .plot-legend { display: none; }

  /* Price box: regular flow below canvas, not sticky */
  .adv-price-box {
    margin: 0;
    border-radius: var(--radius);
  }

  /* Compact price total on mobile */
  .adv-price-total { font-size: 1.5rem; }

  /* Config sections: more compact, touch-friendly */
  .adv-section { padding: 12px 14px; }
  .adv-section-title { font-size: 0.72rem; margin-bottom: 8px; }

  /* Larger touch targets for toggles and presets */
  .adv-toggle-row { min-height: 44px; gap: 12px; }
  .adv-toggle-row input[type=checkbox] { width: 20px; height: 20px; }
  .adv-section-icon { width: 18px; height: 18px; }
  .adv-section-icon svg { width: 18px; height: 18px; }
  .adv-toggle-label { font-size: 0.88rem; }

  .adv-preset {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.82rem;
    touch-action: manipulation;
  }
  .adv-preset.granite-swatch {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }
  .adv-shape-btn {
    min-height: 56px !important;
  }

  .adv-presets { gap: 6px; }

  /* Breakdown rows on mobile */
  .adv-breakdown-row { font-size: 0.76rem; padding: 5px 0; }

  /* Prevent iOS auto-zoom on number inputs */
  .adv-size-row input[type=number] { font-size: 16px; }
}

/* ========================================
   ACCESSIBILITY — Skip link & Reduced Motion
   ======================================== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   RESPONSIVE — Very small phones (max 360px)
   ======================================== */
@media (max-width: 360px) {
  :root {
    --nav-h: 60px;
    --banner-h: 28px;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero-logo-img {
    width: 200px;
  }

  .hero-cycle-text {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .btn {
    padding: 11px 20px;
    font-size: 0.85rem;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 100%;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .nav-logo-img {
    max-height: 44px;
  }

  .nav-brand-name {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .about-years {
    padding: 16px 18px;
    right: 8px;
  }

  .about-years strong {
    font-size: 1.8rem;
  }

  .contact-form-wrap {
    padding: 18px 14px;
  }

  .calc-wrapper {
    border-radius: var(--radius);
  }

  .fab-stack { right: 12px; }
  .phone-btn,
  .whatsapp-btn {
    width: 44px;
    height: 44px;
  }

  .qpopup {
    width: calc(100% - 24px);
    right: 12px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  #promo-banner,
  #navbar,
  .fab-stack,
  .cta-popup,
  .cta-popup-backdrop,
  .cookie-banner,
  .skip-link,
  .qpopup,
  #calculator {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  h1, h2, h3, h4 {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  section {
    padding: 40px 0;
  }

  .hero-overlay {
    display: none;
  }

  #hero {
    min-height: auto;
    background-image: none;
    background: #f5f5f5;
  }
}
