/* =========================================================================
   Хера 44 — Modern content design system
   Scoped under .h44 so it never leaks into theme/Elementor chrome.
   Brand: primary #337C45, accent #78C720, cyan #00AEEF. Font: Montserrat.
   ========================================================================= */

.h44 {
  --h44-green: #337C45;
  --h44-green-d: #256035;
  --h44-lime: #78C720;
  --h44-lime-d: #62a516;
  --h44-cyan: #00AEEF;
  --h44-ink: #1d2b22;
  --h44-body: #48584f;
  --h44-muted: #7A7A7A;
  --h44-line: #e7ece8;
  --h44-tint: #f4f8f3;
  --h44-tint2: #eef5ec;
  --h44-white: #ffffff;
  --h44-radius: 16px;
  --h44-radius-sm: 12px;
  --h44-shadow: 0 10px 30px -12px rgba(20, 60, 35, .18);
  --h44-shadow-lg: 0 24px 60px -20px rgba(20, 60, 35, .30);
  --h44-grad: linear-gradient(120deg, #337C45 0%, #4e9c3a 55%, #78C720 100%);
  --h44-grad-soft: linear-gradient(120deg, #eef5ec 0%, #f4f8f3 100%);
  --h44-maxw: 1140px;

  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--h44-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reset the theme's white padded content card so our bands run edge-to-edge. */
.h44 { margin: 0; }
.page-content-wrap:has(> .h44),
.post-content-wrap:has(> .h44) { padding: 0 !important; background: transparent !important; }

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

.h44 img { max-width: 100%; height: auto; }

/* ---- Typography ---------------------------------------------------------- */
.h44 h1, .h44 h2, .h44 h3, .h44 h4 {
  font-family: inherit;
  color: var(--h44-ink);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-transform: none;
}
.h44 h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.h44 h3 { font-size: clamp(1.15rem, .95rem + .9vw, 1.5rem); }
.h44 p { margin: 0 0 1.1em; }
.h44 a { color: var(--h44-green); text-decoration: none; transition: color .2s; }
.h44 a:hover { color: var(--h44-lime-d); }
.h44 strong { color: var(--h44-ink); font-weight: 700; }

/* Eyebrow / kicker */
.h44-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--h44-lime-d);
  margin-bottom: .75rem;
}

/* ---- Layout helpers ------------------------------------------------------ */
.h44-wrap { max-width: var(--h44-maxw); margin: 0 auto; padding: 0 22px; }

/* Full-bleed: break out of the 1140px .container */
.h44-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.h44-section { padding: clamp(48px, 6vw, 92px) 0; }
.h44-section--tint { background: var(--h44-tint); }
.h44-section--grad { background: var(--h44-grad-soft); }
.h44-center { text-align: center; }
.h44-center .h44-lead { margin-left: auto; margin-right: auto; }
.h44-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 54px); }
.h44-lead { font-size: 1.15rem; color: var(--h44-body); max-width: 640px; }

/* ---- Buttons ------------------------------------------------------------- */
.h44-btn, .h44-btn-ghost {
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; text-align: center;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .25s;
  will-change: transform;
}
.h44-btn {
  color: #fff !important;
  background: var(--h44-grad);
  background-size: 160% 160%;
  box-shadow: 0 12px 26px -10px rgba(51,124,69,.6);
}
.h44-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(120,199,32,.55); background-position: 100% 0; color:#fff !important; }
.h44-btn-ghost {
  color: var(--h44-green) !important;
  background: transparent; border-color: rgba(51,124,69,.35);
}
.h44-btn-ghost:hover { transform: translateY(-3px); border-color: var(--h44-lime); color: var(--h44-lime-d) !important; background: rgba(120,199,32,.08); }
.h44-btn--lg { padding: 17px 38px; font-size: 1.08rem; }
.h44-btn--white { background:#fff; color: var(--h44-green) !important; box-shadow: 0 12px 26px -12px rgba(0,0,0,.35); }
.h44-btn--white:hover { background:#fff; color: var(--h44-lime-d) !important; }
.h44-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.h44-center .h44-actions { justify-content: center; }

/* ---- Hero ---------------------------------------------------------------- */
.h44-hero {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: center;
  color: #fff;
  background: #16351f;
}
.h44-hero__bg {
  position: absolute; inset: -8% 0 0 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.h44-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,48,27,.92) 0%, rgba(20,55,30,.72) 45%, rgba(30,70,35,.42) 100%),
    radial-gradient(120% 120% at 100% 0%, rgba(120,199,32,.25), transparent 55%);
}
.h44-hero__inner { position: relative; z-index: 1; padding: clamp(56px,8vw,90px) 0; width: 100%; }
.h44-hero .h44-eyebrow { color: #cdeeb0; }
.h44-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1.08; margin-bottom: .4em; max-width: 16ch;
}
.h44-hero__sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: #eaf5e2; max-width: 44ch; margin-bottom: 1.8em; }
/* Secondary hero buttons: glass backdrop so white text stays legible over
   lighter areas of the hero photo. */
.h44-hero .h44-btn-ghost {
  color: #fff !important; border-color: rgba(255,255,255,.65);
  background: rgba(16,40,24,.32); backdrop-filter: blur(3px);
}
.h44-hero .h44-btn-ghost:hover { background: rgba(120,199,32,.38); border-color: #fff; color: #fff !important; }

/* Trust badges */
.h44-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.h44-chip {
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: #fff;
}
.h44-chip b { color: #d6f3b4; }

/* ---- Cards / grids ------------------------------------------------------- */
.h44-grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.h44-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.h44-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.h44-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.h44-card {
  background: #fff; border: 1px solid var(--h44-line);
  border-radius: var(--h44-radius); padding: 30px 28px;
  box-shadow: var(--h44-shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.h44-card:hover { transform: translateY(-6px); box-shadow: var(--h44-shadow-lg); border-color: #dbe7d7; }
.h44-card h3 { margin-bottom: .4em; }
.h44-card p { margin-bottom: 0; font-size: .98rem; }

.h44-icon {
  width: 58px; height: 58px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--h44-grad); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(51,124,69,.6);
}
.h44-icon svg { width: 28px; height: 28px; }

/* Checklist grid */
.h44-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.h44-checks li {
  position: relative; padding: 16px 18px 16px 54px;
  background: #fff; border: 1px solid var(--h44-line); border-radius: var(--h44-radius-sm);
  box-shadow: var(--h44-shadow); font-weight: 500; color: var(--h44-ink);
  transition: transform .25s, box-shadow .25s;
}
.h44-checks li:hover { transform: translateY(-3px); box-shadow: var(--h44-shadow-lg); }
.h44-checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--h44-grad) center/60% no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-blend-mode: normal;
  background-position: center; background-repeat: no-repeat; background-size: cover, 16px 16px;
}

/* ---- Stats --------------------------------------------------------------- */
.h44-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; }
.h44-stat { text-align: center; padding: 22px 14px; }
.h44-stat__num {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 800; line-height: 1;
  background: var(--h44-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h44-stat__label { margin-top: 8px; font-size: .95rem; color: var(--h44-body); font-weight: 500; }
.h44-stats--onDark .h44-stat__num { background: linear-gradient(120deg,#eafbe0,#bff08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h44-stats--onDark .h44-stat__label { color: #e6f4dd; }

/* ---- Steps (numbered process) ------------------------------------------- */
.h44-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); counter-reset: h44step; }
.h44-step {
  position: relative; background: #fff; border: 1px solid var(--h44-line);
  border-radius: var(--h44-radius); padding: 30px 26px 26px; box-shadow: var(--h44-shadow);
  transition: transform .3s, box-shadow .3s;
}
.h44-step:hover { transform: translateY(-6px); box-shadow: var(--h44-shadow-lg); }
.h44-step::before {
  counter-increment: h44step; content: counter(h44step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  font-size: 1.25rem; font-weight: 800; color: #fff; background: var(--h44-grad);
  margin-bottom: 16px; box-shadow: 0 10px 20px -8px rgba(51,124,69,.6);
}
.h44-step h3 { font-size: 1.15rem; margin-bottom: .35em; }
.h44-step p { margin: 0; font-size: .96rem; }

/* ---- Callout / note box -------------------------------------------------- */
.h44-note {
  border-left: 4px solid var(--h44-lime); background: var(--h44-tint);
  border-radius: 0 var(--h44-radius-sm) var(--h44-radius-sm) 0;
  padding: 18px 22px; margin: 0 0 1.4em; color: var(--h44-body); font-size: .98rem;
}
.h44-note strong { color: var(--h44-green); }

/* ---- FAQ accordion (native details/summary, no JS) ---------------------- */
.h44-faqgroup { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.h44-faq {
  background: #fff; border: 1px solid var(--h44-line); border-radius: var(--h44-radius-sm);
  box-shadow: var(--h44-shadow); overflow: hidden; transition: box-shadow .25s, border-color .25s;
}
.h44-faq[open] { border-color: #cfe4c6; box-shadow: var(--h44-shadow-lg); }
.h44-faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; color: var(--h44-ink); font-size: 1.05rem;
}
.h44-faq summary::-webkit-details-marker { display: none; }
.h44-faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23337C45' stroke-width='3' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
  transition: transform .3s;
}
.h44-faq[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.h44-faq__body { padding: 0 24px 22px; color: var(--h44-body); }
.h44-faq__body p:last-child { margin-bottom: 0; }
.h44-faq-cat { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--h44-lime-d); font-weight: 700; margin: 30px 0 6px; }
.h44-faq-cat:first-child { margin-top: 0; }

/* ---- CTA band ------------------------------------------------------------ */
.h44-cta {
  position: relative; overflow: hidden; color: #fff;
  background: var(--h44-grad); text-align: center;
  padding: clamp(48px, 6vw, 80px) 22px;
}
.h44-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 15% 0%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(50% 120% at 100% 100%, rgba(0,174,239,.28), transparent 55%);
}
.h44-cta > * { position: relative; z-index: 1; }
.h44-cta h2 { color: #fff; }
.h44-cta p { color: #eaf7df; font-size: 1.12rem; max-width: 620px; margin: 0 auto 1.6em; }
.h44-cta__phone { display: inline-flex; align-items: center; gap: .5em; font-size: 1.5rem; font-weight: 800; color: #fff !important; margin-top: 6px; }
.h44-cta__phone:hover { color:#eafbe0 !important; }

/* ---- Media / figure ------------------------------------------------------ */
.h44-figure { border-radius: var(--h44-radius); overflow: hidden; box-shadow: var(--h44-shadow-lg); margin: 0; }
.h44-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 800px) { .h44-split { grid-template-columns: 1fr; } }

/* ---- Embedded form card (FluentForm / reviews) --------------------------- */
.h44-form-card {
  background: #fff; border: 1px solid var(--h44-line); border-radius: var(--h44-radius);
  box-shadow: var(--h44-shadow-lg); padding: clamp(24px, 3.5vw, 42px); max-width: 760px; margin: 0 auto;
}
.h44-form-card h2 { margin-bottom: .2em; }
.h44-form-card .h44-lead { margin-bottom: 1.4em; }
/* nudge FluentForm to feel modern without overriding its logic */
.h44-form-card .ff-el-input--content input[type=text],
.h44-form-card .ff-el-input--content input[type=email],
.h44-form-card .ff-el-input--content input[type=tel],
.h44-form-card .ff-el-input--content textarea,
.h44-form-card .ff-el-input--content select {
  border-radius: 10px !important; border: 1px solid var(--h44-line) !important;
  padding: 12px 14px !important; font-family: inherit !important;
}
.h44-form-card .ff-btn-submit { border-radius: 999px !important; padding: 13px 30px !important; font-weight: 600 !important; }

/* ---- Reveal animation (only armed by JS; no-JS stays visible) ----------- */
.h44-js .h44-reveal { opacity: 0; transform: translateY(26px); }
.h44-js .h44-reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.h44-js .h44-reveal[data-delay="1"].is-visible { transition-delay: .08s; }
.h44-js .h44-reveal[data-delay="2"].is-visible { transition-delay: .16s; }
.h44-js .h44-reveal[data-delay="3"].is-visible { transition-delay: .24s; }
.h44-js .h44-reveal[data-delay="4"].is-visible { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .h44-js .h44-reveal { opacity: 1 !important; transform: none !important; }
  .h44 * { scroll-behavior: auto !important; }
  .h44-btn:hover, .h44-btn-ghost:hover, .h44-card:hover, .h44-step:hover, .h44-checks li:hover { transform: none !important; }
}

/* ---- Blog-post prose width ----------------------------------------------
   On single posts the content column is full-width (no sidebar); constrain the
   reading measure for comfort. Full-bleed bands (.h44-bleed / .h44-cta) still
   escape to the viewport via their calc() margins, so CTAs stay edge-to-edge. */
body.single-post .h44 { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ---- Funnel-page enhancement (existing Elementor pages) -----------------
   Opacity-only reveal — no transform, so it can't disturb layout or any
   fixed/sticky positioning inside Elementor sections. Armed only under
   body.h44-js (added by JS); no-JS keeps everything visible. */
body.h44-enhance.h44-js .elementor-top-section.h44-fade { opacity: 0; }
body.h44-enhance.h44-js .elementor-top-section.h44-fade.is-visible {
  opacity: 1; transition: opacity .9s ease;
}
/* Modern hover on property cards (funnel pages only, e.g. homepage featured) */
body.h44-enhance .item-wrap {
  transition: transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s;
}
body.h44-enhance .item-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px -22px rgba(20,60,35,.42);
}
body.h44-enhance .item-wrap .item-thumbnail img,
body.h44-enhance .item-wrap .fave-thumbnail img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
body.h44-enhance .item-wrap:hover .item-thumbnail img,
body.h44-enhance .item-wrap:hover .fave-thumbnail img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  body.h44-enhance.h44-js .elementor-top-section.h44-fade { opacity: 1 !important; }
  body.h44-enhance .item-wrap:hover { transform: none; }
  body.h44-enhance .item-wrap:hover .item-thumbnail img,
  body.h44-enhance .item-wrap:hover .fave-thumbnail img { transform: none; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  .h44 { font-size: 16px; }
  .h44-hero { min-height: 460px; text-align: left; }
  .h44-actions { flex-direction: column; align-items: stretch; }
  .h44-btn, .h44-btn-ghost { justify-content: center; }
  .h44-wrap { padding: 0 18px; }
}
