/* ==========================================================================
   ProfiElekter OÜ — design system & global styles
   Light / fresh / airy. Premium service-brand tier.
   Edit design tokens below to retheme the whole site.
   ========================================================================== */

/* --- Self-hosted fonts (was Google Fonts; removes render-blocking 3rd-party) --- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/manrope-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/manrope-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/manrope-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/manrope-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/manrope-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/manrope-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/manrope-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/manrope-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}


:root {
  /* --- Color tokens --- */
  --bg:           #FBFCFD;   /* page background — fresh near-white */
  --surface:      #FFFFFF;   /* cards, nav */
  --surface-soft: #F1F5F9;   /* cool light panels */
  --surface-blue: #EAF1FE;   /* brand-tinted panels */
  --ink:          #16202E;   /* primary text — deep navy */
  --ink-soft:     #51606F;   /* secondary text */
  --ink-faint:    #5F6C7A;   /* captions, meta — AA-contrast on light bg */
  --line:         #E4E9EF;   /* borders, dividers */
  --brand:        #0E47BC;   /* confident blue */
  --brand-dark:   #0A3590;
  --brand-soft:   #EAF1FE;
  --accent:       #12A06B;   /* energy green — solar / positive, used sparingly */
  --accent-soft:  #E6F6EF;
  --energy:       #E8950C;   /* warm amber — the "sun"/energy accent, CTAs + highlights */
  --energy-soft:  #FCECCF;
  --energy-dark:  #C77B05;

  /* --- Typography --- */
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* --- Spacing / layout --- */
  --maxw: 1200px;
  --maxw-text: 720px;
  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22,32,46,.05), 0 4px 12px rgba(22,32,46,.05);
  --shadow-md: 0 4px 14px rgba(22,32,46,.07), 0 18px 40px rgba(22,32,46,.08);
  --nav-h: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* --- Typography scale --- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.27rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.04rem; font-weight: 700; }
p  { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-block;
}

/* --- Layout helpers --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(40px, 5vw, 76px) 0; }
section[id], [id].section { scroll-margin-top: 88px; }
/* Tinted section palette — subtle brand-derived shades give the page rhythm
   and depth instead of flat white. Cool blues, a warm sand, soft sage. */
.section--soft  { background: #EAF0F7; }   /* cool light blue-gray */
.section--blue  { background: #E5EDFA; }   /* brand-tinted blue */
.section--sand  { background: #F4EEE2; }   /* warm sand — pairs with amber */
.section--sage  { background: #E9F3ED; }   /* soft solar green */
.section--cream { background: #F4F0E8; }   /* warm cream */
.section--ink   { background: #0F1115; color: #E6E7EA; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p, .section--ink .lede { color: #9AA0A8; }
.section--ink .eyebrow { color: #C4C6CC; }
.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }
/* Roomier rhythm between eyebrow → heading → lede in centered section intros */
.wrap.center > .eyebrow { margin-bottom: 16px; }
.wrap.center > h2 { margin: 0 0 22px; }
.wrap.center > .lede { margin-top: 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 12px 0 14px; }

/* ==========================================================================
   Header / navigation — sticky, transparent over hero, solid on scroll
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,252,253,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
/* transparent state — only on home with hero, before scroll */
.site-header.is-transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-transparent .brand,
.site-header.is-transparent .nav-links > li > a:not(.btn),
.site-header.is-transparent .nav-links > li > button,
.site-header.is-transparent .nav-phone,
.site-header.is-transparent .nav-toggle { color: #fff; }
.site-header.is-transparent .brand b { color: #fff; }
.site-header.is-transparent .nav-links > li > a:not(.btn):hover,
.site-header.is-transparent .nav-links > li > button:hover { background: rgba(255,255,255,.12); }
.site-header.is-transparent .nav-phone:hover { color: #fff; }
.site-header.is-transparent .btn--primary { background: #fff; color: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.site-header.is-transparent .btn--primary:hover { background: #fff; color: var(--brand-dark); }
/* spacer to offset fixed header on non-hero pages */
body { padding-top: var(--nav-h); }
body.has-hero { padding-top: 0; }
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; margin-right: 10px; }
.brand b { color: var(--brand); font-weight: 800; }
.brand-logo { height: 38px; width: auto; display: block; }

.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a:not(.btn),
.nav-links > li > button {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .96rem; color: var(--ink); background: none; border: 0;
}
.nav-links > li > a:not(.btn):hover,
.nav-links > li > button:hover { background: var(--surface-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); }

/* dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; min-width: 270px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .93rem; }
.dropdown a:hover { background: var(--brand-soft); text-decoration: none; }
.dropdown a span { display: block; font-weight: 500; font-size: .82rem; color: var(--ink-faint); }

.nav-phone { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { color: var(--brand); text-decoration: none; }
.nav-phone svg { width: 17px; height: 17px; flex: none; transform: translateY(1px); }

/* language switcher — globe dropdown */
.lang-switch.has-menu { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; line-height: 1; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lang-trigger:hover { border-color: var(--brand); color: var(--brand); }
.lang-globe { display: none; }
.lang-caret { width: 11px; height: 11px; flex: none; opacity: .55; transition: transform .18s ease; }
.lang-switch.has-menu:hover .lang-caret,
.lang-switch.has-menu:focus-within .lang-caret { transform: rotate(180deg); }
.lang-menu { left: auto; right: 0; min-width: 168px; }
.lang-menu .lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.lang-menu a.lang-opt:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.lang-menu .is-current { color: var(--brand); background: var(--brand-soft); cursor: default; }
.lang-menu .is-current::after { content: "\2713"; font-weight: 800; font-size: .85rem; }
/* over the dark hero: light outline trigger (menu card stays white) */
.site-header.is-transparent .lang-trigger { color: #fff; border-color: rgba(255,255,255,.45); }
.site-header.is-transparent .lang-trigger:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.15); }
/* Mobile-only round call button (shown ≤760px next to the menu toggle) */
.nav-call { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(14,71,188,.28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent { background: #0C7A4E; color: #fff; box-shadow: 0 6px 18px rgba(18,160,107,.26); }
.btn--accent:hover { background: #0a6843; color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; justify-content: center; }
.nav .btn--primary { padding: 10px 20px; }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ==========================================================================
   Hero — fullscreen, image-backed, text overlay
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  height: 100vh; height: 100svh;
  min-height: 600px;
  color: #fff;
}
.hero-visual {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-visual picture, .hero-visual img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
/* Ken Burns + parallax effect via JS var --hero-scroll */
.hero-visual img {
  animation: hero-kenburns 18s ease-out forwards;
  transform: translate3d(0, calc(var(--hero-scroll, 0px) * 0.4), 0) scale(1.08);
}
@keyframes hero-kenburns {
  from { transform: translate3d(0, 0, 0) scale(1.15); }
  to   { transform: translate3d(0, 0, 0) scale(1.04); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,12,24,.72) 0%, rgba(6,12,24,.55) 45%, rgba(6,12,24,.88) 100%),
    radial-gradient(70% 55% at 80% 10%, rgba(14,71,188,.3), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  /* vertical only — keep .wrap's horizontal padding so text never hits the edge */
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 64px;
}
.hero-text { max-width: 760px; }
.hero h1 {
  color: #fff; margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero .eyebrow { color: #9fc1ff; }
.hero .subhead {
  font-family: var(--font-head); font-weight: 700; font-size: 1.18rem;
  color: #cfe0ff; margin-bottom: 16px;
}
.hero p.lede { color: rgba(255,255,255,.88); margin-bottom: 28px; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-meta { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-meta span { font-size: .87rem; color: rgba(255,255,255,.72); }

.hero-badge {
  position: absolute; right: 24px; bottom: 24px; max-width: 360px;
  z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md);
}
.hero-badge svg { width: 30px; height: 30px; flex: none; }
.hero-badge p { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.hero-badge strong { color: var(--ink); }

/* scroll cue */
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.8); font-size: .78rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: cue-float 2.4s ease-in-out infinite;
}
.hero-scroll-cue::after {
  content: ""; width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,.9), transparent);
}
@keyframes cue-float {
  0%, 100% { transform: translate(-50%, 0); opacity: .85; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ==========================================================================
   Trust / client logo row
   ========================================================================== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 24px 0; }
.trust-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); text-align: center; margin-bottom: 18px;
}

/* infinite scrolling logo marquee */
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 60px; padding-right: 60px; flex: none; }
.marquee-group span {
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem;
  color: var(--ink); letter-spacing: -.01em; white-space: nowrap;
}
/* real logos render in their own brand colours */
.marquee-group img.logo { height: 30px; width: auto; }
/* partner tiles link to each brand's site; keep tile look, no link chrome */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; transition: opacity .15s ease; }
.logo-link:hover { opacity: .6; }
.logo-link:focus-visible { outline: 2px solid var(--accent, #1f3fb8); outline-offset: 4px; border-radius: 4px; }
@keyframes marquee-scroll { to { transform: translateX(-20%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; text-decoration: none; }
.card .ic {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--brand); }
.card--accent .ic { background: var(--accent-soft); }

/* media card — photo-topped service tile */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-soft); }
.card-media picture, .card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .96rem; margin-bottom: 0; }
.card-body .more { margin-top: 14px; }

/* feature / case study strip */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.alt .feature-text { order: 2; }
.feature-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img picture { display: block; width: 100%; height: 100%; }
.feature-text h2 { margin: 12px 0 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); }

/* checklist */
.checklist { display: grid; gap: 12px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312A06B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* process steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
.steps.grid-cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.step { position: relative; padding-top: 4px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 16px rgba(14, 71, 188, .25);
  margin-bottom: 18px; position: relative; z-index: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover::before {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px rgba(14, 71, 188, .35);
}
.step h4 { margin-bottom: 5px; }
.step p { font-size: .92rem; }
/* connector line between steps (single-row desktop only) */
@media (min-width: 981px) {
  .steps.grid-cols .step:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; left: 64px;
    width: calc(100% - 40px); height: 2px;
    background: linear-gradient(to right, #c3d4f7, rgba(195, 212, 247, .1));
    z-index: 0;
  }
}

/* pricing cards */
.pricing { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.price-card {
  --accent: var(--brand);
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6ebf2; border-radius: 18px;
  padding: 30px 26px 26px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 32, 46, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 32, 46, .10); border-color: #d4deec; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.price-card--green { --accent: #16a34a; }
.price-card--amber { --accent: #d97706; }
.price-card--red   { --accent: #dc2626; }
.price-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); margin-bottom: 14px; }
.price-card__icon svg { width: 24px; height: 24px; }
.price-card--green .price-card__icon { background: #e7f6ec; }
.price-card--amber .price-card__icon { background: #fbeed7; }
.price-card--red .price-card__icon { background: #fbe3e3; }
.price-card h3 { margin: 0 0 3px; }
.price-card__time { color: var(--ink-faint); font-size: .9rem; margin: 0 0 16px; }
.price-card__price { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--ink); margin: 0; }
.price-card__price span { font-size: 1rem; font-weight: 500; color: var(--ink-faint); }
.price-card__div { height: 1px; background: #eaeef4; margin: 18px 0; }
.price-card .checklist { margin: 0 0 22px; }
.price-card .btn { margin-top: auto; }
.price-badge { position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: #fff; padding: 4px 11px; border-radius: 999px; }

/* case-study photo gallery */
.case-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 8px; }
.case-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #eef2f7; border: 1px solid #e6ebf2; box-shadow: 0 1px 2px rgba(16, 32, 46, .05); }
.case-gallery img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform .5s ease; }
.case-gallery figure:hover img { transform: scale(1.05); }
.case-gallery figcaption { padding: 10px 14px; font-size: .85rem; color: var(--ink-faint); }
.case-hero-media { aspect-ratio: 16 / 9; overflow: hidden; }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* stat cards (case-study metrics) — enhance only the centered card--accent */
.card--accent[style*="text-align:center"] {
  background: linear-gradient(160deg, #eef4ff 0%, #ffffff 62%);
  border: 1px solid #dde8fb;
  border-radius: 18px;
  padding: 34px 22px 28px;
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--accent[style*="text-align:center"]::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #4f8bf0);
}
.card--accent[style*="text-align:center"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(14, 71, 188, .14);
  border-color: #c6d8f6;
}
.card--accent[style*="text-align:center"] p:first-of-type {
  font-size: 3.1rem !important; line-height: 1 !important; margin-bottom: 8px !important;
  background: linear-gradient(135deg, var(--brand) 0%, #4f8bf0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.card--accent[style*="text-align:center"] p:last-of-type {
  color: var(--ink-soft); font-weight: 500;
}

/* ==========================================================================
   FAQ — accordion
   ========================================================================== */
.faq { max-width: var(--maxw-text); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.07rem; color: var(--ink);
}
.faq-q::after {
  content: ""; position: absolute; right: 4px; top: 24px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230E47BC' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding-bottom: 22px; padding-right: 40px; }

/* ==========================================================================
   Calculator widget
   ========================================================================== */
.calc {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.calc-form { padding: clamp(26px, 4vw, 42px); }
.calc-result {
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(160deg, #0E47BC, #0A3590); color: #fff;
}
.calc-result h3 { color: #fff; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-weight: 500; color: var(--ink-faint); font-size: .82rem; }
.input, .select {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: .98rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  flex: 1; min-width: 120px; text-align: center; padding: 11px 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: all .12s ease;
}
.radio-row input { position: absolute; opacity: 0; }
.radio-row input:checked + label,
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calc-stat { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.calc-stat:last-of-type { border-bottom: 0; }
.calc-stat .k { font-size: .85rem; color: rgba(255,255,255,.7); }
.calc-stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin-top: 2px; }
.calc-stat .v small { font-size: 1rem; font-weight: 700; opacity: .8; }
.calc-placeholder { color: rgba(255,255,255,.62); font-size: .95rem; }
.calc-disclaimer { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 16px; }
.calc-note { font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }

/* ==========================================================================
   Forms (quote / contact)
   ========================================================================== */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
textarea.input { resize: vertical; min-height: 120px; }
.form-status { font-size: .92rem; font-weight: 600; margin-top: 12px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #1255D6 0%, #0E47BC 42%, #08296F 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center;
  box-shadow: var(--shadow-md);
}
/* warm energy accent glow, top-right */
.cta-band::after {
  content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(232,149,12,.22), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .eyebrow { color: #FFC65A; margin-bottom: 14px; }
.cta-band h2 { color: #fff; margin-bottom: 14px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 50ch; margin: 0 auto 30px; font-size: 1.06rem; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-band .btn--accent { padding: 16px 34px; font-size: 1.02rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.cta-band .cta-phone {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; padding: 14px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45); transition: background .15s ease, border-color .15s ease;
}
.cta-band .cta-phone:hover { background: rgba(255,255,255,.14); border-color: #fff; text-decoration: none; }
.cta-band .cta-phone svg { width: 18px; height: 18px; }
.cta-band .cta-trust { margin: 18px auto 0; font-size: .9rem; color: rgba(255,255,255,.72); text-align: center; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { border-color: #fff; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, var(--surface-blue) 0%, var(--bg) 100%);
}
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--ink-faint); }
.page-hero h1 { max-width: 18ch; margin-bottom: 16px; }
.page-hero-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9; margin-bottom: clamp(10px, 3vw, 28px);
}
.page-hero-media picture, .page-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero .lede { font-size: 1.15rem; }
.prose { max-width: var(--maxw-text); }
.prose p { margin-bottom: 18px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose .checklist { margin: 10px 0 22px; }

/* ==========================================================================
   References / portfolio (tehtud tööd)
   ========================================================================== */
.ref-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 34px; }
.ref-filter button {
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.ref-filter button:hover { border-color: var(--brand); color: var(--brand); }
.ref-filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.ref-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ref-card.is-hidden { display: none; }
.ref-img { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--surface-soft); }
.ref-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
.ref-card:hover .ref-img img { transform: scale(1.06); }
.ref-tag, .ref-year {
  position: absolute; top: 12px; z-index: 1;
  font-family: var(--font-head); font-weight: 700; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.ref-tag { left: 12px; background: rgba(255,255,255,.93); color: var(--brand); }
.ref-year { right: 12px; background: rgba(22,32,46,.78); color: #fff; }
.ref-card .body { padding: 18px 20px 20px; }
.ref-card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.ref-addr { font-size: .82rem; color: var(--ink-faint); margin-bottom: 6px; }
.ref-scope { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0; }
/* clickable reference cards (link to a project detail page) */
a.ref-card { text-decoration: none; color: inherit; }
a.ref-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
a.ref-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--brand); }
/* text-first reference panel (used until a real photo is added) */
.ref-img--text { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand) 0%, #0a2f7a 100%); }
.ref-img--text .ref-img-label { font-family: var(--font-head); font-weight: 800; font-size: 1.04rem; line-height: 1.25; letter-spacing: .02em; color: rgba(255,255,255,.94); text-align: center; padding: 0 18px; }
/* compact rows for projects without photography */
.ref-more { max-width: 860px; margin: 38px auto 0; }
.ref-more-label {
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 10px; text-align: center;
}
.ref-row {
  display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
  padding: 14px 6px; border-top: 1px solid var(--line);
}
.ref-row:last-child { border-bottom: 1px solid var(--line); }
.ref-row strong { font-family: var(--font-head); font-size: .98rem; color: var(--ink); flex: none; }
.ref-row span { color: var(--ink-soft); font-size: .9rem; }
.ref-row em { font-style: normal; color: var(--ink-faint); font-size: .85rem; flex: none; }
@media (max-width: 760px) {
  .ref-row { flex-wrap: wrap; gap: 2px 12px; }
  .ref-row span { flex-basis: 100%; }
}

/* data tables inside article prose */
.prose .table-wrap { overflow-x: auto; margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 460px; }
.prose thead th {
  text-align: left; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; color: var(--ink); background: var(--surface-soft);
  padding: 11px 14px; border-bottom: 2px solid var(--line);
}
.prose tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { font-weight: 600; color: var(--ink); }
.prose tbody tr.is-highlight td { background: var(--surface-blue); }
.prose table caption { caption-side: bottom; margin-top: 10px; font-size: .82rem; color: var(--ink-faint); text-align: left; }

/* table of contents card on article pages */
.toc {
  margin: 0 0 34px; padding: 22px 24px;
  background: var(--surface-blue);
  border: 1px solid #D7E3FA;
  border-radius: var(--radius);
}
.toc-label {
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 10px;
}
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { counter-increment: toc; margin: 0; padding: 0; }
.toc a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.45;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: .76rem;
  color: var(--brand); flex: none;
}
.toc a:hover { background: var(--surface); color: var(--brand); text-decoration: none; }

/* ==========================================================================
   Blog cards
   ========================================================================== */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
/* thumb is a pure aspect-ratio box; the image is absolutely positioned so its
   intrinsic size (1376x768) can never inflate the card height (Safari/WebKit) */
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-soft); }
.post-card .thumb picture { position: absolute; inset: 0; }
.post-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 12px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta { font-size: .8rem; color: var(--ink-faint); margin-bottom: 8px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card .more { margin-top: auto; }
.post-card .body p[style] { flex: none; margin-bottom: 0; }
.post-card .post-cta { margin-top: auto; padding-top: 14px; color: var(--brand); font-weight: 600; font-size: .92rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: #cdd6e0; padding: 72px 0 30px; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--energy)); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { position: relative; color: #fff; margin-bottom: 20px; padding-bottom: 12px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--brand); }
.site-footer a { color: #aeb9c6; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid ul li { margin-bottom: 11px; font-size: .94rem; }
.footer-grid ul li a { display: inline-block; transition: color .15s ease, transform .15s ease; }
.footer-grid ul li a:hover { transform: translateX(3px); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand b { color: #6f9eff; }
.footer-logo { height: 48px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { color: #8c99a8; font-size: .95rem; line-height: 1.65; max-width: 32ch; }
.footer-contact { margin-top: 2px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .94rem; }
.footer-contact svg { width: 34px; height: 34px; padding: 9px; flex: none; box-sizing: border-box; border-radius: 10px; background: rgba(111,158,255,.12); color: #6f9eff; transition: background .15s ease; }
.footer-contact li:hover svg { background: rgba(111,158,255,.22); }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: #76828f;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }

/* ==========================================================================
   Reveal animations — fade + directional, with stagger via JS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal[data-reveal="left"]  { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }
.reveal[data-reveal="scale"] { transform: scale(.94); }
.reveal[data-reveal="clip"]  { clip-path: inset(0 100% 0 0); transform: none; opacity: 1; transition: clip-path 1.1s cubic-bezier(.77,0,.18,1); }
.reveal[data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
.reveal.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* hero text entrance — staggered fade-up on load */
.hero-anim > * { opacity: 0; transform: translateY(20px); animation: hero-rise .9s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .15s; }
.hero-anim > *:nth-child(2) { animation-delay: .28s; }
.hero-anim > *:nth-child(3) { animation-delay: .40s; }
.hero-anim > *:nth-child(4) { animation-delay: .52s; }
.hero-anim > *:nth-child(5) { animation-delay: .64s; }
.hero-anim > *:nth-child(6) { animation-delay: .76s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* card image zoom on hover (premium feel) */
.card-media, .post-card .thumb, .feature-img, .page-hero-media { position: relative; }
.card-media img, .post-card .thumb img, .feature-img img {
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
.card--link:hover .card-media img,
.card--link:hover .thumb img,
.feature:hover .feature-img img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal[data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero-anim > * { opacity: 1; transform: none; animation: none; }
  .hero-visual img { animation: none; transform: none; }
  .hero-scroll-cue { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps.grid-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { left: 16px; right: 16px; bottom: 80px; max-width: none; }
  .hero-scroll-cue { display: none; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature .feature-text { order: 2; }
  .calc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-md);
    /* panel never exceeds the screen — services list scrolls inside it */
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav.open .nav-links .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line);
    margin: 2px 0 6px 10px; padding: 0 0 0 14px; border-radius: 0;
  }
  .nav.open .nav-links .dropdown a { padding: 9px 8px; }
  .nav.open .nav-links .dropdown a span { display: none; }
  .nav.open .nav-links > li > a,
  .nav.open .nav-links > li > button { padding: 12px 6px; }
  /* contact area — separated block at the bottom of the menu */
  .nav.open .nav-links > li:has(.nav-phone) {
    border-top: 1px solid var(--line);
    margin-top: 12px; padding-top: 16px;
  }
  .nav.open .nav-links .nav-phone {
    display: flex; justify-content: center; gap: 8px;
    padding: 13px 6px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface-soft); font-weight: 700;
  }
  /* language switcher in the mobile panel: drop the dropdown, show a segmented row */
  .nav.open .nav-links .lang-switch { display: block; }
  .nav.open .nav-links .lang-trigger { display: none; }
  .nav.open .nav-links .lang-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    display: flex; gap: 4px; margin: 14px 0 2px; padding: 4px; min-width: 0;
    border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  }
  .nav.open .nav-links .lang-menu .lang-opt {
    flex: 1; justify-content: center; gap: 0; padding: 11px 0;
    font-size: .85rem; border-radius: 999px;
  }
  .nav.open .nav-links .lang-menu .is-current { background: var(--brand); color: #fff; }
  .nav.open .nav-links .lang-menu .is-current::after { content: none; }
  /* Open menu panel is always solid white, so force dark text even when the
     header is in its transparent (over-hero) state — otherwise links are white-on-white. */
  .site-header.is-transparent .nav.open .nav-links > li > a:not(.btn),
  .site-header.is-transparent .nav.open .nav-links > li > button,
  .site-header.is-transparent .nav.open .nav-links .nav-phone { color: var(--ink); }
  .site-header.is-transparent .nav.open .nav-links > li > a:not(.btn):hover,
  .site-header.is-transparent .nav.open .nav-links > li > button:hover { background: var(--surface-soft); }
  .nav .btn--primary { margin-top: 10px; width: 100%; text-align: center; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
  /* open menu panel is solid white — keep the CTA brand-blue even when the
     header itself is in its transparent over-hero state */
  .site-header.is-transparent .nav.open .btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(14,71,188,.28); }
  .site-header.is-transparent .nav.open .btn--primary:hover { background: var(--brand-dark); color: #fff; }
  /* phone stays reachable inside the menu's contact area; no header icon */
  .nav-call { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps.grid-cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { gap: 20px; }
  /* Mobile hero sizes to its content (no forced 100vh), so the in-flow badge
     is never clipped. */
  .hero { flex-direction: column; justify-content: center; align-items: stretch; height: auto; min-height: 0; }
  .hero-inner { padding-bottom: 24px; }
  .hero-badge {
    position: static; left: auto; right: auto; bottom: auto;
    width: auto; margin: 0 24px 28px; align-self: stretch;
  }
}
@media (max-width: 380px) {
  .hero-badge { margin: 0 16px; }
  .wrap { padding: 0 16px; }
}

/* ==========================================================================
   Teenused — numbered systems pattern (luupagency-inspired)
   Stacked full-width rows, whitespace-driven, each card's proof differs.
   ========================================================================== */
.svc-section {
  background: linear-gradient(180deg, #F4F4F5 0%, #E9EAEC 100%);
  padding: clamp(48px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  scroll-margin-top: 88px;
}
.svc-intro { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.svc-intro h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -.025em; line-height: 1.08; color: var(--ink);
}
.svc-intro-sub {
  margin-top: 14px; font-size: 1.13rem; color: var(--ink-soft);
  max-width: 56ch;
}
.svc-intro-sub em { font-style: italic; }

/* Card row — sticky-stack on scroll. All cards share the section parent so
   they all stay sticky together; later cards paint over earlier ones via z. */
.svc-card {
  position: sticky;
  z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: clamp(400px, 56vh, 540px);
  padding: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px);
  margin-bottom: clamp(40px, 6vw, 88px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink); text-decoration: none;
  box-shadow:
    0 1px 2px rgba(22,32,46,.05),
    0 30px 70px -30px rgba(22,32,46,.25);
  overflow: hidden;
}
.svc-card:last-of-type { margin-bottom: 0; }
.svc-card:hover { text-decoration: none; }
/* Z-stack + staggered top so previous cards peek at the top edge like a deck */
.svc-card:nth-of-type(1) { z-index: 1; top: calc(var(--nav-h) + 20px); }
.svc-card:nth-of-type(2) { z-index: 2; top: calc(var(--nav-h) + 32px); }
.svc-card:nth-of-type(3) { z-index: 3; top: calc(var(--nav-h) + 44px); }
.svc-card:nth-of-type(4) { z-index: 4; top: calc(var(--nav-h) + 56px); }
.svc-card:nth-of-type(5) { z-index: 5; top: calc(var(--nav-h) + 68px); }

.svc-text {
  max-width: 56ch;
  display: flex; flex-direction: column; gap: 0;
}
.svc-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em;
  color: var(--ink);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.svc-num::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--ink); opacity: .35;
}
.svc-head {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.1; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 26px;
}
.svc-head em {
  font-style: italic; font-weight: 800;
  color: var(--ink);
  background: linear-gradient(transparent 78%, rgba(22,32,46,.14) 78%);
  padding: 0 2px;
}
.svc-bullets { display: grid; gap: 12px; margin: 0 0 32px; }
.svc-bullets li {
  font-size: 1rem; color: var(--ink-soft); line-height: 1.55;
  padding-left: 22px; position: relative;
}
.svc-bullets li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); opacity: .3;
}
.svc-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: auto;
}
.svc-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 71, 188, .12);
}
.svc-dot--green { background: var(--accent); box-shadow: 0 0 0 4px rgba(18,160,107,.12); }
.svc-dot--amber { background: #E08A18; box-shadow: 0 0 0 4px rgba(224,138,24,.12); }
.svc-cta { align-self: flex-start; margin-top: 14px; }

/* ----- Proof: photo strip (01) ----- */
.svc-proof--photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px; aspect-ratio: 4 / 3;
}
.svc-photo { overflow: hidden; border-radius: 10px; background: var(--surface-soft); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.svc-photo--big { grid-row: 1 / span 2; }
.svc-card:hover .svc-photo img { transform: scale(1.05); }

/* ----- Proof: solar calculator mock (02) ----- */
.solar-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(22,32,46,.04), 0 14px 38px rgba(22,32,46,.07);
  overflow: hidden;
}
.solar-mock-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}
.solar-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #d4dae1; }
.solar-mock-title {
  margin-left: 10px; font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em;
}
.solar-mock-body { padding: 20px 22px 22px; display: grid; gap: 12px; }
.solar-mock-field {
  display: grid; gap: 4px;
}
.solar-mock-field > span:first-child {
  font-size: .78rem; font-weight: 600; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .08em;
}
.solar-mock-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: .95rem; color: var(--ink); background: #fff;
}
.solar-mock-select { cursor: default; }
.solar-mock-select svg { color: var(--ink-faint); }
.solar-mock-btn {
  display: block; text-align: center;
  margin-top: 4px; padding: 12px 18px;
  background: var(--brand); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .94rem;
  border-radius: 999px; box-shadow: 0 4px 14px rgba(14,71,188,.25);
}
.solar-mock-result {
  margin-top: 10px; padding: 16px; background: var(--surface-blue);
  border-radius: 10px; display: grid; gap: 9px;
}
.solar-mock-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .92rem; color: var(--ink-soft);
}
.solar-mock-row strong {
  font-family: var(--font-head); font-weight: 800; color: var(--brand-dark);
  font-size: 1.02rem; letter-spacing: -.01em;
}

/* ----- Proof: audit checklist (03) ----- */
.audit-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(22,32,46,.04), 0 14px 38px rgba(22,32,46,.07);
  padding: 24px 26px;
}
.audit-mock-head {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--ink-faint); letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.audit-mock-list { display: grid; gap: 14px; }
.audit-mock-list li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--ink);
}
.audit-tick {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: .95rem;
}
.audit-mock-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .85rem; color: #0C7A4E; font-weight: 600;
}

/* ----- Proof: portfolio (04) ----- */
.portfolio-mock { display: grid; gap: 14px; }
.portfolio-photo {
  overflow: hidden; border-radius: 12px;
  aspect-ratio: 16 / 9; background: var(--surface-soft);
}
.portfolio-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.35);
  transition: transform .9s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.svc-card:hover .portfolio-photo img { transform: scale(1.04); filter: grayscale(0); }
.portfolio-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 24px 28px; padding: 6px 4px;
  filter: grayscale(1); opacity: .62;
  transition: opacity .3s ease, filter .3s ease;
}
.svc-card:hover .portfolio-logos { opacity: .95; filter: grayscale(.3); }
.portfolio-logos span {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--ink); letter-spacing: -.01em;
}
.portfolio-logos img { height: 22px; width: auto; }

/* ----- Tehnosüsteemid: standalone services (premium 2-up) ----- */
.svc-grid-head {
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: clamp(40px, 4vw, 56px);
  border-top: 1px solid var(--line);
  max-width: 58ch; text-align: center;
}
.svc-grid-head h2 { margin: 8px 0 10px; }
.svc-grid-head .svc-intro-sub { color: var(--ink-soft); margin: 0 auto; }
.svc2-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 880px; margin: clamp(30px, 3.5vw, 44px) auto 0;
}
.svc2-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc2-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--energy); }
.svc2-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--energy-soft); color: var(--energy-dark); margin-bottom: 20px;
}
.svc2-ic svg { width: 27px; height: 27px; }
.svc2-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.svc2-body { flex: 1 0 auto; margin-bottom: 22px; }
.svc2-body p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.svc2-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--brand);
}
.svc2-cta span { transition: transform .2s ease; }
.svc2-card:hover .svc2-cta span { transform: translateX(4px); }
@media (max-width: 680px) {
  .svc2-grid { grid-template-columns: 1fr; max-width: 460px; }
  .svc2-card { padding: 28px 24px; }
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .svc-card {
    position: static; min-height: 0;
    grid-template-columns: 1fr; gap: 28px;
    padding: 32px 26px 36px;
    margin-bottom: 22px;
    border-radius: 18px;
  }
  .svc-card:nth-of-type(n) { top: auto; }
  .svc-proof--photos { aspect-ratio: 5 / 3; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .svc-head { font-size: 1.45rem; }
  .solar-mock-body { padding: 16px; }
  .audit-mock { padding: 18px 20px; }
  .svc-grid { grid-template-columns: 1fr; }
}

/* Mobile (phones) tweaks: hide hero badge + more vertical breathing room per section */
@media (max-width: 760px) {
  .hero-badge { display: none; }
  .section { padding: 60px 0; }
  /* one CTA only in the phone hero — the secondary link lives in the nav anyway */
  .hero-cta .btn--ghost { display: none; }
  .brand-logo { height: 30px; }
}
