/* Hero Carousel Styles */
:root body, body{background-color:var(--page-bg)!important}
:root{--brand-gold:#A2894A;--brand-gold-mid:#C6AF71;--brand-gold-light:#E3D3A4;--brand-gold-gradient:linear-gradient(135deg,#A2894A 0%,#C6AF71 50%,#E3D3A4 100%);--page-bg:#141414;--card-surface:#0f0f0f;--card-glow-center:#2b2924;--card-glow-mid:#23221f;--card-ring:rgba(255,255,255,.05)}
.m-hero-carousel{position:relative;overflow:hidden;display:block;padding:0}
/* Let existing .m-hero.with-picture rules from app.css control min-height breakpoints */
.m-hero-carousel.with-picture{background:#000;color:#fff}
.m-hero-carousel .swiper-wrapper{display:flex;width:100%}
.hero-slide{position:relative;flex:1;display:flex}
.hero-slide__bg{position:absolute;inset:0;z-index:1}
.hero-slide__bg img{width:100%;height:100%;object-fit:cover;display:block}
.hero-slide__overlay{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:0 1.5rem;width:100%}
.hero-slide__overlay.with-gradient:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.35) 60%,rgba(0,0,0,.55) 100%);z-index:-1}
.hero-slide__title{color:#fff;font-size:2rem;font-weight:700;margin:0 0 1rem}
@media (min-width:48rem){.hero-slide__title{font-size:2.6rem}}
.hero-slide__subtitle{color:#fff;font-size:1.125rem;max-width:760px;margin:0 0 1.5rem;line-height:1.5}
.m-hero-carousel .swiper-button-prev,.m-hero-carousel .swiper-button-next{top:50%;transform:translateY(-50%)}
@media (max-width:640px){.hero-slide__title{font-size:1.75rem}.hero-slide__subtitle{font-size:1rem}}
/* Custom homepage cards for services */
.homepage-services {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin: 2rem 0;
}
.homepage-card {
    position: relative;
    /* Keep deep dark card background like steps, but no golden rim */
    border-radius: 22px;
    background: linear-gradient(var(--kh-bg-card), var(--kh-bg-card));
    box-shadow: 0 2px 6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02);
    color:#dcdcdc;
    padding:2rem 1.5rem;
    width:220px;
    text-align:center;
    overflow:hidden;
    transition:box-shadow .35s ease; /* no lift */
}
/* Remove golden inner glow to avoid rim impression */
.homepage-card::before{ content:none; }
.homepage-card::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--card-ring);pointer-events:none}
.homepage-card:hover{transform:none; box-shadow:0 2px 6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02)}
.homepage-card:hover::before{opacity:1;transform:scale(1.035)}
/* Restore original title (remove shadow) */
.homepage-card-title{text-shadow:none}
.homepage-card-title {background:linear-gradient(135deg,#EBDCA4 0%,#D7B765 45%,#B98633 90%); -webkit-background-clip:text; background-clip:text; color:transparent;}
.homepage-card-icon{color:#A2894A}
.homepage-card-icon img{max-width:110px;max-height:110px;display:block;margin:0 auto 1rem;filter:drop-shadow(0 4px 8px rgba(0,0,0,.45));object-fit:contain;transition:transform .4s cubic-bezier(.16,.8,.3,1),filter .45s ease;background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.015));border-radius:12px}
.homepage-card-icon img.is-loaded{background:none}
@media (prefers-reduced-motion:reduce){
	.homepage-card-icon img{transition:none;opacity:1;transform:none}
}
.homepage-card:hover .homepage-card-icon img{transform:scale(1.05)}
/* CTA gold variant */
.brand-gradient-button,.m-button.gold,.m-button.filled.brand-gradient-button{background:linear-gradient(135deg,#8B7740 0%,#9A8346 30%,#A2894A 55%,#B79D5B 75%,#907842 100%);color:#fff;border:none;position:relative;transition:background .4s ease,filter .25s,box-shadow .25s,transform .28s cubic-bezier(.16,.8,.3,1);will-change:transform}
.brand-gradient-button::before,.m-button.gold::before,.m-button.filled.brand-gradient-button::before{content:"";position:absolute;inset:1px;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,.08) 38%,rgba(0,0,0,.10) 100%);pointer-events:none;mix-blend-mode:overlay}
.brand-gradient-button:hover,.m-button.gold:hover,.m-button.filled.brand-gradient-button:hover{filter:none;transform:translateY(-1px) scale(1.015);box-shadow:0 0 0 1px rgba(227,211,164,.50),0 4px 16px rgba(0,0,0,.58);background:linear-gradient(135deg,#967F46 0%,#A78D4F 28%,#BFA160 55%,#D8C07C 78%,#A88445 100%);text-shadow:0 1px 2px rgba(0,0,0,.55)}
.brand-gradient-button:focus-visible,.m-button.gold:focus-visible,.m-button.filled.brand-gradient-button:focus-visible{background:linear-gradient(135deg,#967F46 0%,#A78D4F 28%,#BFA160 55%,#D8C07C 78%,#A88445 100%);text-shadow:0 1px 2px rgba(0,0,0,.55)}
.brand-gradient-button:focus-visible,.m-button.gold:focus-visible,.m-button.filled.brand-gradient-button:focus-visible{outline:2px solid #C6AF71;outline-offset:2px}
/* Prevent global backdrop darkening when hero CTA hovered */
.hero-carousel-overlay .hero-carousel-cta-btn::before{mix-blend-mode:normal}
/* CTA hover: remove global brightness impact (no pseudo-element sheen) */
.hero-carousel-cta-btn{contain:paint;will-change:box-shadow,background-color;transition:box-shadow .25s ease,background-color .25s ease}
.hero-carousel-cta-btn:hover,.hero-carousel-cta-btn:focus-visible{box-shadow:0 0 0 1px rgba(227,211,164,.55),0 2px 6px rgba(0,0,0,.55)}
/* Carousel accents */
.hero-carousel-prev,.hero-carousel-next{background:rgba(162,137,74,.35);backdrop-filter:blur(2px);border:1px solid rgba(226,211,164,.25)}
.hero-carousel-prev:hover,.hero-carousel-next:hover{background:var(--brand-gold-gradient);color:#121212}
.hero-carousel-dots button.is-active{background:var(--brand-gold)}
.mobile-menu-opened + .main-wrap .hero-carousel-overlay{opacity:0;pointer-events:none;visibility:hidden}
.mobile-menu-opened + .main-wrap .hero-carousel-dots{visibility:hidden}
/* Gold utility classes */
.gold-text{color:var(--brand-gold)!important}
.gold-gradient-text{background:var(--brand-gold-gradient);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.gold-border{border:1px solid var(--brand-gold)!important}
/* Hero slide title accent option */
.hero-slide__title{background:var(--brand-gold-gradient);-webkit-background-clip:text;background-clip:text;color:transparent}

/* Carousel internal classes (fixed placement) */
.hero-carousel-slides{position:absolute;inset:0}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;display:flex;align-items:center;justify-content:center;z-index:1}
.hero-slide.is-active{opacity:1;z-index:2}
.hero-carousel-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;pointer-events:none;z-index:5;padding:0 1rem 12px;gap:10px}
.hero-carousel-overlay .hero-carousel-cta-btn,.hero-carousel-overlay .hero-carousel-dots{pointer-events:auto}
.hero-carousel-prev,.hero-carousel-next{position:absolute;top:50%;transform:translateY(-50%);z-index:5;background:rgba(0,0,0,.35);border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center}
.hero-carousel-prev{left:20px}.hero-carousel-next{right:20px}
.rtl .hero-carousel-prev{right:20px;left:auto}.rtl .hero-carousel-next{left:20px;right:auto}
.hero-carousel-dots{position:static;bottom:auto;left:auto;transform:none;display:flex;gap:10px;z-index:6;order:3;margin-top:2px}
.homepage-card-desc.solid-bright{background:none;color:#FFF9DC!important;-webkit-background-clip:border-box;background-clip:border-box;filter:drop-shadow(0 1px 2px rgba(0,0,0,.65))}
.hero-carousel-dots button{width:10px;height:10px;border-radius:50%;border:none;background:rgba(255,255,255,.4);padding:0;cursor:pointer}
.hero-carousel-dots button.is-active{background:#fff}
.hero-carousel-cta-btn{position:static!important;left:auto!important;right:auto!important;transform:none!important;z-index:6;order:2;isolation:isolate;backdrop-filter:none}
@media (max-width:640px){.hero-carousel-cta-btn{font-size:.88rem;padding:.28rem .6rem;min-width:122px;line-height:1.02;letter-spacing:.4px}}
/* Tagline overlay */
.hero-carousel-tagline{position:static;bottom:auto;left:auto;transform:none;z-index:6;width:100%;text-align:center;padding:0;pointer-events:none;order:1;margin-bottom:2px}
.site-tagline{display:inline-block;font-weight:600;letter-spacing:.25px;line-height:1.15;font-size:clamp(1.25rem,2.2vw,1.45rem);color:#f5e6c8;margin:0 0 .65rem}
.site-tagline--hero{font-weight:700;letter-spacing:.3px;font-size:clamp(1.34rem,2.2vw,1.54rem);}
.gold-gradient-text,.site-tagline--hero{background:linear-gradient(120deg,#f8d572 0%,#d9b55a 50%,#c59d45 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
@media (max-width:820px){.site-tagline--hero{font-size:clamp(1.32rem,4.2vw,1.5rem)}}
@media (max-width:640px){.hero-carousel-overlay{padding-bottom:16px;gap:8px}.site-tagline--hero{font-size:1.32rem}}
.homepage-card-icon{font-size:2.5rem;margin-bottom:1rem}
.homepage-card-title{font-size:1.36rem;font-weight:700;margin:0 0 .4rem;letter-spacing:.32px}
/* Match steps description sizing */
.homepage-card-desc{font-size:clamp(1rem, 1.1vw, 1.3rem);line-height:1.8;font-weight:500;color:#FFF9DC;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));margin:0 0 .55rem;background:none;-webkit-background-clip:border-box;background-clip:border-box}
.homepage-card-desc.is-before-title{margin-bottom:.65rem}
@media (max-width: 700px) {
	.homepage-services {flex-direction: column;align-items: center;gap: 1.35rem;}
	.homepage-card {width:82%;max-width:320px;padding:1.3rem .95rem 1.35rem;margin-left:auto;margin-right:auto;}
}
:root{--announcement-bar-height:0px;--show-fade-animation:1}.m-featured-slider.swiper{height:350px;margin:-40px -20px 40px;overflow:hidden!important;position:relative;transition:all .25s cubic-bezier(.02,.01,.47,1)}@media only screen and (min-width:48rem){.m-featured-slider.swiper:hover{box-shadow:var(--article-shadow-hover),0 0 0 transparent;transform:translateY(-5px)}.m-featured-slider.swiper{border-radius:10px;height:420px;margin:-40px 10px 20px;width:100%}}@media only screen and (min-width:64rem){.m-featured-slider.swiper{margin:0 20px 40px;overflow:unset;width:calc(66.66667% - 40px)}}.m-featured-slider:not(:root:root){overflow:hidden!important}.m-featured-slider__list{height:100%;list-style-type:none;margin:0;padding:0}@media only screen and (min-width:48rem){.m-featured-slider__list{border-radius:10px}}.m-featured-slider__list__item{height:100%;overflow:hidden}@media only screen and (min-width:48rem){.m-featured-slider__list__item{border-radius:10px}}.m-featured-article{background-color:var(--primary-subtle-color);height:100%;overflow:hidden;position:relative;z-index:1}.m-featured-article:hover .m-featured-article__author{box-shadow:0 4px 8px rgba(0,0,0,.3),0 0 0 transparent}.m-featured-article.no-picture .m-featured-article__picture{background-color:var(--primary-subtle-color)}.m-featured-article__picture{background-color:#000;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.m-featured-article__picture div{background-position:50%;background-repeat:no-repeat;background-size:cover;height:100%;opacity:.7;width:100%}.m-featured-article__meta{left:20px;position:absolute;top:20px;z-index:4}@media only screen and (min-width:48rem){.m-featured-article__meta{left:40px;top:40px}}.rtl .m-featured-article__meta{left:auto;right:20px}@media only screen and (min-width:48rem){.rtl .m-featured-article__meta{left:auto;right:40px}}.m-featured-article__author{background-color:#fff;border:2px solid #fff;border-radius:50%;display:block;height:35px;margin-bottom:20px;transition:all .25s cubic-bezier(.02,.01,.47,1);width:35px}.m-featured-article__author div{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:50%;height:100%;width:100%}.m-featured-article__tag{color:#fff;font-size:1rem;font-weight:700;letter-spacing:.3px}.m-featured-article__ribbon{align-items:center;background-color:#fff;border-radius:50%;color:#000;display:flex;height:24px;justify-content:center;position:absolute;right:20px;top:26px;width:24px;z-index:2}@media only screen and (min-width:48rem){.m-featured-article__ribbon{border-radius:15px;font-size:.875rem;font-weight:600;height:22px;justify-content:flex-start;padding:0 7px;right:40px;top:47px;width:auto}}.m-featured-article__ribbon span{display:inline-block}@media only screen and (min-width:48rem){.m-featured-article__ribbon span:first-of-type{font-size:.75rem;margin-right:4px}}.m-featured-article__ribbon span:last-of-type{display:none}@media only screen and (min-width:48rem){.m-featured-article__ribbon span:last-of-type{display:block}}.rtl .m-featured-article__ribbon{left:20px;right:auto}@media only screen and (min-width:48rem){.rtl .m-featured-article__ribbon{left:40px;right:auto}.rtl .m-featured-article__ribbon span:first-of-type{margin-left:4px;margin-right:0}}.m-featured-article__content{display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:120px 20px 20px;position:relative;width:100%;z-index:3}@media only screen and (min-width:48rem){.m-featured-article__content{padding:125px 40px 40px}}.m-featured-article__title{color:#fff;font-size:1.625rem;font-weight:600;letter-spacing:.4px;line-height:1.3;margin:0}@media only screen and (min-width:48rem){.m-featured-article__title{font-size:2.25em;letter-spacing:.5px;max-width:80%}}.m-featured-article__timestamp{align-items:center;color:#fff;display:flex;font-size:.875rem;letter-spacing:.2px}.m-featured-article__timestamp span:nth-child(2){padding:0 10px}

/* Scoped styles for the sidecar prospect form */
.sidecar-prospect-form {
  padding: 0 12px;
  margin: 0 auto 1.5rem;
}

.sidecar-prospect-form .homepage-card--form {
  /* inherit look from .homepage-card, override size only */
  width: 100%;
  max-width: 660px;
  height: auto;
  overflow: visible; /* form content should not clip */
  margin: 0 auto 1rem;
}

@media (max-width: 640px) {
  .sidecar-prospect-form .homepage-card--form { max-width: 100%; }
}

/* Grouping headings and text legibility on dark card */
.sidecar-prospect-form .homepage-card-title { margin-bottom: .25rem; }
.sidecar-prospect-form .homepage-card-desc { color: #d9d9d9; }

/* Form groups spacing */
.sidecar-prospect-form .m-form-group { margin-bottom: 14px; }

/* Brighter inputs: background, text, placeholders */
.sidecar-prospect-form .m-input {
  background-color: #1b1b1b;
  color: #f2f2f2;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 12px;
}
.sidecar-prospect-form .m-input::placeholder {
  color: #cfcfcf;
  opacity: .85;
}

/* Visible, brand-coherent focus state (works in RTL) */
.sidecar-prospect-form .m-input:focus {
  outline: 2px solid #C6AF71;
  box-shadow: 0 0 0 3px rgba(198,175,113,.25);
  border-color: #C6AF71;
}

/* Make selects unmistakably “selects” with an indicator */
.sidecar-prospect-form select.m-input {
  cursor: pointer;
  background-color: #1b1b1b;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23C6AF71' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  padding-right: 2rem;
}
.sidecar-prospect-form select.m-input:hover { border-color: #6c6c6c; }

/* RTL: move caret to the left and adjust padding */
.rtl .sidecar-prospect-form select.m-input {
  background-position: left 12px center;
  padding-left: 2rem;
  padding-right: .75rem;
}

/* Labels more legible on dark background */
.sidecar-prospect-form label {
  color: #e6e6e6;
  font-weight: 600;
}
/* Placeholder state for required selects */
.sidecar-prospect-form select.m-input:required:invalid {
  color: #c8c8c8;
  border-color: #3a3a3a;
}

/* Error state styling */
.sidecar-prospect-form .m-input.is-error {
  border-color: #cc4b4b !important;
  box-shadow: 0 0 0 3px rgba(204,75,75,.25) !important;
}
/* --- Prospect form (scoped) additions --- */
.sidecar-prospect-form .spf-heading {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #f0e7ce;
  margin: 0 0 .5rem;
}
.sidecar-prospect-form label {
  display: block;
  text-align: right;
  margin-bottom: 6px;
}
.sidecar-prospect-form .spf-inline-error {
  margin: .25rem 0 .5rem;
  color: #ffb3b3;
  font-size: .95rem;
}
.sidecar-prospect-form .spf-message {
  margin: .6rem auto 1rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(198,175,113,.45);
  background: linear-gradient(180deg, rgba(198,175,113,.18) 0%, rgba(198,175,113,.09) 100%);
  color: #FFF6D8;
  text-align: center;
  font-weight: 600;
}
.sidecar-prospect-form .spf-message[data-variant="notice"]{
  border-color: rgba(255,214,102,.45);
  background: linear-gradient(180deg, rgba(255,214,102,.18) 0%, rgba(255,214,102,.09) 100%);
}
/* --- end additions --- */
/* Prospect form: banners and toast (scoped) */
.sidecar-prospect-form .spf-message {
  display: none;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.35);
  color: #F3E4B0;
}
.sidecar-prospect-form .spf-message--hidden { display: none; }
.sidecar-prospect-form .spf-message--show   { display: block; }
.sidecar-prospect-form .spf-message.is-success {
  background: rgba(60,179,113,.15);
  border-color: rgba(60,179,113,.35);
  color: #BFF3D1;
}
.sidecar-prospect-form .spf-message.is-dup {
  background: rgba(212,175,55,.18);
  border-color: rgba(212,175,55,.45);
}

/* Sticky toast */
.sidecar-prospect-form .spf-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 16px;
  margin-inline: auto;
  width: min(680px, 92vw);
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: #2A2A2A;
  border: 1px solid rgba(212,175,55,.4);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  color: #F3E4B0;
  z-index: 9999;
}
.sidecar-prospect-form .spf-toast--hidden { display: none; }
.sidecar-prospect-form .spf-toast--show   { display: block; }
.sidecar-prospect-form .spf-toast__close {
  background: transparent; border: 0; font-size: 22px; line-height: 1;
  color: #F3E4B0; cursor: pointer; position: absolute; top: 6px;
  inset-inline-start: 10px;
}
.sidecar-prospect-form .spf-toast.is-success { border-color: rgba(60,179,113,.5);  color: #BFF3D1; }
.sidecar-prospect-form .spf-toast.is-dup     { border-color: rgba(212,175,55,.6); color: #F3E4B0; }

/* === HERO responsive sizing (non-breaking) === */

/* scope to the hero only; keep existing classes intact */
.kh-hero {
  /* Taller, but never absurdly tall on large screens */
  block-size: clamp(560px, 72vh, 760px);
  position: relative;
}

/* Make each slide fill the hero height */
.kh-hero .carousel,
.kh-hero .carousel__track,
.kh-hero .carousel__slide,
.kh-hero .hero-slide,
.kh-hero .hero-slide > * {
  block-size: 100%;
}

/* Ensure images/media cover the frame cleanly */
.kh-hero img,
.kh-hero picture,
.kh-hero video,
.kh-hero .hero-bg {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

/* Title & CTA container spacing (keeps your current desktop look) */
.kh-hero .hero-content {
  /* if a content wrapper exists; else skip */
  inset-inline: 0;
  margin-inline: auto;
  max-inline-size: 1100px;
  padding-block: clamp(16px, 5vh, 48px);
}

/* CTA size: desktop/tablet defaults (keeps current feel) */
.kh-hero .kh-cta {
  font-size: clamp(15px, 1.3vw, 18px);
  padding: clamp(10px, 1.1vw, 14px) clamp(18px, 1.8vw, 28px);
  line-height: 1.2;
}

/* Dots/pagination breathing room if present */
.kh-hero .carousel__dots,
.kh-hero .glide__bullets,
.kh-hero .splide__pagination {
  margin-block-start: clamp(8px, 1.2vh, 18px);
}

/* === Tablet tuning === */
@media (max-width: 1024px) {
  .kh-hero { block-size: clamp(520px, 68vh, 680px); }
}

/* === Mobile tuning (make CTA noticeably smaller) === */
@media (max-width: 640px) {
  .kh-hero { block-size: clamp(360px, 62vh, 480px); }
  .kh-hero .kh-cta {
    font-size: 13px;               /* smaller text */
    padding: 8px 14px;             /* tighter padding */
    border-radius: 10px;           /* keep brand roundness if used */
  }
  /* Optional: slightly reduce hero title on small screens */
  .kh-hero .hero-title { font-size: clamp(18px, 5.2vw, 24px); }
}

/* === Bottom-anchored hero content (preserve current look) === */
.kh-hero { position: relative; }

/* Try common content wrappers used by the theme; apply to whichever exists */
.kh-hero .hero-content,
.kh-hero .m-hero__content,
.kh-hero .hero-carousel-content,
.kh-hero .hero-carousel-overlay {
  position: absolute;
  inset-inline: 0;                    /* center horizontally (RTL-safe) */
  inset-block-end: clamp(20px, 6vh, 56px); /* distance from bottom */
  margin-inline: auto;
  max-inline-size: 1100px;
  padding-inline: clamp(16px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;                /* headline & CTA centered */
  text-align: center;
  z-index: 2;                         /* above background/media */
}

/* Ensure pagination bullets sit slightly below the text/CTA and don't overlap */
.kh-hero .carousel__dots,
.kh-hero .glide__bullets,
.kh-hero .splide__pagination {
  position: absolute;
  inset-inline: 0;
  inset-block-end: clamp(8px, 2vh, 20px);
  z-index: 1;
}

/* Keep previously added height rules; reaffirm fill behavior */
.kh-hero {
  /* Taller hero; bounded by viewport height */
  block-size: clamp(560px, 72vh, 760px);
}
.kh-hero .carousel,
.kh-hero .carousel__track,
.kh-hero .carousel__slide,
.kh-hero .hero-slide,
.kh-hero .hero-slide > * { block-size: 100%; }
.kh-hero img,
.kh-hero picture,
.kh-hero video,
.kh-hero .hero-bg {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

/* CTA sizing (desktop default already okay) */
.kh-hero .kh-cta {
  font-size: clamp(15px, 1.3vw, 18px);
  padding: clamp(10px, 1.1vw, 14px) clamp(18px, 1.8vw, 28px);
  line-height: 1.2;
}

/* Tablet */
@media (max-width: 1024px) {
  .kh-hero { block-size: clamp(520px, 68vh, 680px); }
}

/* === Steps flow polish ================================================== */

/* Container + even side padding */
.steps-flow { 
  padding-inline: clamp(12px, 4vw, 28px);
  margin-inline: auto;
  max-width: 1280px;
}

/* 1) Title centered with long hairlines on both sides */
.steps-flow__title{
  display:flex; align-items:center; justify-content:center; gap:1rem;
  margin-block: clamp(10px,2.2vw,22px) clamp(18px,3vw,34px);
  text-align:center;
}
.steps-flow__title > span{
  background: var(--brand-gold-gradient);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:800;
  font-size: clamp(1.1rem, 2.3vw, 2rem);
  line-height:1.2; white-space:nowrap;
}
.steps-flow__title::before,
.steps-flow__title::after{
  content:"";
  height:2px;
  background: var(--brand-gold-gradient);
  flex: 1 1 160px;           /* long lines */
  opacity:.95;
}

/* 2) Grid & list reset (kill stray numbers) */
.steps-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap: clamp(18px,2.6vw,30px);
  list-style:none; padding:0; margin:0;
}
@media (max-width:1024px){ .steps-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){  .steps-grid{ grid-template-columns:1fr; } }

/* 3) Card base (keep existing background, just add rim + sizing) */
.steps-card{
  position:relative;
  border: 1px solid transparent;                 /* lets us use border-image */
  border-radius: 22px;
  /* gradient rim that doesn't touch the background */
  border-image-source: var(--brand-gold-gradient);
  border-image-slice: 1; border-image-width: 1;
  padding: clamp(20px,2.2vw,26px) clamp(18px,2vw,22px);
  text-align:center;
  min-block-size: clamp(240px, 26vh, 300px);     /* a bit taller */
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

/* 4) Center the icons/SVGs */
.steps-card .steps-icon{
  display:block;
  inline-size: clamp(110px, 12vw, 160px);
  margin: 0 auto clamp(10px,1.5vw,14px);
  object-fit: contain;
}

/* 5) Bigger golden titles; readable body */
.steps-card__title{
  margin:0 0 .45rem;
  font-weight:800;
  font-size: clamp(1.1rem, 1.8vw, 1.9rem);
  background: var(--brand-gold-gradient);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  letter-spacing:.2px;
}
.steps-card__desc{
  margin:0;
  color:#e9e9e9; opacity:.92;
  font-size: clamp(.9rem,1.1vw,1rem);
  line-height:1.8;
}

/* 6) Connectors — desktop horizontal, mobile vertical */
.steps-card{ --line: var(--brand-gold-gradient); }

/* horizontal between columns */
@media (min-width:641px){
  .steps-card:not(:last-child)::after{
    content:""; position:absolute; inset-block-start:50%;
    transform:translateY(-50%);
    inline-size: clamp(22px,2.5vw,44px); block-size:2px;
    background: var(--line);
    inset-inline-start: calc(100% + clamp(6px,0.6vw,10px)); /* RTL-safe */
  }
}

/* vertical between rows on mobile */
@media (max-width:640px){
  .steps-card:not(:last-child)::after{
    content:""; position:absolute;
    inset-inline-start:50%; transform:translateX(-50%);
    inset-block-end:-18px; inline-size:2px; block-size:26px;
    background: var(--line);
  }
}

/* 7) Hero CTA (mobile) – smaller */
@media (max-width:640px){
  .m-hero .hero-carousel-cta-btn{ padding:8px 12px; min-width:auto; }
}

/* === Value intro paragraph under hero (non-breaking) === */
.kh-value-intro {
  /* light structure only; do not conflict with existing sections */
  padding-block: clamp(16px, 4vh, 36px);
}

.kh-value-intro__inner {
  max-inline-size: 980px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
  text-align: center;
}

.kh-value-intro__p {
  font-size: clamp(1rem, 1.6vw, 1.22rem); /* ~16 → ~19.5px responsive */
  line-height: 1.8;
  color: var(--kh-text, #fff); /* rely on existing page colors; no new palette */
  margin: 0;
}

/* Slightly tighter on very small screens */
@media (max-width: 480px) {
  .kh-value-intro__p { line-height: 1.7; }
}

/* Desktop size for value intro (reduced) */
@media (min-width: 1024px) {
  .kh-value-intro__p { font-size: 1.6rem; }
}

/* Gold highlight for company name (opt-in span) */
.kh-value-intro__p .kh-gold-text {
  color: var(--brand-gold, #A2894A);
}

/* Services section header (spacing only; reuses existing gold title class for color/gradient) */
.services-section-header {
  max-inline-size: 1100px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  margin-block: clamp(16px, 4vh, 32px) 0;
  text-align: center;
}

.services-section-subtitle {
  margin: 0;
  margin-block-start: 8px;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.8;
  color: inherit; /* keep existing theme color */
  /* contain like headers/sections */
  max-inline-size: 1100px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  text-align: center;
}

/* === Bottom promos (full-width card-like sections) === */
.kh-promo {
  position: relative;
  padding-block: clamp(18px, 5vh, 48px);
}
.kh-promo__inner {
  max-inline-size: 1100px;
  margin-inline: auto;
  padding: clamp(18px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: var(--kh-bg-card, #111417);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.kh-promo__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 50%, rgba(249,221,133,.06), transparent 60%) no-repeat;
  border-radius: inherit;
}
.kh-promo__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  /* Use the same gold gradient as other section titles */
  background: var(--brand-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kh-promo__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-block-start: clamp(10px, 2.8vh, 22px); }
.kh-promo__btn { text-decoration: none; }

/* Desktop: align with value intro paragraph size */
@media (min-width: 1024px) {
  .services-section-subtitle { font-size: 1.6rem; }
}


/* Avoid double connectors when both kh-step-card and steps-card are present */
/* legacy connector rules will be scoped with :not(.steps-card) below to avoid duplicates */

/* Mobile typography: roughly 2x on small screens */
@media (max-width:640px){
  .steps-card__title{ font-size: clamp(1.6rem, 6.2vw, 2rem); }
  .steps-card__desc { font-size: clamp(1.05rem, 4.4vw, 1.2rem); }
}

/* Desktop readability: +20–30% titles, +50–60% body */
.steps-card__title{ font-size: clamp(1.3rem, 1.9vw, 2.1rem); }
.steps-card__desc { font-size: clamp(1rem, 1.1vw, 1.3rem); }


/* Mobile: make CTA noticeably smaller and keep bottom spacing tight */
@media (max-width: 640px) {
  .kh-hero { block-size: clamp(360px, 62vh, 480px); }

  .kh-hero .hero-content,
  .kh-hero .m-hero__content,
  .kh-hero .hero-carousel-content,
  .kh-hero .hero-carousel-overlay {
    inset-block-end: clamp(16px, 5vh, 28px);
    gap: 8px;
  }

  .kh-hero .kh-cta {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 10px;
  }

  .kh-hero .hero-title { font-size: clamp(18px, 5.2vw, 24px); }
}

/* === HERO height override (carousel only, no CTA changes) === */
/* Target only the homepage carousel hero */
.m-hero.m-hero-carousel.with-picture.js-hero-carousel {
  /* Mobile-first default: choose higher range cap for phones */
  min-height: clamp(420px, 62vh, 480px);
  min-block-size: clamp(420px, 62vh, 480px);
}

/* Tablet: ~768–1024px – use upper range */
@media (min-width: 48rem) and (max-width: 64rem) {
  .m-hero.m-hero-carousel.with-picture.js-hero-carousel {
    min-height: clamp(560px, 68vh, 680px);
    min-block-size: clamp(560px, 68vh, 680px);
  }
}

/* Desktop: ≥1280px – raise to 700–760px (bounded by 72vh) */
@media (min-width: 80rem) {
  .m-hero.m-hero-carousel.with-picture.js-hero-carousel {
    min-height: clamp(700px, 72vh, 760px);
    min-block-size: clamp(700px, 72vh, 760px);
  }
}


/* ================== 4-STEP FLOW ================== */

/* Golds (fallbacks if theme vars not present) */
:root {
  --kh-gold-1: #f8d572;
  --kh-gold-2: #d9b55a;
  --kh-gold-3: #c59d45;
  --kh-bg-card: #111417;           /* deep black card bg */
  --kh-bg-page: #0d0f12;           /* page background for contrast */
}

/* Text gradient, only if theme didn't define it */
.brand-gradient-text {
  background: linear-gradient(180deg, var(--kh-gold-1), var(--kh-gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kh-steps { padding-block: clamp(28px, 6vw, 64px); }

.kh-steps__title {
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 34px);
  text-align: center;
  margin: 0 auto clamp(22px, 3vw, 36px);
  position: relative;
  display: inline-block;
}

/* Title split line left/right */
.kh-steps__title::before,
.kh-steps__title::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  inline-size: clamp(60px, 12vw, 160px);
  block-size: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--kh-gold-2) 35%, var(--kh-gold-1) 65%, transparent 100%);
  opacity: 0.9;
}
.kh-steps__title::before { inset-inline-end: 100%; margin-inline-end: clamp(10px, 2vw, 24px); }
.kh-steps__title::after  { inset-inline-start: 100%; margin-inline-start: clamp(10px, 2vw, 24px); }

.kh-steps__grid {
  --gap: clamp(14px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

/* Card with GOLD RIM using border-clip trick + conic-gradient highlights */
.kh-step-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--kh-bg-card), var(--kh-bg-card)) padding-box,
    conic-gradient(
      from 270deg at 50% 50%,
      var(--kh-gold-2) 0%,
      var(--kh-gold-1) 16%,
      var(--kh-gold-3) 28%,
      var(--kh-gold-1) 44%,
      var(--kh-gold-2) 58%,
      var(--kh-gold-1) 72%,
      var(--kh-gold-3) 86%,
      var(--kh-gold-2) 100%
    ) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 226, 158, 0.06) inset,
    0 10px 26px rgba(0, 0, 0, 0.45);
  padding: clamp(18px, 2.3vw, 26px);
  text-align: center;
  isolation: isolate;
}

/* Soft inner glow band to mimic the reference 'brighter spots' */
.kh-step-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(249, 221, 133, 0.06), transparent 60%) no-repeat;
  z-index: -1;
}

.kh-step-card__icon { margin-inline: auto; margin-block-end: clamp(10px, 1.6vw, 16px); }
.kh-step-card__icon img { display: block; width: clamp(84px, 11vw, 128px); height: auto; }

.kh-step-card__title {
  margin: 0 0 6px 0;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
}

.kh-step-card__desc {
  margin: 0;
  color: #eaeaea;
  opacity: 0.85;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.9;
}

/* ============ CONNECTORS ============ */
/* Horizontal connectors (RTL): a line + arrow pointing to previous card. Hidden on first. */
.kh-step-card:not(.steps-card)::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  inset-inline-start: -28px; /* draw towards the right in RTL */
  inline-size: 28px;
  block-size: 2px;
  background: linear-gradient(90deg, var(--kh-gold-1), var(--kh-gold-3));
  mask:
    linear-gradient(#000 0 0) center / 100% 2px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'><path d='M0 5h10M5 0l5 5-5 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right center / 10px 10px;
  -webkit-mask-composite: source-over;
  mask-composite: add;
  opacity: 0.9;
}
.kh-step-card:not(.steps-card):first-child::after { display: none; }

/* Grid breakpoints */
@media (max-width: 1200px) {
  .kh-steps__grid { grid-template-columns: repeat(2, 1fr); }
  /* vertical connectors when wrapping to new row */
  .kh-step-card { margin-block-end: var(--gap); }
}

@media (max-width: 680px) {
  .kh-steps__grid { grid-template-columns: 1fr; }

  /* Switch connector to vertical (down arrow). Hidden on last card. */
  .kh-step-card:not(.steps-card)::after {
    inset: auto;
    left: 50%;
    top: 100%;
    translate: -50% 0;
    inline-size: 2px;
    block-size: 28px;
    background: linear-gradient(180deg, var(--kh-gold-1), var(--kh-gold-3));
    mask:
      linear-gradient(#000 0 0) center / 2px 100% no-repeat,
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'><path d='M5 0v10M0 5l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center bottom / 10px 10px;
  }
  .kh-step-card:last-child::after { display: none; }
}
