/* ==========================================================================
   Curbside – main stylesheet
   Colors, fonts and media controls arrive as custom properties from
   theme-variables.js (prepended by Publii). Fallbacks below keep the file
   usable on its own.
   Breakpoints: mobile < 768px · tablet 768–1023px · desktop ≥ 1024px
   ========================================================================== */

@font-face{font-family:'Dangrek';src:url('../fonts/dangrek.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Baloo Paaji 2';src:url('../fonts/baloo.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
/* The supplied Thasadith file is a Bold Italic cut – declared honestly as such. */
@font-face{font-family:'Thasadith';src:url('../fonts/thasadith.woff2') format('woff2');font-weight:100 900;font-style:italic;font-display:swap}

/* :where() = zero specificity, so values generated by theme-variables.js always win regardless of CSS order */
:where(:root){
  --c-white:#FFFFFF;--c-orange:#FD640C;--c-black:#070707;--c-light:#F5F5F5;--c-dark:#121212;
  --f-heading:'Dangrek',Impact,'Arial Narrow',sans-serif;
  --f-sub:'Baloo Paaji 2','Trebuchet MS',system-ui,sans-serif;
  --f-body:'Thasadith',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --fs-base:17px;--radius:6px;--wrap:1440px;--stage:1600px;
  --c-text:#1b1b1b;--c-muted:#555;--c-line:#e4e4e4;--header-h:80px;
  --hero-opacity:1;--hero-radius:0px;--hero-fit:cover;--hero-pos:center center;--hero-layer:0;--hero-overlay-layer:1;--hero-overlay-color:#070707;--hero-overlay-opacity:.45;
  --herovideo-opacity:1;--herovideo-radius:0px;--herovideo-fit:cover;--herovideo-pos:center center;--herovideo-layer:0;--herovideo-overlay-layer:1;--herovideo-overlay-color:#070707;--herovideo-overlay-opacity:.5;
  --why-opacity:1;--why-radius:0px;--why-fit:cover;--why-pos:center center;--why-layer:0;--why-overlay-layer:1;--why-overlay-color:#070707;--why-overlay-opacity:.25;
  --about-opacity:1;--about-radius:0px;--about-fit:cover;--about-pos:center center;--about-layer:0;--about-overlay-layer:1;--about-overlay-color:#070707;--about-overlay-opacity:.3;
  --mapimg-opacity:1;--mapimg-radius:0px;--mapimg-fit:cover;--mapimg-pos:center center;--mapimg-layer:0;--mapimg-overlay-layer:1;--mapimg-overlay-color:#070707;--mapimg-overlay-opacity:.2;
  --map-height:280px;--map-opacity:1;--map-radius:0px;
  --gutter:max(0px,calc((100% - var(--stage)) / 2));
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 8px)}
body{margin:0;font-family:var(--f-body);font-size:var(--fs-base);line-height:1.55;color:var(--c-text);background:var(--c-white);overflow-x:hidden;-webkit-font-smoothing:antialiased}
img,video,svg{max-width:100%;display:block}
img{height:auto}
a{color:inherit}
h1,h2,h3,h4{margin:0;line-height:1.1}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0;list-style:none}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--c-orange);outline-offset:3px;border-radius:2px}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:-60px;z-index:1000;background:var(--c-orange);color:var(--c-black);padding:10px 16px;font-weight:700;border-radius:var(--radius);text-decoration:none}
.skip-link:focus{top:12px}
.container{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:20px}
.icon{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon--xl{width:56px;height:56px;stroke-width:2.2}
.icon--flip{transform:scaleX(-1)}

/* ---------- Typography ---------- */
h1,.hero__title{font-family:var(--f-heading);font-weight:400;letter-spacing:.01em}
h2,h3,h4,.btn,.eyebrow,.primary-nav__link{font-family:var(--f-sub)}
.eyebrow{margin:0 0 .35rem;color:var(--c-orange);font-weight:700;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.eyebrow--white{color:var(--c-white)}
.section-title{font-size:clamp(2rem,4.5vw,2.6rem);font-weight:800;text-transform:uppercase;letter-spacing:.01em;color:var(--c-black)}
.section-title--light{color:var(--c-white)}
.accent{color:var(--c-orange)}
.section-sub{margin:.6rem 0 0;color:var(--c-muted)}
.rich p{margin:0 0 .9em}
.rich--light,.rich--light p{color:rgba(255,255,255,.92)}

/* ---------- Buttons ---------- */
.btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:.55em;border:2px solid transparent;border-radius:var(--radius);font-weight:700;letter-spacing:.03em;text-decoration:none;text-transform:uppercase;line-height:1;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s,transform .2s}
.btn .icon{width:1.15em;height:1.15em}
.btn--primary{background:var(--c-orange);border-color:var(--c-orange);color:var(--c-white)}
.btn--primary:hover{background:#ff7a2c;border-color:#ff7a2c}
.btn--outline{background:rgba(7,7,7,.35);border-color:var(--c-white);color:var(--c-white)}
.btn--outline:hover{background:var(--c-white);color:var(--c-black)}
.btn--outline-orange{background:transparent;border-color:var(--c-orange);color:var(--c-orange)}
.btn--outline-orange:hover{background:var(--c-orange);color:var(--c-white)}
.btn--sm{padding:.8rem 1.2rem;font-size:.85rem}
.btn--md{padding:.95rem 1.5rem;font-size:.95rem}
.btn--lg{padding:1.05rem 1.7rem;font-size:1rem;min-width:11rem}

/* ---------- Header ---------- */
.site-header{background:var(--c-black);color:var(--c-white);border-bottom:3px solid var(--c-orange);z-index:500;position:relative}
.site-header.is-sticky{position:sticky;top:0}
.site-header__inner{max-width:var(--wrap);margin-inline:auto;padding:6px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:var(--header-h)}
.site-header__logo{display:block;flex:none}
.site-header__logo img{height:72px;width:auto}
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;background:transparent;border:2px solid var(--c-white);border-radius:var(--radius);color:var(--c-white)}
.nav-toggle__bars,.nav-toggle__bars::before,.nav-toggle__bars::after{display:block;width:22px;height:2px;background:currentColor;position:relative;transition:transform .2s,background-color .2s}
.nav-toggle__bars::before,.nav-toggle__bars::after{content:'';position:absolute;left:0}
.nav-toggle__bars::before{top:-7px}.nav-toggle__bars::after{top:7px}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{top:0;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{top:0;transform:rotate(-45deg)}
.site-header__panel{display:none;position:absolute;left:0;right:0;top:100%;background:var(--c-black);border-bottom:3px solid var(--c-orange);padding:12px 20px 24px;flex-direction:column;gap:18px;max-height:calc(100vh - var(--header-h));overflow-y:auto}
.site-header__panel.is-open{display:flex}
.primary-nav__list{display:flex;flex-direction:column}
.primary-nav__link{white-space:nowrap;display:block;padding:14px 4px;color:var(--c-white);text-decoration:none;font-weight:700;font-size:1rem;border-bottom:1px solid rgba(255,255,255,.12)}
.primary-nav__link:hover{color:var(--c-orange)}
.primary-nav__link[aria-current]{color:var(--c-orange)}
.site-header__actions{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.header-phone{white-space:nowrap;display:inline-flex;align-items:center;gap:.5em;color:var(--c-white);text-decoration:none;font-family:var(--f-sub);font-weight:800;font-size:1.3rem}
.header-phone .icon{stroke:none;fill:currentColor;width:1.1em;height:1.1em}
.header-phone .icon use{stroke:none}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--c-black);color:var(--c-white);overflow:hidden;isolation:isolate}
.hero__media{position:absolute;top:0;bottom:0;left:var(--gutter);right:var(--gutter);z-index:var(--hero-layer);pointer-events:none}
.hero__img,.hero__video{width:100%;height:100%;object-fit:var(--hero-fit);object-position:var(--hero-pos);opacity:var(--hero-opacity);border-radius:var(--hero-radius)}
.hero__video{object-fit:var(--herovideo-fit);object-position:var(--herovideo-pos);opacity:var(--herovideo-opacity);border-radius:var(--herovideo-radius)}
.hero__media--video{z-index:var(--herovideo-layer)}
.hero__overlay{position:absolute;inset:0;z-index:calc(var(--hero-layer) + 1)}
.hero__overlay--image{background:var(--hero-overlay-color);opacity:var(--hero-overlay-opacity);z-index:var(--hero-overlay-layer)}
.hero__overlay--video{background:var(--herovideo-overlay-color);opacity:var(--herovideo-overlay-opacity);z-index:var(--herovideo-overlay-layer)}
/* legibility scrim for text (built in, independent of editor overlay) */
.hero::after{content:'';position:absolute;top:0;bottom:0;left:var(--gutter);right:var(--gutter);z-index:1;background:linear-gradient(90deg,rgba(7,7,7,.9) 0%,rgba(7,7,7,.7) 45%,rgba(7,7,7,.35) 100%);pointer-events:none}
.hero__inner{position:relative;z-index:2;max-width:var(--wrap);margin-inline:auto;padding:44px 20px 40px}
.hero__content{max-width:600px}
.hero__eyebrow{margin:0 0 .6rem;color:var(--c-orange);font-family:var(--f-sub);font-weight:700;font-size:.9rem;letter-spacing:.1em}
.hero__title{font-size:clamp(3.4rem,13vw,5.6rem);line-height:.95;text-transform:uppercase}
.hero__title span{display:block}
.hero__title-accent{color:var(--c-orange)}
.hero__subtitle{margin:1rem 0 .6rem;font-family:var(--f-sub);font-weight:700;font-size:clamp(1.25rem,4.5vw,1.8rem);line-height:1.2}
.hero__text{max-width:30rem;color:rgba(255,255,255,.92)}
.hero__buttons{display:flex;flex-wrap:wrap;gap:14px;margin:1.4rem 0 1.6rem}
.hero__badges{display:flex;flex-wrap:wrap;gap:12px 0;font-size:.9rem}
.hero__badges li{display:inline-flex;align-items:center;gap:.5em;padding-right:18px;margin-right:18px;border-right:1px solid rgba(255,255,255,.3)}
.hero__badges li:last-child{border-right:0;margin-right:0;padding-right:0}
.hero__badges .icon{width:1.35em;height:1.35em}
/* media layout: "right" keeps the photo on the right and fades into black */
.hero__img{min-height:100%}

/* ---------- Sections ---------- */
.section{padding:56px 0}
.section--light{background:var(--c-light)}
.section--dark{background:var(--c-black);color:var(--c-white)}
.section-head{margin-bottom:1.6rem}

/* Services */
.services__grid{display:grid;gap:26px}
.cards{display:grid;gap:16px;grid-template-columns:1fr}
.card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 18px 22px;background:var(--c-white);border:1px solid var(--c-line);border-radius:var(--radius);box-shadow:0 2px 8px rgba(0,0,0,.04)}
.card__icon{color:var(--c-orange);height:60px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.card__icon img{max-height:60px;width:auto}
.card__title{font-size:1.1rem;font-weight:800;text-transform:uppercase;color:var(--c-black);margin-bottom:.5rem}
.card__text{color:var(--c-muted);font-size:.97rem;margin-bottom:1rem;max-width:17rem}
.card__link{margin-top:auto;display:inline-flex;align-items:center;gap:.4em;color:var(--c-orange);font-family:var(--f-sub);font-weight:700;text-decoration:none}
.card__link:hover{text-decoration:underline}

/* Why */
.why{position:relative;overflow:hidden;isolation:isolate}
.why__media{position:absolute;top:0;bottom:0;left:var(--gutter);right:var(--gutter);z-index:var(--why-layer);pointer-events:none}
.why__img{width:100%;height:100%;object-fit:var(--why-fit);object-position:var(--why-pos);opacity:var(--why-opacity);border-radius:var(--why-radius)}
.why__overlay{position:absolute;inset:0;background:var(--why-overlay-color);opacity:var(--why-overlay-opacity);z-index:var(--why-overlay-layer)}
.why::after{content:'';position:absolute;top:0;bottom:0;left:var(--gutter);right:var(--gutter);z-index:1;background:linear-gradient(180deg,rgba(7,7,7,.82),rgba(7,7,7,.6));pointer-events:none}
.why__grid{position:relative;z-index:2;display:grid;gap:28px}
.why__intro .rich{max-width:26rem;margin-bottom:1.4rem}
.benefits{display:grid;gap:12px}
.benefits li{display:flex;align-items:center;gap:12px;font-size:1rem}
.icon--check{width:24px;height:24px;color:var(--c-orange);stroke:none}
.icon--check use{stroke:none}

/* How it works */
.how__grid{display:grid;gap:26px}
.steps{display:grid;gap:22px;grid-template-columns:1fr}
.step{position:relative;padding-left:0}
.step__top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.step__num{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--c-orange);color:var(--c-white);font-family:var(--f-sub);font-weight:800;font-size:1.15rem}
.icon--step{width:46px;height:46px;color:var(--c-black);stroke-width:1.8}
.step__title{font-size:1.1rem;font-weight:800;text-transform:uppercase;color:var(--c-black);margin-bottom:.4rem}
.step__text{color:var(--c-muted);font-size:.97rem;max-width:15rem}

/* About + Testimonials split */
.split-wrap{background:var(--c-black)}
.split{display:flex;flex-direction:column;background:var(--c-black);max-width:var(--stage);margin-inline:auto}
.split>*{flex:1 1 0;min-width:0}
.about{position:relative;display:flex;flex-direction:column;background:var(--c-dark);color:var(--c-white)}
.about__media{position:relative;height:220px;z-index:var(--about-layer);overflow:hidden}
.about__img{position:absolute;inset:0;width:100%;height:100%;object-fit:var(--about-fit);object-position:var(--about-pos);opacity:var(--about-opacity);border-radius:var(--about-radius)}
.about__overlay{position:absolute;inset:0;background:var(--about-overlay-color);opacity:var(--about-overlay-opacity);z-index:var(--about-overlay-layer)}
.about__body{padding:28px 22px 34px}
.about__title{font-size:clamp(1.5rem,5vw,1.9rem);font-weight:800;text-transform:uppercase;color:var(--c-orange);margin:.1rem 0 .8rem}
.reviews{background:var(--c-black);color:var(--c-white);padding:30px 22px 36px;border-top:1px solid rgba(255,255,255,.18)}
.reviews__title{font-size:clamp(1.5rem,5vw,1.9rem);font-weight:800;text-transform:uppercase;color:var(--c-white);margin-bottom:1.2rem}
.slider__track{position:relative}
.review{margin:0 0 22px}
.is-js .review{display:none;margin:0}
.is-js .review.is-active{display:block}
.review__quote{width:34px;height:34px;color:var(--c-orange);margin-bottom:10px;stroke:none}
.review__quote use{stroke:none}
.review__text{margin:0;font-size:1.1rem;line-height:1.5}
.review__text p{margin:0 0 .9rem}
.review__by{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:6px}
.review__photo{border-radius:50%;width:40px;height:40px;object-fit:cover}
.stars{--rating:5;font-size:1.15rem;letter-spacing:.08em;line-height:1}
.stars::before{content:'★★★★★';background:linear-gradient(90deg,var(--c-orange) calc(var(--rating)/5*100%),#4a4a4a 0);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.review__name{font-family:var(--f-sub);font-weight:700}
.slider__controls{display:flex;align-items:center;gap:10px;margin-top:20px}
.slider__dots{display:flex;gap:10px}
.slider__dot{width:12px;height:12px;border-radius:50%;border:0;padding:0;background:#6b6b6b;cursor:pointer}
.slider__dot[aria-current="true"]{background:var(--c-orange)}
.slider__btn{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:transparent;color:var(--c-white);display:inline-flex;align-items:center;justify-content:center;padding:0}
.slider__btn:hover{border-color:var(--c-orange);color:var(--c-orange)}
.slider__btn--prev .icon{transform:scaleX(-1)}

/* Service area */
.area__grid{display:grid;gap:26px;align-items:center}
.area__map{position:relative;min-width:0}
.map-static,.service-map{position:relative;overflow:hidden;border-radius:var(--mapimg-radius);background:#e9e5df}
.map-static{height:var(--map-height);z-index:var(--mapimg-layer)}
.map-static__img{width:100%;height:100%;object-fit:var(--mapimg-fit);object-position:var(--mapimg-pos);opacity:var(--mapimg-opacity)}
.map-static__overlay{position:absolute;inset:0;background:var(--mapimg-overlay-color);opacity:var(--mapimg-overlay-opacity);z-index:var(--mapimg-overlay-layer)}
.service-map{height:var(--map-height);border-radius:var(--map-radius);opacity:var(--map-opacity);z-index:0}
.service-map__status{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;color:var(--c-muted);z-index:2}
.service-map.is-ready .service-map__status{display:none}
.map-fallback[hidden]{display:none}
.map-fallback__msg{position:absolute;left:0;right:0;bottom:0;margin:0;padding:10px 14px;background:rgba(7,7,7,.8);color:var(--c-white);font-size:.9rem;z-index:3}
.area__lead{color:var(--c-muted);max-width:26rem;margin:.6rem 0 1.2rem}
.area__list-title{font-size:.95rem;font-weight:800;text-transform:uppercase;color:var(--c-black);margin-bottom:.7rem}
.ticklist{display:grid;gap:7px}
.ticklist li{display:flex;align-items:center;gap:10px;font-size:.97rem}
.ticklist .icon{width:1em;height:1em;color:var(--c-orange);stroke-width:3.5}
.pin-marker{background:none;border:0}
.pin-marker svg{width:36px;height:36px;color:var(--c-black);filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.leaflet-container{font-family:var(--f-body)}

/* Footer */
.site-footer{background:var(--c-black);color:var(--c-white);padding:36px 20px 18px}
.site-footer__inner{max-width:var(--wrap);margin-inline:auto;display:grid;gap:28px}
.footer__logo img{width:150px;height:auto}
.footer__desc{margin:.4rem 0 0;font-family:var(--f-sub);font-weight:700;font-size:.95rem}
.footer__title{font-family:var(--f-sub);font-size:.95rem;font-weight:800;margin-bottom:.8rem;letter-spacing:.02em}
.footer__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 24px}
.footer__links a,.contact-list a{text-decoration:none;color:rgba(255,255,255,.92)}
.footer__links a:hover,.contact-list a:hover{color:var(--c-orange)}
.contact-list{display:grid;gap:10px}
.contact-list li{display:flex;gap:10px;align-items:flex-start}
.contact-list .icon{margin-top:.2em;width:1.1em;height:1.1em}
.social{display:flex;flex-wrap:wrap;gap:12px}
.social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1.5px solid rgba(255,255,255,.75);color:var(--c-white);text-decoration:none;transition:background-color .2s,border-color .2s}
.social a:hover{background:var(--c-orange);border-color:var(--c-orange)}
.footer__legal{max-width:var(--wrap);margin:26px auto 0}
.footer__legal ul{display:flex;flex-wrap:wrap;gap:6px 0;justify-content:center;font-size:.85rem}
.footer__legal li+li::before{content:'|';margin:0 10px;color:rgba(255,255,255,.4)}
.footer__legal a{color:rgba(255,255,255,.85);text-decoration:none}
.footer__legal a:hover{color:var(--c-orange);text-decoration:underline}
.footer__copy{max-width:var(--wrap);margin:18px auto 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.15);text-align:center;font-size:.85rem;color:rgba(255,255,255,.75)}

/* Legal placeholder panels (CSS-only via :target) */
.legal-panel{display:none;position:fixed;inset:0;z-index:2000;background:rgba(7,7,7,.8);align-items:center;justify-content:center;padding:20px}
.legal-panel:target{display:flex}
.legal-panel__box{background:var(--c-white);color:var(--c-text);max-width:560px;max-height:90vh;overflow:auto;padding:28px;border-radius:var(--radius);border-top:6px solid var(--c-orange)}
.legal-panel__box h2{font-size:1.5rem;margin-bottom:1rem}
.legal-panel__warn{color:#a30000}

/* Blog / pages */
.blog{min-height:50vh}
.blog__head{background:var(--c-black);color:var(--c-white);padding:44px 0 36px;border-bottom:3px solid var(--c-orange)}
.blog__title{font-size:clamp(2.6rem,8vw,4rem);text-transform:uppercase}
.blog__intro{margin:.6rem 0 0;color:rgba(255,255,255,.85)}
.blog__list{padding-block:40px 56px}
.post-grid{display:grid;gap:22px;grid-template-columns:1fr}
.post-card{display:flex;flex-direction:column;background:var(--c-white);border:1px solid var(--c-line);border-radius:var(--radius);overflow:hidden}
.post-card__image img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card__body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.post-card__meta{font-size:.85rem;color:var(--c-muted);margin-bottom:.3rem}
.post-card__title{font-size:1.25rem;font-weight:800;margin-bottom:.5rem}
.post-card__title a{text-decoration:none;color:var(--c-black)}
.post-card__title a:hover{color:var(--c-orange)}
.post-card__excerpt{color:var(--c-muted)}
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:34px}
.post{max-width:780px;padding-block:40px 60px}
.post__title{font-size:clamp(2.2rem,7vw,3.4rem);text-transform:uppercase;margin-bottom:.6rem}
.post__meta{color:var(--c-muted);font-size:.95rem}
.post__image{margin:1.4rem 0}
.post__image img{width:100%;border-radius:var(--radius)}
.post__content{font-size:1.08rem}
.post__content h2,.post__content h3{margin:1.6em 0 .5em;color:var(--c-black)}
.post__content h2{font-size:1.7rem}.post__content h3{font-size:1.3rem}
.post__content a{color:var(--c-orange)}
.post__content img,.post__content video,.post__content iframe{max-width:100%;border-radius:var(--radius)}
.post__content ul,.post__content ol{padding-left:1.4em;margin:0 0 1em;list-style:revert}
.post__content blockquote{margin:1.4em 0;padding:.4em 1.2em;border-left:4px solid var(--c-orange);color:var(--c-muted)}
.post__back{margin-top:2.4rem}

/* Publii consent UI (cookie bar / embed placeholders) – styled to the palette.
   Selectors are deliberately broad because Publii owns the markup. */
[class*="cookie-popup"]{font-family:var(--f-body)}
[class*="cookie-popup"] button,[class*="cookie-popup"] a.button,[class*="embed-consent"] button{background:var(--c-orange);color:var(--c-white);border:0;border-radius:var(--radius);padding:.6em 1.1em;font-weight:700}
[class*="embed-consent"]{background:var(--c-black);color:var(--c-white);border-radius:var(--radius)}

/* ===================== Tablet (≥ 768px) ===================== */
@media (min-width:768px){
  .container{padding-inline:32px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
  .why__grid{grid-template-columns:1fr 1fr;align-items:center}
  .about{flex-direction:row}
  .about__media{width:34%;height:auto;min-height:220px;flex:none}
  .about__body{flex:1}
  .area__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .area__list{grid-column:1 / -1}
  .site-footer__inner{grid-template-columns:1fr 1fr}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero__inner{padding:64px 32px 56px}
}

/* ===================== Desktop (≥ 1024px) ===================== */
@media (min-width:1024px){
  :root{--header-h:92px}
  .site-header__inner{padding-inline:32px}
  .site-header__logo img{height:84px}
  .nav-toggle{display:none}
  .site-header__panel{display:flex;position:static;flex-direction:row;align-items:center;justify-content:flex-end;flex:1;gap:28px;background:none;border:0;padding:0;max-height:none;overflow:visible}
  .primary-nav__list{flex-direction:row;gap:26px}
  .primary-nav__link{padding:10px 0;border:0;font-size:.9rem;position:relative}
  .primary-nav__link[aria-current]::after{content:'';position:absolute;left:0;right:0;bottom:2px;height:2px;background:var(--c-orange)}
  .site-header__actions{align-items:flex-end;gap:10px}
  .header-phone{font-size:1.45rem}

  .hero{min-height:440px;display:flex;align-items:center}
  .hero[data-layout="right"] .hero__media{left:calc(var(--gutter) + min(100%, var(--stage)) * .34)}
  .hero[data-layout="right"] .hero__media::before{content:'';position:absolute;left:0;top:0;bottom:0;width:30%;z-index:3;background:linear-gradient(90deg,var(--c-black),rgba(7,7,7,0))}
  .hero::after{background:linear-gradient(90deg,rgba(7,7,7,.92) 0%,rgba(7,7,7,.75) 40%,rgba(7,7,7,.1) 75%,rgba(7,7,7,0) 100%)}
  .hero__inner{padding:52px 32px}
  .hero__inner{width:100%}

  .section{padding:44px 0}
  .services__grid{grid-template-columns:minmax(0,230px) 1fr;align-items:center;gap:20px}
  .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .section-head{margin-bottom:0}

  .why{min-height:300px;display:flex;align-items:center}
  .why::after{background:linear-gradient(90deg,rgba(7,7,7,.95) 0%,rgba(7,7,7,.88) 38%,rgba(7,7,7,.35) 62%,rgba(7,7,7,0) 100%)}
  .why__media{left:calc(var(--gutter) + min(100%, var(--stage)) * .42)}
  .why__grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,.6fr);gap:34px}
  .why__intro{grid-column:1}
  .benefits{grid-column:2;gap:11px}

  .how__grid{grid-template-columns:minmax(0,240px) 1fr;align-items:center;gap:20px}
  .steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  .step{padding:4px 22px;border-left:1px solid var(--c-line)}
  .step+.step::before{content:'';}
  .step:not(:last-child)::after{content:'→';position:absolute;right:-12px;top:14px;width:24px;text-align:center;background:var(--c-light);color:var(--c-black);font-size:1.2rem;z-index:2}

  .split-wrap{background:linear-gradient(90deg,var(--c-dark) 50%,var(--c-black) 50%)}
  .split{flex-direction:row}
  .about__media{width:36%}
  .about__body{padding:34px 28px}
  .reviews{padding:34px 34px;border-top:0;border-left:3px solid var(--c-white)}

  .area__grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr) minmax(0,.8fr);gap:34px}
  .area__list{grid-column:auto;border-left:1px solid var(--c-line);padding-left:30px}
  .site-footer__inner{grid-template-columns:1.1fr 1.2fr 1.3fr .9fr;gap:34px}
  .footer__col{border-left:1px solid rgba(255,255,255,.18);padding-left:30px}
  .post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Ultrawide (> stage width): photos stop at the stage edge and fade into the black section background */
@media (min-width:1601px){
  .hero__media::after,.why__media::after{content:'';position:absolute;top:0;bottom:0;right:0;width:14%;z-index:3;background:linear-gradient(270deg,var(--c-black),rgba(7,7,7,0))}
  .about__media::before{content:'';position:absolute;top:0;bottom:0;left:0;width:40%;z-index:3;background:linear-gradient(90deg,var(--c-dark),rgba(18,18,18,0))}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}
