/*!==========================================================================
 * Harizma Modern — Visual Refresh Override Sheet
 *
 * Loaded after parent main.css and child style.css.
 * Only overrides visual properties (color, font, spacing, radius, shadow).
 * Does NOT restructure layout or change parent JavaScript behavior.
 * ==========================================================================*/

/* ==========================================================================
   1. BASE TYPOGRAPHY & GLOBAL
   ========================================================================== */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  color: #1C1C1F;
  letter-spacing: -0.01em;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* Base links */
a {
  transition: color var(--transition-base), opacity var(--transition-base);
  color: var(--color-accent-primary);
}
a:hover,
a:focus {
  color: var(--color-accent-secondary);
  opacity: 0.9;
}

/* ==========================================================================
   2. DARK BACKGROUNDS — Warmer, deeper tones
   (Replaces hard-coded #1a1a1a, #222, #333, #0f0f0f)
   ========================================================================== */

.bg-dark {
  background-color: #0D0D0F !important;
}

/* Section backgrounds that used #1a1a1a */
[style*="background-color: #1a1a1a"],
[style*="background-color:#1a1a1a"] {
  background-color: #141416 !important;
}

/* Overlay backgrounds */
.overlay_dark {
  background-color: #0D0D0F;
  opacity: 0.7;
}

.overlay_black {
  background-color: #0D0D0F;
  opacity: 0.7;
}

/* ==========================================================================
   3. ACCENT COLOR — Applied via CSS variables already, but explicit backup
   ========================================================================== */

.color-accent {
  color: var(--color-accent-primary) !important;
}

.bg-accent,
.background-accent {
  background-color: var(--color-accent-primary) !important;
}

/* ==========================================================================
   4. SITE TITLE / WORDMARK
   ========================================================================== */

.site-title {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--color-accent-primary);
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.header {
  backdrop-filter: blur(0px);
  transition: backdrop-filter var(--transition-slow),
              background-color var(--transition-slow),
              box-shadow var(--transition-slow);
}

/* Add subtle blur when header is scrolled (JS adds .header_scrolled) */
.header_scrolled {
  backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(13, 13, 15, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Slim the header container padding when scrolled for a sleeker bar */
.header_scrolled .header__container {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  transition: padding var(--transition-slow);
}

/* Header padding */
.header__row {
  min-height: 68px;
}

/* ==========================================================================
   6. NAVIGATION MENU
   ========================================================================== */

.menu > li > a {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1C1C1F;
  transition: color var(--transition-base);
}

.menu > li > a:hover {
  color: var(--color-accent-primary);
}

/* Active underline indicator */
.menu > li:not(.menu-item-has-children) > a:before {
  background-color: var(--color-accent-primary);
  height: 2px;
  border-radius: 2px;
}

/* Dropdown caret — fix for FA6 (parent uses FA4 content code in font "FontAwesome") */
.menu > li.menu-item-has-children > a:after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f107"; /* fa-angle-down — same glyph, now FA6 */
  font-size: 12px;
  opacity: 0.65;
  margin-left: 6px;
}

/* Dropdown sub-menu */
.menu .sub-menu {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-light-300);
  overflow: hidden;
  min-width: 220px;
  z-index: 9999;
}

.menu .sub-menu > li > a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 10px 20px;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              padding-left var(--transition-base);
}

.menu .sub-menu > li > a:hover {
  background-color: var(--color-light-100);
  color: var(--color-accent-primary);
  padding-left: 24px;
}

/* Current/active page highlighted in sub-menu */
.menu .sub-menu > li.current-menu-item > a,
.menu .sub-menu > li.current_page_item > a {
  color: var(--color-accent-primary);
  background-color: rgba(37, 99, 235, 0.05);
  font-weight: 600;
}

/* FA6 fix for nested sub-menu expand arrow */
.menu .sub-menu > li.menu-item-has-children > a:after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f105";
}

/* Header white variant menu links */
.header_absolute.header_white .menu > li > a {
  color: rgba(255, 255, 255, 0.9);
}

.header_absolute.header_white .menu > li:not(.menu-item-has-children) > a:before {
  background-color: #ffffff;
}

/* White variant hover — dim slightly rather than going blue on white bg */
.header_absolute.header_white .menu > li > a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* White variant active page underline stays white */
.header_absolute.header_white .menu > li.current-menu-item > a,
.header_absolute.header_white .menu > li.current_page_item > a {
  color: #ffffff;
}

/* ==========================================================================
   7. BURGER MENU
   Hidden — the Elementor nav-menu toggle replaces it (see section 8).
   ========================================================================== */

/* ==========================================================================
   8. OVERLAY FULLSCREEN MENU
   ========================================================================== */

/* Hide the Harizma fullscreen overlay menu system entirely.
   The Elementor nav menu widget handles desktop dropdowns and its own
   mobile toggle, so the Harizma overlay is not needed. */

.header__wrapper-overlay-menu,
.header__wrapper-background,
.header__overlay-menu-back {
  display: none !important;
}

/* Hide burger on desktop where horizontal nav is visible.
   On mobile/tablet it stays visible as the hamburger toggle. */
@media (min-width: 1025px) {
  .burger {
    display: none !important;
  }
}

/* ==========================================================================
   8b. MOBILE NAVIGATION (Elementor built-in toggle)
   The parent theme suppresses .elementor-menu-toggle in favour of .burger.
   Now that .burger is gone, we restore the Elementor toggle on mobile/tablet.
   ========================================================================== */

/* Show Elementor's hamburger toggle below 1025 px */
@media (max-width: 1024px) {

  .elementor-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background-color var(--transition-base);
  }

  .elementor-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
  }

  /* Icon colour: white when header is transparent/white-variant, dark otherwise */
  .header_absolute.header_white .elementor-menu-toggle i,
  .header_absolute.header_white .elementor-menu-toggle svg {
    color: #ffffff !important;
    fill: #ffffff !important;
  }

  .elementor-menu-toggle i,
  .elementor-menu-toggle svg {
    font-size: 22px;
    color: #1C1C1F;
  }

  /* Hide the horizontal nav on mobile */
  .elementor-nav-menu--main.elementor-nav-menu__container {
    display: none !important;
  }

  /* Slide-in panel from the right.
     Always in the DOM but translated off-screen; slides to x=0 when open.
     Elementor sets style="display:block" when the toggle is tapped —
     we target that to trigger the slide-in transition. */
  .elementor-nav-menu--dropdown {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(85vw, 360px) !important;
    height: 100vh !important;
    background: #0B0B18 !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45) !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 100px 32px 48px !important;
    z-index: 9998 !important;
    display: flex !important;            /* always rendered */
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    /* slide off-screen by default */
    transform: translateX(110%) !important;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.38s ease !important;
  }

  .elementor-nav-menu--dropdown::-webkit-scrollbar {
    display: none !important;
  }

  /* Open state — class-based toggle (JS) or Elementor inline style */
  .elementor-nav-menu--dropdown[style*="display: block"],
  .elementor-nav-menu--dropdown[style*="display:block"],
  .elementor-nav-menu--dropdown.is-open {
    transform: translateX(0) !important;
  }

  /* Pure-CSS burger → X animation (GSAP listeners removed by JS clone) */
  .burger.burger_opened .burger__line {
    transition: transform 0.32s var(--ease-in-out), opacity 0.2s ease;
  }
  .burger.burger_opened .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.burger_opened .burger__line:nth-child(2) {
    opacity: 0;
  }
  .burger.burger_opened .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Menu items — left-aligned, clean */
  .elementor-nav-menu--dropdown .elementor-item,
  .elementor-nav-menu--dropdown a {
    font-family: var(--font-primary) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 11px 0 !important;
    text-align: left !important;
    display: block !important;
    line-height: 1.2 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: none !important;
    transition: color var(--transition-base),
                padding-left var(--transition-base) !important;
  }

  .elementor-nav-menu--dropdown li:last-child > .elementor-item,
  .elementor-nav-menu--dropdown li:last-child > a {
    border-bottom: none !important;
  }

  .elementor-nav-menu--dropdown .elementor-item:hover,
  .elementor-nav-menu--dropdown a:hover {
    color: #ffffff !important;
    padding-left: 6px !important;
    background: none !important;
  }

  /* Active page */
  .elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
  .elementor-nav-menu--dropdown .current-menu-item > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: none !important;
  }

  /* Sub-menu — indented */
  .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    padding: 0 0 0 14px !important;
    display: block !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown .elementor-item,
  .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown .elementor-item:hover,
  .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    padding-left: 6px !important;
  }

  /* Toggle stays on top of the panel */
  .elementor-menu-toggle {
    position: relative !important;
    z-index: 9999 !important;
  }
}

/* Backdrop overlay for mobile slide-in menu */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
  pointer-events: none;
}

body.mobile-menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   9. BUTTONS
   ========================================================================== */

.button {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  transition: all var(--transition-base);
}

/* Solid accent */
.button_solid.button_accent {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(var(--color-accent-primary-rgb), 0.3);
}

.button_solid.button_accent:hover,
.button_solid.button_accent:focus {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  box-shadow: 0 6px 20px rgba(var(--color-accent-primary-rgb), 0.45);
  transform: translateY(-1px);
}

/* Solid dark */
.button_solid.button_dark {
  background-color: var(--color-dark-900);
  border-color: var(--color-dark-900);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.button_solid.button_dark:hover,
.button_solid.button_dark:focus {
  background-color: var(--color-dark-700);
  border-color: var(--color-dark-700);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* Bordered accent */
.button_bordered.button_accent {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}

.button_bordered.button_accent:hover,
.button_bordered.button_accent:focus {
  background-color: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(var(--color-accent-primary-rgb), 0.3);
  transform: translateY(-1px);
}

/* Bordered dark */
.button_bordered.button_dark {
  border-color: var(--color-dark-900);
  color: var(--color-dark-900);
}

.button_bordered.button_dark:hover,
.button_bordered.button_dark:focus {
  background-color: var(--color-dark-900);
  color: #ffffff;
  transform: translateY(-1px);
}

/* White */
.button_solid.button_white:hover,
.button_solid.button_white:focus {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Arrow button */
.button_arrow {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Remove hover lift for arrow buttons */
.button_arrow:hover {
  transform: none;
}

/* ==========================================================================
   10. LINKS
   ========================================================================== */

.link {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================================================
   11. FORMS & FORM CONTROLS
   ========================================================================== */

.form-control__input {
  font-family: var(--font-primary);
  font-size: 15px;
  border-radius: var(--radius-sm);
  border-bottom-width: 1.5px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-control__input:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-primary-rgb), 0.15);
  outline: none;
}

.form-control__label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mid-400);
}

/* ==========================================================================
   12. SECTIONS — Tighter, more rhythmic spacing
   ========================================================================== */

.section {
  position: relative;
}

/* Section intro/masthead headings — max width for readability */
.section-masthead__title,
.section-intro__title {
  max-width: 14ch;
}

/* ==========================================================================
   13. FILTER / PORTFOLIO FILTER
   ========================================================================== */

.filter__item {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  transition: background-color var(--transition-base),
              color var(--transition-base);
}

.filter__item.active,
.filter__item:hover {
  background-color: var(--color-accent-primary);
  color: #ffffff;
}

/* ==========================================================================
   14. FIGURES — Cards (feature, member, service, pricing)
   ========================================================================== */

.figure-feature {
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.figure-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.figure-feature__content h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.figure-member {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.figure-pricing {
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.figure-pricing:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--color-light-100) !important;
}

.footer .widgettitle {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.footer a {
  transition: color var(--transition-base);
}

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

/* ==========================================================================
   16. SCROLL UP BUTTON
   ========================================================================== */

.scroll-up {
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.scroll-up:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.pagination .page-numbers {
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--color-accent-primary);
  color: #ffffff;
}

/* ==========================================================================
   18. SOCIAL ICONS
   ========================================================================== */

.social__icon {
  transition: color var(--transition-base), transform var(--transition-base);
}

.social__icon:hover {
  color: var(--color-accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   19. LOGO HEIGHT — Slightly more compact
   ========================================================================== */

.logo {
  height: 96px;
}

@media only screen and (max-width: 1200px) {
  .logo {
    height: 72px;
  }
}

/* ==========================================================================
   20. SEARCH BAR — Fixed from original child (display:none breaks transitions)
   ========================================================================== */

.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 16px 24px;
  border-top: 1px solid var(--color-light-300);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-base),
              transform var(--transition-base),
              visibility var(--transition-base);
}

.search-bar.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-icon {
  cursor: pointer;
  color: #1C1C1F;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.search-icon:hover {
  background-color: var(--color-light-200);
}

.header_absolute.header_white .search-icon {
  color: #ffffff;
}

/* ==========================================================================
   21. PRELOADER
   ========================================================================== */

.preloader {
  background-color: var(--color-dark-900);
}

/* ==========================================================================
   22. POST META & TAGS
   ========================================================================== */

.post-meta {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-mid-400);
}

.tags a {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  border: 1.5px solid var(--color-light-300);
  color: var(--color-mid-400);
  transition: border-color var(--transition-base),
              color var(--transition-base),
              background-color var(--transition-base);
}

.tags a:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  background-color: rgba(var(--color-accent-primary-rgb), 0.05);
}

/* ==========================================================================
   23. SECTION TYPOGRAPHY BLOCKS
   ========================================================================== */

/* Eyebrow labels above section headings */
.arts-split-text__line,
.section__headline,
.section__heading-label {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}

/* Large section headings */
.section__title h1,
.section__title h2,
.section-masthead__title h1,
.section-masthead__title h2 {
  font-family: var(--font-secondary);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ==========================================================================
   24. COUNTER NUMBERS
   ========================================================================== */

.counter__number,
.counter__value {
  font-family: var(--font-secondary);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ==========================================================================
   25. ASIDE / SIDEBAR WIDGETS
   ========================================================================== */

.widgettitle,
.widget-title {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 15px;
  text-transform: none;
}

/* ==========================================================================
   26. IMAGE HOVER OVERLAYS — Slightly brighter accent
   ========================================================================== */

.overlay_accent {
  background-color: var(--color-accent-primary);
  opacity: 0.88;
}

/* ==========================================================================
   27. SELECTION COLOR
   ========================================================================== */

::selection {
  background-color: rgba(var(--color-accent-primary-rgb), 0.18);
  color: var(--color-dark-900);
}

::-moz-selection {
  background-color: rgba(var(--color-accent-primary-rgb), 0.18);
  color: var(--color-dark-900);
}

/* ==========================================================================
   28. FOCUS RINGS (Accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   29. RESPONSIVE REFINEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .button {
    padding: 13px 28px;
    font-size: 14px;
  }

  .logo {
    height: 60px;
  }

  .menu > li > a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .button {
    padding: 12px 22px;
  }
}

/* ==========================================================================
   30. HERO / BANNER IMAGE TREATMENT
   Masks outdated or low-resolution background photos with a modern
   cinematic overlay so the focus stays on the text, not the image quality.
   ========================================================================== */

/* All lazy-loaded background images — subtle contrast boost */
.lazy-bg {
  image-rendering: -webkit-optimize-contrast;
}

/* Intro/hero slider backgrounds */
.section-intro__wrapper-backgrounds .swiper-slide,
.slider-intro-backgrounds .swiper-slide {
  filter: brightness(0.7) contrast(1.08) saturate(0.85);
}

/* Rich gradient from bottom so text pops on any image — blog posts only */
body:not(.page) .section-intro::after,
body:not(.page) .section-intro__wrapper-backgrounds::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 14, 0.82) 0%,
    rgba(10, 10, 14, 0.55) 50%,
    rgba(10, 10, 14, 0.20) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Page masthead headers — filter only, no overlay on primary pages */
.section-masthead__header_background {
  filter: brightness(0.72) contrast(1.06) saturate(0.9);
}

/* Masthead gradient overlay — blog posts/archives only, not primary pages */
body.single-post .section-masthead__header_background::after,
body.archive .section-masthead__header_background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 10, 14, 0.65) 0%,
    rgba(10, 10, 14, 0.30) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Header overlay (fullscreen menu background images) */
.header__background {
  filter: brightness(0.6) contrast(1.05) saturate(0.8);
}

/* Make sure section-intro content sits above the gradient pseudo-element */
.section-intro__wrapper-content {
  position: relative;
  z-index: 10;
}

/* Responsive: stronger vignette on mobile (portrait) */
@media (max-width: 768px) {
  .section-intro::after,
  .section-intro__wrapper-backgrounds::after {
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 14, 0.55) 0%,
      rgba(10, 10, 14, 0.75) 100%
    );
  }
}

/* ==========================================================================
   31. ELEMENTOR NAVIGATION — TOGGLE + DESKTOP MENU
   Mobile dropdown is handled entirely in section 8b (slide-in panel).
   ========================================================================== */

/* --- Hamburger toggle: all states via global CSS variables --- */
.elementor-menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base);
  color: var(--color-dark-900);           /* default: dark icon on light bg */
}

.elementor-menu-toggle .eicon-menu-bar,
.elementor-menu-toggle i {
  font-size: 22px !important;
  color: inherit;
}

/* Hover state */
.elementor-menu-toggle:hover {
  background-color: var(--color-light-200);
}

/* White/dark header variant: white icon */
.header_absolute.header_white .elementor-menu-toggle {
  color: #ffffff;
}

.header_absolute.header_white .elementor-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Active/open state — Elementor adds .elementor-active when panel is open */
.elementor-menu-toggle.elementor-active {
  color: var(--color-accent-primary) !important;
  background-color: rgba(var(--color-accent-primary-rgb), 0.08) !important;
}

/* --- Desktop nav items --- */
.elementor-nav-menu--main .elementor-item {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1C1C1F;
  transition: color var(--transition-base);
  text-transform: none;
}

.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--main .elementor-item--active {
  color: var(--color-accent-primary) !important;
}

/* White/dark header variant — Elementor desktop nav links */
.header_absolute.header_white .elementor-nav-menu--main .elementor-item,
.header_white .elementor-nav-menu--main .elementor-item {
  color: rgba(255, 255, 255, 0.9) !important;
}

.header_absolute.header_white .elementor-nav-menu--main .elementor-item:hover,
.header_white .elementor-nav-menu--main .elementor-item:hover {
  color: rgba(255, 255, 255, 0.65) !important;
}

.header_absolute.header_white .elementor-nav-menu--main .elementor-item-active,
.header_absolute.header_white .elementor-nav-menu--main .elementor-item.elementor-item-active,
.header_white .elementor-nav-menu--main .elementor-item-active,
.header_white .elementor-nav-menu--main .elementor-item.elementor-item-active {
  color: #ffffff !important;
}

/* Active underline */
.elementor-nav-menu--main .elementor-item--active::after,
.elementor-nav-menu--main .elementor-item.highlighted::after {
  background-color: var(--color-accent-primary) !important;
  height: 2px !important;
  border-radius: 2px;
}

/* --- Desktop submenu dropdown --- */
.elementor-nav-menu--main .elementor-nav-menu .sub-menu {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-light-300) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 2px 8px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden;
  padding: 6px 0 !important;
  min-width: 220px !important;
  z-index: 9999 !important;
}

.elementor-nav-menu--main .elementor-nav-menu .sub-menu .elementor-sub-item {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px !important;
  color: #1C1C1F;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              padding-left var(--transition-base);
}

.elementor-nav-menu--main .elementor-nav-menu .sub-menu .elementor-sub-item:hover {
  background-color: var(--color-light-100);
  color: var(--color-accent-primary) !important;
  padding-left: 24px !important;
}

.elementor-nav-menu--main .elementor-nav-menu .sub-menu .elementor-item--active,
.elementor-nav-menu--main .elementor-nav-menu .sub-menu .elementor-sub-item.elementor-item--active {
  color: var(--color-accent-primary) !important;
  background-color: rgba(var(--color-accent-primary-rgb), 0.05);
  font-weight: 600;
}

/* --- Force dark slide-in appearance on mobile.
   Overrides any desktop-oriented dropdown styles above. --- */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown {
    background: #0B0B18 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45) !important;
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu > li:last-child {
    border-bottom: none !important;
  }

  .elementor-nav-menu--dropdown .elementor-item,
  .elementor-nav-menu--dropdown .elementor-sub-item {
    color: rgba(255, 255, 255, 0.82) !important;
    background: none !important;
    border-bottom: none !important;
  }

  .elementor-nav-menu--dropdown .elementor-item:hover,
  .elementor-nav-menu--dropdown .elementor-sub-item:hover {
    color: #ffffff !important;
    background: none !important;
    padding-left: 6px !important;
  }

  .elementor-nav-menu--dropdown .elementor-item--active,
  .elementor-nav-menu--dropdown .elementor-item.highlighted,
  .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: none !important;
  }

  .elementor-nav-menu--dropdown .elementor-item--active::before {
    background-color: var(--color-accent-primary) !important;
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu .sub-menu .elementor-sub-item {
    color: rgba(255, 255, 255, 0.5) !important;
    background: none !important;
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu .sub-menu .elementor-sub-item:hover {
    color: rgba(255, 255, 255, 0.85) !important;
  }
}

/* ==========================================================================
   32. BLOG POST CARDS — FULL VISUAL REFRESH
   Fixes: blurry/stretched thumbnails, outdated card layout, weak hover
   Key fix: object-fit: cover on thumbnails so any image looks intentional
   ========================================================================== */

/* --- Card container --- */
.figure-post {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ffffff;
  padding-bottom: 0;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

/* --- Card shadow/hover variant --- */
.figure-post_shadow {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07),
              0 1px 3px rgba(0, 0, 0, 0.05);
}

.figure-post_shadow:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12),
              0 6px 16px rgba(0, 0, 0, 0.08);
}

/* --- Thumbnail wrapper: fixed aspect ratio, no stretching --- */
.figure-post__wrapper-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;       /* fixed height so all cards align regardless of image size */
  margin-bottom: 0;
  overflow: hidden;
  background-color: var(--color-light-200);
}

/* THE KEY FIX: object-fit crops to the best part of any image.
   No more stretching, and a clean center crop hides edge blurriness. */
.figure-post__wrapper-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s var(--ease-in-out),
              filter 0.65s var(--ease-in-out);
  filter: brightness(0.95) contrast(1.03);
}

/* Slow zoom-in and slight sharpen on card hover */
.figure-post:hover .figure-post__wrapper-thumbnail img {
  transform: scale(1.04);
  filter: brightness(0.88) contrast(1.05) saturate(0.9);
}

/* Dark gradient scrim from the bottom of the image.
   This intentionally obscures the blurriest part (usually edges/bottom) */
.figure-post__wrapper-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 14, 0.45) 0%,
    rgba(10, 10, 14, 0.10) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
}

.figure-post:hover .figure-post__wrapper-thumbnail::after {
  opacity: 1;
}

/* --- Category badge on the thumbnail (top-left) --- */
.figure-post__wrapper-thumbnail .post-meta__link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background-color: var(--color-accent-primary);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* --- Content area --- */
.figure-post__wrapper-content {
  padding: 22px 24px 4px;
}

.figure-post[class*=bg-] .figure-post__wrapper-content {
  padding: 22px 24px 4px;
}

/* --- Post title --- */
.figure-post__wrapper-content h3 {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 10px;
}

.figure-post__wrapper-content h3 a {
  color: var(--color-dark-900);
  transition: color var(--transition-base);
}

.figure-post__wrapper-content h3 a:hover {
  color: var(--color-accent-primary);
}

/* Clamp excerpt to 3 lines so cards stay uniform height */
.figure-post__wrapper-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-mid-400);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* --- Post meta (date, author, category) --- */
.figure-post .post-meta {
  margin: 0 0 10px;
  padding: 0 24px;
}

.figure-post .post-meta__item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 6px 8px 6px 0;
}

.figure-post .post-meta__item-text {
  color: var(--color-mid-400);
}

.figure-post .post-meta__item a {
  color: var(--color-mid-400);
  font-weight: 600;
}

.figure-post .post-meta__item a:hover {
  color: var(--color-accent-primary);
}

/* --- Footer / read more --- */
.figure-post__footer {
  padding: 14px 24px 22px;
}

.figure-post__wrapper-readmore {
  margin-top: 6px;
  padding: 0 24px 22px;
}

.figure-post__wrapper-readmore .button,
.figure-post__wrapper-readmore .button_arrow {
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-accent-primary);
}

.figure-post__wrapper-readmore .button_arrow:hover {
  color: var(--color-accent-secondary);
}

/* --- Gallery overlay variant (image-only cards with text on top) --- */
.figure-post_gallery {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.figure-post_gallery .figure-post__inner {
  background: linear-gradient(
    to top,
    rgba(10, 10, 14, 0.90) 0%,
    rgba(10, 10, 14, 0.50) 50%,
    rgba(10, 10, 14, 0.10) 100%
  );
  z-index: 2;
  padding: 28px;
}

.figure-post_gallery .figure-post__wrapper-content h3 a {
  color: #ffffff;
}

.figure-post_gallery .post-meta__item-text,
.figure-post_gallery .post-meta__item a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

/* --- Section container: latest news / blog listing --- */
.section-blog__wrapper-post {
  margin-bottom: 24px;
}

/* --- Blog post preview layout (full-page blog list) --- */
.figure-post_preview {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-light-300);
  border-radius: 0;
  overflow: visible;
}

.figure-post_preview h4 {
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.figure-post_preview h4 a {
  color: var(--color-dark-900);
}

.figure-post_preview h4 a:hover {
  color: var(--color-accent-primary);
}

.figure-post_preview .figure-post__wrapper-thumbnail {
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

/* --- Responsive: taller thumbnails on large screens --- */
@media (min-width: 1200px) {
  .figure-post__wrapper-thumbnail {
    height: 240px;
  }
}

/* --- Responsive: compact on mobile --- */
@media (max-width: 768px) {
  .figure-post__wrapper-thumbnail {
    height: 200px;
  }

  .figure-post__wrapper-content {
    padding: 18px 18px 4px;
  }

  .figure-post__footer,
  .figure-post__wrapper-readmore {
    padding-left: 18px;
    padding-right: 18px;
  }

  .figure-post .post-meta {
    padding: 0 18px;
  }
}

/* ==========================================================================
   33. SINGLE BLOG POST PAGE
   Addresses: blurry masthead images, sparse legacy content, dated sidebar.
   ========================================================================== */

/* --- Post masthead: much stronger overlay for single posts.
   Featured images (especially old/blurry ones) are heavily dimmed so the
   title is always legible and the blur becomes irrelevant. --- */

.section-masthead {
  position: relative;
}

.section-masthead__header_background {
  filter: brightness(0.55) contrast(1.08) saturate(0.75);
}

/* Replace the simple gradient with a solid-to-clear approach:
   bottom half is near-black, top fades to a dark tone.
   This practically eliminates visible blurry image detail. */
.section-masthead__header_background::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 14, 0.40) 0%,
    rgba(10, 10, 14, 0.72) 60%,
    rgba(10, 10, 14, 0.90) 100%
  );
}

/* Masthead title: tighter, bolder, better letter-spacing */
.section-masthead h1:not(.section-masthead__subheading) {
  font-family: var(--font-secondary);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Masthead meta (date/category line) */
.section-masthead__meta,
.section-masthead__meta a {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

/* --- Post content area: comfortable reading width, generous spacing --- */

.post__header {
  max-width: 720px;
  margin-bottom: 2.5em;
}

.post__header h2 {
  font-family: var(--font-secondary);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.3em;
}

/* Post body text: comfortable line length and spacing */
.post__content {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.8;
  color: #2C2C2E;
  max-width: 680px;
}

.post__content p {
  margin-bottom: 1.5em;
}

.post__content a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--color-accent-primary-rgb), 0.35);
  transition: text-decoration-color var(--transition-base);
}

.post__content a:hover {
  text-decoration-color: var(--color-accent-primary);
}

/* Thin/sparse post: give it breathing room so it doesn't look empty */
.post__content {
  min-height: 120px;
}

/* Thumbnail on post page: proper aspect ratio */
.post__wrapper-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.5em;
}

.post__wrapper-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.96) contrast(1.03);
}

/* Post footer: tags, share, navigation */
.post__footer {
  border-top: 1px solid var(--color-light-300);
  margin-top: 3.5em;
  padding-top: 2em;
}

/* Post properties: tag cloud */
.post__properties {
  max-width: 720px;
}

/* --- Tags on single post page --- */
.tags-links a,
.post__properties .tags a,
.post__properties a {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin: 4px 4px 4px 0;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-light-300);
  color: var(--color-mid-400);
  background-color: transparent;
  transition: border-color var(--transition-base),
              color var(--transition-base),
              background-color var(--transition-base);
}

.tags-links a:hover,
.post__properties .tags a:hover,
.post__properties a:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  background-color: rgba(var(--color-accent-primary-rgb), 0.05);
}

/* --- Post meta (date, author) on single post --- */
.post-meta__item {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.post-meta__item-text {
  color: var(--color-mid-400);
}

.post-meta__item a {
  color: var(--color-mid-400);
  font-weight: 600;
  transition: color var(--transition-base);
}

.post-meta__item a:hover {
  color: var(--color-accent-primary);
}

/* Post meta icon */
.post-meta__item-icon {
  color: var(--color-accent-primary);
  opacity: 0.7;
}

/* --- Sidebar: full modernization --- */

.sidebar {
  max-width: 280px;
}

/* Individual widget block */
.widget {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-light-300);
}

.widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Sidebar widget title */
.sidebar .widgettitle,
.widgettitle {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark-900);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Accent line before widget title */
.sidebar .widgettitle::before,
.widgettitle::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background-color: var(--color-accent-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Widget list items */
.widget ul:not(.social) li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-200);
  font-size: 14px;
  line-height: 1.45;
}

.widget ul:not(.social) li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget ul:not(.social) a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #2C2C2E;
  transition: color var(--transition-base);
}

.widget ul:not(.social) a:hover {
  color: var(--color-accent-primary);
}

/* Search widget input */
.widget.widget_search input[type="search"],
.widget.widget_search input[type="text"] {
  font-family: var(--font-primary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-light-300);
  padding: 10px 14px;
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.widget.widget_search input:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-primary-rgb), 0.12);
  outline: none;
}

.widget.widget_search button,
.widget.widget_search input[type="submit"] {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.widget.widget_search button:hover,
.widget.widget_search input[type="submit"]:hover {
  background-color: #1D4ED8;
}

/* Recent posts widget: show date in muted style */
.widget_recent_entries a {
  font-weight: 600;
  color: #1C1C1F;
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 11px;
  color: var(--color-mid-400);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Categories widget: count badges */
.widget_categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories li a {
  font-weight: 500;
}

/* Prev/next post navigation */
.aside-next-post__subheading {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}

.aside-next-post__content {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- Responsive: collapse sidebar below content on tablet/mobile --- */
@media (max-width: 991px) {
  .sidebar {
    max-width: 100%;
    margin-top: 3em;
    padding-top: 3em;
    border-top: 1px solid var(--color-light-300);
  }

  .post__header h2 {
    font-size: 28px;
  }

  .post__content {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .section-masthead h1:not(.section-masthead__subheading) {
    font-size: 28px;
  }

  .post__header h2 {
    font-size: 24px;
  }
}
