/* ==========================================================================
   Dhaka Hybrid — home page design system
   Every colour, radius, font and motion value comes from the CSS custom
   properties printed by resources/views/front/theme.blade.php, which the
   super admin edits under Theme Settings. Nothing here is hard-coded.
   ========================================================================== */

/* ---------- layout primitives ---------- */

.dh-container{
    width: 100%;
    max-width: var(--dh-container, 1240px);
    margin-inline: auto;
    padding-inline: 20px;
}

.dh-section{
    position: relative;
    padding-block: 64px;
    background: var(--dh-page-bg);
    color: var(--dh-body);
    font-size: calc(1rem * var(--dh-font-scale, 1));
}

.dh-section--none{ padding-block: 0; }
.dh-section--sm{ padding-block: 34px; }
.dh-section--md{ padding-block: 52px; }
.dh-section--lg{ padding-block: 68px; }
.dh-section--xl{ padding-block: 92px; }

.dh-section--muted{ background: var(--dh-muted-bg); }
.dh-section--dark{ background: var(--dh-dark); color: rgba(255, 255, 255, .78); }
.dh-section--primary{ background: var(--dh-primary); color: var(--dh-on-primary); }
.dh-section--gradient{
    background:
        radial-gradient(1100px 420px at 12% -10%, rgba(var(--dh-primary-rgb), .34), transparent 62%),
        radial-gradient(900px 420px at 88% 110%, rgba(var(--dh-secondary-rgb), .32), transparent 60%),
        var(--dh-dark);
    color: rgba(255, 255, 255, .8);
}

.dh-section--dark .dh-title,
.dh-section--gradient .dh-title{ color: #fff; }

.dh-section--dark .dh-lead,
.dh-section--gradient .dh-lead{ color: rgba(255, 255, 255, .72); }

/* ---------- section heading ---------- */

.dh-head{
    max-width: 660px;
    margin-bottom: 34px;
}

.dh-head--center{
    margin-inline: auto;
    text-align: center;
}

.dh-head--split{
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.dh-head--split > div{ max-width: 720px; }

.dh-kicker{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(var(--dh-primary-rgb), .14);
    color: var(--dh-primary-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
}

.dh-kicker::before{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dh-primary);
}

.dh-section--dark .dh-kicker,
.dh-section--gradient .dh-kicker{
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.dh-title{
    margin: 0 0 11px;
    color: var(--dh-heading);
    font-family: var(--dh-font-heading);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.1rem);
}

.dh-lead{
    margin: 0;
    color: var(--dh-body);
    font-size: .95rem;
    line-height: 1.65;
}

/* ---------- buttons ---------- */

.dh-btn{
    --btn-bg: var(--dh-primary);
    --btn-fg: var(--dh-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--dh-radius-btn);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--dh-font-heading);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, background .22s ease, color .22s ease;
}

.dh-btn:hover{
    color: var(--btn-fg);
    transform: translateY(-2px);
}

.dh-btn:focus-visible{
    outline: 3px solid rgba(var(--dh-primary-rgb), .55);
    outline-offset: 3px;
}

.dh-btn svg{ width: 16px; height: 16px; flex: none; }

.dh-btn--primary{ box-shadow: 0 14px 30px rgba(var(--dh-primary-rgb), .34); }
.dh-btn--primary:hover{ background: var(--dh-primary-dark); box-shadow: 0 20px 42px rgba(var(--dh-primary-rgb), .44); }

.dh-btn--dark{ --btn-bg: var(--dh-dark); --btn-fg: #fff; }
.dh-btn--dark:hover{ box-shadow: 0 18px 38px rgba(var(--dh-dark-rgb), .34); }

.dh-btn--outline{
    --btn-bg: transparent;
    --btn-fg: var(--dh-heading);
    border-color: var(--dh-border);
}
.dh-btn--outline:hover{ border-color: var(--dh-primary); color: var(--dh-primary-dark); }

.dh-btn--ghost{
    --btn-bg: rgba(255, 255, 255, .10);
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .38);
    backdrop-filter: blur(8px);
}
.dh-btn--ghost:hover{ background: #fff; color: var(--dh-dark); border-color: #fff; }

.dh-btn--sm{ padding: 10px 20px; font-size: .85rem; }

/* ---------- scroll reveal ---------- */

[data-reveal]{
    opacity: 0;
    transform: translate3d(0, var(--dh-motion-distance, 28px), 0);
    transition:
        opacity var(--dh-motion-duration, 700ms) cubic-bezier(.22, 1, .36, 1) var(--dh-delay, 0ms),
        transform var(--dh-motion-duration, 700ms) cubic-bezier(.22, 1, .36, 1) var(--dh-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal="left"]{ transform: translate3d(calc(var(--dh-motion-distance, 28px) * -1.4), 0, 0); }
[data-reveal="right"]{ transform: translate3d(calc(var(--dh-motion-distance, 28px) * 1.4), 0, 0); }
[data-reveal="zoom"]{ transform: scale(.94); }

[data-reveal].is-in{
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.dh-hero{
    position: relative;
    min-height: calc(var(--dh-hero-height, 86) * 1vh);
    overflow: hidden;
    background: var(--dh-dark);
    isolation: isolate;
}

@supports (height: 100svh){
    .dh-hero{ min-height: calc(var(--dh-hero-height, 86) * 1svh); }
}

.dh-hero-track{
    position: relative;
    min-height: inherit;
    display: grid;
}

.dh-hero-slide{
    grid-area: 1 / 1;
    position: relative;
    min-height: inherit;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .95s cubic-bezier(.4, 0, .2, 1), visibility .95s;
}

.dh-hero-slide.is-active{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* slide transition variants */
.dh-hero[data-transition="slide"] .dh-hero-slide{
    transform: translate3d(6%, 0, 0);
    transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1), visibility .9s;
}
.dh-hero[data-transition="slide"][data-dir="prev"] .dh-hero-slide{ transform: translate3d(-6%, 0, 0); }
.dh-hero[data-transition="slide"] .dh-hero-slide.is-active{ transform: none; }

.dh-hero[data-transition="zoom"] .dh-hero-slide{
    transform: scale(1.06);
    transition: opacity .85s ease, transform 1.1s cubic-bezier(.22, 1, .36, 1), visibility 1.1s;
}
.dh-hero[data-transition="zoom"] .dh-hero-slide.is-active{ transform: none; }

/* background media */
.dh-hero-media{
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.dh-hero-media > picture{
    display: block;
    width: 100%;
    height: 100%;
}

.dh-hero-media img,
.dh-hero-media > video,
.dh-hero-media > iframe{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
    transform-origin: center center;
    backface-visibility: hidden;
}

/* YouTube needs an oversized frame so the player chrome stays off screen */
.dh-hero-media > iframe{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dh-hero-veil{
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            var(--veil-angle, 100deg),
            rgba(var(--veil-rgb), var(--veil-alpha, .55)) 0%,
            rgba(var(--veil-rgb), calc(var(--veil-alpha, .55) * .72)) 46%,
            rgba(var(--veil-rgb), calc(var(--veil-alpha, .55) * .28)) 100%
        ),
        linear-gradient(to top, rgba(var(--veil-rgb), .55) 0%, transparent 42%);
}

.dh-hero-slide[data-align="center"] .dh-hero-veil{ --veil-angle: 180deg; }

/* copy */
.dh-hero-body{
    position: relative;
    z-index: 3;
    width: 100%;
    padding-block: 110px 130px;
}

.dh-hero-copy{
    max-width: 620px;
    color: var(--slide-text, #fff);
}

.dh-hero-copy--wide{ max-width: 820px; }
.dh-hero-copy--full{ max-width: none; }

.dh-hero-slide[data-align="center"] .dh-hero-copy{ margin-inline: auto; text-align: center; }
.dh-hero-slide[data-align="right"] .dh-hero-copy{ margin-inline-start: auto; text-align: right; }

.dh-hero-kicker{
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .26);
    backdrop-filter: blur(10px);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}

.dh-hero-kicker::before{
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dh-primary);
    box-shadow: 0 0 0 4px rgba(var(--dh-primary-rgb), .3);
}

.dh-hero-title{
    margin: 0 0 18px;
    font-family: var(--dh-font-heading);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.028em;
    font-size: clamp(2.1rem, 1.1rem + 3.9vw, 4.15rem);
    text-wrap: balance;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .28);
}

.dh-hero-text{
    margin: 0 0 32px;
    max-width: 58ch;
    font-size: clamp(1rem, .95rem + .3vw, 1.16rem);
    line-height: 1.68;
    opacity: .92;
}

.dh-hero-slide[data-align="center"] .dh-hero-text{ margin-inline: auto; }
.dh-hero-slide[data-align="right"] .dh-hero-text{ margin-inline-start: auto; }

.dh-hero-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dh-hero-slide[data-align="center"] .dh-hero-actions{ justify-content: center; }
.dh-hero-slide[data-align="right"] .dh-hero-actions{ justify-content: flex-end; }

/* staggered entrance for the active slide's copy */
.dh-hero-slide .dh-hero-kicker,
.dh-hero-slide .dh-hero-title,
.dh-hero-slide .dh-hero-text,
.dh-hero-slide .dh-hero-actions{ opacity: 0; }

.dh-hero-slide.is-active .dh-hero-kicker{ animation: dhRise .85s .12s cubic-bezier(.22, 1, .36, 1) both; }
.dh-hero-slide.is-active .dh-hero-title{ animation: dhRise .95s .24s cubic-bezier(.22, 1, .36, 1) both; }
.dh-hero-slide.is-active .dh-hero-text{ animation: dhRise .95s .38s cubic-bezier(.22, 1, .36, 1) both; }
.dh-hero-slide.is-active .dh-hero-actions{ animation: dhRise .95s .5s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes dhRise{
    from{ opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); }
    to{ opacity: 1; transform: none; filter: blur(0); }
}

/* background motion — restarts every time a slide becomes active */
.dh-hero-slide.is-active .dh-hero-media[data-anim="kenburns-in"] > *{ animation: dhKenIn 14s linear both; }
.dh-hero-slide.is-active .dh-hero-media[data-anim="kenburns-out"] > *{ animation: dhKenOut 14s linear both; }
.dh-hero-slide.is-active .dh-hero-media[data-anim="pan-left"] > *{ animation: dhPanLeft 16s linear both; }
.dh-hero-slide.is-active .dh-hero-media[data-anim="pan-right"] > *{ animation: dhPanRight 16s linear both; }
.dh-hero-slide.is-active .dh-hero-media[data-anim="drift-up"] > *{ animation: dhDriftUp 16s linear both; }

@keyframes dhKenIn{
    from{ transform: scale(1.01); }
    to{ transform: scale(1.17); }
}

@keyframes dhKenOut{
    from{ transform: scale(1.18); }
    to{ transform: scale(1.02); }
}

@keyframes dhPanLeft{
    from{ transform: scale(1.18) translate3d(3.2%, 0, 0); }
    to{ transform: scale(1.18) translate3d(-3.2%, 0, 0); }
}

@keyframes dhPanRight{
    from{ transform: scale(1.18) translate3d(-3.2%, 0, 0); }
    to{ transform: scale(1.18) translate3d(3.2%, 0, 0); }
}

@keyframes dhDriftUp{
    from{ transform: scale(1.16) translate3d(0, 3%, 0); }
    to{ transform: scale(1.16) translate3d(0, -3%, 0); }
}

/* controls */
.dh-hero-arrow{
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) scale(.9);
    transition: opacity .3s ease, transform .3s ease, background .25s ease, color .25s ease;
}

.dh-hero:hover .dh-hero-arrow,
.dh-hero:focus-within .dh-hero-arrow{
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.dh-hero-arrow:hover{
    background: var(--dh-primary);
    border-color: var(--dh-primary);
    color: var(--dh-on-primary);
}

.dh-hero-arrow svg{ width: 18px; height: 18px; }
.dh-hero-arrow--prev{ left: 22px; }
.dh-hero-arrow--next{ right: 22px; }

.dh-hero-dots{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-inline: 20px;
}

.dh-hero-dot{
    position: relative;
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
    overflow: hidden;
    cursor: pointer;
    transition: width .35s cubic-bezier(.22, 1, .36, 1), background .25s ease;
}

.dh-hero-dot:hover{ background: rgba(255, 255, 255, .6); }
.dh-hero-dot.is-active{ width: 74px; background: rgba(255, 255, 255, .28); }

.dh-hero-dot i{
    position: absolute;
    inset: 0;
    display: block;
    width: 0;
    border-radius: inherit;
    background: var(--dh-primary);
}

.dh-hero-dot.is-active i{ width: 100%; }

.dh-hero[data-progress="1"] .dh-hero-dot.is-active i{
    animation: dhProgress var(--dh-hero-interval, 6500ms) linear both;
}

.dh-hero.is-paused .dh-hero-dot.is-active i{ animation-play-state: paused; }

@keyframes dhProgress{
    from{ width: 0; }
    to{ width: 100%; }
}

.dh-hero-scroll{
    position: absolute;
    left: 50%;
    bottom: 78px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 30px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    transform: translateX(-50%);
    color: transparent;
}

.dh-hero-scroll::after{
    content: "";
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: #fff;
    animation: dhScrollHint 1.9s ease-in-out infinite;
}

@keyframes dhScrollHint{
    0%, 100%{ transform: translateY(-7px); opacity: 0; }
    35%{ opacity: 1; }
    75%{ transform: translateY(8px); opacity: 0; }
}

/* single-slide hero hides the whole control layer */
.dh-hero[data-slides="1"] .dh-hero-arrow,
.dh-hero[data-slides="1"] .dh-hero-dots{ display: none; }

/* ==========================================================================
   STATS
   ========================================================================== */

.dh-stats{
    display: grid;
    grid-template-columns: repeat(var(--dh-cols, 4), minmax(0, 1fr));
    gap: 18px;
}

.dh-stat{
    position: relative;
    padding: 30px 26px;
    border-radius: var(--dh-radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    overflow: hidden;
}

.dh-section--page .dh-stat,
.dh-section--muted .dh-stat{
    background: var(--dh-page-bg);
    border-color: var(--dh-border);
    box-shadow: var(--dh-shadow-sm);
}

.dh-stat-icon{
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(var(--dh-primary-rgb), .16);
    color: var(--dh-primary);
    font-size: 1.05rem;
}

.dh-stat-value{
    font-family: var(--dh-font-heading);
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: inherit;
}

.dh-section--page .dh-stat-value,
.dh-section--muted .dh-stat-value{ color: var(--dh-heading); }

.dh-stat-label{
    margin: 10px 0 0;
    font-size: .93rem;
    line-height: 1.5;
    opacity: .8;
}

/* ==========================================================================
   FEATURES  (icon cards, optionally beside an image)
   ========================================================================== */

.dh-split{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.dh-split--image-right .dh-split-media{ order: 2; }
.dh-split--image-left .dh-split-media{ order: 0; }

.dh-split-media{
    position: relative;
    border-radius: calc(var(--dh-radius) + 8px);
    overflow: hidden;
    box-shadow: var(--dh-shadow-lg);
}

.dh-split-media img{
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
    transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

.dh-split-media:hover img{ transform: scale(1.05); }

.dh-split-media::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(var(--dh-dark-rgb), .35));
    pointer-events: none;
}

.dh-feature-grid{
    display: grid;
    grid-template-columns: repeat(var(--dh-cols, 2), minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.dh-feature{
    position: relative;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.dh-feature--boxed,
.dh-feature--glass{
    padding: 26px 24px;
    border-radius: var(--dh-radius);
    border: 1px solid var(--dh-border);
    background: var(--dh-page-bg);
    box-shadow: var(--dh-shadow-sm);
}

.dh-feature--glass{
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(14px);
}

.dh-feature--boxed:hover,
.dh-feature--glass:hover{
    transform: translateY(-6px);
    border-color: rgba(var(--dh-primary-rgb), .6);
    box-shadow: var(--dh-shadow);
}

.dh-feature-icon{
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--dh-primary-rgb), .22), rgba(var(--dh-primary-rgb), .06));
    color: var(--dh-primary-dark);
    font-size: 1.2rem;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.dh-feature:hover .dh-feature-icon{ transform: translateY(-3px) rotate(-6deg); }

.dh-feature h3{
    margin: 0 0 8px;
    color: var(--dh-heading);
    font-family: var(--dh-font-heading);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.35;
}

.dh-feature p{
    margin: 0;
    font-size: .93rem;
    line-height: 1.66;
    color: var(--dh-body);
}

.dh-section--dark .dh-feature h3,
.dh-section--gradient .dh-feature h3{ color: #fff; }

.dh-section--dark .dh-feature p,
.dh-section--gradient .dh-feature p{ color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   MEDIA + TEXT  (collage beside copy and a checklist)
   ========================================================================== */

.dh-collage{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 16px;
}

.dh-collage-item{
    position: relative;
    border-radius: var(--dh-radius);
    overflow: hidden;
    box-shadow: var(--dh-shadow);
}

.dh-collage-item:first-child{ grid-row: span 2; }
.dh-collage-item:nth-child(3){ grid-column: span 2; }
.dh-collage-item:only-child{ grid-column: span 2; grid-row: span 3; }

.dh-collage-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.dh-collage-item:hover img{ transform: scale(1.07); }

.dh-checklist{
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
    display: grid;
    gap: 13px;
}

.dh-checklist li{
    position: relative;
    padding-left: 36px;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--dh-body);
}

.dh-checklist li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--dh-primary-rgb), .18);
}

.dh-checklist li::after{
    content: "";
    position: absolute;
    left: 8px;
    top: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--dh-primary-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==========================================================================
   CARD GRIDS  (services, products, blogs, gallery)
   ========================================================================== */

.dh-grid{
    display: grid;
    grid-template-columns: repeat(var(--dh-cols, 4), minmax(0, 1fr));
    gap: 22px;
}

.dh-card{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--dh-radius);
    background: var(--dh-page-bg);
    border: 1px solid var(--dh-border);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--dh-shadow-sm);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, border-color .32s ease;
}

.dh-card:hover{
    transform: translateY(-8px);
    border-color: rgba(var(--dh-primary-rgb), .55);
    box-shadow: var(--dh-shadow);
}

.dh-card-media{
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dh-muted-bg);
}

.dh-card-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.dh-card:hover .dh-card-media img{ transform: scale(1.08); }

.dh-card-empty{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--dh-body);
    font-size: .85rem;
    opacity: .6;
}

.dh-card-body{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 20px;
}

.dh-card-title{
    margin: 0;
    color: var(--dh-heading);
    font-family: var(--dh-font-heading);
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.38;
}

.dh-card-text{
    margin: 0;
    font-size: .89rem;
    line-height: 1.62;
    color: var(--dh-body);
}

/* Service price on a card. Reads as a figure, not as body copy. */
.dh-card-price{
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--dh-font-heading);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--dh-primary-dark);
}

.dh-card-price small{
    font-family: var(--dh-font-body);
    font-size: .72rem;
    font-weight: 600;
    color: var(--dh-body);
}

/* "Price on request" is information, not a headline number. */
.dh-card-price.is-quote{
    font-size: .86rem;
    font-weight: 700;
    color: var(--dh-body);
}

.dh-card--overlay .dh-card-price{ color: var(--dh-primary); }
.dh-card--overlay .dh-card-price.is-quote,
.dh-card--overlay .dh-card-price small{ color: rgba(255, 255, 255, .78); }

.dh-card-foot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.dh-price{
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--dh-font-heading);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--dh-heading);
}

.dh-price del{
    font-size: .85rem;
    font-weight: 500;
    color: var(--dh-body);
    opacity: .65;
}

/* Shown in place of the amount when the price is not public. Sized down from
   the real price so a card of each still lines up in the same grid row. */
.dh-price--ask{
    gap: 7px;
    font-size: .92rem;
    color: var(--dh-primary-dark, var(--dh-heading));
}

.dh-price--ask i{ font-size: .8rem; opacity: .85; }

.dh-pill{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
}

.dh-pill--in{ background: rgba(22, 163, 74, .12); color: #15803d; }
.dh-pill--out{ background: rgba(225, 29, 72, .12); color: #be123c; }

.dh-card-tag{
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--dh-dark-rgb), .72);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

/* service cards use a full-bleed overlay treatment */
.dh-card--overlay{
    min-height: 290px;
    justify-content: flex-end;
    border: 0;
    background: var(--dh-dark);
}

.dh-card--overlay .dh-card-media{
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.dh-card--overlay .dh-card-media::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--dh-dark-rgb), .05) 20%, rgba(var(--dh-dark-rgb), .88) 100%);
}

.dh-card--overlay .dh-card-body{
    position: relative;
    z-index: 2;
    flex: none;
}

.dh-card--overlay .dh-card-title{ color: #fff; }

.dh-card-link{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dh-primary);
    font-size: .85rem;
    font-weight: 700;
}

.dh-card--overlay .dh-card-link{ color: rgba(255, 255, 255, .88); }

.dh-card-cta{
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: var(--dh-radius-btn);
    background: var(--dh-primary);
    color: var(--dh-on-primary);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .25s ease, background .25s ease;
}

.dh-card:hover .dh-card-cta{ transform: translateX(4px); background: var(--dh-primary-dark); }

.dh-meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: .79rem;
    color: var(--dh-body);
    opacity: .8;
}

.dh-meta span{ display: inline-flex; align-items: center; gap: 6px; }

.dh-more{
    margin-top: 46px;
    text-align: center;
}

.dh-empty{
    padding: 56px 24px;
    border: 1px dashed var(--dh-border);
    border-radius: var(--dh-radius);
    text-align: center;
    color: var(--dh-body);
}

/* ==========================================================================
   REVIEWS  — premium testimonial block
   ========================================================================== */

.dh-reviews{ position: relative; }

/* The backdrop runs edge to edge while the cards stay on the page grid, so the
   section keeps its own vertical rhythm instead of the wrapper's. */
.dh-section:has(> .dh-container > .dh-reviews[data-has-bg]){
    padding-block: 0;
    overflow-x: clip;
}

.dh-reviews[data-has-bg]{
    padding-block: clamp(56px, 7vw, 104px);
    isolation: isolate;
}

.dh-reviews[data-has-bg]::before,
.dh-reviews[data-has-bg]::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
}

/* No transform here on purpose — it would cancel the fixed attachment that
   makes the photo hold still while the reviews scroll over it. */
.dh-reviews[data-has-bg]::before{
    z-index: -2;
    background-image: var(--dh-review-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: saturate(.75);
}

.dh-reviews[data-has-bg]::after{
    z-index: -1;
    background:
        radial-gradient(900px 380px at 50% -10%, rgba(var(--dh-primary-rgb), .18), transparent 60%),
        linear-gradient(180deg, rgba(var(--dh-dark-rgb), .93), rgba(var(--dh-dark-rgb), .97));
}

/* iOS and most touch browsers ignore fixed attachment and stretch the image
   instead, so those get a normal scrolling backdrop. */
@media (hover: none){
    .dh-reviews[data-has-bg]::before{ background-attachment: scroll; }
}

.dh-reviews[data-has-bg] .dh-title{ color: #fff; }
.dh-reviews[data-has-bg] .dh-lead{ color: rgba(255, 255, 255, .74); }
.dh-reviews[data-has-bg] .dh-kicker{ background: rgba(255, 255, 255, .12); color: #fff; }

.dh-reviews-head{
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
}

/* ---------- aggregate rating ---------- */

.dh-rating-summary{
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 14px 24px 14px 18px;
    border-radius: 999px;
    background: var(--dh-page-bg);
    border: 1px solid var(--dh-border);
    box-shadow: var(--dh-shadow-sm);
}

.dh-reviews[data-has-bg] .dh-rating-summary{
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .17);
    backdrop-filter: blur(10px);
}

.dh-rating-score{
    font-family: var(--dh-font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--dh-heading);
}

.dh-reviews[data-has-bg] .dh-rating-score{ color: #fff; }

.dh-rating-meta{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dh-rating-meta small{
    font-size: .78rem;
    color: var(--dh-body);
    opacity: .8;
}

.dh-reviews[data-has-bg] .dh-rating-meta small{ color: rgba(255, 255, 255, .66); opacity: 1; }

/* ---------- stars ---------- */

.dh-stars{
    display: inline-flex;
    gap: 2px;
    line-height: 1;
    font-size: 1.02rem;
}

.dh-stars i{
    font-style: normal;
    color: var(--dh-border);
}

.dh-stars i.is-on{
    color: var(--dh-primary);
    text-shadow: 0 2px 10px rgba(var(--dh-primary-rgb), .45);
}

.dh-stars--sm{ font-size: .88rem; }

/* ---------- review card ---------- */

.dh-rail--reviews{ grid-auto-columns: minmax(320px, 1fr); align-items: stretch; }

.dh-review{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    margin: 0;
    padding: 30px 28px 26px;
    border-radius: var(--dh-radius);
    background: var(--dh-page-bg);
    border: 1px solid var(--dh-border);
    box-shadow: var(--dh-shadow-sm);
    overflow: hidden;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, border-color .32s ease;
}

/* accent rail that fills in on hover */
.dh-review::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dh-primary), var(--dh-accent, var(--dh-primary)));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.dh-review:hover{
    transform: translateY(-7px);
    border-color: rgba(var(--dh-primary-rgb), .5);
    box-shadow: var(--dh-shadow);
}

.dh-review:hover::before{ transform: scaleX(1); }

.dh-reviews[data-has-bg] .dh-review{
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .13);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 50px -26px rgba(0, 0, 0, .7);
}

.dh-reviews[data-has-bg] .dh-review:hover{
    background: rgba(255, 255, 255, .1);
    border-color: rgba(var(--dh-primary-rgb), .48);
}

/* oversized watermark quote */
.dh-review-quote{
    position: absolute;
    top: 6px;
    right: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 6.5rem;
    line-height: 1;
    color: rgba(var(--dh-primary-rgb), .16);
    pointer-events: none;
    user-select: none;
}

.dh-review-text{
    flex: 1;
    margin: 0;
    font-size: .98rem;
    line-height: 1.75;
    color: var(--dh-body);
}

.dh-reviews[data-has-bg] .dh-review-text{ color: rgba(255, 255, 255, .84); }

.dh-review-foot{
    display: flex;
    align-items: center;
    gap: 13px;
    padding-top: 17px;
    border-top: 1px solid var(--dh-border);
}

.dh-reviews[data-has-bg] .dh-review-foot{ border-top-color: rgba(255, 255, 255, .14); }

/* photo, or a tinted initial when the admin has not uploaded one */
.dh-review-avatar{
    position: relative;
    width: 50px;
    height: 50px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(140deg,
        hsl(var(--dh-avatar-hue, 210) 70% 58%),
        hsl(calc(var(--dh-avatar-hue, 210) + 26) 65% 44%));
    color: #fff;
    font-family: var(--dh-font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 0 0 2px var(--dh-page-bg), 0 0 0 4px rgba(var(--dh-primary-rgb), .45);
}

.dh-reviews[data-has-bg] .dh-review-avatar{
    box-shadow: 0 0 0 2px rgba(var(--dh-dark-rgb), .9), 0 0 0 4px rgba(var(--dh-primary-rgb), .5);
}

.dh-review-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dh-review-who{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dh-review-who strong{
    color: var(--dh-heading);
    font-family: var(--dh-font-heading);
    font-size: .94rem;
    font-weight: 700;
}

.dh-review-who small,
.dh-review-who a{
    font-size: .8rem;
    color: var(--dh-body);
    opacity: .82;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-review-who a:hover{ color: var(--dh-primary-dark); opacity: 1; }

.dh-reviews[data-has-bg] .dh-review-who strong{ color: #fff; }
.dh-reviews[data-has-bg] .dh-review-who small,
.dh-reviews[data-has-bg] .dh-review-who a{ color: rgba(255, 255, 255, .66); }
.dh-reviews[data-has-bg] .dh-review-who a:hover{ color: var(--dh-primary); }

.dh-reviews[data-has-bg] .dh-rail-btn{
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.dh-reviews[data-has-bg] .dh-rail-btn:hover:not(:disabled){
    background: var(--dh-primary);
    border-color: var(--dh-primary);
    color: var(--dh-on-primary);
}

.dh-reviews[data-has-bg] .dh-rail-btn:disabled{
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .4);
}

@media (max-width: 575.98px){
    .dh-rail--reviews{ grid-auto-columns: 86%; }
    .dh-review{ padding: 26px 22px 22px; }
    .dh-rating-summary{ gap: 12px; padding: 12px 18px 12px 14px; }
    .dh-rating-score{ font-size: 1.8rem; }
}

/* ==========================================================================
   TESTIMONIALS  (native scroll-snap rail, no carousel library)
   ========================================================================== */

.dh-rail-wrap{ position: relative; }

.dh-rail{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;

    /* Scrolled with the arrows, a swipe or a trackpad — the bar itself is
       hidden so it never sits under the cards. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dh-rail::-webkit-scrollbar{ display: none; }

.dh-rail > *{ scroll-snap-align: start; }

.dh-quote{
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 30px 26px;
    border-radius: var(--dh-radius);
    background: var(--dh-page-bg);
    border: 1px solid var(--dh-border);
    box-shadow: var(--dh-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.dh-quote:hover{ transform: translateY(-5px); box-shadow: var(--dh-shadow); }

.dh-quote-mark{
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.4rem;
    line-height: .6;
    color: rgba(var(--dh-primary-rgb), .5);
}

.dh-quote-text{
    margin: 0;
    flex: 1;
    font-size: .97rem;
    line-height: 1.72;
    color: var(--dh-body);
}

.dh-quote-source{
    font-size: .84rem;
    font-weight: 600;
    color: var(--dh-primary-dark);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-quote-foot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--dh-border);
}

.dh-quote-author{
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .89rem;
    font-weight: 700;
    color: var(--dh-heading);
}

.dh-avatar{
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-dark));
    color: var(--dh-on-primary);
    font-size: .85rem;
    font-weight: 800;
    flex: none;
}

.dh-quote-date{ font-size: .78rem; color: var(--dh-body); opacity: .7; }

.dh-rail-nav{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.dh-rail-btn{
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--dh-border);
    border-radius: 50%;
    background: var(--dh-page-bg);
    color: var(--dh-heading);
    cursor: pointer;
    transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.dh-rail-btn:hover:not(:disabled){
    background: var(--dh-primary);
    border-color: var(--dh-primary);
    color: var(--dh-on-primary);
}

/* Without a scrollbar the arrows are the only cue, so the end of the rail has
   to read at a glance. */
.dh-rail-btn:disabled{
    opacity: .45;
    cursor: default;
}

.dh-rail-btn svg{ width: 16px; height: 16px; }

/* ==========================================================================
   FAQ  (native details/summary — accessible with zero JS)
   ========================================================================== */

.dh-faq{
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin-inline: auto;
}

.dh-faq-item{
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    background: var(--dh-page-bg);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.dh-faq-item[open]{
    border-color: rgba(var(--dh-primary-rgb), .55);
    box-shadow: var(--dh-shadow-sm);
}

.dh-faq-item summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    color: var(--dh-heading);
    font-family: var(--dh-font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.dh-faq-item summary::-webkit-details-marker{ display: none; }

.dh-faq-item summary::after{
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    border: solid var(--dh-primary-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .28s ease;
}

.dh-faq-item[open] summary::after{ transform: rotate(-135deg) translate(-2px, -2px); }

.dh-faq-answer{
    padding: 0 24px 22px;
    margin: 0;
    font-size: .95rem;
    line-height: 1.72;
    color: var(--dh-body);
    animation: dhFaqOpen .32s ease both;
}

@keyframes dhFaqOpen{
    from{ opacity: 0; transform: translateY(-6px); }
    to{ opacity: 1; transform: none; }
}

/* ==========================================================================
   CTA
   ========================================================================== */

/* A light panel: stacking a dark gradient card on a dark gradient section
   turned this block muddy, and the brand colour reads far better as an
   accent than as a full background. */
.dh-cta{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: clamp(28px, 4vw, 48px);
    border-radius: calc(var(--dh-radius) + 10px);
    overflow: hidden;
    background:
        radial-gradient(620px 260px at 92% 130%, rgba(var(--dh-primary-rgb), .12), transparent 68%),
        var(--dh-page-bg);
    border: 1px solid var(--dh-border);
    box-shadow: var(--dh-shadow);
    color: var(--dh-body);
}

.dh-cta::before{
    content: "";
    position: absolute;
    top: -60%;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--dh-primary-rgb), .12), transparent 70%);
    animation: dhFloat 9s ease-in-out infinite;
    pointer-events: none;
}

/* the accent bar that keeps the panel from reading as a plain box */
.dh-cta::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--dh-primary), var(--dh-primary-dark));
}

@keyframes dhFloat{
    0%, 100%{ transform: translate3d(0, 0, 0); }
    50%{ transform: translate3d(-18px, 24px, 0); }
}

.dh-cta > *{ position: relative; z-index: 1; }
.dh-cta .dh-title{ color: var(--dh-heading); margin-bottom: 9px; }
.dh-cta .dh-lead{ color: var(--dh-body); }
.dh-cta-actions{ display: flex; flex-wrap: wrap; gap: 12px; }

/* the ghost button needs a light-surface variant in here */
.dh-cta .dh-btn--ghost{
    background: var(--dh-muted-bg);
    border-color: var(--dh-border);
    color: var(--dh-heading);
}

.dh-cta .dh-btn--ghost:hover{
    background: var(--dh-dark);
    border-color: var(--dh-dark);
    color: #fff;
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */

.dh-promo{
    display: grid;
    grid-template-columns: repeat(var(--dh-cols, 1), minmax(0, 1fr));
    gap: 26px;
}

.dh-promo-card{
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 300px;
    border-radius: calc(var(--dh-radius) + 6px);
    background: var(--dh-dark);
    text-decoration: none;
    isolation: isolate;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

a.dh-promo-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(var(--dh-dark-rgb), .28);
}

.dh-promo-card > img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

a.dh-promo-card:hover > img{ transform: scale(1.06); }

/* One wide banner reads left-to-right; a strip of cards reads bottom-up. */
.dh-promo-veil{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--dh-dark-rgb), .2) 0%, rgba(var(--dh-dark-rgb), .58) 45%, rgba(var(--dh-dark-rgb), .88) 100%);
}

.dh-promo--cols-1 .dh-promo-veil{
    background: linear-gradient(100deg, rgba(var(--dh-dark-rgb), .86) 0%, rgba(var(--dh-dark-rgb), .6) 45%, rgba(var(--dh-dark-rgb), .12) 100%);
}

.dh-promo-body{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    min-height: 300px;
    max-width: 560px;
    padding: clamp(24px, 2.6vw, 34px);
}

.dh-promo--cols-1 .dh-promo-body{
    justify-content: center;
    min-height: clamp(300px, 26vw, 400px);
    padding: clamp(28px, 3.4vw, 52px);
}

.dh-promo-kicker{
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dh-promo-title{
    margin: 0;
    font-family: var(--dh-font-heading);
    font-size: clamp(1.15rem, 1.5vw, 1.5rem);
    line-height: 1.25;
    color: #fff;
}

.dh-promo--cols-1 .dh-promo-title{ font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.2; }

.dh-promo-text{
    margin: 0;
    max-width: 46ch;
    font-size: .92rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, .78);

    /* Cards in a strip stay the same height whatever the admin types. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dh-promo--cols-1 .dh-promo-text{ -webkit-line-clamp: 4; font-size: .95rem; }

.dh-promo-body .dh-btn{ margin-top: 6px; }

/* ==========================================================================
   RICH TEXT
   ========================================================================== */

.dh-prose{
    max-width: 820px;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--dh-body);
}

.dh-prose h2, .dh-prose h3{ color: var(--dh-heading); font-family: var(--dh-font-heading); }
.dh-prose img{ max-width: 100%; height: auto; border-radius: var(--dh-radius); }
.dh-prose a{ color: var(--dh-primary-dark); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Column counts arrive as an inline --dh-cols from each section's settings,
   so every breakpoint override below needs !important to outrank it. */
@media (max-width: 1199.98px){
    .dh-grid{ --dh-cols: 3 !important; }
}

@media (max-width: 991.98px){
    .dh-section{ padding-block: 52px; }
    .dh-section--lg, .dh-section--xl{ padding-block: 56px; }

    .dh-split{ grid-template-columns: minmax(0, 1fr); }
    .dh-split--image-right .dh-split-media,
    .dh-split--image-left .dh-split-media{ order: 0; }
    .dh-split-media img{ max-height: 380px; }

    .dh-grid{ --dh-cols: 2 !important; }
    .dh-stats{ --dh-cols: 2 !important; }
    /* The column count arrives as an inline custom property, so the tablet
       override has to outrank it. */
    .dh-promo{ --dh-cols: 1 !important; }
    .dh-head{ margin-bottom: 28px; }

    .dh-hero{ min-height: 0; }
    .dh-hero-body{ padding-block: 96px 118px; }
    /* Mid-height they sit on top of the copy, so they drop down to flank the
       dots; swipe still works across the whole slide. */
    .dh-hero-arrow,
    .dh-hero:hover .dh-hero-arrow,
    .dh-hero:focus-within .dh-hero-arrow{ top: auto; bottom: 17px; opacity: 1; transform: none; width: 40px; height: 40px; }
    .dh-hero-arrow--prev{ left: 16px; }
    .dh-hero-arrow--next{ right: 16px; }
    .dh-hero-scroll{ display: none; }
}

@media (max-width: 767.98px){
    .dh-section{ padding-block: 42px; }
    .dh-section--lg, .dh-section--xl{ padding-block: 46px; }

    .dh-hero-body{ padding-block: 78px 104px; }
    .dh-hero-copy{ max-width: none; }

    .dh-collage{ grid-auto-rows: 120px; }
    .dh-feature-grid{ --dh-cols: 1 !important; }
    .dh-cta{ flex-direction: column; align-items: flex-start; }

    /* Every promo stacks and reads bottom-up once the copy loses side room. */
    .dh-promo{ --dh-cols: 1 !important; gap: 18px; }
    .dh-promo-card{ min-height: 260px; }

    .dh-promo--cols-1 .dh-promo-veil{
        background: linear-gradient(180deg, rgba(var(--dh-dark-rgb), .3) 0%, rgba(var(--dh-dark-rgb), .6) 45%, rgba(var(--dh-dark-rgb), .9) 100%);
    }

    .dh-promo-body,
    .dh-promo--cols-1 .dh-promo-body{
        justify-content: flex-end;
        min-height: 260px;
        max-width: none;
    }
}

@media (max-width: 575.98px){
    .dh-grid{ --dh-cols: 1 !important; }
    .dh-stats{ --dh-cols: 2 !important; gap: 12px; }
    .dh-stat{ padding: 18px 14px; }
    .dh-stat-icon{ width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; }
    .dh-stat-value{ font-size: 1.7rem; }
    .dh-stat-label{ margin-top: 6px; font-size: .84rem; line-height: 1.4; }
    .dh-hero-actions .dh-btn{ flex: 1 1 auto; }
    .dh-rail{ grid-auto-columns: 84%; }
}

/* ==========================================================================
   REDUCED MOTION — honour the OS setting over the theme setting
   ========================================================================== */

@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal]{ opacity: 1; transform: none; }
}
