/* ── Design tokens ── */

:root {
  /* Colors */
  --color-bg:           #ffffff;
  --color-surface:      #f8f9fa;
  --color-surface-alt:  #f1f3f5;
  --color-border:       #e8eaed;
  --color-text:         #111111;
  --color-text-muted:   #5f6368;
  --color-accent:       #dc2626;
  --color-accent-hover: #b91c1c;
  --color-dark:         #111111;
  --color-dark-surface: #1e1e1e;
  --color-white:        #ffffff;

  /* Typography */
  --font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --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:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;
  --leading-tight:  1.2;
  --leading-normal: 1.5;
  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

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

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-3xl:  48px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max-width:     1080px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition:      0.2s ease;
  --transition-slow: 0.35s ease;

  /* Z-index */
  --z-header:   20;
  --z-dropdown: 30;
  --z-modal:    50;

  /* Inherited base styles */
  color-scheme: light;
  font-family: var(--font-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

/* ── Reset ── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Full-page background canvas — sits behind all content */
#page-bg-canvas {
  position:       fixed;
  top:            0;
  left:           0;
  width:          100%;
  height:         100%;
  pointer-events: none;
  /* no z-index: DOM order (first child of body) keeps it behind everything */
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

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

/* ── Header ── */

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.site-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* ── Primary nav — top level only ── */

.site-navigation {
  display: flex;
  align-items: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu > .menu-item {
  position: relative;
  list-style: none;
}

/* Scoped to direct children of .menu so sub-menu links are untouched */
.menu > .menu-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}

.menu > .menu-item:hover > a,
.menu > .menu-item:focus-within > a {
  background: rgba(220, 38, 38, 0.07);
  color: #dc2626;
}

/* Chevron — only on top-level items with dropdowns */
.menu > .menu-item.has-dropdown > a::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.35;
  flex-shrink: 0;
  transition: transform 0.14s, opacity 0.14s;
}

.menu > .menu-item.has-dropdown:hover > a::after {
  transform: rotate(225deg) translateY(1px);
  opacity: 0.6;
}

/* ── Dropdown panel ── */

.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-top: 3px solid #dc2626;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07), 0 20px 48px rgba(0, 0, 0, 0.11);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s 0.16s;
  z-index: 200;
}

.menu > .menu-item:hover > .sub-menu,
.menu > .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* ── Dropdown items (regular menus) ── */

.sub-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-menu > li > a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.sub-menu > li > a::after {
  content: '→';
  margin-left: auto;
  padding-left: 18px;
  font-size: 0.78rem;
  color: #dc2626;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.12s, transform 0.12s;
}

.sub-menu > li > a:hover {
  background: #fef2f2;
  color: #dc2626;
}

.sub-menu > li > a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Šta radimo — 2-col mega panel ── */

.sub-menu--mega {
  flex-direction: row;
  align-items: flex-start;
  min-width: 420px;
  padding: 16px;
  gap: 0;
}

.sub-menu__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-menu__col + .sub-menu__col {
  border-left: 1px solid #ebebeb;
  padding-left: 14px;
  margin-left: 10px;
}

/* Column label */
.sub-menu__col-head {
  display: block;
  padding: 0 6px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(220, 38, 38, 0.18);
  margin-bottom: 6px;
}

/* Column items */
.sub-menu__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-menu__col-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-menu__col-list > li > a {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  font-size: 0.855rem;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.sub-menu__col-list > li > a::after {
  content: '→';
  margin-left: auto;
  padding-left: 14px;
  font-size: 0.75rem;
  color: #dc2626;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.12s, transform 0.12s;
}

.sub-menu__col-list > li > a:hover {
  background: #fef2f2;
  color: #dc2626;
}

.sub-menu__col-list > li > a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hamburger button ── */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(220, 38, 38, 0.08);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #dc2626;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Card ── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  translate: 0 var(--space-6);
  transition: opacity 0.5s ease, translate 0.5s ease, box-shadow var(--transition);
}

.card.is-visible {
  opacity: 1;
  translate: 0 0;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Sections ── */

.section {
  width: 100%;
  padding: var(--space-20) var(--space-8);
}

.section--hero {
  min-height:      100vh;
  display:         flex;
  align-items:     flex-end;
  justify-content: flex-start;
  position:        relative;
  background-color: #ffffff;
  overflow:        hidden;
  padding:         0 0 clamp(4rem, 9vh, 6.5rem) clamp(2.5rem, 8vw, 8rem);
}

/* ── Hero component ── */

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  will-change: transform;
  opacity: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__content {
  position:       relative;
  z-index:        2;
  text-align:     left;
  pointer-events: none;
  will-change:    transform, opacity;
}

/* Short red rule that draws in just before the headline arrives */
.hero__content::before {
  content:       '';
  display:       block;
  width:         0;
  height:        2px;
  background:    var(--color-accent);
  margin-bottom: 1.1rem;
  animation:     heroRule 0.7s cubic-bezier(0.16, 1, 0.3, 1) 280ms forwards;
}

@keyframes heroRule {
  to { width: 2.8rem; }
}

.hero__line {
  display:     block;
  font-family: 'Poppins', sans-serif;
  font-size:   clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color:       rgb(18, 18, 18);
  line-height: 1.08;
  overflow:    hidden;
}

.hero__line:first-child {
  color: var(--color-accent);
}

/* Main headline lines: negative tracking reads better at large sizes */
.hero__line--spaced {
  letter-spacing: -0.02em;
}

.hero__char {
  display:   inline-block;
  opacity:   0;
  filter:    blur(10px);
  transform: translateY(-8px);
  animation: charIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charIn {
  to {
    opacity:   1;
    filter:    blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .section--hero {
    padding: 0 0 clamp(5rem, 18vh, 10rem) clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero__line {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }


}

.section--panel {
  border-radius: var(--radius-3xl);
  max-width: var(--max-width);
  margin: var(--space-4) auto;
  transform-origin: center top;
  position: relative;
  overflow: hidden;
}


.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* ── Footer ── */

.site-footer {
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:                   var(--space-12);
  align-items:           start;
  max-width:             var(--max-width);
  margin-inline:         auto;
  padding:               var(--space-12) var(--space-8);
}

.footer-logo img {
  height:    36px;
  width:     auto;
  display:   block;
  opacity:   0.85;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-col__heading {
  font-family:    var(--font-base);
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text);
  margin:         0 0 var(--space-4);
}

/* Contact list */
.footer-contact {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    flex;
  flex-direction: column;
  gap:        var(--space-3);
}

.footer-contact li {
  line-height: 1.5;
}

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

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

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

/* Social links */
.footer-social {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    flex;
  flex-direction: column;
  gap:        var(--space-3);
}

.footer-social__link {
  display:     inline-flex;
  align-items: center;
  gap:         0.6em;
  color:       var(--color-text-muted);
  font-weight: var(--weight-medium);
  transition:  color var(--transition-fast);
}

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

/* Bottom bar */
.footer-bottom {
  border-top:    1px solid var(--color-border);
  padding:       var(--space-4) var(--space-8);
  text-align:    center;
  font-size:     var(--text-xs);
  color:         var(--color-text-muted);
  max-width:     var(--max-width);
  margin-inline: auto;
}

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

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

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap:                   var(--space-8);
    padding:               var(--space-8) var(--space-8);
  }

  .footer-bottom {
    padding: var(--space-4) var(--space-8);
  }
}

/* ── Fallback content (pages, posts, 404) ── */

.content-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.entry-title {
  margin-top: 0;
}

/* ── Animations ── */

/* Non-hero sections: invisible until scrolled into view (IntersectionObserver adds .is-visible) */
.section:not(.section--hero) {
  opacity: 0;
  translate: 0 var(--space-8);
  transition: opacity 0.65s ease, translate 0.65s ease;
}

.section.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Card stagger delay per sibling index */
.card:nth-child(2) { transition-delay: 0.10s; }
.card:nth-child(3) { transition-delay: 0.20s; }
.card:nth-child(4) { transition-delay: 0.30s; }
.card:nth-child(5) { transition-delay: 0.40s; }
.card:nth-child(6) { transition-delay: 0.50s; }

/* Scroll-past shrink: sections scale down as they leave the viewport upward.
   Progressive enhancement — only Chrome 115+ and Firefox 110+ support this. */
@supports (animation-timeline: view()) {
  @keyframes section-exit {
    from { scale: 1; }
    to   { scale: 0.92; }
  }

  .section--panel {
    animation: section-exit linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 60%;
  }
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  .section:not(.section--hero),
  .card {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .hero__char,
  .section--panel {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════
   Feature / Presentation Section
   ══════════════════════════════════════════════════════════ */

/*
 * Override the generic section scroll-reveal — .section--feature
 * manages its own per-element entrance animations instead.
 */
.section.section--feature {
  opacity:   1;
  translate: none;
  transition: none;
}

/* ── Grid ── */

.feature {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:   "image body";
  gap:                   clamp(2rem, 4vw, 3.5rem);
  align-items:           center;
  width:                 100%;
}

.feature__media { grid-area: image; }
.feature__body  { grid-area: body;  }

/*
 * JS adds .section--feature--even to every 2nd feature section on the page,
 * giving reliable alternation regardless of what other blocks surround them.
 * .section--feature--reverse is the manual per-block override from the editor.
 */
.section--feature--even .feature,
.section--feature--reverse .feature {
  grid-template-areas: "body image";
}

/* ── Image ── */

.feature__media {
  position:      relative;
  overflow:      hidden;
  border-radius: var(--radius-xl);
  /* Start as a dot in the centre — expands to fill on entry (echoes hero circles) */
  clip-path:     circle(0% at 50% 50%);
  transition:    clip-path 1.0s cubic-bezier(0.34, 1.12, 0.64, 1) 0.15s;
}

.section--feature.is-visible .feature__media {
  clip-path: circle(150% at 50% 50%);
}

/* Image: JS drives parallax translateY; we keep a base scale for cover crop */
.feature__img {
  width:      100%;
  height:     auto;
  display:    block;
  transform:  translateY(0) scale(1.06);
  will-change: transform;
}

/* ── Text body ── */

.feature__body {
  display:              flex;
  flex-direction:       column;
  align-items:          flex-start;
  gap:                  var(--space-4);
  background:           rgba(255, 255, 255, 0.72);
  backdrop-filter:      blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius:        16px;
  padding:              clamp(1.5rem, 4vw, 2.5rem);
}

/* Eyebrow: small red label with a leading dash */
.feature__eyebrow {
  display:        flex;
  align-items:    center;
  gap:            0.55em;
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--color-accent);
  opacity:        0;
  transform:      translateY(10px);
  transition:     opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.feature__eyebrow::before {
  content:     '';
  display:     block;
  width:       20px;
  height:      1.5px;
  background:  var(--color-accent);
  flex-shrink: 0;
}

.section--feature.is-visible .feature__eyebrow {
  opacity:   1;
  transform: translateY(0);
}

/*
 * Heading: clearly secondary to the hero (hero ≈ 5rem, this ≈ 2.25rem).
 * JS splits words into .word > .word-inner for the clip-and-slide entrance.
 */
.feature__heading {
  font-family:    'Poppins', sans-serif;
  font-size:      clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight:    var(--weight-bold);
  line-height:    1.18;
  letter-spacing: -0.02em;
  color:          var(--color-text);
  margin:         0;
}

.feature__heading .word {
  display:        inline-block;
  overflow:       hidden;
  vertical-align: bottom;
  line-height:    1.25;
}

.feature__heading .word-inner {
  display:    inline-block;
  transform:  translateY(110%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.section--feature.is-visible .feature__heading .word-inner {
  transform: translateY(0);
}

/* Body text */
.feature__text {
  font-size:   var(--text-base);
  line-height: 1.75;
  color:       var(--color-text-muted);
  max-width:   46ch;
  margin:      0;
  opacity:     0;
  transform:   translateY(12px);
  transition:  opacity 0.65s ease 0.6s, transform 0.65s ease 0.6s;
}

.feature__text p            { margin: 0 0 0.85em; }
.feature__text p:last-child { margin-bottom: 0; }

.section--feature.is-visible .feature__text {
  opacity:   1;
  transform: translateY(0);
}

/* CTA link */
.feature__cta {
  display:         inline-flex;
  align-items:     center;
  gap:             0.45em;
  font-size:       var(--text-sm);
  font-weight:     var(--weight-semi);
  color:           var(--color-accent);
  text-decoration: none;
  border-bottom:   1.5px solid currentColor;
  padding-bottom:  1px;
  opacity:         0;
  transform:       translateY(10px);
  transition:
    opacity      0.5s ease 0.85s,
    transform    0.5s ease 0.85s,
    color        var(--transition-fast),
    border-color var(--transition-fast);
}

.feature__cta::after {
  content:    '→';
  display:    inline-block;
  transition: transform 0.2s ease;
}

.feature__cta:hover        { color: var(--color-accent-hover); }
.feature__cta:hover::after { transform: translateX(4px); }

.section--feature.is-visible .feature__cta {
  opacity:   1;
  transform: translateY(0);
}

/* ── Dark variant ── */

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

.section--feature--dark .feature__heading {
  color: var(--color-white);
}

.section--feature--dark .feature__text {
  color: rgba(255, 255, 255, 0.52);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .feature {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "body";
    gap: 1.75rem;
  }

  /* All variants stack image on top on mobile */
  .section--feature--even .feature,
  .section--feature--reverse .feature {
    grid-template-areas:
      "image"
      "body";
  }

  .feature__text {
    max-width: none;
  }
}

/* ── Reduced-motion ── */

@media (prefers-reduced-motion: reduce) {
  .feature__media,
  .feature__img,
  .feature__eyebrow,
  .feature__heading .word-inner,
  .feature__text,
  .feature__cta {
    transition: none !important;
    transform:  none !important;
    clip-path:  none !important;
    opacity:    1   !important;
  }
}


/* ── Responsive ── */

@media (max-width: 768px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 8px 8px 8px 16px;
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .site-navigation {
    display: none;
    width: 100%;
    padding: 12px 0 16px;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
  }

  .site-navigation.is-open {
    display: flex;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .menu > .menu-item {
    position: static;
    width: 100%;
  }

  .menu > .menu-item > a {
    border-radius: 8px;
    padding: 13px 12px;
    width: 100%;
  }

  /* ── Mobile dropdowns: accordion, full-width ── */
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    background: transparent;
    padding: 4px 0 8px 14px;
    min-width: 0;
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .menu-item.is-open > .sub-menu {
    display: flex;
  }

  .sub-menu > li > a,
  .sub-menu__col-list > li > a {
    white-space: normal;
    border-radius: 8px;
    padding: 11px 12px;
  }

  /* Mega menu — stack columns vertically */
  .sub-menu--mega {
    flex-direction: column;
    min-width: 0;
    padding: 4px 0 8px 14px;
    gap: 0;
  }

  .sub-menu__col + .sub-menu__col {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
  }

  .sub-menu__col-head {
    padding-top: 6px;
    padding-bottom: 8px;
  }
}

/* ══════════════════════════════════════════════════════════
   Partners / Logo Marquee Section
   ══════════════════════════════════════════════════════════ */

.section--partners {
  padding: 72px 0 80px;
  background: var(--color-bg);
  overflow: hidden;
}

/* Header */
.partners__header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}

.partners__eyebrow {
  display:        flex;
  align-items:    center;
  justify-content: center;
  gap:            0.55em;
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--color-accent);
  margin:         0 0 12px;
}

.partners__eyebrow-dash {
  display:     block;
  width:       20px;
  height:      1.5px;
  background:  var(--color-accent);
  flex-shrink: 0;
}

.partners__sub {
  font-family:    'Poppins', sans-serif;
  font-size:      clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight:    700;
  line-height:    1.18;
  letter-spacing: -0.02em;
  color:          var(--color-text);
  margin:         0;
}

/* Marquee wrapper — fades the edges */
.partners__marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* Each row */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

/* Left-scrolling row */
.marquee--left .marquee__track {
  animation: marquee-left 28s linear infinite;
}

/* Right-scrolling row */
.marquee--right .marquee__track {
  animation: marquee-right 34s linear infinite;
}

/* Pause on hover / reduced-motion */
.partners__marquee-wrap:hover .marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
  }
}

/* Individual items */
.marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 72px;
  min-width: 148px;
  padding: 0 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.marquee__item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.1);
}

.marquee__item img {
  max-height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.25s ease;
}

.marquee__item:hover img {
  filter: grayscale(0) opacity(1);
}

/* Placeholder text items (shown before real logos are uploaded) */
.marquee__item--placeholder {
  background: var(--color-surface-alt);
  border-style: dashed;
}

.marquee__item--placeholder span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Keyframes */
@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════
   Services / Bubbles Section
   ══════════════════════════════════════════════════════════ */

/* Full-bleed atmospheric section — no rounded corners, no max-width.
   Sits between content sections as a visual chapter break. */
.section--services {
  position:        relative;
  min-height:      65vh;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      #e80405;
  overflow:        hidden;
  padding:         0; /* inner container handles padding */
}

/* Override generic section scroll-reveal — bubbles have their own entrance */
.section.section--services {
  opacity:    1;
  translate:  none;
  transition: none;
}

/* Photo layer — same image as hero */
.services__photo {
  position:            absolute;
  inset:               0;
  z-index:             0;
  background-size:     cover;
  background-position: center;
  pointer-events:      none;
  transform:           scale(1.2);
  will-change:         transform;
}

/* Canvas layer — red network nodes, no hover interaction */
.services__canvas {
  position:       absolute;
  inset:          0;
  z-index:        1;
  display:        block;
  width:          100%;
  height:         100%;
  pointer-events: none;
}

/* Content layer */
.services__inner {
  position:       relative;
  z-index:        2;
  width:          100%;
  max-width:      var(--max-width);
  margin-inline:  auto;
  padding:        var(--space-20) var(--space-8);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  will-change:    transform;
  gap:            var(--space-12);
}

/* ── Header ── */

.services__header {
  text-align: center;
}

.services__heading {
  font-family:    'Poppins', sans-serif;
  font-size:      clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight:    var(--weight-bold);
  line-height:    1.15;
  letter-spacing: -0.02em;
  color:          var(--color-text);
  margin:         0;
  opacity:        0;
  transform:      translateY(16px);
  transition:     opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.section--services.is-visible .services__heading {
  opacity:   1;
  transform: translateY(0);
}

.services__sub {
  margin:        0.75rem auto 0;
  font-size:     var(--text-base);
  line-height:   1.65;
  color:         var(--color-text-muted);
  max-width:     50ch;
  opacity:       0;
  transform:     translateY(12px);
  transition:    opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.section--services.is-visible .services__sub {
  opacity:   1;
  transform: translateY(0);
}

/* ── Bubbles ── */

.services__bubbles {
  display:         flex;
  flex-wrap:       wrap;
  gap:             0.875rem;
  justify-content: center;
  max-width:       900px;
}

/* Entry: slides up and fades in */
@keyframes bubble-entry {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Float: gentle continuous oscillation */
@keyframes bubble-float {
  0%, 100% { transform: translateY(0);    }
  50%      { transform: translateY(-9px); }
}

.bubble {
  display:               inline-flex;
  align-items:           center;
  padding:               0.6rem 1.3rem;
  background:            rgba(220, 38, 38, 0.88);
  backdrop-filter:       blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:                1px solid rgba(220, 38, 38, 0.5);
  border-radius:         var(--radius-full);
  font-size:             var(--text-sm);
  font-weight:           var(--weight-medium);
  color:                 var(--color-white);
  white-space:           nowrap;
  box-shadow:            0 2px 16px rgba(220, 38, 38, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08);
  opacity:               0; /* hidden until section is visible */
  will-change:           transform;
}

/*
 * When section enters viewport, trigger entry then hand off to float.
 * bubble-entry: 0.55s, starts at --bubble-delay
 * bubble-float: starts after entry completes (delay + 0.55s), loops forever
 */
.section--services.is-visible .bubble {
  animation:
    bubble-entry 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--bubble-delay, 0s) both,
    bubble-float var(--bubble-dur, 5.5s) ease-in-out calc(var(--bubble-delay, 0s) + 0.55s) infinite;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .services__inner {
    gap: var(--space-8);
  }

  .bubble {
    font-size: var(--text-xs);
    padding:   0.5rem 1.1rem;
  }
}

/* ── Reduced-motion ── */

@media (prefers-reduced-motion: reduce) {
  .services__heading,
  .services__sub {
    opacity:    1 !important;
    transform:  none !important;
    transition: none !important;
  }

  .bubble {
    opacity:    1 !important;
    animation:  none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   Event Page Template
   ══════════════════════════════════════════════════════════ */

/* ── Hero ── */

.event-page {
  padding-top: 0;
}

.event-hero {
  position:            relative;
  width:               100%;
  height:              clamp(360px, 68vh, 760px);
  overflow:            hidden;
  display:             flex;
  align-items:         flex-end;
  background-color:    var(--color-accent); /* fallback while image loads */
  background-size:     cover;
  background-position: center center;
}

/* Dark gradient so title is always readable over any photo */
.event-hero::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 0;
}

.event-hero--no-image {
  background-color: var(--color-accent);
}

/* Title / meta overlay sits above the gradient */
.event-hero__overlay {
  position: relative;
  z-index:  1;
  width:    100%;
  padding:  clamp(24px, 4vw, 48px) clamp(20px, 5vw, 64px);
}

.event-hero__inner {
  max-width:     var(--max-width);
  margin-inline: auto;
}

.event-hero__title {
  font-family:    'Poppins', sans-serif;
  font-size:      clamp(1.6rem, 3.5vw, 3rem);
  font-weight:    700;
  line-height:    1.15;
  letter-spacing: -0.02em;
  color:          #fff;
  margin:         0 0 14px;
  text-shadow:    0 2px 12px rgba(0, 0, 0, 0.5);
}

.event-hero__meta {
  list-style:  none;
  margin:      0;
  padding:     0;
  display:     flex;
  flex-wrap:   wrap;
  gap:         6px 20px;
}

.event-meta-item {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  font-size:   var(--text-sm);
  font-weight: 500;
  color:       rgba(255, 255, 255, 0.88);
}

.event-meta-item svg {
  flex-shrink: 0;
  color:       var(--color-accent);
}

/* ── Body layout ── */

.event-body {
  background: var(--color-bg);
  padding:    clamp(32px, 5vw, 64px) clamp(16px, 4vw, 32px);
}

.event-body__inner {
  max-width:             1200px;
  margin-inline:         auto;
  display:               grid;
  grid-template-columns: 1fr 360px;
  gap:                   clamp(32px, 4vw, 56px);
  align-items:           start;
}

.event-body__inner--full {
  grid-template-columns: 1fr;
  max-width:             780px;
}

/* ── Content ── */

.event-body__content {
  min-width: 0; /* prevent grid blowout */
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
}

.event-body__content h2,
.event-body__content h3 {
  font-family:    'Poppins', sans-serif;
  font-weight:    700;
  letter-spacing: -0.02em;
  margin-top:     2em;
  margin-bottom:  0.5em;
}

.event-body__content h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.event-body__content h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

.event-body__content p  { margin: 0 0 1.2em; }
.event-body__content ul,
.event-body__content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.event-body__content li { margin-bottom: 0.4em; }

/* ── Sticky sidebar ── */

.event-body__sidebar {
  position:   sticky;
  top:        100px; /* clears the fixed floating header */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.event-sidebar-card {
  background:    var(--color-bg);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl, 20px);
  padding:       28px 24px;
  box-shadow:    0 4px 24px rgba(0, 0, 0, 0.07);
}

.event-sidebar-card__heading {
  font-family:    'Poppins', sans-serif;
  font-size:      1.15rem;
  font-weight:    700;
  letter-spacing: -0.01em;
  color:          var(--color-text);
  margin:         0 0 16px;
}

.event-sidebar-card__meta {
  list-style:  none;
  margin:      0 0 16px;
  padding:     0;
  font-size:   var(--text-sm);
  color:       var(--color-text-muted);
  display:     flex;
  flex-direction: column;
  gap:         6px;
}

.event-sidebar-card__meta strong {
  color:       var(--color-text);
  font-weight: 600;
}

.event-sidebar-card__divider {
  border:        none;
  border-top:    1px solid var(--color-border);
  margin:        0 0 20px;
}

/* Formidable form overrides inside the sidebar */
.event-sidebar-card .frm_forms label {
  font-size:   var(--text-sm);
  font-weight: 500;
  color:       var(--color-text);
}

.event-sidebar-card .frm_forms input[type="text"],
.event-sidebar-card .frm_forms input[type="email"],
.event-sidebar-card .frm_forms input[type="tel"],
.event-sidebar-card .frm_forms textarea,
.event-sidebar-card .frm_forms select {
  width:         100%;
  border:        1px solid var(--color-border);
  border-radius: 10px;
  padding:       10px 14px;
  font-size:     var(--text-sm);
  color:         var(--color-text);
  background:    var(--color-bg);
  transition:    border-color 0.2s ease, box-shadow 0.2s ease;
  outline:       none;
}

.event-sidebar-card .frm_forms input:focus,
.event-sidebar-card .frm_forms textarea:focus,
.event-sidebar-card .frm_forms select:focus {
  border-color: var(--color-accent);
  box-shadow:   0 0 0 3px rgba(220, 38, 38, 0.12);
}

.event-sidebar-card .frm_forms .frm_submit button,
.event-sidebar-card .frm_forms .frm_submit input[type="submit"] {
  width:         100%;
  background:    var(--color-accent);
  color:         #fff;
  border:        none;
  border-radius: 10px;
  padding:       12px 20px;
  font-size:     var(--text-sm);
  font-weight:   600;
  cursor:        pointer;
  transition:    background 0.2s ease, transform 0.15s ease;
}

.event-sidebar-card .frm_forms .frm_submit button:hover,
.event-sidebar-card .frm_forms .frm_submit input[type="submit"]:hover {
  background:  var(--color-accent-hover);
  transform:   translateY(-1px);
}

/* ── Responsive ── */

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

  .event-body__sidebar {
    position:   static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  /* 56.25vw = exactly 16:9 at any screen width — no cropping for FHD images */
  .event-hero {
    height: max(220px, 56.25vw);
  }

  .event-hero__overlay {
    padding: 20px 16px;
  }

  .event-hero__meta {
    flex-direction: column;
    gap:            8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-sidebar-card .frm_forms .frm_submit button:hover,
  .event-sidebar-card .frm_forms .frm_submit input[type="submit"]:hover {
    transform: none;
  }
}
