/* ==========================================================================
   Stepica Solution — main.css
   Global styles: tokens · fonts · base · buttons · header · footer ·
   page hero · blog templates · 404 · utilities.
   Section styles live in /blocks/{block}/style.css (loaded only when used).
   Brand: Navy #25305b · Blue #4572b7 · Deep Navy #10162c · Orange #f97316
   ========================================================================== */

/* ---------- Self-hosted fonts (latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/poppins-800-latin.woff2) format('woff2');
}
/* Metric-matched fallbacks → minimal layout shift (CLS) while fonts swap in. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  size-adjust: 112.16%;
  ascent-override: 93.62%;
  descent-override: 31.21%;
  line-gap-override: 8.92%;
}

/* ---------- Design tokens ---------- */
:root {
  --primary: #25305b;
  --primary-dark: #161c38;
  --primary-light: #3d4f8c;
  --teal: #4572b7;
  --teal-dark: #345a91;
  --teal-light: #9dbce8;
  --orange: #f97316;
  --navy: #10162c;
  --navy-2: #1c2750;

  --white: #ffffff;
  --off-white: #f5f8fb;
  --light-gray: #eef2f7;
  --border: #e1e8f0;
  --mid-gray: #94a3b8;
  --dark-gray: #5b6b80;
  --text-body: #445264;
  --text-dark: #0f2438;

  --font-display: 'Poppins', 'Poppins Fallback', sans-serif;
  --font-body: 'Inter', 'Inter Fallback', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 30, 60, 0.06);
  --shadow-md: 0 14px 34px rgba(10, 30, 60, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 30, 60, 0.18);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --transition: all 0.25s var(--ease);
  --container-w: 1240px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

ul, ol { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

p { color: var(--text-body); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  top: 10px;
  left: 10px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 868px; }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 92, 158, 0.08);
  color: var(--primary);
  border: 1px solid rgba(10, 92, 158, 0.16);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px 7px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.section-tag i { font-size: 0.72rem; }
.section-tag--dark {
  background: rgba(69, 114, 183, 0.15);
  color: var(--teal-light);
  border-color: rgba(157, 188, 232, 0.2);
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  max-width: 720px;
  margin: 0 auto 16px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-footer { margin-top: 40px; }

.highlight { color: var(--primary); }
.highlight-teal { color: var(--teal-dark); }
.text-teal-light { color: var(--teal-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn i { font-size: 0.9em; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(10, 92, 158, 0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 92, 158, 0.32); }

.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(69, 114, 183, 0.28); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(69, 114, 183, 0.35); }

.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-primary { background: var(--white); color: var(--primary); border: 1.5px solid var(--border); }
.btn-outline-primary:hover { border-color: var(--primary); background: rgba(10, 92, 158, 0.05); transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
  transition: var(--transition);
}
.whatsapp-btn:hover { background: #1fb955; transform: translateY(-2px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 18px 0;
  background: transparent;
  transition: background-color .25s var(--ease), padding .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header.scrolled,
.has-solid-header .site-header {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(10, 30, 60, 0.08);
}
.has-solid-header .site-main { padding-top: var(--header-h); }

.site-header .container { position: relative; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo: two images, CSS decides which one is visible (no JS src swap). */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 38px; width: auto; transition: height .25s var(--ease); }
.nav-logo-dark { display: none; }
.site-header.scrolled .nav-logo-light,
.has-solid-header .nav-logo-light { display: none; }
.site-header.scrolled .nav-logo-dark,
.has-solid-header .nav-logo-dark { display: block; }
.site-header.scrolled .nav-logo-img { height: 34px; }

.nav-panel { display: flex; align-items: center; gap: 30px; margin-left: auto; }

.site-header .nav-links { display: flex; align-items: center; gap: 34px; }
.site-header .nav-links > li { position: relative; }
.site-header .nav-links a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.site-header .nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-header .nav-links > li > a:hover,
.site-header .nav-links > .current-menu-item > a,
.site-header .nav-links > .current-menu-ancestor > a,
.site-header .nav-links > .current_page_parent > a { color: var(--white); }
.site-header .nav-links > li > a:hover::after,
.site-header .nav-links > .current-menu-item > a::after,
.site-header .nav-links > .current-menu-ancestor > a::after,
.site-header .nav-links > .current_page_parent > a::after { transform: scaleX(1); }

.site-header.scrolled .nav-links a,
.has-solid-header .site-header .nav-links a { color: var(--text-dark); }
.site-header.scrolled .nav-links > li > a:hover,
.site-header.scrolled .nav-links > .current-menu-item > a,
.site-header.scrolled .nav-links > .current_page_parent > a,
.has-solid-header .site-header .nav-links > li > a:hover,
.has-solid-header .site-header .nav-links > .current-menu-item > a { color: var(--primary); }

/* Dropdowns (desktop) */
.site-header .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 230px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.site-header .sub-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.site-header .nav-links li:hover > .sub-menu,
.site-header .nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-header .sub-menu a {
  color: var(--text-dark) !important;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.site-header .sub-menu a:hover,
.site-header .sub-menu .current-menu-item > a { background: var(--off-white); color: var(--primary) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 6px;
  background: none;
  border: 0;
  z-index: 1001;
}
.hamburger-bar {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .25s;
}
.site-header.scrolled .hamburger-bar,
.has-solid-header .hamburger-bar { background: var(--text-dark); }
.hamburger[aria-expanded="true"] .hamburger-bar:nth-of-type(2) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-bar:nth-of-type(3) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-bar:nth-of-type(4) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .hamburger { display: flex; }

  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-panel.is-open { display: flex; }

  .site-header .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header .nav-links a {
    color: var(--text-dark);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .site-header .nav-links > li > a::after { display: none; }
  .site-header .nav-links a:hover,
  .site-header .nav-links .current-menu-item > a,
  .site-header .nav-links .current_page_parent > a { background: var(--off-white); color: var(--primary); }

  .site-header .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .site-header .sub-menu::before { display: none; }

  .nav-cta .btn { width: 100%; padding: 13px 18px; }
}
@media (max-width: 620px) { .nav-panel { left: 18px; right: 18px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); padding: 70px 0 0; }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo-img { height: 34px; width: auto; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 320px;
}
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}
.social-link:hover { background: var(--teal); border-color: var(--teal); color: var(--white); transform: translateY(-3px); }

.footer-title { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; }

.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.87rem;
  transition: var(--transition);
}
.footer-links a i { font-size: 0.62rem; color: var(--teal-light); }
.footer-links a:hover,
.footer-links .current-menu-item > a { color: var(--white); transform: translateX(3px); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.87rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.footer-contact-item i { color: var(--teal-light); width: 16px; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.6); transition: color .25s; word-break: break-word; }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; transition: color .25s; }
.footer-bottom-links a:hover { color: var(--white); }

@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform .25s var(--ease);
}
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.12);
  opacity: 0;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
/* Animate opacity only (compositor-friendly, no repaint every frame). */
@keyframes floatPulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (max-width: 560px) { .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; } }

/* ==========================================================================
   PAGE HERO (inner pages / blog / single / 404)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #2f4d8f 100%);
  padding: 160px 0 70px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 80% 0%, rgba(69, 114, 183, 0.18), transparent 45%);
}
.page-hero.has-bg-image { background: var(--navy); padding-bottom: 90px; }
.page-hero.has-bg-image::before { z-index: -1; }
.page-hero-content { position: relative; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.page-hero .container.page-hero-content { max-width: var(--container-w); }
.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 820px;
}
.page-hero-desc { margin: 0 auto 26px; max-width: 620px; }
.page-hero-desc p { color: rgba(255, 255, 255, 0.72); font-size: 1.02rem; line-height: 1.75; }
.page-hero-desc p + p { margin-top: 12px; }

.page-hero--post h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.page-hero--post .blog-meta {
  justify-content: center;
  border-top: 0;
  padding-top: 0;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.page-hero h1 .highlight { color: var(--teal-light); }
.breadcrumb a { color: rgba(255, 255, 255, 0.7); transition: color .25s; }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb i { font-size: 0.6rem; }
.breadcrumb span { color: var(--teal-light); font-weight: 600; }

@media (max-width: 620px) { .page-hero { padding: 130px 0 56px; } }

/* ==========================================================================
   BLOG — listing
   ========================================================================== */
.blog-filter-bar { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.blog-categories { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cat-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--dark-gray);
  transition: var(--transition);
}
.cat-btn:hover, .cat-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }

.blog-listing { padding-top: 60px; }

.featured-post {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: stretch;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.featured-post-image {
  display: block;
  min-height: 240px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  position: relative;
}
.featured-post-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post-content { padding: 32px 32px 32px 0; align-self: center; }
.featured-post-content h2 { font-size: 1.5rem; line-height: 1.35; margin: 10px 0 14px; }
.featured-post-content h2 a:hover { color: var(--primary); }
.featured-post-content p { font-size: 0.93rem; color: var(--dark-gray); line-height: 1.75; margin-bottom: 18px; }
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; gap: 0; }
  .featured-post-image { aspect-ratio: 16 / 9; min-height: 0; }
  .featured-post-content { padding: 24px; }
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.85);
}
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .blog-meta { margin-top: auto; }
.blog-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(10, 92, 158, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  transition: background-color .25s;
}
a.blog-tag:hover { background: rgba(10, 92, 158, 0.16); }
.blog-card-title { font-size: 1.02rem; line-height: 1.4; margin-bottom: 10px; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-body p { font-size: 0.86rem; line-height: 1.65; margin-bottom: 16px; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: var(--mid-gray);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* Featured band (page 1 of "All Posts") */
.blog-featured { padding: 60px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.blog-featured .featured-post { margin-bottom: 0; }

/* In-place filtering / paging (assets/js/blog.js) */
.blog-filter-bar { scroll-margin-top: var(--header-h); }
.blog-results { transition: opacity .2s var(--ease); }
.blog-results:focus { outline: none; }
.blog-results[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.cat-btn:focus-visible,
.stepica-pagination .page-numbers:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Pagination */
.stepica-pagination { margin-top: 56px; }
.stepica-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.stepica-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: var(--transition);
}
.stepica-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.stepica-pagination .page-numbers.current {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(10, 92, 158, 0.2);
}
.stepica-pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 24px; padding: 0; }
.stepica-pagination .prev i,
.stepica-pagination .next i { font-size: 0.8rem; }

@media (max-width: 620px) {
  .blog-featured { padding: 44px 0; }
  .stepica-pagination { margin-top: 40px; }
  .stepica-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; }
}

/* Pagination */
.stepica-pagination { margin-top: 50px; }
.stepica-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.stepica-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.stepica-pagination a.page-numbers:hover,
.stepica-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.stepica-pagination .dots { border: 0; }

.empty-state { text-align: center; max-width: 520px; margin: 0 auto; }
.empty-state > i { font-size: 2.6rem; color: var(--teal); margin-bottom: 16px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { margin-bottom: 24px; }

/* ==========================================================================
   BLOG — single
   ========================================================================== */
.single-post-article { padding-top: 60px; padding-bottom: 60px; }
.single-featured-image { margin-bottom: 40px; }
.single-featured-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--mid-gray);
}
.post-tags a {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
}
.post-tags a:hover { border-color: var(--primary); color: var(--primary); }

.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
  display: block;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.post-navigation a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-subtitle { display: block; font-size: 0.75rem; font-weight: 700; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.nav-title { font-family: var(--font-display); font-weight: 600; color: var(--text-dark); line-height: 1.4; }
@media (max-width: 620px) {
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: auto; }
}

.related-posts { background: var(--off-white); }
.related-posts .section-title { margin-bottom: 40px; }

/* ---------- Entry content (Gutenberg core blocks inside posts/pages) ---------- */
.entry-content { font-size: 1.04rem; line-height: 1.8; color: var(--text-body); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; letter-spacing: -0.01em; }
.entry-content h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content a:not(.wp-element-button):not(.btn) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:not(.wp-element-button):not(.btn):hover { color: var(--teal-dark); }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li::marker { color: var(--teal); }
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--off-white);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}
.entry-content img { border-radius: var(--radius-md); }
.entry-content figcaption { font-size: 0.85rem; color: var(--mid-gray); text-align: center; margin-top: 8px; }
.entry-content pre { background: var(--navy); color: #e2e8f0; padding: 20px; border-radius: var(--radius-md); overflow-x: auto; font-size: 0.9rem; }
.entry-content code { background: var(--light-gray); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--off-white); color: var(--text-dark); }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.entry-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

.page-links { margin-top: 30px; display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* ---------- Comments ---------- */
.comments-area { border-top: 1px solid var(--border); padding-top: 40px; }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin-bottom: 24px; }
.comment-list { margin-bottom: 40px; }
.comment-list .children { padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-dark); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--mid-gray); margin: 4px 0 10px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); background: var(--white); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.search-field {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.95rem;
}
.search-field:focus { outline: none; border-color: var(--primary); }
.search-form .btn { padding: 12px 18px; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.error-404 .page-hero-content { text-align: center; }
.error-404 h1, .error-404 .page-hero-desc { margin-left: auto; margin-right: auto; }
.error-code {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--teal-light), #eaf1fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.error-search .search-field { background: rgba(255, 255, 255, 0.95); border-color: transparent; }

/* ==========================================================================
   SCROLL REVEAL — only hides content when JS is running (.js on <html>),
   so content is never invisible if JS fails or in the block editor.
   ========================================================================== */
.js .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .fade-up.in-view { opacity: 1; transform: none; }
.fade-up.delay-1.in-view { transition-delay: 0.08s; }
.fade-up.delay-2.in-view { transition-delay: 0.16s; }
.fade-up.delay-3.in-view { transition-delay: 0.24s; }
.fade-up.delay-4.in-view { transition-delay: 0.32s; }
.fade-up.delay-5.in-view { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { .js .fade-up { opacity: 1; transform: none; } }

/* ==========================================================================
   RESPONSIVE — general
   ========================================================================== */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 44px 0; }
}

/* ==========================================================================
   MEDIA UTILITIES (section photos — see stepica_img() / stepica_section_bg())
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--primary) 65%, var(--teal));
}
.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Background photo behind dark sections, tinted with the brand navy. */
.has-bg-image { position: relative; isolation: isolate; }
.section-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.section-bg-img { width: 100%; height: 100%; object-fit: cover; }
.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 22, 44, 0.94) 0%, rgba(22, 28, 56, 0.86) 50%, rgba(37, 48, 91, 0.72) 100%);
}

/* Small dotted decoration used beside photos. */
.media-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--teal-light) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

/* Built-in pattern backgrounds are already dark → lighter tint. */
.section-bg--pattern::after { background: linear-gradient(120deg, rgba(16, 22, 44, 0.55), rgba(37, 48, 91, 0.25)); }

/* ==========================================================================
   LANDING UTILITIES — shared by the landing blocks (landing-hero,
   content-split, topic-cards, info-tabs, step-timeline, pricing-factors,
   scenario-compare, audience-cta). Tiny on purpose: block-specific styles
   stay in each block's own style.css.
   ========================================================================== */

/* Section backgrounds (field "Background"). */
.lp-bg--light { background: var(--off-white); }
.lp-bg--dark {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #22386a 100%);
  color: rgba(255, 255, 255, 0.78);
}
.lp-bg--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(69, 114, 183, 0.32), transparent 40%),
    radial-gradient(circle at 6% 92%, rgba(249, 115, 22, 0.1), transparent 38%);
}
.lp-bg--dark :is(h2, h3, h4) { color: var(--white); }
.lp-bg--dark p { color: rgba(255, 255, 255, 0.74); }
.lp-bg--dark .section-tag {
  background: rgba(69, 114, 183, 0.18);
  color: var(--teal-light);
  border-color: rgba(157, 188, 232, 0.24);
}
.lp-bg--dark .section-subtitle { color: rgba(255, 255, 255, 0.7); }
.lp-bg--dark .highlight { color: var(--teal-light); }

/* "Join with previous section" → no top padding (continues the section above). */
.section.is-joined { padding-top: 0; }

/* Multi-paragraph copy. */
.lp-prose p { font-size: 1rem; line-height: 1.8; }
.lp-prose p + p { margin-top: 14px; }
.lp-prose a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.lp-bg--dark .lp-prose a { color: var(--teal-light); }

/* Check list (one item per line in the editor). */
.lp-check { display: grid; gap: 12px; }
.lp-check li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
}
.lp-check li > i {
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(69, 114, 183, 0.12);
  color: var(--teal-dark);
  font-size: 0.66rem;
}
.lp-bg--dark .lp-check li { color: rgba(255, 255, 255, 0.86); }
.lp-bg--dark .lp-check li > i { background: rgba(157, 188, 232, 0.16); color: var(--teal-light); }
@media (min-width: 700px) {
  .lp-check--cols { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}

/* Left-aligned section heading (blocks with a side layout). */
.lp-heading .section-title { margin: 0 0 16px; max-width: none; }
.lp-heading .section-subtitle { margin: 0; max-width: 620px; }

/* Branded image placeholder (shown until a photo is uploaded). */
.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(157, 188, 232, 0.35), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(249, 115, 22, 0.22), transparent 40%),
    linear-gradient(150deg, var(--navy) 0%, var(--primary) 60%, var(--teal) 130%);
  color: var(--white);
  text-align: center;
}
.media-ph::before,
.media-ph::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.media-ph::before { width: 70%; aspect-ratio: 1; }
.media-ph::after { width: 110%; aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 255, 255, 0.08); }
.media-ph-icon {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 2.1rem;
  color: var(--white);
}
.media-ph-hint {
  position: relative;
  max-width: 240px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.lp-bg--dark .media-frame { border: 1px solid rgba(255, 255, 255, 0.12); }

/* Headings inside narrow side columns (sticky layouts). */
.lp-heading .section-title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); text-wrap: balance; }
