/*
Theme Name: MesraHR
Theme URI: https://mesrahr.com/
Author: MesraHR Team
Description: A modern, glass-morphism SaaS landing page theme for MesraHR — HR Made Simple. Built for Malaysian SMEs with full Elementor Header/Footer compatibility.
Version: 2.5.2
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mesrahr
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template, translation-ready
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ── DESIGN TOKENS (aligned with MesraHR Design System) ── */
:root {
  /* Brand palette */
  --teal:       #3DBFB8;
  --teal-d:     #1FA89F;
  --teal-dd:    #0E5651;
  --teal-deep:  #1A8F88;
  --teal-lt:    #A8EDE8;
  --teal-pale:  #E6F9F8;
  /* Grays — from design system */
  --gray-0:     #FFFFFF;
  --gray-50:    #F7FFFE;
  --gray-100:   #F5F6FA;
  --gray-200:   #EAECF2;
  --gray-300:   #D1D5E0;
  --gray-500:   #8A93A8;
  --gray-600:   #636D85;
  --gray-700:   #454E64;
  --gray-800:   #2D3142;
  --gray-900:   #181D2E;
  /* Semantic aliases */
  --ink:        var(--gray-800);
  --ink-soft:   var(--gray-600);
  --ink-muted:  var(--gray-500);
  --border:     rgba(255,255,255,0.55);
  /* Status */
  --success:    #4CAF82;
  --warning:    #F5A623;
  --error:      #E05252;
  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;
  /* Typography — Plus Jakarta Sans (display + UI), Poppins (body) */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-ui:      'Plus Jakarta Sans', sans-serif;
  --font-body:    'Poppins', sans-serif;
  /* Shadows */
  --shadow-card:     0 2px 16px rgba(0,0,0,0.08);
  --shadow-elevated: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-brand:    0 4px 20px rgba(61,191,184,0.35);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: #f0fafa;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── LIQUID GLASS UTILITY ── */
.glass {
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 4px 32px rgba(61,191,184,0.08), inset 0 1px 0 rgba(255,255,255,0.85);
}
.glass-dark {
  background: rgba(14,86,81,0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(168,237,232,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(168,237,232,0.2);
}
.lq {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18);
}
.lq::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.18) 80%, rgba(255,255,255,0.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── LAYOUT ── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.rv.on { opacity: 1; transform: none; }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.40s} .d6{transition-delay:.48s}

@keyframes fade-rise { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
.fr   { animation: fade-rise .8s ease-out both; }
.fr1  { animation: fade-rise .8s ease-out .15s both; }
.fr2  { animation: fade-rise .8s ease-out .30s both; }
.fr3  { animation: fade-rise .8s ease-out .48s both; }
.fr4  { animation: fade-rise .8s ease-out .62s both; }

@keyframes ray-pulse { 0%,100%{opacity:.55} 50%{opacity:.8} }

/* ── EYEBROW / SECTION HEADINGS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--teal-d); margin-bottom: 14px;
}
.eyebrow::before { content:''; width:18px; height:2px; background:var(--teal); border-radius:2px; }
.eyebrow-lt { color: rgba(168,237,232,.9); }
.eyebrow-lt::before { background: var(--teal-lt); }
.sh { text-align:center; margin-bottom:60px; }
.sh .eyebrow { justify-content:center; }
.ht { font-family: var(--font-display); font-size: clamp(30px,4vw,46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px; }
.ht em { font-style:italic; color: var(--teal-d); }
.hs { font-size:17px; color:var(--ink-soft); max-width:560px; margin:0 auto; line-height:1.75; }

/* ══════════════════════════════════════
   BUTTONS — updated from design system
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: var(--r-full); font-family: var(--font-ui);
  font-weight: 600; font-size: 15px; border: none;
  transition: all .22s ease; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
/* Teal solid — primary CTA */
.btn-teal {
  background: var(--teal); color: #fff; padding: 14px 32px;
  box-shadow: 0 6px 24px rgba(61,191,184,.38);
}
.btn-teal:hover {
  background: var(--teal-d); transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(61,191,184,.52);
}
/* Glass — for hero/dark sections */
.btn-glass {
  padding: 13px 28px; color: #fff; border-radius: var(--r-full);
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
/* WhatsApp */
.btn-wa {
  background: #25D366; color: #fff; padding: 14px 28px;
  box-shadow: 0 6px 22px rgba(37,211,102,.38); border-radius: var(--r-full);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 9px; border: none; cursor: pointer;
  transition: all .2s;
}
.btn-wa:hover { background: #1fbe5a; transform: translateY(-2px) scale(1.02); }
/* Outline */
.btn-outline {
  background: rgba(61,191,184,.08); color: var(--teal-d);
  border: 1.5px solid var(--teal-lt); padding: 13px 28px;
  border-radius: var(--r-full); font-family: var(--font-ui);
  font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: all .2s; cursor: pointer;
}
.btn-outline:hover { background: var(--teal-pale); transform: translateY(-1px); }
/* Ghost — transparent for dark sections */
.btn-ghost {
  background: transparent; color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.25);
  padding: 13px 28px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: all .2s; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
/* Small size modifier */
.btn-sm { font-size: 13px; padding: 9px 20px; }
/* Large size modifier */
.btn-lg { font-size: 16px; padding: 16px 36px; }
/* Full width */
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-img-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0E5651 0%, #1A8F88 40%, #6DD8D1 70%, #A8EDE8 100%);
  z-index: 0;
}
.hero-wash {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(175deg, rgba(230,249,248,.55) 0%, rgba(255,255,255,.18) 30%, rgba(255,255,255,0) 60%, rgba(14,86,81,.22) 100%);
}
.hero-rays {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 68% 0%, rgba(255,248,210,.55) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 80% 0%, rgba(255,255,255,.38) 0%, transparent 55%);
  animation: ray-pulse 6s ease-in-out infinite;
}

/* ══════════════════════════════════════
   SITE HEADER — Transparent + Solid modes
   Elementor-compatible via hfe-header
══════════════════════════════════════ */
.site-header-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header-bar .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Transparent mode — homepage hero */
.site-header-bar.is-transparent { background: transparent; }
.site-header-bar.is-transparent.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
/* Solid mode — inner pages */
.site-header-bar.is-solid {
  background: var(--teal-dd);
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
/* Logo */
.site-header-bar .site-logo { flex-shrink: 0; }
.site-header-bar .site-logo img { height: 32px; width: auto; display: block; }
.site-header-bar .logo-text {
  font-family: var(--font-ui);
  font-weight: 800; font-size: 20px;
  color: #fff; text-decoration: none;
}
/* Scrolled logo swap — white to color */
.site-header-bar.is-transparent .logo-color { display: none; }
.site-header-bar.is-transparent .logo-white { display: block; }
.site-header-bar.is-transparent.scrolled .logo-white { display: none; }
.site-header-bar.is-transparent.scrolled .logo-color { display: block; }
/* Nav links */
.site-header-bar .primary-nav { margin-left: auto; }
.site-header-bar .nav-links {
  display: flex; align-items: center;
  gap: 4px; list-style: none; margin: 0; padding: 0;
}
.site-header-bar .nav-links li a {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: 7px 14px;
  border-radius: var(--r-full);
  transition: all .18s;
  display: block;
}
/* Scrolled state — dark text on white header */
.site-header-bar.is-transparent.scrolled .nav-links li a { color: var(--gray-700); }
.site-header-bar.is-transparent.scrolled .nav-links li a:hover { color: var(--teal-d); background: var(--teal-pale); }
.site-header-bar .nav-links li a:hover,
.site-header-bar .nav-links li.current-menu-item > a { color: #fff; background: rgba(255,255,255,.12); }
/* CTA button in header */
.site-header-bar .header-cta { margin-left: 12px; padding: 9px 22px; font-size: 14px; flex-shrink: 0; }
.site-header-bar.is-transparent.scrolled .header-cta { }
/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.85); border-radius: 2px; transition: all .2s; }
.site-header-bar.is-transparent.scrolled .nav-toggle span { background: var(--gray-700); }
/* ── Elementor: allow canvas pages to show header ── */
.elementor-page .site-main,
.site-main { padding-top: 0; }
body.elementor-page-template-canvas .site-main { padding-top: 0 !important; }
/* ── MesraHR Header Wrap: fixed overlay at top of page ── */
#mhr-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}
#mhr-header-wrap > * {
  pointer-events: auto;
}

/* Elementor Pro fallback — if using theme locations */
.elementor-location-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}
.elementor-location-header > * {
  pointer-events: auto;
}

/* No body offset — header overlaps content intentionally */
body.has-elementor-header {
  padding-top: 0 !important;
}

/* Kill any Elementor-injected backgrounds on the section inside the header */
#mhr-header-wrap .elementor-section,
#mhr-header-wrap .elementor-section > .elementor-container {
  background: transparent !important;
}

/* ── mhr-header-frosted: visual pill styling only ── */
.mhr-header-frosted {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Elementor max-width ── */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1160px; }

/* ══════════════════════════════════════
   TRUST BAR
══════════════════════════════════════ */
.trust { background: #fff; border-bottom: 1px solid rgba(61,191,184,.12); padding: 22px 0; }
.trust-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.trust-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); white-space: nowrap; font-family: var(--font-ui); }
.trust-items { display: flex; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 8px 28px; border-right: 1px solid rgba(61,191,184,.12); }
.trust-item:last-child { border-right: none; }
.trust-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-ico svg { color: var(--teal-dd); }
.trust-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); font-family: var(--font-ui); }
.trust-item span { font-size: 11px; color: var(--ink-muted); }

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features { background: linear-gradient(170deg, #f0fafa 0%, #fff 100%); }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat-card {
  border-radius: var(--r-xl); padding: 32px 28px; position: relative;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 24px rgba(61,191,184,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all .3s ease;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-lt), var(--teal));
  opacity: 0; transition: opacity .3s;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(61,191,184,.15), inset 0 1px 0 rgba(255,255,255,1); }
.feat-card:hover::before { opacity: 1; }
.feat-icon { width: 72px; height: 72px; margin-bottom: 20px; filter: drop-shadow(0 4px 12px rgba(61,191,184,.25)); }
.feat-card h3 { font-family: var(--font-ui); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ══════════════════════════════════════
   SHOWCASE
══════════════════════════════════════ */
.showcase { position: relative; overflow: hidden; background: linear-gradient(160deg, #e8faf9 0%, #f7fffe 50%, #e6f9f8 100%); }
.showcase-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.showcase-blob.a { width: 600px; height: 600px; top: -120px; right: -100px; background: radial-gradient(circle, rgba(61,191,184,.12) 0%, transparent 70%); }
.showcase-blob.b { width: 400px; height: 400px; bottom: -60px; left: -80px; background: radial-gradient(circle, rgba(168,237,232,.18) 0%, transparent 70%); }
.showcase-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.showcase h2 { font-family: var(--font-display); font-size: clamp(28px,3.5vw,44px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px; }
.showcase h2 em { font-style: italic; color: var(--teal-d); }
.showcase p { font-size: 16px; color: var(--ink-soft); margin-bottom: 28px; line-height: 1.8; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
.stat-box { padding: 18px 20px; border-radius: var(--r-lg); background: rgba(255,255,255,.75); border: 1px solid rgba(61,191,184,.2); backdrop-filter: blur(10px); box-shadow: 0 2px 12px rgba(61,191,184,.08); }
.stat-num { font-family: var(--font-ui); font-size: 30px; font-weight: 800; color: var(--teal-dd); letter-spacing: -.02em; }
.stat-lbl { font-size: 12px; color: var(--ink-muted); margin-top: 3px; font-weight: 500; }
.showcase-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 20px 64px rgba(0,0,0,.12); }

/* ══════════════════════════════════════
   WHY SECTION (dark)
══════════════════════════════════════ */
.why { position: relative; overflow: hidden; }
.why-bg { position: absolute; inset: 0; background: linear-gradient(140deg, #0a3d38 0%, #0E5651 50%, #157A74 100%); }
.why-ov { position: absolute; inset: 0; background: linear-gradient(140deg, rgba(14,86,81,.94) 0%, rgba(26,143,136,.88) 100%); }
.why-rays { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(168,237,232,.12) 0%, transparent 55%), radial-gradient(ellipse 40% 50% at 10% 90%, rgba(61,191,184,.08) 0%, transparent 60%); }
.why-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why h2 { font-family: var(--font-display); font-size: clamp(28px,3.5vw,46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; margin-bottom: 16px; }
.why h2 em { font-style: italic; color: var(--teal-lt); }
.why p { font-size: 16px; color: rgba(255,255,255,.72); margin-bottom: 28px; line-height: 1.8; }
.why-list { list-style: none; margin-bottom: 36px; }
.why-list li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; color: rgba(255,255,255,.88); }
.why-list li:last-child { border-bottom: none; }
.wli { width: 32px; height: 32px; background: rgba(168,237,232,.14); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wli svg { color: var(--teal-lt); }
.why-list strong { display: block; font-weight: 600; margin-bottom: 2px; font-family: var(--font-ui); }
.why-list small { font-size: 12px; color: rgba(255,255,255,.52); line-height: 1.5; }
.why-cards { display: flex; flex-direction: column; gap: 14px; }
.why-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--r-lg); transition: all .25s; }
.why-card:hover { transform: translateX(6px); }
.why-card-ico { width: 58px; height: 58px; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
/* Image support for why card icon */
.why-card-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.why-card h4 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.why-card p { font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.6; }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testi { background: linear-gradient(170deg,#f7fffe 0%,#e8faf9 100%); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testi-card { border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column; transition: all .28s; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 2px 20px rgba(61,191,184,.07); backdrop-filter: blur(12px); }
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(61,191,184,.15); }
.stars { color: #F5A623; font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.testi-quote { font-family: var(--font-body); font-style: italic; font-size: 15px; color: var(--ink-soft); line-height: 1.82; flex: 1; margin-bottom: 22px; }
.testi-foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(61,191,184,.1); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--teal-dd)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tname { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--ink); }
.tco { font-size: 12px; color: var(--ink-muted); }

/* ══════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════ */
.compare { background: #fff; }
.cmp-wrap { max-width: 900px; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 4px 32px rgba(61,191,184,.1); border: 1px solid rgba(61,191,184,.12); }
.cmp-head { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; }
.cmp-hc { padding: 18px 24px; font-size: 12px; font-weight: 700; color: var(--ink-muted); background: #f8fffe; border-bottom: 1px solid rgba(61,191,184,.1); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-ui); }
.cmp-hc.mhr { background: var(--teal-pale); color: var(--teal-dd); border-bottom: 2px solid var(--teal-lt); }
.cmp-row { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; border-bottom: 1px solid rgba(61,191,184,.06); }
.cmp-row:last-child { border-bottom: none; }
.cmp-cell { padding: 14px 24px; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.cmp-cell.feat { font-weight: 600; color: var(--ink); }
.cmp-cell.yes { color: var(--success); font-weight: 600; }
.cmp-cell.mhr { background: rgba(230,249,248,.5); }
.ck { width: 18px; height: 18px; background: #e8f7ef; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ck svg { color: var(--success); }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq { background: linear-gradient(170deg,#f0fafa 0%,#fff 100%); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--r-lg); background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 2px 12px rgba(61,191,184,.06); transition: all .2s; backdrop-filter: blur(10px); }
.faq-item[open] { border-color: rgba(61,191,184,.3); box-shadow: 0 4px 24px rgba(61,191,184,.12); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; user-select: none; font-family: var(--font-ui); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; color: var(--teal-d); }
.faq-item[open] .faq-chev { background: var(--teal); color: #fff; rotate: 45deg; }
.faq-body { padding: 0 24px 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.82; }

/* ══════════════════════════════════════
   CTA + FORM SECTION
══════════════════════════════════════ */
.cta-sec { position: relative; overflow: hidden; }
.cta-bg-img { position: absolute; inset: 0; background: linear-gradient(140deg, #0a3d38 0%, #0E5651 60%, #1A8F88 100%); }
.cta-ov { position: absolute; inset: 0; background: linear-gradient(140deg, rgba(14,86,81,.96) 0%, rgba(21,122,116,.9) 50%, rgba(61,191,184,.75) 100%); }
.cta-rays { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 85% 5%, rgba(255,248,210,.18) 0%, transparent 55%); animation: ray-pulse 8s ease-in-out infinite; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.cta-left h2 { font-family: var(--font-display); font-size: clamp(30px,4vw,50px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #fff; margin-bottom: 14px; }
.cta-left h2 em { font-style: italic; color: var(--teal-lt); }
.cta-left p { font-size: 16px; color: rgba(255,255,255,.72); margin-bottom: 28px; line-height: 1.78; }
.cta-perks { list-style: none; margin-bottom: 34px; }
.cta-perks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.06); }
.cta-perks li:last-child { border-bottom: none; }
.cta-perks svg { color: var(--teal-lt); flex-shrink: 0; }
.cta-contacts { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-chip { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-full); color: #fff; font-size: 14px; font-weight: 500; transition: all .2s; font-family: var(--font-ui); }
.contact-chip:hover { transform: translateY(-1px); }
/* Contact Form */
.form-card { background: rgba(255,255,255,.95); border-radius: var(--r-xl); padding: 36px; box-shadow: 0 20px 64px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,1); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(20px); }
.form-title { font-family: var(--font-ui); font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.form-sub { font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; }
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow { margin-bottom: 12px; }
.flbl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; font-family: var(--font-ui); }
.req { color: #E05252; }
.finput, .fselect { width: 100%; padding: 11px 14px; border: 1.5px solid rgba(61,191,184,.25); border-radius: var(--r-sm); font-size: 14px; font-family: var(--font-body); color: var(--ink); background: rgba(240,250,250,.6); outline: none; transition: all .15s; }
.finput:focus, .fselect:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(61,191,184,.12); }
.finput::placeholder { color: var(--ink-muted); }
.fsubmit { width: 100%; padding: 15px; background: var(--teal); color: #fff; border: none; border-radius: var(--r-full); font-family: var(--font-ui); font-weight: 700; font-size: 16px; cursor: pointer; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 9px; transition: all .2s; box-shadow: 0 8px 28px rgba(61,191,184,.38); }
.fsubmit:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(61,191,184,.52); }
.fnote { font-size: 12px; color: var(--ink-muted); text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 36px 20px; }
.form-success .check-big { width: 68px; height: 68px; background: #e8f7ef; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success h3 { font-family: var(--font-ui); font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }

/* ══════════════════════════════════════
   SITE FOOTER — Rich multi-column layout
   (matches homepage HTML design)
══════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.55);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo img { height: 32px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 16px; }
.footer-brand .logo-text { font-family: var(--font-ui); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.footer-col h4 { font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--teal-lt); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-legal a:hover { color: var(--teal-lt); }
/* Simple footer (inner pages / fallback) */
.site-footer--simple { padding: 28px 0; }
.site-footer--simple .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--teal-lt); }

/* ── HERO NAVBAR (inside hero, for full-page hero sections) ── */
.hero-nav { position: relative; z-index: 10; padding: 22px 36px; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-nav-pill { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 10px 10px 24px; border-radius: var(--r-full); }
.site-logo img { height: 30px; }
.nav-links-hero { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links-hero a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); padding: 7px 14px; border-radius: var(--r-full); transition: all .18s; font-family: var(--font-ui); }
.nav-links-hero a:hover, .nav-links-hero a.active { color: #fff; background: rgba(255,255,255,.12); }

/* ── WORDPRESS CORE ALIGNMENT ── */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* ── SINGLE / BLOG ── */
.entry-content { max-width: 760px; margin: 0 auto; padding: 60px 28px; }
.entry-content h1,.entry-content h2,.entry-content h3 { font-family: var(--font-display); color: var(--ink); margin-bottom: 16px; }
.entry-content p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 20px; }
/* ══════════════ BLOG SINGLE ══════════════ */
/* --blog-top-gap clears the fixed navbar widget (position:fixed, no spacer).
   Tune this one value if the header height changes. */
:root {
  --blog-top-gap: 180px;
  /* Smaller clearance for elements that stick WHILE SCROLLING (rail, sidebar) —
     just enough to sit below the floating pill nav, not the full page-load gap. */
  --sticky-nav-offset: 104px;
}

/* Wider container for blog pages only — the site-wide .wrap (1160px) made the
   article column too narrow for comfortable reading (~572px of text). Header,
   footer, and every other page keep the default 1160px untouched. */
.blog-shell .wrap,
.related-section .wrap { max-width: 1320px; }
/* padding-top uses !important — a theme-wide rule elsewhere
   (body.elementor-page-template-canvas .site-main { padding-top:0 !important })
   otherwise wins over this regardless of specificity or source order. */
.blog-shell { padding-top: var(--blog-top-gap) !important; padding-right: 0; padding-bottom: 0; padding-left: 0; }
.blog-grid { display: grid; grid-template-columns: 64px minmax(0,1fr) 300px; gap: 36px; align-items: start; }
/* Search/archive: no share rail, so two columns */
.blog-grid--no-rail { grid-template-columns: minmax(0,1fr) 300px; }

/* Left sticky share rail (desktop only) */
.share-rail { position: sticky; top: var(--sticky-nav-offset); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.share-rail a { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--gray-600); transition: .2s; }
.share-rail a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(61,191,184,.35); }
.share-rail a svg { width: 17px; height: 17px; }

/* Share pill rows (inline under title + bottom block) */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px 9px 12px; border-radius: var(--r-full); background: var(--teal); color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 13px; text-decoration: none; transition: .2s; }
.share-row a.x { background: #181D2E; }
.share-row a.linkedin { background: #0A66C2; }
.share-row a.telegram { background: #28A8E9; }
.share-row a.whatsapp { background: #25D366; }
.share-row a.copy { background: var(--gray-700); }
.share-row a:hover { filter: brightness(1.08); transform: translateY(-1px); }
.share-row a svg { width: 15px; height: 15px; flex-shrink: 0; }
.share-inline { display: none; margin: 18px 0 28px; }
.share-inline-label { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; width: 100%; margin-bottom: 2px; }

/* Article card */
.blog-article { background: #fff; border-radius: var(--r-xl); padding: 48px; box-shadow: 0 4px 32px rgba(61,191,184,.07); min-width: 0; }
.blog-thumb { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }
/* height:auto overrides WordPress's hardcoded height attr — without it the
   image is squashed to the attribute value instead of scaling naturally. */
.blog-thumb img { width: 100%; height: auto; display: block; }
.blog-title { font-family: var(--font-display); font-size: clamp(26px,4vw,42px); font-weight: 800; line-height: 1.12; color: var(--ink); margin: 0 0 10px; }
.blog-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(61,191,184,.12); font-family: var(--font-ui); }
.blog-content { font-size: 16px; line-height: 1.85; color: var(--ink-soft); }
.blog-content h2,.blog-content h3 { font-family: var(--font-display); color: var(--ink); margin: 28px 0 12px; font-weight: 800; }
.blog-content p { margin-bottom: 18px; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.blog-content ul,.blog-content ol { margin: 0 0 18px; padding-left: 20px; }
.blog-content li { margin-bottom: 6px; }

/* Byline: author left, date right */
.content-byline { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-200); font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.content-byline span:first-child { color: var(--ink); }

/* Bottom share block */
.share-block { margin-top: 28px; padding: 26px 28px; background: var(--teal-pale); border-radius: var(--r-lg); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.share-block .lbl { font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--teal-dd); margin-right: 4px; }

/* Prev/Next nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-nav a { display: block; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; transition: .2s; }
.post-nav a:hover { border-color: var(--teal-lt); box-shadow: var(--shadow-card); }
.post-nav .dir { font-family: var(--font-ui); font-size: 11px; font-weight: 700; color: var(--teal-d); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; display: block; }
.post-nav .ttl { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.post-nav .next { text-align: right; }

.blog-comments { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--gray-200); }

/* Sidebar + widgets (uses register_sidebar wrapper: div.widget / h3.widget-title) */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: var(--sticky-nav-offset); }
.widget { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.widget-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.widget ul li { padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); font-family: var(--font-ui); font-size: 13.5px; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--gray-700); font-weight: 600; text-decoration: none; line-height: 1.5; }
.widget ul li a:hover { color: var(--teal-d); }
.widget_recent_comments ul li { font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.widget_recent_comments ul li a { font-weight: 600; color: var(--teal-dd); }
.widget .post-date { display: block; font-size: 11px; color: var(--ink-muted); margin-top: 3px; font-weight: 500; }

/* Search form (used by theme-native form + core Search widget via get_search_form()) */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; min-width: 0; border: 1px solid var(--gray-200); border-radius: var(--r-full); padding: 10px 16px; font-family: var(--font-body); font-size: 13px; background: var(--gray-50); }
.search-form .search-field:focus { outline: 2px solid var(--teal-lt); outline-offset: 1px; }
.search-form .search-submit { background: var(--teal); color: #fff; border: none; border-radius: var(--r-full); padding: 10px 20px; font-family: var(--font-ui); font-weight: 700; font-size: 13px; cursor: pointer; }
.search-form .search-submit:hover { background: var(--teal-d); }

/* Related posts */
.related-section { background: #eef7f6; padding: 56px 0; margin-top: 44px; }
.related-head { text-align: center; margin-bottom: 32px; }
.related-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.rel-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-card); text-decoration: none; display: flex; flex-direction: column; transition: .2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); border-color: var(--teal-lt); }
/* Cropped 16:9 thumb, inset inside the card padding */
.rel-thumb { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--teal-d), var(--teal-dd)); position: relative; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-body { padding: 16px 10px 6px; display: flex; flex-direction: column; flex: 1; }
.rel-body h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; margin: 0 0 16px; }
.rel-card:hover .rel-body h3 { color: var(--teal-dd); }
.rel-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; gap: 16px; font-family: var(--font-ui); font-size: 12px; color: var(--ink-muted); }
.rel-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rel-meta svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--ink-muted); }

/* ══════════════ SEARCH RESULTS / ARCHIVE LIST ══════════════ */
.results-head { margin-bottom: 28px; }
.results-head h1 { font-family: var(--font-display); font-size: clamp(24px,3.4vw,34px); font-weight: 800; color: var(--ink); margin: 0 0 8px; line-height: 1.15; }
.results-head h1 span { color: var(--teal-d); }
.results-count { font-family: var(--font-ui); font-size: 14px; color: var(--ink-muted); margin: 0 0 20px; }
.results-head .search-form { max-width: 460px; }

.result-list { display: flex; flex-direction: column; gap: 18px; }
.result-card { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; transition: .2s; align-items: stretch; }
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.result-thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-d), var(--teal-dd)); }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; justify-content: center; }
.result-cat { font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-dd); background: var(--teal-pale); padding: 4px 10px; border-radius: var(--r-full); align-self: flex-start; margin-bottom: 10px; }
.result-body h2 { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.35; margin: 0 0 8px; }
.result-card:hover .result-body h2 { color: var(--teal-dd); }
.result-excerpt { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 12px; }
.result-meta { font-family: var(--font-ui); font-size: 11.5px; color: var(--ink-muted); }

.no-results { background: #fff; border-radius: var(--r-xl); padding: 48px 40px; box-shadow: 0 4px 32px rgba(61,191,184,.07); text-align: center; }
.no-results h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.no-results p { font-size: 15px; color: var(--ink-soft); margin: 0 0 24px; }
.no-results .search-form { max-width: 420px; margin: 0 auto; }
.no-results-suggest { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-200); text-align: left; }
.no-results-suggest h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 18px; text-align: center; }

.mesrahr-pagination { margin-top: 32px; display: flex; justify-content: center; }
.mesrahr-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; margin: 0 3px; border-radius: var(--r-full); background: #fff; box-shadow: var(--shadow-card); font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; color: var(--gray-700); text-decoration: none; transition: .2s; }
.mesrahr-pagination .page-numbers:hover { background: var(--teal-pale); color: var(--teal-dd); }
.mesrahr-pagination .page-numbers.current { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(61,191,184,.35); }
.mesrahr-pagination .page-numbers.dots { background: transparent; box-shadow: none; }

/* Copy-link toast */
.mesrahr-copy-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--gray-800); color: #fff; font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: var(--r-full); opacity: 0; pointer-events: none; transition: .25s; z-index: 999; }
.mesrahr-copy-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Blog: share rail retires, inline row takes over; sidebar drops
     below the article (search + recent posts appear after content,
     same as mobile) */
  .blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .share-rail { display: none; }
  .share-inline { display: flex; }
  .sidebar { position: static; margin-top: 12px; }
}
@media(max-width:960px){
  .showcase-inner,.why-inner,.cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid,.testi-grid { grid-template-columns: repeat(2,1fr); }
  section { padding: 64px 0; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:768px){
  .nav-toggle { display: flex; }
  .site-header-bar .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--teal-dd); padding: 12px 0; }
  .site-header-bar .primary-nav.open { display: block; }
  .site-header-bar .nav-links { flex-direction: column; align-items: flex-start; padding: 8px 24px; gap: 2px; }
  .site-header-bar .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Blog: top gap only — grid stacking now happens at the 1024px breakpoint */
  :root { --blog-top-gap: 136px; }
  .blog-article { border-radius: var(--r-lg); padding: 34px 30px; }
  .post-nav { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 170px minmax(0,1fr); gap: 18px; }
}
@media(max-width:640px){
  .feat-grid,.testi-grid { grid-template-columns: 1fr; }
  .fg2 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .trust-items { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(61,191,184,.1); }
  section { padding: 52px 0; }
  .form-card { padding: 24px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Blog: tighter card, related posts snap-scroll */
  :root { --blog-top-gap: 112px; }
  /* Side padding trimmed for mobile: the global .wrap 28px + article 20px
     ate 96px of a ~400px screen. Scoped to blog only — header/footer keep 28px.
     .related-grid's negative margin must stay <= this padding or it overflows. */
  .blog-shell .wrap,
  .related-section .wrap { padding-left: 16px; padding-right: 16px; }
  .blog-article { padding: 24px 16px; }
  /* Search results stack: image on top, natural ratio */
  .result-card { grid-template-columns: 1fr; gap: 0; }
  .result-thumb { aspect-ratio: 16/9; }
  .result-body { padding: 18px 20px 20px; }
  .no-results { padding: 32px 22px; }
  .blog-title { font-size: clamp(22px,7vw,30px); }
  .share-block { padding: 20px; border-radius: var(--r-md); }
  .related-section { padding: 40px 0; }
  .related-grid { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .related-grid::-webkit-scrollbar { display: none; }
  .rel-card { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ══════════════════════════════════════
   FIX: Elementor section transforms break position:fixed
   This ensures fullscreen overlays render correctly
══════════════════════════════════════ */
.mhr-nav__overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2147483647 !important;
}
