/*
Theme Name: HeatFlow
Theme URI: https://example.com/heatflow
Author: Your Studio
Author URI: https://example.com/
Description: A modern HVAC, heating and air conditioning WordPress theme for local service businesses.
Version: 0.4.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: heatflow
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, responsive-layout, business, services
*/

:root{
  --hf-navy:#0a2b4e;
  --hf-navy-2:#061e35;
  --hf-blue:#1681f5;
  --hf-blue-dark:#0869cf;
  --hf-orange:#ff5e2f;
  --hf-orange-dark:#e94c1f;
  --hf-soft:#f4f8fc;
  --hf-soft-blue:#eaf5ff;
  --hf-text:#12263c;
  --hf-muted:#64778b;
  --hf-line:#dce7f1;
  --hf-white:#fff;
  --hf-radius:22px;
  --hf-radius-lg:28px;
  --hf-shadow:0 18px 55px rgba(10,43,78,.12);
  --hf-container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--hf-text);
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.55;
}
body.admin-bar .hf-site-header{top:32px}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hf-container{width:min(calc(100% - 40px),var(--hf-container));margin-inline:auto}
.hf-section{padding:84px 0}
.hf-soft{background:var(--hf-soft)}
.hf-kicker{
  display:block;
  margin-bottom:10px;
  color:var(--hf-blue);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1.2px;
}
.hf-title{
  margin:0;
  font-size:clamp(34px,4vw,52px);
  line-height:1.08;
  letter-spacing:-1.6px;
  font-weight:800;
}
.hf-muted{color:var(--hf-muted)}
.hf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 24px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:14px;
  font-weight:800;
  transition:.2s ease;
}
.hf-btn:hover{transform:translateY(-2px)}
.hf-btn--orange{background:var(--hf-orange);color:#fff;box-shadow:0 12px 25px rgba(255,94,47,.22)}
.hf-btn--orange:hover{background:var(--hf-orange-dark)}
.hf-btn--blue{background:var(--hf-blue);color:#fff;box-shadow:0 12px 25px rgba(22,129,245,.22)}
.hf-btn--outline{border-color:var(--hf-blue);color:var(--hf-blue);background:#fff}
.hf-btn--dark{background:var(--hf-navy);color:#fff}
.hf-btn--white{background:#fff;color:var(--hf-navy)}

/* Top bar */
.hf-topbar{background:var(--hf-navy-2);color:rgba(255,255,255,.88);font-size:12px}
.hf-topbar__inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.hf-topbar__left{display:flex;align-items:center;gap:18px}
.hf-topbar__left span{display:inline-flex;align-items:center;gap:7px}
.hf-topbar__dot{width:7px;height:7px;border-radius:50%;background:#3cc47f}

/* Header */
.hf-site-header{
  position:sticky;top:0;z-index:80;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hf-line);
}
.hf-header__inner{min-height:74px;display:flex;align-items:center;gap:28px}
.hf-logo{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.hf-logo__mark{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--hf-orange),var(--hf-blue));
  color:#fff;font-size:23px;font-weight:900
}
.hf-logo__text{font-weight:900;font-size:22px;letter-spacing:-.8px;color:var(--hf-blue)}
.hf-logo__text span{color:var(--hf-orange)}
.custom-logo-link img{max-height:48px;width:auto}
.hf-nav{display:flex;align-items:center;gap:24px;margin-left:auto}
.hf-nav ul{display:flex;align-items:center;gap:24px;list-style:none;padding:0;margin:0}
.hf-nav a{font-size:13px;font-weight:700;color:#2e4962}
.hf-nav a:hover{color:var(--hf-blue)}
.hf-header__phone{display:flex;align-items:center;gap:7px;color:var(--hf-blue);font-size:14px;font-weight:900;white-space:nowrap}
.hf-menu-toggle{display:none;border:0;background:transparent;width:44px;height:44px;margin-left:auto}
.hf-menu-toggle span{display:block;width:23px;height:2px;background:var(--hf-navy);margin:5px auto}

/* Hero */
.hf-hero{overflow:hidden;background:linear-gradient(90deg,#f7fbff 0%,#fff 52%,#eef7ff 100%)}
.hf-hero__grid{display:grid;grid-template-columns:1fr 1.06fr;align-items:stretch;min-height:540px}
.hf-hero__content{padding:72px 50px 60px 0;align-self:center}
.hf-rating{
  display:inline-flex;align-items:center;gap:8px;
  background:#e6f4ff;border:1px solid #cbe8ff;border-radius:999px;
  padding:7px 11px;font-size:11px;font-weight:800
}
.hf-rating__star{color:#f5a623}
.hf-hero h1{
  margin:18px 0 18px;
  font-size:clamp(48px,5.5vw,72px);
  line-height:.98;
  letter-spacing:-2.4px
}
.hf-hero h1 .hf-accent{color:var(--hf-orange)}
.hf-hero__lead{max-width:610px;color:#50667b;font-size:16px}
.hf-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px}
.hf-trust{display:flex;gap:28px;flex-wrap:wrap;margin-top:32px}
.hf-trust__item{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700}
.hf-trust__icon{
  width:31px;height:31px;border-radius:10px;
  display:grid;place-items:center;background:#eaf5ff;color:var(--hf-blue);font-weight:900
}
.hf-hero__visual{position:relative;min-height:540px}
.hf-hero__visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hf-hero__visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.08),transparent 35%)}
.hf-float{
  position:absolute;z-index:3;background:#fff;border:1px solid #e4ebf2;border-radius:14px;
  padding:14px 16px;box-shadow:var(--hf-shadow);display:flex;align-items:center;gap:10px
}
.hf-float--top{top:28px;right:22px}
.hf-float--bottom{right:18px;bottom:28px}
.hf-float__green{width:10px;height:10px;border-radius:50%;background:#20c574;box-shadow:0 0 0 5px rgba(32,197,116,.12)}
.hf-float__text{display:grid}
.hf-float__text strong{font-size:12px}
.hf-float__text span{font-size:10px;color:var(--hf-muted)}
.hf-customer-num{font-size:20px;font-weight:900;color:var(--hf-orange)}

/* service strip */
.hf-service-strip{margin-top:-1px;background:#fff;border-bottom:1px solid var(--hf-line)}
.hf-service-strip__grid{display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 12px 35px rgba(10,43,78,.08)}
.hf-service-tile{padding:28px 22px;text-align:center;border-right:1px solid var(--hf-line)}
.hf-service-tile:last-child{border-right:0}
.hf-service-tile__icon{font-size:28px;color:var(--hf-blue)}
.hf-service-tile:first-child .hf-service-tile__icon{color:var(--hf-orange)}
.hf-service-tile h3{font-size:18px;margin:9px 0 3px}
.hf-service-tile p{font-size:11px;color:var(--hf-muted);margin:0}

/* Fall offer */
.hf-offer{
  overflow:hidden;border:1px solid #ffc7b4;border-radius:18px;
  display:grid;grid-template-columns:1.15fr .85fr;
  background:linear-gradient(90deg,#fff9f5,#fff1e8)
}
.hf-offer__copy{padding:45px}
.hf-offer__badge{
  display:inline-flex;align-items:center;gap:7px;background:#ffe5da;color:#c64b22;
  padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800
}
.hf-offer h2{font-size:clamp(35px,4vw,50px);line-height:1.02;margin:13px 0;color:var(--hf-navy)}
.hf-offer p{color:#6d625d;font-size:14px;max-width:600px}
.hf-offer__image{position:relative;min-height:315px}
.hf-offer__image img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}

/* Why */
.hf-why{display:grid;grid-template-columns:.9fr 1.1fr;gap:55px;align-items:center}
.hf-why__photo{border-radius:16px;overflow:hidden;min-height:420px;background:#e7eef5}
.hf-why__photo img{width:100%;height:100%;min-height:420px;object-fit:cover}
.hf-why__points{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;margin-top:28px}
.hf-point{display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:start}
.hf-point__icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e8f6ff;color:var(--hf-blue);font-weight:900}
.hf-point strong{display:block;font-size:13px}
.hf-point span{font-size:11px;color:var(--hf-muted)}
.hf-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:32px;padding-top:25px;border-top:1px solid var(--hf-line)}
.hf-stat strong{display:block;font-size:28px;color:var(--hf-navy)}
.hf-stat span{font-size:10px;color:var(--hf-muted)}

/* Service cards */
.hf-section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px}
.hf-services{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.hf-card{border:1px solid var(--hf-line);border-radius:14px;overflow:hidden;background:#fff;transition:.2s}
.hf-card:hover{transform:translateY(-4px);box-shadow:var(--hf-shadow)}
.hf-card__image{height:110px;background:linear-gradient(135deg,#dfeaf2,#eef6fb);display:grid;place-items:center;color:var(--hf-blue);font-size:34px}
.hf-card__body{padding:14px}
.hf-card h3{font-size:13px;margin:0 0 4px}
.hf-card p{font-size:10px;color:var(--hf-muted);margin:0 0 8px}
.hf-card a{font-size:10px;font-weight:800;color:var(--hf-blue)}

/* Emergency */
.hf-emergency{background:linear-gradient(90deg,#082c4d,#0a3e69);color:#fff;padding:38px 0}
.hf-emergency__inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px}
.hf-emergency__icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);font-size:25px}
.hf-emergency h2{font-size:30px;margin:2px 0 4px}
.hf-emergency p{font-size:12px;color:rgba(255,255,255,.68);margin:0}

/* Steps */
.hf-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.hf-step{background:#fff;border:1px solid var(--hf-line);border-radius:16px;padding:22px;display:grid;grid-template-columns:52px 1fr;gap:15px}
.hf-step__icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e5f5ff;color:var(--hf-blue);font-size:21px;font-weight:900}
.hf-step h3{margin:0 0 5px;font-size:17px}
.hf-step p{font-size:11px;color:var(--hf-muted);margin:0}

/* Reviews */
.hf-reviews-grid{display:grid;grid-template-columns:.75fr repeat(3,1fr);gap:16px;align-items:stretch}
.hf-review-score{padding:18px 0}
.hf-review-score strong{font-size:45px}
.hf-review-score span{color:#f5b000;font-size:20px}
.hf-review{border:1px solid var(--hf-line);border-radius:14px;padding:18px;background:#fff}
.hf-review__stars{color:#f5b000;letter-spacing:2px}
.hf-review p{font-size:11px;color:#425a70}
.hf-review__person{display:flex;align-items:center;gap:9px;margin-top:13px}
.hf-avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#dbeeff;color:var(--hf-blue);font-size:10px;font-weight:900}
.hf-review__person strong{font-size:10px;display:block}
.hf-review__person span{font-size:9px;color:var(--hf-muted)}

/* Areas + financing */
.hf-duo{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hf-panel{border:1px solid var(--hf-line);border-radius:15px;overflow:hidden;background:#fff;min-height:280px}
.hf-area{display:grid;grid-template-columns:.9fr 1.1fr}
.hf-area__copy{padding:28px}
.hf-area__list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}
.hf-area__list span{font-size:10px;color:#476078}
.hf-area__list span:before{content:"✓";color:var(--hf-blue);font-weight:900;margin-right:6px}
.hf-map{
  min-height:280px;position:relative;overflow:hidden;
  background:
    linear-gradient(35deg,transparent 0 45%,#d6e6d5 46% 56%,transparent 57%),
    linear-gradient(125deg,transparent 0 42%,#dce9d8 43% 53%,transparent 54%),
    #edf4e9
}
.hf-map:before,.hf-map:after{
  content:"";position:absolute;width:130%;height:14px;background:#fff;left:-15%;top:45%;transform:rotate(16deg);
  box-shadow:0 0 0 1px rgba(80,100,120,.06)
}
.hf-map:after{top:64%;transform:rotate(-20deg)}
.hf-map__pin{position:absolute;left:52%;top:48%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50% 50% 50% 5px;background:var(--hf-blue);transform-origin:center;rotate:-45deg}
.hf-finance{display:grid;grid-template-columns:1.1fr .9fr}
.hf-finance__copy{padding:30px}
.hf-finance__visual{position:relative;min-height:280px;background:#eef6fd}
.hf-finance__visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* FAQ */
.hf-faq{display:grid;grid-template-columns:.55fr 1.45fr;gap:50px}
.hf-accordion{border-top:1px solid var(--hf-line)}
.hf-accordion__item{border-bottom:1px solid var(--hf-line)}
.hf-accordion__btn{width:100%;border:0;background:none;padding:16px 0;display:flex;justify-content:space-between;text-align:left;font-size:12px;font-weight:800;color:var(--hf-text)}
.hf-accordion__body{display:none;padding:0 35px 16px 0;color:var(--hf-muted);font-size:11px}
.hf-accordion__item.is-open .hf-accordion__body{display:block}

/* Bottom CTA */
.hf-bottom-cta{background:linear-gradient(90deg,#0b2946,#0d3d66);color:#fff;padding:35px 0}
.hf-bottom-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:30px}
.hf-bottom-cta h2{margin:0;font-size:31px}
.hf-bottom-cta p{margin:4px 0 0;color:rgba(255,255,255,.65);font-size:11px}
.hf-bottom-cta__actions{display:flex;gap:10px}

/* footer */
.hf-footer{background:#f4f8fb;padding:46px 0 18px}
.hf-footer__grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:45px}
.hf-footer h4{font-size:12px;margin:0 0 12px;color:var(--hf-navy)}
.hf-footer a,.hf-footer span{display:block;font-size:10px;color:#4e6478;margin:7px 0}
.hf-footer__about p{font-size:10px;color:var(--hf-muted);max-width:300px}
.hf-footer__bottom{margin-top:36px;padding-top:16px;border-top:1px solid var(--hf-line);display:flex;justify-content:space-between;gap:20px;font-size:9px;color:#718397}

/* WP content fallback */
.hf-page-content{padding:70px 0}
.hf-page-content h1{font-size:42px}
.hf-page-content .entry-content{max-width:820px}

/* responsive */
@media(max-width:1050px){
  .hf-nav{display:none}
  .hf-menu-toggle{display:block}
  .hf-header__phone{margin-left:auto}
  .hf-nav.is-open{
    display:block;position:absolute;left:0;right:0;top:74px;background:#fff;border-bottom:1px solid var(--hf-line);padding:22px 20px;box-shadow:var(--hf-shadow)
  }
  .hf-nav.is-open ul{display:grid;gap:14px}
  .hf-services{grid-template-columns:repeat(3,1fr)}
  .hf-reviews-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:800px){
  body.admin-bar .hf-site-header{top:46px}
  .hf-section{padding:65px 0}
  .hf-topbar__right{display:none}
  .hf-hero__grid,.hf-offer,.hf-why,.hf-duo,.hf-faq{grid-template-columns:1fr}
  .hf-hero__content{padding:55px 0}
  .hf-hero__visual{min-height:430px}
  .hf-service-strip__grid{grid-template-columns:1fr 1fr}
  .hf-service-tile:nth-child(2){border-right:0}
  .hf-why__photo{min-height:360px}
  .hf-why__photo img{min-height:360px}
  .hf-emergency__inner{grid-template-columns:auto 1fr}
  .hf-emergency__inner .hf-btn{grid-column:2;justify-self:start}
  .hf-steps{grid-template-columns:1fr}
  .hf-footer__grid{grid-template-columns:1fr 1fr}
  .hf-footer__about{grid-column:1/-1}
}
@media(max-width:560px){
  .hf-container{width:min(calc(100% - 28px),var(--hf-container))}
  .hf-header__phone{display:none}
  .hf-hero h1{font-size:44px}
  .hf-hero__actions{display:grid}
  .hf-hero__actions .hf-btn{width:100%}
  .hf-trust{gap:14px}
  .hf-service-strip__grid,.hf-why__points,.hf-stats,.hf-services,.hf-reviews-grid,.hf-footer__grid{grid-template-columns:1fr}
  .hf-service-tile{border-right:0;border-bottom:1px solid var(--hf-line)}
  .hf-offer__copy{padding:30px 22px}
  .hf-offer__image{min-height:250px}
  .hf-emergency__inner{grid-template-columns:1fr;text-align:center}
  .hf-emergency__icon{margin:auto}
  .hf-emergency__inner .hf-btn{grid-column:auto;justify-self:stretch}
  .hf-step{grid-template-columns:45px 1fr}
  .hf-area,.hf-finance{grid-template-columns:1fr}
  .hf-bottom-cta__inner{display:grid;text-align:center}
  .hf-bottom-cta__actions{display:grid}
  .hf-footer__about{grid-column:auto}
  .hf-footer__bottom{display:grid;text-align:center}
}


/* =========================================================
   Gutenberg / Block Pattern Styling (v0.2)
   ========================================================= */

.hf-block-section {
  padding: 78px 0;
}
.hf-block-section.has-heatflow-soft-background-color {
  background: var(--hf-soft);
}
.hf-block-kicker {
  display:block;
  margin-bottom:10px;
  color:var(--hf-blue);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1.2px;
}
.hf-block-heading {
  font-size:clamp(34px,4vw,52px);
  line-height:1.08;
  letter-spacing:-1.6px;
  font-weight:800;
  margin-top:0;
  margin-bottom:18px;
}
.hf-block-copy {
  color:var(--hf-muted);
  font-size:15px;
}
.hf-block-grid {
  gap:18px !important;
}
.hf-block-card {
  height:100%;
  background:#fff;
  border:1px solid var(--hf-line);
  border-radius:16px;
  padding:24px;
  box-shadow:0 8px 26px rgba(10,43,78,.04);
}
.hf-block-card:hover {
  box-shadow:var(--hf-shadow);
}
.hf-block-card h3 {
  margin:8px 0 8px;
  font-size:19px;
}
.hf-block-card p {
  color:var(--hf-muted);
  font-size:13px;
}
.hf-block-icon {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:var(--hf-soft-blue);
  color:var(--hf-blue);
  font-size:24px;
  font-weight:900;
}
.hf-block-icon--warm {
  background:#fff0e8;
  color:var(--hf-orange);
}
.hf-block-hero {
  padding:70px 0;
  background:linear-gradient(90deg,#f7fbff 0%,#fff 54%,#eef7ff 100%);
}
.hf-block-hero .wp-block-columns {
  gap:46px;
  align-items:center;
}
.hf-block-hero h1 {
  font-size:clamp(46px,5.4vw,70px);
  line-height:.99;
  letter-spacing:-2.2px;
  margin-top:12px;
  margin-bottom:20px;
}
.hf-block-hero .hf-accent-text {
  color:var(--hf-orange);
}
.hf-block-hero .wp-block-image img {
  border-radius:24px;
  box-shadow:var(--hf-shadow);
}
.hf-block-offer {
  overflow:hidden;
  border:1px solid #ffc7b4;
  border-radius:18px;
  background:linear-gradient(90deg,#fff9f5,#fff1e8);
  padding:32px;
}
.hf-block-offer h2 {
  color:var(--hf-navy);
  font-size:clamp(34px,4vw,48px);
  line-height:1.04;
}
.hf-block-review {
  background:#fff;
  border:1px solid var(--hf-line);
  border-radius:16px;
  padding:22px;
  min-height:100%;
}
.hf-block-review .hf-stars {
  color:#f5b000;
  letter-spacing:2px;
}
.hf-block-review p {
  color:#425a70;
  font-size:13px;
}
.hf-block-faq .wp-block-details {
  border-bottom:1px solid var(--hf-line);
  padding:14px 0;
}
.hf-block-faq .wp-block-details summary {
  font-weight:800;
  cursor:pointer;
}
.hf-block-cta {
  padding:48px 36px;
  border-radius:20px;
  background:linear-gradient(90deg,#0b2946,#0d3d66);
  color:#fff;
}
.hf-block-cta h2,
.hf-block-cta p {
  color:#fff;
}
.hf-block-cta .wp-element-button {
  background:var(--hf-orange);
  color:#fff;
  border-radius:999px;
  font-weight:800;
}
.hf-block-service-area {
  background:#fff;
  border:1px solid var(--hf-line);
  border-radius:18px;
  padding:28px;
}
.hf-block-service-area .wp-block-list {
  columns:2;
  padding-left:20px;
}
.hf-block-service-area li {
  margin:6px 0;
  color:#476078;
}
.hf-front-editor-content > *:first-child {
  margin-top:0;
}
.hf-front-editor-content > *:last-child {
  margin-bottom:0;
}

@media(max-width:781px){
  .hf-block-section{padding:58px 0}
  .hf-block-hero{padding:52px 0}
  .hf-block-hero h1{font-size:44px}
  .hf-block-service-area .wp-block-list{columns:1}
}


/* =========================================================
   v0.3 Inner pages
   ========================================================= */

.hf-page-hero{
  padding:82px 0 58px;
  background:
    radial-gradient(circle at 80% 20%,rgba(22,129,245,.10),transparent 28%),
    linear-gradient(180deg,#f8fbfe 0%,#fff 100%);
  border-bottom:1px solid var(--hf-line);
}
.hf-page-hero__inner{
  max-width:860px;
}
.hf-page-hero h1{
  margin:0;
  font-size:clamp(42px,5.2vw,68px);
  line-height:1.02;
  letter-spacing:-2px;
}
.hf-page-hero p{
  max-width:720px;
  color:var(--hf-muted);
  font-size:17px;
  margin:18px 0 0;
}

.hf-about-story{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
.hf-about-story__media{
  border-radius:22px;
  overflow:hidden;
  min-height:420px;
  background:linear-gradient(135deg,#dfeef8,#edf4fa);
}
.hf-about-story__media img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
}
.hf-values{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.hf-value-card{
  border:1px solid var(--hf-line);
  border-radius:16px;
  padding:24px;
  background:#fff;
}
.hf-value-card strong{
  display:block;
  font-size:18px;
  margin:10px 0 7px;
}
.hf-value-card p{
  color:var(--hf-muted);
  font-size:13px;
}

.hf-service-listing{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.hf-service-listing__card{
  border:1px solid var(--hf-line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  transition:.2s ease;
}
.hf-service-listing__card:hover{
  transform:translateY(-4px);
  box-shadow:var(--hf-shadow);
}
.hf-service-listing__media{
  height:170px;
  display:grid;
  place-items:center;
  font-size:52px;
  background:linear-gradient(135deg,#eaf5ff,#f9fbfd);
  color:var(--hf-blue);
}
.hf-service-listing__body{
  padding:22px;
}
.hf-service-listing__body h3{
  margin:0 0 8px;
  font-size:21px;
}
.hf-service-listing__body p{
  color:var(--hf-muted);
  font-size:13px;
}
.hf-service-listing__body a{
  font-size:12px;
  font-weight:800;
  color:var(--hf-blue);
}

.hf-single-service{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:50px;
  align-items:start;
}
.hf-single-service__content h2{
  font-size:32px;
  margin-top:34px;
}
.hf-single-service__content p,
.hf-single-service__content li{
  color:#50667b;
}
.hf-side-card{
  position:sticky;
  top:110px;
  border:1px solid var(--hf-line);
  border-radius:18px;
  padding:24px;
  background:#fff;
  box-shadow:0 12px 35px rgba(10,43,78,.06);
}
.hf-side-card h3{
  margin-top:0;
}
.hf-side-card ul{
  list-style:none;
  padding:0;
  margin:16px 0 22px;
}
.hf-side-card li{
  margin:9px 0;
  color:#4e6478;
  font-size:13px;
}
.hf-side-card li:before{
  content:"✓";
  color:#14a66f;
  margin-right:8px;
  font-weight:900;
}

.hf-contact-grid{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:42px;
  align-items:start;
}
.hf-contact-card{
  border:1px solid var(--hf-line);
  border-radius:18px;
  padding:26px;
  background:#fff;
}
.hf-contact-card + .hf-contact-card{margin-top:14px}
.hf-contact-card h3{margin:0 0 10px}
.hf-contact-card p{color:var(--hf-muted);font-size:13px}
.hf-contact-form{
  border:1px solid var(--hf-line);
  border-radius:20px;
  padding:30px;
  background:#fff;
  box-shadow:0 12px 35px rgba(10,43,78,.05);
}
.hf-contact-form .wp-block-group{
  margin-bottom:14px;
}
.hf-contact-form input,
.hf-contact-form textarea,
.hf-contact-form select{
  width:100%;
  border:1px solid #cad7e3;
  border-radius:11px;
  padding:13px 14px;
  background:#fff;
}
.hf-contact-form label{
  font-size:12px;
  font-weight:700;
  display:block;
  margin-bottom:6px;
}
.hf-contact-note{
  font-size:11px;
  color:#8191a0;
}

.hf-finance-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.hf-finance-option{
  border:1px solid var(--hf-line);
  border-radius:18px;
  padding:26px;
  background:#fff;
}
.hf-finance-option h3{font-size:21px;margin:10px 0}
.hf-finance-option p{color:var(--hf-muted);font-size:13px}
.hf-finance-option__icon{
  width:48px;height:48px;border-radius:14px;display:grid;place-items:center;
  background:var(--hf-soft-blue);color:var(--hf-blue);font-size:23px;font-weight:900
}

.hf-blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.hf-post-card{
  border:1px solid var(--hf-line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.hf-post-card__thumb{
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#dfeef8,#edf4fa);
}
.hf-post-card__thumb img{
  width:100%;height:100%;object-fit:cover
}
.hf-post-card__body{padding:20px}
.hf-post-card__meta{
  color:var(--hf-blue);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:800;
}
.hf-post-card h2,
.hf-post-card h3{
  margin:8px 0;
  font-size:20px;
}
.hf-post-card p{
  color:var(--hf-muted);
  font-size:12px;
}
.hf-post-card a{
  color:var(--hf-blue);
  font-size:11px;
  font-weight:800;
}

.hf-single-post{
  max-width:820px;
  margin:0 auto;
}
.hf-single-post__meta{
  color:var(--hf-muted);
  font-size:12px;
  margin:12px 0 25px;
}
.hf-single-post img{
  border-radius:18px;
}
.hf-single-post .entry-content{
  font-size:17px;
}
.hf-single-post .entry-content p{
  color:#41586e;
}
.hf-single-post .entry-content h2{
  margin-top:34px;
  font-size:30px;
}

.hf-breadcrumbs{
  font-size:11px;
  color:#72859a;
  margin-bottom:14px;
}
.hf-breadcrumbs a{color:var(--hf-blue)}

@media(max-width:900px){
  .hf-about-story,
  .hf-contact-grid,
  .hf-single-service,
  .hf-finance-grid{
    grid-template-columns:1fr;
  }
  .hf-side-card{position:static}
  .hf-values,
  .hf-service-listing,
  .hf-blog-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:600px){
  .hf-values,
  .hf-service-listing,
  .hf-blog-grid{
    grid-template-columns:1fr;
  }
  .hf-page-hero{padding:60px 0 42px}
}


/* =========================================================
   v0.4.1 Mobile polish hotfix
   ========================================================= */

.hf-logo,
.hf-logo__text {
  white-space: nowrap;
}

@media (max-width: 560px) {
  /* Keep the mobile header clean: logo + hamburger only. */
  .hf-header__inner > .hf-btn {
    display: none;
  }

  .hf-header__inner {
    min-height: 68px;
  }

  .hf-logo__mark {
    width: 40px;
    height: 40px;
  }

  .hf-logo__text {
    font-size: 19px;
    letter-spacing: -0.6px;
  }

  /* Hero is still strong, but less oversized on small screens. */
  .hf-hero h1,
  .hf-block-hero h1 {
    font-size: 38px;
    line-height: 1.03;
    letter-spacing: -1.5px;
  }

  .hf-hero__content {
    padding: 42px 0;
  }

  .hf-block-hero {
    padding: 42px 0;
  }

  .hf-hero__lead,
  .hf-block-copy {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Reduce excessive vertical whitespace between Gutenberg sections. */
  .hf-block-section {
    padding: 44px 0;
  }

  .hf-section {
    padding: 52px 0;
  }

  /* Slightly tighter offer card on phones. */
  .hf-block-offer {
    padding: 22px;
  }

  .hf-offer__copy {
    padding: 26px 20px;
  }

  /* Reviews/cards should not feel overly tall. */
  .hf-block-review,
  .hf-block-card {
    padding: 20px;
  }

  /* Footer brand must stay on one line. */
  .hf-footer .hf-logo {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .hf-footer .hf-logo__text {
    display: inline-block;
    white-space: nowrap;
    font-size: 20px;
  }

  .hf-footer__grid {
    gap: 26px;
  }

  .hf-footer {
    padding-top: 38px;
  }
}


/* =========================================================
   v0.4.2 gutters, footer, links and hero review
   ========================================================= */

/* Gutenberg content needs its own reliable page gutters. */
.hf-front-editor-content .alignwide {
  width: min(calc(100% - 40px), var(--hf-container));
  max-width: var(--hf-container);
  margin-left: auto !important;
  margin-right: auto !important;
}

.hf-front-editor-content .hf-page-hero__inner,
.hf-front-editor-content .hf-block-heading,
.hf-front-editor-content .hf-block-kicker {
  overflow-wrap: anywhere;
}

/* Real HTML review card placed over the demo hero image. */
.hf-block-hero .wp-block-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}
.hf-block-hero .wp-block-image img {
  display: block;
  width: 100%;
}
.hf-hero-review-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  width: min(290px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(220,231,241,.95);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 38px rgba(10,43,78,.18);
  display: grid;
  gap: 4px;
}
.hf-hero-review-stars {
  color: #f5b000;
  letter-spacing: 2px;
  font-size: 13px;
}
.hf-hero-review-card strong {
  color: var(--hf-navy);
  font-size: 12px;
  line-height: 1.35;
}
.hf-hero-review-card span {
  color: var(--hf-muted);
  font-size: 10px;
}

/* Footer cleanup */
.hf-footer .hf-logo__text,
.hf-footer .hf-logo__text span {
  display: inline !important;
  margin: 0 !important;
  font-size: inherit;
  white-space: nowrap;
}
.hf-footer__legal-links {
  display: inline-flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 !important;
}
.hf-footer__legal-links a {
  display: inline !important;
  margin: 0 !important;
}

/* Make service cards feel interactive. */
.hf-block-card[data-hf-url],
.hf-service-listing__card a,
.hf-service-tile[data-hf-url] {
  cursor: pointer;
}
.hf-block-card[data-hf-url]:focus-within,
.hf-block-card[data-hf-url]:hover {
  border-color: #bdd8f3;
}

@media (max-width: 560px) {
  .hf-front-editor-content .alignwide {
    width: min(calc(100% - 28px), var(--hf-container));
  }

  .hf-page-hero__inner,
  .hf-block-section > .wp-block-group.alignwide {
    padding-left: 0;
    padding-right: 0;
  }

  .hf-page-hero h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .hf-page-hero p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hf-hero-review-card {
    right: 10px;
    bottom: 10px;
    width: min(250px, calc(100% - 20px));
    padding: 11px 12px;
  }

  .hf-footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 18px !important;
  }
  .hf-footer__about,
  .hf-footer__contact {
    grid-column: 1 / -1 !important;
  }
  .hf-footer__about p {
    max-width: 100%;
    margin-top: 12px;
  }
  .hf-footer h4 {
    margin-bottom: 10px;
  }
  .hf-footer a,
  .hf-footer span {
    margin: 6px 0;
  }
  .hf-footer__bottom {
    gap: 12px;
  }
  .hf-footer__legal-links {
    justify-content: center;
  }
}
