/*
Theme Name: OOH by Posh33
Theme URI: https://posh-33.com
Author: Posh33
Author URI: https://posh-33.com
Description: A premium, modern theme for OOH (Out-of-Home) advertising panels — built for impact, clarity, and conversion.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: ooh-posh33
Tags: marketing, advertising, modern, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --color-bg:            #ffffff;
  --color-accent:        #624790;
  --color-accent-hover:  #4e3873;
  --color-accent-light:  #ece9f2;
  --color-surface:       #ffffff;
  --color-surface-alt:   #f7f5fa;
  --color-border:        #e4e4e0;
  --color-text:          #1a1a1a;
  --color-text-muted:    #6b7280;
  --color-white:         #ffffff;

  /* Typography */
  --font-heading: 'Open Sans', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  --leading-tight:  1.15;
  --leading-snug:   1.35;
  --leading-normal: 1.6;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  /* Effects */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.12);
  --shadow-glow: 0 0 40px rgba(98,71,144,.18);

  /* Reusable card / container tokens */
  --card-radius: var(--radius-xl);
  --card-shadow: var(--shadow-md);
  --card-border: 1px solid var(--color-border);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: var(--weight-bold); }
em { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--sm  { max-width: var(--container-sm);  }
.container--md  { max-width: var(--container-md);  }
.container--lg  { max-width: var(--container-lg);  }
.container--xl  { max-width: var(--container-xl);  }

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--sm {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.section--surface {
  background: var(--color-surface);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-white  { color: var(--color-white); }
.text-center { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: inset -3px -3px 0 var(--color-accent-hover);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-glow), inset -3px -3px 0 #3a2a56;
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: inset -3px -3px 0 #c4c4bd;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: inset -3px -3px 0 var(--color-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--color-text);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: relative;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-block: var(--space-5);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.site-logo__text span {
  color: var(--color-accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-primary a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-primary a:hover,
.nav-primary .current-page-ancestor > a {
  color: var(--color-text);
}

.nav-primary .current-menu-item > a {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
}

/* Dropdown */
.nav-primary .menu-item-has-children {
  position: relative;
}

.nav-primary .sub-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.nav-primary .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-primary .sub-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.nav-primary .sub-menu a:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================================
   SITE CONTENT & FOOTER
   ============================================================ */
.site-content {
  padding-top: 0;
}

.site-footer {
  max-width: var(--container-xl);
  margin-inline: auto;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

.footer-brand__tagline {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 28ch;
  line-height: var(--leading-snug);
}

.footer-contact__heading {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.footer-contact__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  max-width: 42ch;
  margin-bottom: var(--space-6);
}

.footer-contact__phone {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-contact__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-lg);
}

.footer-contact__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-contact__number {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.footer-contact__number:hover {
  color: var(--color-accent-hover);
}

.footer-contact__email {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer-contact__address {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact__address:hover {
  color: var(--color-accent-hover);
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col__links a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  letter-spacing: 0.01em;
}

.footer-copyright__mark {
  color: var(--color-accent);
  font-size: 1.05em;
}

.footer-copyright__brand {
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.footer-copyright__sep {
  color: var(--color-border);
}

.footer-copyright__rights {
  color: var(--color-text-muted);
}

.footer-credit {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.footer-credit__link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--color-accent);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-credit__link:hover {
  color: var(--color-accent-hover);
}

.footer-credit__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  margin-left: 2px;
  padding: 0 0.2em;
  border: 1.5px solid currentColor;
  color: inherit;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 400;
  line-height: 1;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer-credit__link:hover .footer-credit__badge {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(26,61,46,.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-surface-alt);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-6);
}

.card__label {
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* ============================================================
   HERO — split layout (text left / visual right)
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--color-bg);
  max-width: var(--container-xl);
  margin-inline: auto;
}

/* decorative grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .7;
  pointer-events: none;
}

/* Decorative pulsing grid squares (hero) — cells are injected by animations.js */
.hero__pulse {
  position: absolute;
  inset: 0;
  z-index: 0;            /* above the grid lines (::before), below the content (z-index:1) */
  overflow: hidden;
  pointer-events: none;
}

.hero__pulse-cell {
  position: absolute;
  width: 80px;          /* matches grid background-size, so the border sits on the grid lines */
  height: 80px;
  box-sizing: border-box;
  /* purple outline that traces the cell's grid lines, with a faint fill so it reads as a solid tile */
  border: 1px solid rgba(192, 150, 240, .55);
  border-radius: var(--radius-md);
  background: rgba(192, 150, 240, .07);
  --pulse-shadow: rgba(168, 85, 247, .65);   /* colour of the "lift" shadow cast onto the grid */
  opacity: 0;
  transform: translate(0, 0);
  will-change: transform, opacity;
}

.hero__pulse-cell.is-pulsing,
.cta-strip__pulse-cell.is-pulsing {
  /* ease-out so the square springs up quickly, then settles and sinks back */
  animation: hero-pulse 2.4s ease-out;
}

/* Rise: the tile lifts up-left while a solid offset shadow grows underneath it
   (the gap between tile and shadow reads as height), overshoots slightly, settles,
   holds, then sinks back into the grid. The element's own opacity fades everything —
   including the shadow — so the shadow colour can stay constant. */
@keyframes hero-pulse {
  0%   { opacity: 0; transform: translate(0, 0);       box-shadow: 0 0 0 var(--pulse-shadow); }
  35%  { opacity: 1; transform: translate(-6px, -6px); box-shadow: 6px 6px 0 var(--pulse-shadow); }
  50%  { opacity: 1; transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--pulse-shadow); }
  72%  { opacity: 1; transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--pulse-shadow); }
  100% { opacity: 0; transform: translate(0, 0);       box-shadow: 0 0 0 var(--pulse-shadow); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pulse { display: none; }
}

.hero__left {
  position: relative;
  z-index: 1;
  padding: var(--space-20) var(--container-pad);
}

.hero__right {
  position: relative;
  z-index: 1;
  align-self: stretch;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

/* hero image slider — crossfades between every photo in assets/images/hero-slider/ */
.hero__slider {
  position: relative;
  z-index: 0; /* contains the slides' own z-index so it can't leak above .hero__stats */
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

/* dot nav — sits at the top since the bottom is taken by .hero__stats */
.hero__slider-dots {
  position: absolute;
  z-index: 2;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}

.hero__slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background var(--transition-base), width var(--transition-base);
}

.hero__slider-dot:hover {
  background: rgba(255, 255, 255, .8);
}

.hero__slider-dot.is-active {
  width: 20px;
  background: var(--color-white);
}

.hero__slider-dot:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* stats overlay on the visual panel */
.hero__stats {
  position: absolute;
  z-index: 1;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  display: flex;
  gap: var(--space-3);
}

.hero__stat-pill {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  flex: 1;
}

/* Hero stat pills fade up + scale in, staggered, when the stats scroll into view.
   Gated on .has-reveal (added by animations.js only when motion is allowed) so
   the pills stay visible if JS is unavailable or motion is reduced. */
.has-reveal .hero__stat-pill {
  opacity: 0;
  transform: translateY(16px) scale(.96);
}

/* .in-view is added by the reveal observer when the stats scroll into view */
.has-reveal .hero__stats.in-view .hero__stat-pill {
  animation: hero-pill-in .55s cubic-bezier(.2, .7, .3, 1) forwards;
}

.has-reveal .hero__stats.in-view .hero__stat-pill:nth-child(1) { animation-delay: 0s; }
.has-reveal .hero__stats.in-view .hero__stat-pill:nth-child(2) { animation-delay: .18s; }   /* staggered so they pop in one after the other */

@keyframes hero-pill-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__stat-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-base);
}

.hero__stat-pill-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  color: var(--color-text);
  line-height: 1.1;
}

.hero__stat-pill-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* hero text */
.hero__label {
  margin-bottom: var(--space-5);
}

.hero__title {
  margin-bottom: var(--space-6);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  color: var(--color-text);
}

.hero__title {
  isolation: isolate;
}

.hero__title em {
  font-style: normal;
  color: #111111;
  position: relative;
}

.hero__title em::before {
  content: '';
  position: absolute;
  top: 50%;
  left:  -0.2em;
  right: -0.2em;
  height: 1em;
  transform: translateY(-50%) skewX(-6deg);
  background: #fde68a;
  z-index: -1;
}

/* Hero title em highlights draw in (left-to-right) on load, one word after the other.
   The em-draw keyframe below is also reused by the section-header em highlight. */
.hero__title em::before {
  transform: translateY(-50%) skewX(-6deg) scaleX(0);
  transform-origin: left center;        /* grow from the left, like a pen stroke */
  animation: em-draw .6s ease-out forwards;
}

.hero__title em:nth-of-type(1)::before { animation-delay: .35s; }
.hero__title em:nth-of-type(2)::before { animation-delay: 1.0s; }  /* second word draws after the first */

@keyframes em-draw {
  to { transform: translateY(-50%) skewX(-6deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title em::before {
    animation: none;
    transform: translateY(-50%) skewX(-6deg) scaleX(1);
  }
}

.hero__subtitle {
  max-width: 44ch;
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  line-height: var(--leading-normal);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* partners bar — its own full-width row below the hero's two columns */
.hero__partners {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  padding: var(--space-10) var(--container-pad) var(--space-16);
}

.hero__partners-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.hero__partners-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  justify-items: center;
  gap: var(--space-8);
}

.hero__partners-logos span {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  opacity: .6;
  letter-spacing: -0.01em;
}

/* Logo-ready: drop <img> logos in and they get a clean monochrome bar
   that lifts to full color on hover. */
.hero__partners-logos img {
  height: 40px;
  width: auto;
  opacity: .85;
  transition: opacity var(--transition-base);
}

.hero__partners-logos img:hover {
  opacity: 1;
}

/* City hero — full-width photo slider, no text overlay */
.hero--city {
  grid-template-columns: 1fr;
}

.hero--city .hero__right {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header--center {
  text-align: center;
}

.section-header__title {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section-header__title {
  isolation: isolate;
}

.section-header__title em {
  font-style: normal;
  color: #111111;
  position: relative;
}

.section-header__title em::before {
  content: '';
  position: absolute;
  top: 50%;
  left:  -0.2em;
  right: -0.2em;
  height: 1em;
  transform: translateY(-50%) skewX(-6deg);
  background: #fde68a;
  z-index: -1;
}

/* Section-header em highlight draws in when its heading scrolls into view.
   Gated on .has-reveal (added by animations.js only when motion is allowed) so
   the highlight stays visible if JS is unavailable or motion is reduced. */
.has-reveal .section-header__title em::before {
  transform: translateY(-50%) skewX(-6deg) scaleX(0);
  transform-origin: left center;        /* grow from the left, like a pen stroke */
}

/* .in-view is added by the reveal observer when the heading scrolls into view */
.has-reveal .section-header__title.in-view em::before {
  animation: em-draw .6s ease-out forwards;   /* keyframe defined in the hero em block above */
}

.section-header__desc {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 52ch;
  line-height: var(--leading-normal);
}

.section-header--center .section-header__desc {
  margin-inline: auto;
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--color-accent);
  padding-block: var(--space-10);
}

.stat-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: var(--space-8);
  text-align: center;
}

.stat-item__value {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-item__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,.65);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   FORMS (Contact plugin base overrides)
   ============================================================ */
.wpcf7-form,
.site-form {
  --input-bg:     var(--color-white);
  --input-border: var(--color-border);
  --input-focus:  var(--color-accent);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
  outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.site-form input:focus,
.site-form textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(26,61,46,.1);
}

.wpcf7-form input[type="submit"],
.site-form button[type="submit"] {
  width: auto;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
}

.wpcf7-form input[type="submit"]:hover,
.site-form button[type="submit"]:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   CITY CARDS
   ============================================================ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.city-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-10);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: inset -4px -4px 0 #e1e1e1;
}

/* decorative city illustration, full-color, anchored bottom-right.
   inset by the card's 4px inset shadow so it doesn't cover it. */
.city-card--has-bg::after {
  content: '';
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 48%;
  height: 64%;
  background-image: var(--city-card-bg);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  pointer-events: none;
  transform-origin: right bottom;
  transition: transform var(--transition-base);
  /* concentrate the illustration in the corner and dissolve it toward the text */
  -webkit-mask-image: linear-gradient(to top left, #000 35%, transparent 75%);
  mask-image: linear-gradient(to top left, #000 35%, transparent 75%);
}

.city-card--has-bg:hover::after {
  transform: scale(1.06);
}

/* keep the text in a left column so it never overlaps the illustration */
.city-card--has-bg .city-card__desc,
.city-card--has-bg .city-card__cta {
  padding-right: 42%;
}

.city-card > * {
  position: relative;
  z-index: 1;
}

.city-card:hover {
  border-color: var(--color-accent);
  box-shadow: inset -4px -4px 0 var(--color-accent);
  transform: translateY(-3px);
}

.city-card__map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.city-card__name {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin: 0;
}

.city-card__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  flex: 1;
  margin: 0;
}

.city-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  margin-top: var(--space-2);
  transition: gap var(--transition-fast);
}

.city-card:hover .city-card__cta {
  gap: var(--space-3);
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  position: relative;
  overflow: hidden;
  max-width: var(--container-xl);
  margin-inline: auto;
  background: var(--color-accent);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-radius: var(--card-radius);
  box-shadow: inset -6px -6px 0 #3a2a56;
}

/* decorative grid lines (matches hero) */
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Decorative pulsing grid squares (cta-strip) — cells are injected by animations.js */
.cta-strip__pulse {
  position: absolute;
  inset: 0;
  z-index: 0;            /* above the grid lines (::before), below the content (z-index:1) */
  overflow: hidden;
  pointer-events: none;
}

.cta-strip__pulse-cell {
  position: absolute;
  width: 80px;          /* matches grid background-size, so the border sits on the grid lines */
  height: 80px;
  box-sizing: border-box;
  /* white outline that traces the cell's grid lines, with a faint fill so it reads as a solid tile */
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .08);
  --pulse-shadow: rgba(255, 255, 255, .6);   /* colour of the "lift" shadow cast onto the grid */
  opacity: 0;
  transform: translate(0, 0);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .cta-strip__pulse { display: none; }
}

.cta-strip > .container {
  position: relative;
  z-index: 1;
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta-strip__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.cta-strip__desc {
  color: rgba(255,255,255,.75);
  font-size: var(--text-lg);
  max-width: 48ch;
  margin: 0;
}

.cta-strip .btn--primary {
  position: relative;
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset -3px -3px 0 #b3a7c9;
  /* gentle "breathing" pulse to draw the eye */
  animation: cta-btn-breathe 2.4s ease-in-out infinite;
}

/* expanding glow ring radiating out from the button */
.cta-strip .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
  animation: cta-btn-ring 2.4s ease-out infinite;
}

.cta-strip .btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  box-shadow: inset -3px -3px 0 #b3a7c9;
  /* pause the idle pulse on hover — the user is already engaged */
  animation-play-state: paused;
}

.cta-strip .btn--primary:hover::after {
  animation-play-state: paused;
}

@keyframes cta-btn-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes cta-btn-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); opacity: 1; }
  70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); opacity: 0; }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-strip .btn--primary,
  .cta-strip .btn--primary::after {
    animation: none;
  }
}

/* ============================================================
   CITY MAP PAGE
   ============================================================ */
.city-map-header {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-block: var(--space-5);
  background: var(--color-bg);
  border-bottom: var(--card-border);
}

.city-map-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.city-map-back:hover {
  color: var(--color-accent);
}

.city-map-header__text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
}

.city-map-title {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin: 0;
}

.city-map-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.city-map-section {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-block: var(--space-4) var(--space-8);
  background: var(--color-surface);
}

.city-map-canvas {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 760px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  background: var(--color-surface-alt);
  overflow: hidden;
}

/* ── Map modal (on-demand "Prikaži na mapi") ── */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.map-modal[hidden] {
  display: none;
}

.map-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.map-modal__dialog {
  position: relative;
  width: min(100%, var(--container-lg));
  transform: scale(0.97);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.map-modal.is-open .map-modal__overlay {
  opacity: 1;
}

.map-modal.is-open .map-modal__dialog {
  transform: scale(1);
  opacity: 1;
}

.map-modal .city-map-canvas {
  height: min(70vh, 640px);
  min-height: 360px;
  border-radius: 0;
  box-shadow: none;
}

.map-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.map-modal__close:hover {
  color: var(--color-accent);
}

body.has-open-modal {
  overflow: hidden;
}

@media (max-width: 640px) {
  .map-modal {
    padding: 0;
  }

  .map-modal__dialog {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .map-modal .city-map-canvas {
    height: 100%;
    min-height: 0;
  }
}

/* ── Custom Leaflet markers ── */
.ooh-marker {
  background: transparent !important;
  border: none !important;
  position: relative;
}

.ooh-marker svg {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.45));
  transition: transform 200ms ease, filter 200ms ease;
  transform-origin: bottom center;
}

.ooh-marker:hover svg,
.ooh-marker--active svg {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
}

/* Pulse ring on active marker */
.ooh-marker__pulse {
  position: absolute;
  top: 1px;
  left: 50%;
  translate: -50% 0;
  width: 34px;
  height: 26px;
  border-radius: 4px;
  background: rgba(249,115,22,.3);
  animation: ooh-pulse 1.6s ease-out infinite;
  pointer-events: none;
}

@keyframes ooh-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(2.4); opacity: 0;  }
}

/* ── Leaflet popup overrides ── */
.ooh-popup-wrap .leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.ooh-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}

.ooh-popup-wrap .leaflet-popup-tip-container {
  margin-top: -1px;
}

.ooh-popup__photo {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.ooh-popup__body {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ooh-popup__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.ooh-popup__format {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.ooh-popup__tag {
  font-size: var(--text-xs);
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: var(--weight-medium);
}

.ooh-popup__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin: 0;
}

.ooh-popup__address {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.ooh-popup__size {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Panel grid below map ── */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-align: left;
  transition: all var(--transition-base);
  padding: 0;
  width: 100%;
}

.panel-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}

/* Stretched link — makes the whole card clickable (to the panel page)
   while leaving the "Prikaži na mapi" button independently clickable. */
.panel-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.panel-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.panel-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.panel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.panel-card:hover .panel-card__media img {
  transform: scale(1.04);
}

.panel-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
}

.panel-card__body {
  padding: var(--space-3) var(--space-4) var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.panel-card__format {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
  pointer-events: none; /* decorative — let clicks fall through to .panel-card__link */
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(10, 10, 10, 0.72);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  backdrop-filter: blur(2px);
}

.panel-card__format svg {
  flex-shrink: 0;
}

.panel-card__code {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  pointer-events: none; /* decorative — let clicks fall through to .panel-card__link */
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.panel-card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin: var(--space-2) 0 var(--space-1);
}

.panel-card__address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--leading-snug);
}

.panel-card__address svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.panel-card__size {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.04em;
}

.panel-card__footer {
  position: relative;
  z-index: 2; /* above .panel-card__link */
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
}

.panel-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  cursor: pointer;
  transition: gap var(--transition-fast);
}

.panel-card__map-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.panel-card:hover .panel-card__map-link {
  gap: var(--space-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__left {
    padding: var(--space-12) var(--container-pad);
  }

  .hero__right {
    border-radius: 0;
    min-height: 50vw;
  }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-primary { display: none; }
  .nav-toggle  { display: flex; }

  .nav-primary.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--color-white);
    padding: var(--space-8) var(--container-pad);
    gap: var(--space-2);
    align-items: flex-start;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--color-border);
  }

  .nav-primary.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: var(--space-4);
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Hero mobile */
  .hero__left {
    order: 2;
    padding: var(--space-8) var(--container-pad) var(--space-10);
  }

  .hero__right {
    order: 1;
    min-height: 56vw;
  }

  .hero__partners {
    order: 3;
  }

  .hero__title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
    margin-bottom: var(--space-4);
  }

  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    flex-direction: row;
    gap: var(--space-2);
  }

  .hero__stat-pill {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .hero__stat-pill-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .hero__stat-pill-value {
    font-size: var(--text-base);
  }

  .hero__partners {
    text-align: center;
  }

  .hero__partners-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .hero__partners-logos img {
    height: 32px;
  }

  .cta-strip {
    margin-inline: var(--container-pad);
  }

  .cta-strip__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-strip__desc {
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .hero__partners-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   SINGLE PANEL PAGE
   ============================================================ */
.panel-single__breadcrumb {
  max-width: var(--container-xl);
  margin-inline: auto;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}

/* Breadcrumb already provides top spacing — lighten the section's top padding. */
.panel-single .section--sm,
.city-map-page .section--sm {
  padding-top: clamp(var(--space-6), 3vw, var(--space-10));
}

/* City map page — breadcrumb sits inline at the top of the container, not in its own strip. */
.city-map-page .breadcrumb {
  margin-bottom: var(--space-6);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb__sep { opacity: .4; }

.panel-single__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-10);
  align-items: start;
}

.panel-single__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-alt);
}

.panel-photo-tabs {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface-alt);
}

.panel-photo-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.panel-photo-tab--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.panel-photo-side {
  aspect-ratio: 16/9;
}

.panel-photo-side--hidden {
  display: none;
}

.panel-single__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-single__description {
  margin-top: var(--space-8);
}

.panel-single__description-content {
  margin-top: var(--space-3);
}

.panel-single__description-content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.panel-single__description-content p:last-child { margin-bottom: 0; }

.panel-single__description-content ul,
.panel-single__description-content ol {
  display: block;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.panel-single__description-content ul { list-style: disc outside; }
.panel-single__description-content ol { list-style: decimal outside; }

.panel-single__description-content li {
  display: list-item !important;
  list-style: inherit;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-2);
}

.panel-single__description-content strong { font-weight: var(--weight-bold); color: var(--color-text); }
.panel-single__description-content em     { font-style: italic; }

.panel-single__description-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-single__description-content h2,
.panel-single__description-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.panel-single__streetview {
  margin-top: var(--space-8);
}

.panel-single__streetview iframe {
  display: block;
  width: 100%;
  height: 450px;
  border-radius: var(--card-radius);
  margin-top: var(--space-3);
}

.panel-single__info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.panel-single__title {
  font-size: var(--text-2xl);
  margin: var(--space-2) 0 var(--space-5);
}

.panel-single__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.panel-single__detail:first-of-type { border-top: 1px solid var(--color-border); }

.panel-single__detail svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 1px;
}

.panel-pricing {
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}

.panel-pricing__header {
  margin-bottom: var(--space-5);
}

.panel-pricing__tier {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-top: var(--space-2);
}

.panel-pricing__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.panel-pricing__table tr {
  border-bottom: 1px solid var(--color-border);
}

.panel-pricing__table tr:last-child {
  border-bottom: none;
}

.panel-pricing__dur,
.panel-pricing__price {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
}

.panel-pricing__dur {
  color: var(--color-text-muted);
}

.panel-pricing__price {
  text-align: right;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--color-text);
}

.panel-pricing__unit {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  margin-left: 2px;
}

.panel-pricing__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.panel-single__map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-4);
  border: 1px solid var(--color-border);
}

/* ooh-popup link */
.ooh-popup__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .panel-single__layout {
    grid-template-columns: 1fr;
  }

  .panel-single__info-card {
    position: static;
    order: -1;
  }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6); margin-bottom: var(--space-4); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--space-4); }
.alignwide  { margin-inline: calc(var(--container-pad) * -1); }
.alignfull  { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================================
   COMPACT PAGE INTRO (inner pages — cenovnik, etc.)
   ============================================================ */
.page-intro {
  padding-block: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.page-intro__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.page-intro__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 58ch;
  margin: 0;
}

/* ============================================================
   CENOVNIK PAGE
   ============================================================ */
.pricing-city-block {
  margin-bottom: var(--space-16);
}

.pricing-city-header {
  margin-bottom: var(--space-8);
}

.pricing-city-heading {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-text);
  margin-top: var(--space-2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.pricing-card {
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card__head {
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-6);
}

.pricing-card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin: 0;
  line-height: var(--leading-snug);
}

.pricing-card__body {
  padding: var(--space-4) var(--space-6);
  flex: 1;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-4);
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row--best {
  background: var(--color-accent-light);
  margin-inline: calc(-1 * var(--space-6));
  padding-inline: var(--space-6);
  border-bottom: none;
  border-radius: var(--radius-md);
}

.pricing-row__dur {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-row--best .pricing-row__dur {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

.pricing-row__badge {
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fde68a;
  color: #111111;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ============================================================
   PANEL LOCATION FILTER (city pages)
   ============================================================ */
.panel-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.panel-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.panel-filter__pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.panel-filter__pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* .panel-card sets display:flex, which would otherwise beat [hidden]. */
.panel-card[hidden] {
  display: none !important;
}

.pricing-row__price {
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  color: var(--color-text);
  white-space: nowrap;
}

.pricing-row--best .pricing-row__price {
  color: var(--color-accent);
}

.pricing-row__unit {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  margin-left: 1px;
}

.pricing-card__cta {
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__cta .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card__foot {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   PONUDA FORM PAGE
   ============================================================ */
.ponuda-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 900px) {
  .ponuda-layout { grid-template-columns: 1fr; }
}

.ponuda-context {
  background: var(--color-accent-light);
  border: 1px solid rgba(98,71,144,.2);
  border-radius: var(--card-radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
}

.ponuda-context__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-accent);
}

.ponuda-context__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin: 0 0 var(--space-1);
}

.ponuda-context__value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.ponuda-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.ponuda-form { display: flex; flex-direction: column; gap: var(--space-5); }

.ponuda-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 600px) {
  .ponuda-form__row { grid-template-columns: 1fr; }
}

.ponuda-field { display: flex; flex-direction: column; gap: var(--space-2); }

.ponuda-field label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.ponuda-field label span { color: var(--color-accent); }

.ponuda-field input,
.ponuda-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
}

.ponuda-field input::placeholder,
.ponuda-field textarea::placeholder { color: var(--color-text-muted); opacity: 0.6; }

.ponuda-field input:focus,
.ponuda-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(98,71,144,.12);
}

.ponuda-field textarea { resize: vertical; min-height: 100px; }

.ponuda-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-2);
  flex-wrap: wrap;
}

.ponuda-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.ponuda-success {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  grid-column: 1 / -1;
}

.ponuda-success__icon {
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.ponuda-success__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}

.ponuda-sidebar { display: flex; flex-direction: column; gap: var(--space-4); }

.ponuda-sidebar__card {
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}

.ponuda-sidebar__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.ponuda-sidebar__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ponuda-sidebar__steps li {
  counter-increment: steps;
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

.ponuda-sidebar__steps li::before {
  content: counter(steps);
  min-width: 22px;
  height: 22px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ponuda-sidebar__phone {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.ponuda-sidebar__phone:hover { color: var(--color-accent-hover); }

.ponuda-sidebar__email {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: var(--space-3);
  word-break: break-all;
  transition: color var(--transition-fast);
}

.ponuda-sidebar__email:hover { color: var(--color-accent-hover); }

.ponuda-error__email {
  display: block;
  margin-top: var(--space-2);
  color: inherit;
  font-weight: var(--weight-semibold);
  word-break: break-all;
}

.ponuda-sidebar__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-16);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: var(--weight-bold);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 9999;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(26, 26, 26, 0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
}

.cookie-banner__text {
  flex: 1 1 320px;
}

.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.cookie-banner__desc {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

.cookie-banner__link {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.footer-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
}

.footer-cookie-settings:hover {
  color: var(--color-accent);
}
