/* =========================================================================
   Električar Rijeka — Stylesheet
   Design direction: Dark, sharp, geometric — electric yellow accent on graphite
   Stack: Space Grotesk (display, geometric) + Inter (body, technical)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --terracotta: #2D7FFE;
  --accent: #2D7FFE;
  --accent-deep: #1E66E0;
  --accent-soft: rgba(45, 127, 254, 0.10);
  --accent-border: rgba(45, 127, 254, 0.30);
  --blue: #1976D2;
  --blue-deep: #0D47A1;
  --terracotta-deep: #1E66E0;
  --terracotta-soft: rgba(45, 127, 254, 0.10);
  --terracotta-border: rgba(45, 127, 254, 0.30);

  /* Surfaces (graphite scale) */
  --bg: #0A1626;
  --bg-elevated: #11203A;
  --bg-card: #152748;
  --bg-darker: #070F1B;
  --bg-deepest: #040813;

  /* Text — brighter, neutral tones (no navy/warm tint) */
  --text: #F5F4F1;
  --text-strong: #FFFFFF;
  --text-muted: #D0CCC6;    /* was #A4A09A — brightened for readability on dark bg + over hero images */
  --text-faint: #9A968F;    /* was #6C6964 — brightened */

  /* Lines */
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.14);
  --rule-bright: rgba(255, 255, 255, 0.22);

  /* Layout */
  --container: 1280px;
  --container-narrow: 920px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Type */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.0625rem;
  --t-xl: 1.1875rem;
  --t-2xl: clamp(1.4rem, 1.1rem + 1.3vw, 1.875rem);
  --t-3xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --t-4xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --t-5xl: clamp(2.5rem, 1.7rem + 3.6vw, 3.75rem);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Geometry — sharp */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 0 rgba(0,0,0,.4);
  --shadow-md: 0 12px 28px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
::selection { background: var(--terracotta); color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--text-strong);
  margin: 0 0 .5em;
}
h1 { font-size: var(--t-5xl); letter-spacing: -0.028em; line-height: 1.04; font-weight: 600; }
h2 { font-size: var(--t-4xl); }
h3 { font-size: var(--t-2xl); line-height: 1.15; letter-spacing: -0.018em; }
h4 { font-size: var(--t-xl); line-height: 1.25; letter-spacing: -0.012em; }
h5 { font-size: var(--t-lg); line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead {
  font-size: var(--t-xl); line-height: 1.5;
  color: var(--text-muted); font-weight: 400;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1.5px;
  background: currentColor;
}
.text-balance { text-wrap: balance; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
section { padding: clamp(56px, 7vw, 100px) 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-elevated { background: var(--bg-elevated); }
.section-darker { background: var(--bg-darker); }
.section-deepest { background: var(--bg-deepest); }

.section-title { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-title h2 { margin-bottom: .35em; }
.section-title p { color: var(--text-muted); font-size: var(--t-lg); }
.section-title.left { text-align: left; margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { padding: 16px 28px; font-size: 0.98rem; }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-secondary { background: var(--text); color: var(--bg); }
.btn-secondary:hover { background: var(--text-strong); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--rule-bright); }
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--terracotta); }
/* arrows removed per client request */

/* ---------- Header ---------- */
.top-bar {
  background: var(--brand-bar, #2D7FFE);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 9px 0; }
.top-bar-info { display: flex; gap: 24px; align-items: center; }
.top-bar-info a { color: #fff; display: inline-flex; align-items: center; gap: 8px; transition: opacity .15s; }
.top-bar-info a:hover { opacity: .8; }
.top-bar-info svg { width: 13px; height: 13px; opacity: 0.85; }
.top-bar-cta { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: .95; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-bar, #2D7FFE);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-header.is-scrolled { background: var(--accent-deep, #1E66E0); }
.site-header-inner {
  /* 3-section layout: Logo LEFT | Nav CENTER (flex:1) | CTA RIGHT.
     Required for the centered-on-trigger mega menu pattern — Usluge must sit near viewport center. */
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 0;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 72px; width: auto; display: block; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.main-nav a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  position: relative; padding: 6px 0;
  transition: color .15s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--terracotta); transition: width .25s var(--ease);
}
.main-nav a { color: #fff; }
.main-nav a::after { background: #fff; }
.main-nav a:hover { color: #fff; opacity: .85; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header-cta { display: inline-flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.92rem;
  padding: 9px 16px; border-radius: var(--r-sm);
  background: transparent; color: var(--text);
  border: 1.5px solid var(--rule-bright);
  transition: all .15s;
}
.header-phone:hover { background: var(--terracotta); color: var(--text-strong); border-color: var(--terracotta); }
.header-phone svg { width: 15px; height: 15px; }

.mobile-toggle { display: none; }

/* ---------- Mega menu (desktop hover dropdown for Usluge) ---------- */
/* Mega menu (elektricar-zagreb pattern — white card, centered on trigger, blue category underline) */
.has-mega {
  position: relative;
  padding-bottom: 24px;
  margin-bottom: -24px;
}
.mega-menu {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.35), 0 8px 20px -6px rgba(0,0,0,.18);
  padding: 32px 28px;
  /* Sized so it fits centered on the Usluge trigger across 1280-1920px viewports without overflow.
     Trigger sits ~35-45% from left in our Logo|Nav-center|CTA layout. */
  min-width: 880px;
  width: min(960px, calc(100vw - 64px));
  border: 1px solid rgba(0,0,0,.06);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  z-index: 49;
}
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s;
}
/* Arrow pointing UP at the trigger (centered on the menu, which is centered on the trigger) */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px; height: 16px;
  background: #FFFFFF;
  border-top: 1px solid rgba(0,0,0,.06);
  border-left: 1px solid rgba(0,0,0,.06);
}
/* Hover bridge: invisible band between trigger and menu so cursor crossing the gap stays in hover */
.mega-menu::after {
  content: "";
  position: absolute;
  top: -28px; left: 0; right: 0;
  height: 28px;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);     /* 5 categories */
  gap: 22px;
}

/* Light-mode columns — centered text, blue underline under category label */
.mega-menu .mega-col {
  text-align: center;
  display: flex; flex-direction: column;
}
.mega-menu .mega-col h4 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);                        /* electric blue */
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(45,127,254,.25);   /* lighter electric blue underline */
}
.mega-menu .mega-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px; align-items: stretch;
}
.mega-menu .mega-col a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #0A1626;
  padding: 9px 12px;
  border-radius: 8px;
  display: block;
  line-height: 1.45;
  text-align: center;
  transition: background .15s, color .15s;
  margin: 0;
}
.mega-menu .mega-col a:hover {
  background: rgba(45,127,254,.10);
  color: var(--accent);
}
.mega-col h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.mega-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.mega-col a {
  display: block;
  padding: 9px 12px 9px 14px;
  margin-left: -14px;
  font-family: "Inter", sans-serif;
  font-size: 0.94rem; font-weight: 400;
  color: var(--text);
  letter-spacing: 0;
  position: relative;
  border-radius: var(--r-xs);
  transition: color .15s, background .15s;
}
.mega-col a::before {
  /* Vertical accent bar on hover — no overlap, no shifting */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 2px; height: 60%;
  background: var(--terracotta);
  transition: transform .2s var(--ease);
}
.mega-col a:hover { color: var(--terracotta); background: rgba(255,117,47,0.06); }
.mega-col a:hover::before { transform: translateY(-50%) scaleY(1); }
.mega-feature {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 220px;
}
.mega-feature h4 { color: var(--text-strong); font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; line-height: 1.25; margin: 0; letter-spacing: -0.012em; }
.mega-feature p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.mega-feature .btn { align-self: flex-start; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg-darker); color: var(--text);
  padding: 24px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-menu-close { width: 44px; height: 44px; color: var(--text); }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu nav > ul > li { border-bottom: 1px solid var(--rule); }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; color: var(--text-strong);
  letter-spacing: -0.015em; font-weight: 500;
}
.mobile-menu nav a:hover { color: var(--terracotta); }
.mobile-submenu { display: none; padding: 0 0 18px 0; }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { font-family: "Inter", sans-serif; font-size: 0.95rem; padding: 7px 0; color: var(--text-muted); font-weight: 400; }
.mobile-menu-cta { margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  /* Tighter padding — every pixel above-the-fold matters. H1+lead+2 CTA+trust must be visible at 900px viewport height. */
  padding: clamp(24px, 3vw, 40px) 0 clamp(24px, 3vw, 36px);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-text { min-width: 0; }
.hero .lead { font-size: 1.05rem; line-height: 1.5; margin: 0 0 .9em; }
/* Hero background image layer — full-bleed, mobile-aware focal point. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: block;
  /* For <picture><img>: img fills the layer */
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Desktop focal: clock tower / center-right area of Rijeka skyline */
  object-position: 55% center;
  display: block;
}
/* Neutral black gradient overlay for text contrast — no blue tint. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.78) 50%, rgba(0,0,0,.86) 100%);
}
/* Subtle dot/grid pattern only when no hero-bg picture (decorative variant). */
.hero:not(.hero--bg)::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><defs><pattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M40 0 L0 0 0 40' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1'/></pattern></defs><rect width='100%' height='100%' fill='url(%23grid)'/></svg>");
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}
.hero-inner--single { grid-template-columns: 1fr; max-width: 740px; }
.hero h1 {
  color: var(--text-strong);
  margin-bottom: 0.4em;
  max-width: 18ch;
  /* Slightly smaller scale so the 2-col hero (text + figure) fits above the fold at 1280x900. */
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.05;
}
.hero h1 .accent { color: var(--terracotta); font-weight: 600; }
/* Sharp geometric tag — solid terracotta block, cut corner, square accent. No AI pill/glow/pulse. */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracotta);
  border: 0;
  color: #FFFFFF;
  padding: 8px 16px; border-radius: 0;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.5em;
  font-family: "Space Grotesk", sans-serif;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 0; background: #FFFFFF; animation: none; }
.hero p.lead {
  color: var(--text-muted);
  font-size: var(--t-lg);
  line-height: 1.55;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-trust {
  /* Tighter — must sit above-the-fold next to figure in 2-col hero */
  margin-top: 1.4em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px;
  align-items: center;
  width: fit-content;
}
.hero-trust-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-trust-item span {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

/* Hero figure — majstor PNG cutout with orange rectangle behind */
.hero-figure {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
}
.hero-figure .snake-border { display: none; }
.hero-figure img {
  position: relative;
  z-index: 2;
  /* Sized to fit alongside the text column at ≥1024px — leaves room for full hero stack vertically. */
  max-height: 440px;
  max-width: 440px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.5));
  margin: 0;
}

/* Stagger reveal */
/* Smooth scroll for hash links */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero .reveal:nth-child(1) { transition-delay: .03s; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .17s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .31s; }

/* ---------- Service category cards (3) ---------- */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* nepotpun red (2 ili manje) se centrira */
}
.category-card {
  position: relative; display: flex; flex-direction: column;
  justify-content: center;   /* naslov vertikalno centriran */
  align-items: center;
  flex: 1 1 360px;           /* max 3 po redu unutar containera, veći boxovi */
  max-width: 540px;
  aspect-ratio: 3/2;         /* niži boxovi (nisu previsoki) */
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-darker);
  border: 1px solid var(--rule);
  isolation: isolate;
  transition: border-color .25s, transform .25s var(--ease);
}
.category-card:hover { transform: translateY(-3px); border-color: var(--terracotta-border); }
.category-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: 0.8;
  transition: opacity .4s var(--ease), transform .6s var(--ease-out);
}
.category-card:hover img { opacity: 0.92; transform: scale(1.03); }
/* Utičnica koja iskri je desno u kadru - pomakni crop da bude vidljiva/centrirana */
.category-card--servis-i-hitne img { object-position: 84% center; }
.category-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Lakši overlay - slika se više vidi, ali dno ostaje tamno za čitljiv naslov */
  background: linear-gradient(180deg, rgba(14,14,16,.12) 0%, rgba(14,14,16,.55) 55%, rgba(14,14,16,.9) 100%);
}
.category-card-body { padding: 30px; text-align: center; }
.category-number {
  display: inline-block; font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 14px; font-weight: 500;
}
.category-card h3 { color: #FFFFFF; margin-bottom: 0; overflow-wrap: break-word; hyphens: auto; text-shadow: 0 2px 14px rgba(0,0,0,.85); }
.category-card p { color: #FFFFFF; font-size: .94rem; margin-bottom: 1.3em; line-height: 1.55; }
.category-card .btn {
  background: var(--terracotta);
  color: #FFFFFF;
  border: 1.5px solid var(--terracotta);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.category-card:hover .btn,
.category-card .btn:hover {
  background: #FFFFFF;
  color: var(--terracotta-deep);
  border-color: #FFFFFF;
}

/* ---------- Service grid (overlay cards) ----------
   auto-fit + justify-content: center — cards ostaju konzistentne širine (max 260px),
   a red se cijeli centrira kad ne popuni cijelu širinu (3 kartice u kategoriji, 6 u redu, itd.). */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 14px;
  justify-content: center;
}
.service-card {
  position: relative; display: block;
  aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-darker);
  border: 1px solid var(--rule);
  isolation: isolate;
  transition: transform .25s var(--ease), border-color .25s;
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .3s var(--ease);
  filter: brightness(0.65) saturate(0.9);
}
.service-card:hover { transform: translateY(-3px); border-color: var(--terracotta-border); }
.service-card:hover img { transform: scale(1.05); filter: brightness(0.78) saturate(1); }
.service-card::after {
  content: ""; position: absolute; inset: 0;
  z-index: 1;
  /* Uniform lighter overlay — image still shines through, content remains readable in center */
  background: rgba(14, 14, 16, 0.42);
}
.service-card-body {
  position: absolute; inset: 0;
  z-index: 2;
  padding: 22px 20px;
  color: #FFFFFF;
  text-align: center;
  /* Dead-center: vertical + horizontal */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.service-card-body h3 {
  color: #FFFFFF; font-size: 1.05rem; line-height: 1.25;
  margin: 0;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  letter-spacing: -0.015em;
}
.service-card-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFFFFF;
  background: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.service-card:hover .service-card-link,
.service-card-link:hover {
  background: #FFFFFF;
  color: var(--terracotta-deep);
  border-color: #FFFFFF;
}

/* ---------- Criss-cross alternating ---------- */
.criss-cross-list { display: grid; gap: clamp(48px, 6vw, 80px); }
.criss-cross-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.criss-cross-item:nth-child(even) { direction: rtl; }
.criss-cross-item:nth-child(even) > * { direction: ltr; }
.criss-cross-image { aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--rule); }
.criss-cross-image img { width: 100%; height: 100%; object-fit: cover; }
.criss-cross-content h3 { font-size: var(--t-3xl); }
.criss-cross-content p { color: var(--text-muted); font-size: var(--t-lg); line-height: 1.6; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 1em; font-weight: 600; color: var(--terracotta);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem; letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--terracotta);
  padding-bottom: 4px;
  transition: color .2s, gap .2s var(--ease);
}
.service-link:hover { gap: 12px; color: var(--text-strong); border-color: var(--text-strong); }

/* ---------- About / content block ---------- */
.content-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.content-block-image { aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--rule); }
.content-block-image img { width: 100%; height: 100%; object-fit: cover; }
.content-block ul { list-style: none; padding: 0; margin: 1em 0 1.5em; display: grid; gap: 10px; }
.content-block ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--t-base);
  color: var(--text);
}
.content-block ul li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px;
  background: var(--terracotta);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--terracotta); color: var(--text-strong);
  padding: clamp(56px, 7vw, 88px) 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><defs><pattern id='g' width='30' height='30' patternUnits='userSpaceOnUse'><path d='M30 0 L0 0 0 30' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/></pattern></defs><rect width='100%' height='100%' fill='url(%23g)'/></svg>");
  pointer-events: none;
}
.cta-banner-content { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.cta-banner h2 { color: var(--text-strong); margin-bottom: .4em; }
.cta-banner p { color: rgba(255,255,255,.92); font-size: var(--t-lg); margin-bottom: 1.6em; }
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-white { background: var(--bg-deepest); color: var(--text-strong); }
.cta-banner .btn-white:hover { background: var(--text-strong); color: var(--bg); }
.cta-banner .btn-outline-white { background: transparent; color: var(--text-strong); border-color: rgba(255,255,255,.5); }
.cta-banner .btn-outline-white:hover { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.cta-banner.dark { background: var(--bg-deepest); }
.cta-banner.dark::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><defs><pattern id='g' width='30' height='30' patternUnits='userSpaceOnUse'><path d='M30 0 L0 0 0 30' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/></pattern></defs><rect width='100%' height='100%' fill='url(%23g)'/></svg>"); }
.cta-banner.dark p { color: var(--text-muted); }
.cta-banner.dark .btn-white { background: var(--terracotta); color: var(--text-strong); }
.cta-banner.dark .btn-white:hover { background: var(--terracotta-deep); }

/* ---------- Stats / process ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 22px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--bg-elevated); }
.stat strong { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; color: var(--terracotta); display: block; line-height: 1; margin-bottom: .3em; letter-spacing: -0.02em; font-weight: 600; }
.stat span { font-size: .85rem; color: var(--text-muted); letter-spacing: 0.02em; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.process-step {
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  transition: border-color .2s, transform .25s var(--ease);
}
.process-step:hover { transform: translateY(-3px); border-color: var(--terracotta-border); }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem; color: var(--terracotta);
  display: block; margin-bottom: 16px; letter-spacing: 0.12em; font-weight: 600;
}
.process-step h4 { font-size: 1.1rem; line-height: 1.25; margin-bottom: .45em; color: var(--text-strong); }
.process-step p { font-size: .92rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit {
  padding: 32px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color .2s, transform .25s var(--ease);
}
.benefit:hover { border-color: var(--terracotta-border); transform: translateY(-3px); }
.benefit-icon {
  width: 44px; height: 44px; border-radius: var(--r-xs);
  background: var(--terracotta-soft); color: var(--terracotta);
  border: 1px solid var(--terracotta-border);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit-icon svg { width: 22px; height: 22px; stroke-width: 1.75; }
.benefit h3 { font-size: 1.2rem; margin-bottom: .4em; color: var(--text-strong); }
.benefit p { font-size: .94rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--rule);
  transition: background .15s;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 22px;
  width: 100%; padding: 22px 0;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem; line-height: 1.3; color: var(--text-strong);
  font-weight: 600; letter-spacing: -0.012em;
}
.faq-trigger:hover { color: var(--terracotta); }
.faq-icon {
  flex: 0 0 32px; height: 32px; border-radius: var(--r-xs);
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.faq-item.is-open .faq-icon { background: var(--terracotta); color: var(--text-strong); transform: rotate(45deg); border-color: var(--terracotta); }
.faq-icon::before { content: "+"; font-size: 1.2rem; line-height: 1; font-weight: 400; }
.faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-content-inner { padding: 0 0 22px; color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; max-width: 720px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid > .full { grid-column: 1 / -1; }
.field label {
  display: block; font-family: "Space Grotesk", sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--terracotta);
  background: var(--bg-card);
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.radio-group { display: grid; gap: 8px; }
.radio-group label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  cursor: pointer; transition: border-color .15s, background .15s;
  text-transform: none; letter-spacing: 0; font-size: 0.98rem; font-weight: 500;
  color: var(--text); margin: 0;
  font-family: "Inter", sans-serif;
}
.radio-group label:hover { border-color: var(--terracotta-border); background: var(--bg-card); }
.radio-group input[type="radio"] { accent-color: var(--terracotta); }
.radio-group label:has(input:checked) { border-color: var(--terracotta); background: var(--terracotta-soft); }

.form-stepper { display: flex; gap: 10px; margin-bottom: 28px; }
.form-step-marker {
  flex: 1; height: 3px; background: var(--rule-strong); border-radius: 1.5px;
  position: relative; overflow: hidden;
}
.form-step-marker.is-active::after, .form-step-marker.is-done::after {
  content: ""; position: absolute; inset: 0; background: var(--terracotta);
}
.form-step { display: none; }
.form-step.is-active { display: block; animation: slideIn .3s var(--ease-out); }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-actions { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

/* ---------- Page header ---------- */
.page-header {
  background: var(--bg);
  /* Tighter top padding — first text closer to top across all non-home pages */
  padding: clamp(28px, 3vw, 44px) 0 clamp(36px, 4vw, 56px);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
/* Override container's L/R gutter so inner-page hero text breathes wider —
   inner pages were "stisnut s paddingom"; this lets H1+lead extend almost edge-to-container. */
.page-header > .container { padding-left: clamp(16px, 2vw, 28px); padding-right: clamp(16px, 2vw, 28px); }
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><defs><pattern id='g' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M40 0 L0 0 0 40' fill='none' stroke='rgba(255,255,255,0.022)' stroke-width='1'/></pattern></defs><rect width='100%' height='100%' fill='url(%23g)'/></svg>");
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.page-header-inner { position: relative; max-width: 1120px; }
.page-header h1 { margin-bottom: .35em; }
.page-header p.lead { color: var(--text-muted); }

/* ---------- Service leaf: hero image as page-header background ---------- */
.page-header--bg {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(72px, 8vw, 120px);
  min-height: 380px;
  display: flex;
  align-items: center;
}
.page-header--bg > .container { position: relative; z-index: 2; }
.page-header-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: block;
}
.page-header-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-header-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Neutral black gradient — reads gray when semi-transparent, no blue tint. */
  background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.84) 100%);
}
/* Neutralize the dot-grid ::before overlay on bg variant (image already provides visual richness) */
.page-header--bg::before { display: none; }
.page-header--bg .eyebrow,
.page-header--bg .breadcrumbs { color: rgba(255,255,255,.85); }
.page-header--bg .breadcrumbs a { color: rgba(255,255,255,.9); }
.page-header--bg h1 { color: #fff; max-width: 22ch; padding-right: clamp(24px, 8vw, 120px); }
.page-header--bg p.lead { color: #F0EDE8; max-width: 62ch; padding-right: clamp(24px, 8vw, 120px); }
.page-header--bg .eyebrow, .page-header--bg .breadcrumbs { color: rgba(255,255,255,.95); }
.page-header--bg .breadcrumbs a { color: #fff; }
@media (max-width: 700px) {
  .page-header--bg { min-height: 320px; padding-bottom: 56px; }
}
/* No-overlay variant — image is the hero, no darkening.
   Used for services where the "za hero" image is the star (portafoni, hitne). */
.page-header--bg-muted .page-header-overlay { display: none; }
.page-header--bg-muted .page-header-bg img { opacity: 1; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem; color: var(--text-muted); margin-bottom: 1.4em;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Tile types slider ---------- */
.tile-slider {
  position: relative;
}
.tile-slider-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.tile-slider-head h2 { margin: 0; }
.tile-slider-head p { color: var(--text-muted); max-width: 540px; margin: 8px 0 0; }
.tile-slider-controls { display: flex; gap: 8px; }
.tile-slider-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--rule-bright);
  border-radius: var(--r-sm);
  background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.tile-slider-btn:hover:not(:disabled) { background: var(--terracotta); border-color: var(--terracotta); color: var(--text-strong); }
.tile-slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tile-slider-btn svg { width: 18px; height: 18px; }

.tile-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.tile-track::-webkit-scrollbar { height: 6px; }
.tile-track::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }

.tile-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.tile-card:hover { border-color: var(--terracotta-border); transform: translateY(-3px); }
.tile-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-darker);
}
.tile-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.tile-card:hover .tile-card-image img { transform: scale(1.05); }
.tile-card-body { padding: 20px; }
.tile-card-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.012em;
  margin: 0 0 6px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.tile-card-name span { font-size: 0.7rem; color: var(--terracotta); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.tile-card-body p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------- Recommended tiles section (on service pages) ---------- */
.recommended-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* ---------- Locations grid ---------- */
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.location-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; gap: 12px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--bg-elevated);
  transition: border-color .15s, transform .2s var(--ease), background .15s;
}
.location-card:hover { border-color: var(--terracotta-border); transform: translateX(3px); background: var(--bg-card); }
.location-card span { font-weight: 500; color: var(--text); font-size: .95rem; font-family: "Space Grotesk", sans-serif; }
/* location-card arrow removed */

.locations-block { display: grid; gap: 48px; }
.locations-block h3 { font-size: var(--t-2xl); margin-bottom: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.locations-block .section-sub { color: var(--text-muted); font-size: 0.92rem; margin-top: -6px; margin-bottom: 22px; letter-spacing: 0.02em; }

/* ---------- Article body ---------- */
.article-body { max-width: 720px; }
.article-body h2 { font-size: var(--t-3xl); margin-top: 1.8em; }
.article-body h3 { font-size: var(--t-2xl); margin-top: 1.5em; }
.article-body p, .article-body ul, .article-body ol {
  font-size: 1.04rem; line-height: 1.7; color: var(--text);
}
.article-body ul li, .article-body ol li { margin-bottom: .55em; }
.article-body strong { color: var(--text-strong); font-weight: 600; }
.article-body a { color: var(--terracotta); border-bottom: 1px solid currentColor; }
.article-body a:hover { color: var(--text-strong); }

.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: .82rem; color: var(--text-muted); margin-bottom: 1.8em;
  padding-bottom: 1em; border-bottom: 1px solid var(--rule);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.article-meta-tag { background: var(--terracotta); color: #FFFFFF; border: 0; padding: 4px 12px; border-radius: 0; font-weight: 700; letter-spacing: 0.06em; }

/* Related cards */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--rule); border-radius: var(--r-sm);
  overflow: hidden; transition: border-color .2s, transform .25s var(--ease);
}
.related-card:hover { border-color: var(--terracotta-border); transform: translateY(-3px); }
.related-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.related-card-body { padding: 22px; }
.related-card h3 { font-size: 1.15rem; margin-bottom: .4em; line-height: 1.25; color: var(--text-strong); }
.related-card p { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deepest);
  padding: clamp(64px, 7vw, 88px) 0 28px;
  position: relative;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  margin-bottom: 44px;
}
.footer-brand img { height: 68px; width: auto; display: block; margin-bottom: 22px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 {
  color: var(--text-strong); font-family: "Space Grotesk", sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a {
  color: var(--text-muted); font-size: .92rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-faint);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--terracotta); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .top-bar { display: none; }
  .main-nav, .header-cta .btn-primary { display: none; }
  .mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--r-sm);
    border: 1.5px solid var(--rule-bright);
  }
  .mobile-toggle svg { width: 20px; height: 20px; }
  .header-cta { gap: 8px; }
  .header-phone { padding: 9px 14px; font-size: .85rem; }
  .header-phone svg { width: 13px; height: 13px; }
  .site-logo img { height: 56px; }
  .hero { min-height: 560px; padding: 56px 0 64px; }
  /* MOBILE RULE: hero text CENTERED. Source order = text first, figure last (no overrides). */
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; justify-items: center; }
  .hero-inner--single { max-width: none; }
  .hero h1, .hero p.lead { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-eyebrow { margin: 0 auto 1.2em; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; justify-content: center; width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Mobile crop: shift focal point right so the clock tower stays visible
     when the wide landscape image is cropped to a narrow viewport. */
  .hero-bg img { object-position: 65% center; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,22,38,.94) 0%, rgba(10,22,38,.88) 60%, rgba(10,22,38,.94) 100%);
  }
  /* Foreground figure (only on hero variants WITHOUT bg picture) — AFTER text. */
  .hero-figure { order: 2; align-self: center; margin: 16px auto 0; min-height: 0; max-height: 300px; }
  .hero-figure img { max-height: 280px; max-width: 280px; margin: 0 auto; }
  .hero-trust {
    grid-template-columns: repeat(2, 1fr); gap: 18px;
    width: 100%; margin-left: auto; margin-right: auto;
    justify-items: center; text-align: center;
  }
  .hero-trust-item { text-align: center; }

  /* ===== MOBILE: CENTER EVERYTHING ===== */
  /* Page headers (service, location, blog, contact, about) */
  .page-header-inner { text-align: center; margin: 0 auto; }
  .page-header .breadcrumb { justify-content: center; }
  .page-header .eyebrow,
  .page-header .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .page-header h1 { margin-left: auto; margin-right: auto; }
  .page-header .lead { margin-left: auto; margin-right: auto; }
  .page-header .hero-actions { justify-content: center; }

  /* Section titles & headings everywhere */
  .section-title,
  .section-title.left { text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
  .section-title .eyebrow { margin-left: auto; margin-right: auto; }

  /* Content blocks (about-style two-column layouts) */
  .content-block { text-align: center; }
  .content-block .eyebrow { margin-left: auto; margin-right: auto; }
  .content-block ul { margin-left: auto; margin-right: auto; max-width: 480px; text-align: left; }
  .content-block .hero-actions { justify-content: center; }
  .content-block-image { margin: 0 auto; }

  /* Criss-cross items — also center text in each */
  .criss-cross-content { text-align: center; }
  .criss-cross-content .eyebrow { margin-left: auto; margin-right: auto; }
  .criss-cross-content .service-link { margin-left: auto; margin-right: auto; }

  /* Tile slider head — center */
  .tile-slider-head { flex-direction: column; align-items: center; text-align: center; }
  .tile-slider-head h2,
  .tile-slider-head p { margin-left: auto; margin-right: auto; }
  .tile-slider-controls { margin: 0 auto; }

  /* Locations block headings + sub */
  .locations-block h3,
  .locations-block .section-sub { text-align: center; }

  /* Form on contact page — center its column wrapper */
  .quote-form { text-align: left; } /* form fields stay left-aligned internally */

  /* Article body (blog posts) - center headings + intro, body stays readable left */
  .article-body { margin-left: auto; margin-right: auto; }
  .article-body h2, .article-body h3 { text-align: center; }

  /* Article meta (blog) center */
  .article-meta { justify-content: center; }

  /* FAQ trigger — keep left-aligned for readability, but center the section title via above */

  /* All CTA banners center (already are) */

  /* Footer columns — center on mobile */
  .footer-grid { text-align: center; }
  .footer-col ul li { display: block; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Category cards (3 main hubs on homepage) — center content on mobile */
  .category-card-body { text-align: center; padding: 24px 20px; }
  .category-card .btn { margin-left: auto; margin-right: auto; }
  .category-number { display: inline-block; }

  /* Service cards (overlay grid) — center on mobile */
  .service-card-body { text-align: center; padding: 18px 16px; }
  .service-card-body h3 { margin-left: auto; margin-right: auto; }
  .service-card-link { margin-left: auto; margin-right: auto; }

  /* Tile cards (slider) — center on mobile */
  .tile-card-body { text-align: center; }
  .tile-card-name { justify-content: center; }

  /* Process steps + benefits — center text */
  .process-step, .benefit { text-align: center; }
  .benefit-icon { margin-left: auto; margin-right: auto; display: flex; }

  /* Location cards — center text */
  .location-card { justify-content: center; }
  /* location arrow removed */

  /* Stat cards */
  .stat { text-align: center; }
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .process, .benefits { grid-template-columns: repeat(2, 1fr); }
  .criss-cross-item { grid-template-columns: 1fr; }
  .criss-cross-item:nth-child(even) { direction: ltr; }
  /* MOBILE RULE: text ALWAYS before image. Source order already places text first
     in build.js templates — so we just kill any explicit order:-1 from older v2.0 CSS,
     and shrink the image to ~60% of card width. */
  .content-block { grid-template-columns: 1fr; }
  .content-block-image { max-width: 360px; max-height: 360px; margin: 24px auto 0; aspect-ratio: 4/5; }
  /* Criss-cross items: keep image AFTER text on mobile (source order handles it),
     shrink image footprint. */
  .criss-cross-item .criss-cross-image { max-width: 360px; margin: 20px auto 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .stats, .process, .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .site-header, .site-footer, .cta-banner, .mobile-menu, .top-bar { display: none; }
  body { background: white; color: black; }
}

/* ---------- Blog article typography ---------- */
.blog-content { font-size: 1.02rem; line-height: 1.72; color: var(--text); }
.blog-content .blog-lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); margin-bottom: 1.6em; font-weight: 400; }
.blog-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem; font-weight: 600; line-height: 1.22;
  color: var(--text-strong);
  margin: 2em 0 0.6em; letter-spacing: -0.015em;
}
.blog-content h2:first-of-type { margin-top: 1.4em; }
.blog-content p { margin: 0 0 1.1em; color: var(--text); }
.blog-content p strong { color: var(--text-strong); font-weight: 600; }
.blog-content ul { margin: 0 0 1.3em; padding-left: 1.4em; }
.blog-content li { margin: 0.4em 0; color: var(--text); }
.blog-content .blog-cta {
  margin-top: 2.5em; padding: 28px 24px;
  background: var(--bg-elevated); border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}
.blog-content .blog-cta h2 { font-size: 1.35rem; margin-top: 0; margin-bottom: .5em; }
.blog-content .blog-cta p:last-child { margin-bottom: 0; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.55), 0 8px 20px -6px rgba(0,0,0,.35);
  animation: cc-slide-up .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes cc-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: grid; gap: 16px; }
.cookie-banner h3 { font-size: 1rem; margin: 0 0 6px; color: var(--text-strong); letter-spacing: -.01em; }
.cookie-banner p { font-size: .88rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
@media (max-width: 640px) {
  .cookie-banner { padding: 16px 18px; }
  .cookie-banner-actions .btn { min-width: 0; flex: 1 1 100%; }
}
