/*
 * Home Dark concept page
 * Loaded only on page-templates/template-home-dark.php (style.css is not loaded on this page).
 * Brand: red #BF272F (Home Dark), navy #142D42. Fonts: Jost. Container 1300px.
 */

/* ==========================================================================
   Base
   ========================================================================== */

:root {
    --hd-bg: #06111D;
    --hd-bg-2: #0A1A2B;
    --hd-card: #0B1B2C;
    --hd-navy: #142D42;
    --hd-line: #1C3A54;
    --hd-red: #BF272F;
    --hd-red-text: #FF5C63;
    --hd-red-dark: #9F1F26;
    --hd-white: #FFFFFF;
    --hd-text: #B9C4CF;
    --hd-muted: #8A9AA9;
    --hd-font: 'Jost', 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.hd-body {
    margin: 0;
    background: var(--hd-bg);
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: 17px;
    line-height: 28px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

:where(.hd-body) img {
    max-width: 100%;
    height: auto;
    display: block;
}

:where(.hd-body) a {
    color: inherit;
    text-decoration: none;
}

:where(.hd-body) :is(h1, h2, h3, p, ul, ol, figure, blockquote) {
    margin: 0;
}

:where(.hd-body) :is(ul, ol) {
    padding: 0;
    list-style: none;
}

:where(.hd-body) :is(h1, h2, h3) {
    color: var(--hd-white);
    font-family: var(--hd-font);
}

.hd-skip,
.hd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hd-skip:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--hd-red);
    color: var(--hd-white);
}

.hd-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.hd-main {
    overflow-x: clip;
}

.hd-section {
    padding: 120px 0;
}

/* ==========================================================================
   Shared elements
   ========================================================================== */

.hd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--hd-red-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hd-eyebrow::before,
.hd-eyebrow::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hd-title {
    font-size: 48px;
    line-height: 62px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hd-lead {
    max-width: 620px;
    margin-top: 28px;
    color: var(--hd-text);
    font-size: 17px;
    line-height: 30px;
}

.hd-accent {
    position: relative;
    display: inline-block;
    color: var(--hd-red-text);
}

.hd-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    width: 100%;
    height: 18px;
    color: var(--hd-red-text);
}

.hd-swoosh {
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: -14px;
    width: calc(100% + 8px);
    height: 16px;
    color: var(--hd-red-text);
}

.hd-head {
    margin-bottom: 60px;
}

.hd-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.hd-head--center {
    text-align: center;
}

.hd-head--center .hd-lead {
    margin-left: auto;
    margin-right: auto;
}

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 34px;
    border: 2px solid var(--hd-red);
    border-radius: 6px;
    background: var(--hd-red);
    color: var(--hd-white) !important;
    font-family: var(--hd-font);
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hd-btn:hover,
.hd-btn:focus-visible {
    background: var(--hd-red-dark);
    border-color: var(--hd-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hd-btn--sm {
    min-height: 46px;
    padding: 0 22px;
    font-size: 16px;
}

.hd-btn--outline {
    background: transparent;
}

.hd-btn--outline:hover,
.hd-btn--outline:focus-visible {
    background: var(--hd-red);
    border-color: var(--hd-red);
}

.hd-btn--arrow .hd-icon {
    transition: transform 0.3s ease;
}

.hd-btn--arrow:hover .hd-icon {
    transform: translateX(4px);
}

.hd-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hd-red-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.hd-link .hd-icon {
    transition: transform 0.3s ease;
}

.hd-link:hover .hd-icon {
    transform: translateX(5px);
}

.hd-card {
    position: relative;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: transparent;
    transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.hd-card:hover {
    border-color: var(--hd-red);
    background: var(--hd-bg-2);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hd-stars {
    color: #FBBC05;
    letter-spacing: 2px;
}

/* Scroll reveal (fade in up) */
.hd-js .hd-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--hd-delay, 0ms);
}

.hd-js .hd-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.hd-header.is-scrolled {
    padding: 12px 0;
    background: rgba(6, 17, 29, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.admin-bar .hd-header {
    top: 32px;
}

.hd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hd-header__brand img {
    width: auto;
    height: 40px;
}

.hd-header__brand-text {
    color: var(--hd-white);
    font-size: 24px;
    font-weight: 700;
}

.hd-nav .menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.hd-nav .menu > li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hd-nav .menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    color: var(--hd-white);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hd-nav .menu > li > a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--hd-red);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hd-nav .menu > li > a:hover,
.hd-nav .menu > li:focus-within > a {
    color: var(--hd-red-text);
}

.hd-nav .menu > li > a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.hd-nav .mega-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hd-white);
    cursor: pointer;
}

.hd-nav .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 860px;
    margin-left: -300px;
    padding: 30px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-bg-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.hd-nav .has-mega:hover .mega-menu,
.hd-nav .has-mega:focus-within .mega-menu,
.hd-nav .has-mega.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hd-nav .mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 24px;
}

.hd-nav .mega-menu__heading {
    display: block;
    margin-bottom: 10px;
    color: var(--hd-white);
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.hd-nav .mega-menu__group li a {
    display: block;
    padding: 4px 0;
    color: var(--hd-text);
    font-size: 14px;
    line-height: 20px;
    transition: color 0.3s ease, padding 0.3s ease;
}

.hd-nav .mega-menu__group li a:hover,
.hd-nav .mega-menu__heading:hover {
    color: var(--hd-red-text);
    padding-left: 4px;
}

.hd-nav .mega-menu__all {
    display: inline-block;
    margin-top: 22px;
    color: var(--hd-red-text);
    font-size: 15px;
    font-weight: 600;
}

.hd-nav__phone {
    display: none;
}

.hd-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hd-header__phone .hd-icon {
    color: var(--hd-white);
}

.hd-burger {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.hd-burger span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--hd-white);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hd-burger span:nth-child(1) {
    top: 15px;
}

.hd-burger span:nth-child(2) {
    top: 22px;
}

.hd-burger span:nth-child(3) {
    top: 29px;
}

.hd-burger[aria-expanded="true"] span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.hd-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hd-burger[aria-expanded="true"] span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Hero slider
   ========================================================================== */

.hd-hero {
    position: relative;
    height: 750px;
    min-height: 650px;
    overflow: hidden;
    background: var(--hd-bg);
}

.hd-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hd-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hd-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 7s ease-out;
}

.hd-hero__slide.is-active .hd-hero__bg {
    transform: scale(1);
}

.hd-hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(6, 17, 29, 0.97) 0%, rgba(6, 17, 29, 0.88) 42%, rgba(20, 45, 66, 0.55) 100%);
}

.hd-hero__slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 160px;
    background: linear-gradient(0deg, var(--hd-bg) 0%, rgba(6, 17, 29, 0) 100%);
}

.hd-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 110px;
    padding-bottom: 50px;
}

.hd-hero__content > * {
    max-width: 860px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hd-hero__slide.is-active .hd-hero__content > * {
    opacity: 1;
    transform: none;
}

.hd-hero__slide.is-active .hd-hero__content > :nth-child(2) {
    transition-delay: 0.15s;
}

.hd-hero__slide.is-active .hd-hero__content > :nth-child(3) {
    transition-delay: 0.3s;
}

.hd-hero__slide.is-active .hd-hero__content > :nth-child(4) {
    transition-delay: 0.45s;
}

.hd-hero__slide.is-active .hd-hero__content > :nth-child(5) {
    transition-delay: 0.6s;
}

.hd-hero__slide.is-active .hd-hero__content > :nth-child(6) {
    transition-delay: 0.75s;
}

.hd-hero__social {
    display: flex;
    gap: 26px;
    margin-bottom: 34px;
}

.hd-hero__social a {
    display: inline-flex;
    color: var(--hd-white);
    transition: color 0.3s ease, transform 0.3s ease;
}

.hd-hero__social a:hover {
    color: var(--hd-red-text);
    transform: translateY(-3px);
}

.hd-hero__social svg {
    width: 18px;
    height: 18px;
}

.hd-hero__eyebrow {
    position: relative;
}

.hd-hero__title {
    font-size: 52px;
    line-height: 64px;
    font-weight: 800;
    letter-spacing: 0;
}

.hd-hero__title .hd-accent {
    padding-bottom: 6px;
}

.hd-hero__text {
    max-width: 700px;
    margin-top: 28px;
    color: #DCE3EA;
    font-size: 19px;
    line-height: 32px;
}

.hd-hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.hd-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hd-red);
    color: var(--hd-white);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.hd-play::before,
.hd-play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--hd-red);
    animation: hd-pulse 2.4s ease-out infinite;
}

.hd-play::after {
    animation-delay: 1.2s;
}

.hd-play svg {
    margin-left: 3px;
}

.hd-hero__play-label {
    color: var(--hd-white);
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hd-hero__note {
    margin-top: 24px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
    font-style: italic;
}

.hd-hero__rating {
    display: block;
    margin-top: 6px;
    color: var(--hd-white);
    font-style: normal;
    font-weight: 500;
}

/* Animated floating circles across the hero slider (drawn by home-dark.js, like the reference's particles) */
.hd-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hd-hero__arrows {
    position: absolute;
    right: 48px;
    top: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-50%);
}

.hd-hero__arrow,
.hd-reviews__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--hd-white);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hd-hero__arrow:hover,
.hd-reviews__arrow:hover {
    background: var(--hd-red);
}

.hd-hero__pager {
    position: absolute;
    left: 50%;
    bottom: 48px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 22px;
    transform: translateX(-50%);
}

.hd-hero__count {
    color: var(--hd-white);
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
}

.hd-hero__count--total {
    color: rgba(255, 255, 255, 0.55);
}

.hd-hero__dots {
    display: flex;
    gap: 8px;
}

.hd-hero__dot {
    width: 24px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.4s ease, background 0.4s ease;
}

.hd-hero__dot.is-active {
    width: 40px;
    background: var(--hd-red);
}

@keyframes hd-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes hd-float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(18px, -26px);
    }
    66% {
        transform: translate(-14px, 14px);
    }
}

/* ==========================================================================
   Services
   ========================================================================== */

.hd-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hd-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 28px 34px;
    text-align: center;
}

.hd-service__icon {
    display: inline-flex;
    color: var(--hd-red-text);
    transition: transform 0.5s ease;
}

.hd-service:hover .hd-service__icon {
    transform: rotateY(360deg);
}

.hd-service__title {
    margin-top: 22px;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
}

.hd-service__text {
    flex: 1;
    margin: 14px 0 22px;
    color: var(--hd-text);
    font-size: 16px;
    line-height: 26px;
}

/* Reference "service box" hover: red fill wipes in from the left, wipes out to the right; content turns white */
.hd-service {
    z-index: 0;
    overflow: hidden;
    border-color: rgba(191, 39, 47, 0.35);
}

.hd-service::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--hd-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hd-service:hover::before {
    right: auto;
    left: 0;
    transform: scaleX(1);
    transform-origin: left;
}

.hd-card.hd-service:hover {
    border-color: var(--hd-red);
    background: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hd-service__icon,
.hd-service__title,
.hd-service__text,
.hd-service .hd-link {
    transition: color 0.3s ease, transform 0.5s ease;
}

.hd-service:hover .hd-service__icon,
.hd-service:hover .hd-service__title,
.hd-service:hover .hd-service__text,
.hd-service:hover .hd-link {
    color: var(--hd-white);
}

/* ==========================================================================
   About
   ========================================================================== */

.hd-about {
    padding-top: 40px;
}

.hd-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hd-about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    margin-top: 50px;
}

.hd-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hd-feature__icon {
    flex: 0 0 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: var(--hd-navy);
    color: var(--hd-red-text);
    transition: background 0.3s ease, color 0.3s ease;
}

.hd-feature:hover .hd-feature__icon {
    background: var(--hd-red);
    color: var(--hd-white);
}

.hd-feature__title {
    font-size: 21px;
    line-height: 28px;
    font-weight: 500;
}

.hd-feature__text {
    margin-top: 10px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
}

.hd-about__footer {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 56px;
}

.hd-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hd-signature__name {
    position: relative;
    color: var(--hd-white);
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 40px;
    line-height: 44px;
    font-style: italic;
}

.hd-signature__name::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -16px;
    bottom: -6px;
    height: 12px;
    border-bottom: 2px solid var(--hd-white);
    border-radius: 0 0 50% 50%;
}

.hd-signature__role {
    margin-top: 12px;
    color: var(--hd-red-text);
    font-size: 15px;
    line-height: 22px;
}

.hd-about__media {
    position: relative;
    padding: 40px 20px 40px 40px;
}

.hd-about__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hd-about__shape {
    position: absolute;
    pointer-events: none;
}

.hd-about__shape--dots {
    left: 0;
    top: 0;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(rgba(191, 39, 47, 0.6) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    animation: hd-float 12s ease-in-out infinite;
}

.hd-about__shape--bar1 {
    right: 0;
    top: 14px;
    width: 70px;
    height: 16px;
    background: var(--hd-white);
}

.hd-about__shape--bar2 {
    right: 30px;
    top: 38px;
    width: 70px;
    height: 16px;
    border: 2px solid var(--hd-white);
}

.hd-about__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 22px 30px;
    border-radius: 6px;
    background: var(--hd-red);
    color: var(--hd-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    animation: hd-bob 4s ease-in-out infinite;
}

.hd-about__badge strong {
    font-size: 40px;
    line-height: 44px;
    font-weight: 700;
}

.hd-about__badge span {
    font-size: 15px;
    line-height: 22px;
}

@keyframes hd-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   Process tabs (same phases as the homepage "Our Process" tabs)
   ========================================================================== */

.hd-process {
    background: var(--hd-bg-2);
}

.hd-process__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
}

.hd-process__intro {
    max-width: 780px;
}

.hd-process__subtitle {
    margin-top: 18px;
    color: var(--hd-white);
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
}

.hd-process__intro .hd-lead {
    margin-top: 14px;
}

.hd-process__head .hd-btn {
    flex: none;
}

.hd-process__body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.hd-process__tabs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hd-process__tab {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid var(--hd-line);
    border-radius: 4px;
    background: var(--hd-card);
    color: var(--hd-white);
    font-family: var(--hd-font);
    font-size: 19px;
    line-height: 26px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hd-process__tab-num {
    color: var(--hd-red-text);
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.hd-process__tab:hover {
    border-color: var(--hd-red);
}

.hd-process__tab.is-active {
    border-color: var(--hd-red);
    background: var(--hd-red);
}

.hd-process__tab.is-active .hd-process__tab-num {
    color: var(--hd-white);
}

.hd-process__tab:focus-visible {
    outline: 2px solid var(--hd-red);
    outline-offset: 3px;
}

.hd-process__panel {
    position: relative;
    padding: 44px 44px 40px;
    border: 1px solid var(--hd-line);
    border-radius: 4px;
    background: var(--hd-card);
}

.hd-process__panel[hidden] {
    display: none;
}

.hd-process__panel.is-active {
    animation: hd-process-in 0.45s ease both;
}

@keyframes hd-process-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hd-process__panel-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.hd-process__num {
    flex: none;
    color: var(--hd-red-text);
    font-size: 54px;
    line-height: 56px;
    font-weight: 800;
}

.hd-process__phase {
    color: var(--hd-red-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hd-process__title {
    margin-top: 4px;
    color: var(--hd-white);
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
}

.hd-process__desc {
    margin-bottom: 32px;
    color: var(--hd-text);
    font-size: 17px;
    line-height: 28px;
}

.hd-process__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.hd-process__col h4 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hd-line);
    color: var(--hd-white);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hd-process__group + .hd-process__group {
    margin-top: 16px;
}

.hd-process__group-title {
    margin-bottom: 6px;
    color: var(--hd-white);
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
}

.hd-process__lead-text {
    margin-bottom: 8px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
}

.hd-process__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hd-process__list li {
    position: relative;
    padding-left: 18px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 30px;
}

.hd-process__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hd-red);
}

.hd-process__list--check li::before {
    background: #5B97C9;
}

.hd-process__note {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--hd-line);
    color: var(--hd-muted);
    font-size: 15px;
    line-height: 25px;
}

/* ==========================================================================
   Stats band
   ========================================================================== */

.hd-stats {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hd-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 45, 66, 0.94) 0%, rgba(10, 26, 43, 0.92) 100%);
}

.hd-stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hd-stat:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-6px);
}

.hd-stat__icon {
    color: var(--hd-red-text);
}

.hd-stat__value {
    margin-top: 16px;
    color: var(--hd-white);
    font-size: 50px;
    line-height: 56px;
    font-weight: 700;
}

.hd-stat__label {
    margin-top: 8px;
    color: var(--hd-text);
    font-size: 17px;
    line-height: 26px;
}

/* ==========================================================================
   Case studies (portfolio)
   ========================================================================== */

.hd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: -20px 0 36px;
}

.hd-filter {
    position: relative;
    padding: 4px 0 4px 12px;
    border: 0;
    background: transparent;
    color: var(--hd-white);
    font-family: var(--hd-font);
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hd-filter::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--hd-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hd-filter.is-active,
.hd-filter:hover {
    color: var(--hd-red-text);
}

.hd-filter.is-active::before {
    opacity: 1;
}

.hd-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hd-case {
    position: relative;
    display: block;
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    border-radius: 4px;
    background: var(--hd-navy);
}

.hd-case[hidden] {
    display: none;
}

.hd-case img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hd-case:hover img {
    transform: scale(1.08);
}

.hd-case__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 17, 29, 0.96) 0%, rgba(6, 17, 29, 0.45) 55%, rgba(6, 17, 29, 0.05) 100%);
    transition: background 0.5s ease;
}

.hd-case:hover .hd-case__shade {
    background: linear-gradient(0deg, rgba(6, 17, 29, 0.98) 0%, rgba(20, 45, 66, 0.82) 100%);
}

.hd-case__industry {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(6, 17, 29, 0.8);
    color: var(--hd-white);
    font-size: 14px;
    line-height: 20px;
}

.hd-case__body {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
}

.hd-case__metric {
    color: var(--hd-red-text);
    font-size: 48px;
    line-height: 54px;
    font-weight: 800;
}

.hd-case__label {
    color: var(--hd-white);
    font-size: 15px;
    line-height: 22px;
}

.hd-case__title {
    margin-top: 14px;
    color: var(--hd-white);
    font-size: 21px;
    line-height: 29px;
    font-weight: 500;
}

.hd-case__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: var(--hd-red-text);
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: max-height 0.5s ease, margin 0.5s ease, opacity 0.5s ease;
}

.hd-case:hover .hd-case__more,
.hd-case:focus-visible .hd-case__more {
    max-height: 30px;
    margin-top: 16px;
    opacity: 1;
}

/* ==========================================================================
   Specialties band
   ========================================================================== */

.hd-band {
    padding: 80px 0;
    background: var(--hd-red);
}

.hd-band__title {
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 34px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
}

.hd-band__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.hd-band__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 130px;
    padding: 20px 14px;
    border-radius: 6px;
    background: var(--hd-white);
    color: var(--hd-navy);
    font-size: 15px;
    line-height: 21px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hd-band__item .hd-icon {
    color: var(--hd-red-text);
}

.hd-band__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.hd-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hd-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 46px 34px 40px;
    text-align: center;
}

.hd-plan__ribbon {
    position: absolute;
    top: 30px;
    right: -46px;
    width: 190px;
    padding: 6px 0;
    background: var(--hd-white);
    color: var(--hd-red-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.hd-plan__icon {
    color: var(--hd-red-text);
}

.hd-plan__name {
    margin-top: 20px;
    font-size: 26px;
    line-height: 34px;
    font-weight: 600;
}

.hd-plan__tagline {
    min-height: 52px;
    margin-top: 8px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
}

.hd-plan__price {
    margin-top: 18px;
    color: var(--hd-white);
    font-size: 64px;
    line-height: 70px;
    font-weight: 700;
}

.hd-plan__price sup {
    margin-right: 4px;
    color: var(--hd-red-text);
    font-size: 26px;
    vertical-align: 26px;
}

.hd-plan__per {
    margin-top: 6px;
    color: var(--hd-text);
    font-size: 16px;
    line-height: 24px;
    font-style: italic;
}

.hd-plan__rule {
    width: 136px;
    height: 3px;
    margin: 26px 0;
    background: var(--hd-red);
}

.hd-plan__list {
    flex: 1;
    margin-bottom: 34px;
}

.hd-plan__list li {
    padding: 9px 0;
    color: var(--hd-white);
    font-size: 16px;
    line-height: 24px;
}

.hd-plan__btn {
    width: 100%;
}

.hd-plan--popular {
    border-color: var(--hd-red);
    background: var(--hd-red);
}

.hd-plan--popular:hover {
    background: var(--hd-red);
}

.hd-plan--popular .hd-plan__icon,
.hd-plan--popular .hd-plan__price sup {
    color: var(--hd-white);
}

.hd-plan--popular .hd-plan__tagline,
.hd-plan--popular .hd-plan__per {
    color: rgba(255, 255, 255, 0.88);
}

.hd-plan--popular .hd-plan__rule {
    background: var(--hd-white);
}

.hd-plan--popular .hd-plan__btn {
    border-color: var(--hd-white);
}

.hd-plan--popular .hd-plan__btn:hover {
    background: var(--hd-white);
    border-color: var(--hd-white);
    color: var(--hd-red) !important;
}

.hd-pricing__note {
    margin-top: 34px;
    color: var(--hd-muted);
    font-size: 15px;
    line-height: 24px;
    text-align: center;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.hd-reviews {
    padding-top: 40px;
}

.hd-reviews__slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
}

.hd-reviews__track {
    position: relative;
    display: grid;
    overflow: hidden;
    flex: 1;
    max-width: 760px;
}

.hd-review {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hd-review.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hd-review__avatar {
    width: 80px;
    height: 80px;
    padding: 4px;
    border: 3px solid var(--hd-red);
    border-radius: 50%;
    background: var(--hd-white);
    object-fit: contain;
}

.hd-review__stars {
    margin-top: 18px;
    color: #FBBC05;
    font-size: 20px;
    letter-spacing: 3px;
}

.hd-review__quote p {
    margin-top: 18px;
    color: var(--hd-white);
    font-size: 22px;
    line-height: 38px;
    font-style: italic;
}

.hd-review figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 26px;
}

.hd-review__name {
    color: var(--hd-white);
    font-size: 20px;
    line-height: 28px;
}

.hd-review__link {
    color: var(--hd-red-text);
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.hd-review__link:hover {
    text-decoration: underline;
}

.hd-reviews__summary {
    margin-top: 40px;
    color: var(--hd-text);
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.hd-blog {
    padding-top: 40px;
}

.hd-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hd-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    background: var(--hd-bg-2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hd-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hd-post__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background: var(--hd-navy);
}

.hd-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hd-post:hover .hd-post__media img {
    transform: scale(1.07);
}

.hd-post__date {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 4px 18px;
    border-radius: 30px;
    background: rgba(6, 17, 29, 0.85);
    color: var(--hd-white);
    font-size: 15px;
    line-height: 24px;
}

.hd-post__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 28px;
}

.hd-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--hd-text);
    font-size: 14px;
    line-height: 20px;
}

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

.hd-post__meta .hd-icon {
    color: var(--hd-red-text);
}

.hd-post__title {
    margin-top: 14px;
    font-size: 22px;
    line-height: 31px;
    font-weight: 500;
}

.hd-post__title a:hover {
    color: var(--hd-red-text);
}

.hd-post__excerpt {
    flex: 1;
    margin: 12px 0 20px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.hd-contact {
    position: relative;
    overflow: hidden;
    background: var(--hd-bg-2);
}

.hd-contact::before {
    content: "";
    position: absolute;
    right: -200px;
    top: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 39, 47, 0.18) 0%, rgba(191, 39, 47, 0) 70%);
    pointer-events: none;
}

.hd-contact__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hd-contact__points {
    margin-top: 30px;
}

.hd-contact__points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--hd-white);
    font-size: 16px;
    line-height: 26px;
}

.hd-contact__points .hd-icon {
    flex: 0 0 20px;
    margin-top: 3px;
    color: var(--hd-red-text);
}

.hd-contact__phone {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    color: var(--hd-white);
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
}

.hd-contact__phone small {
    display: block;
    color: var(--hd-text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.hd-contact__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hd-red);
}

.hd-contact__form {
    padding: 44px 40px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-bg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hd-body .home-lead-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 18px;
}

.hd-body .home-lead-form__field--full {
    grid-column: 1 / -1;
}

.hd-body .home-lead-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--hd-white);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.hd-body .home-lead-form input[type="text"],
.hd-body .home-lead-form input[type="tel"],
.hd-body .home-lead-form input[type="email"],
.hd-body .home-lead-form select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--hd-line);
    border-radius: 4px;
    background: var(--hd-bg-2);
    color: var(--hd-white);
    font-family: var(--hd-font);
    font-size: 16px;
    line-height: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hd-body .home-lead-form select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.hd-body .home-lead-form select option {
    background: var(--hd-bg-2);
    color: var(--hd-white);
}

.hd-body .home-lead-form ::placeholder {
    color: var(--hd-muted);
}

.hd-body .home-lead-form input:focus,
.hd-body .home-lead-form select:focus {
    outline: none;
    border-color: var(--hd-red);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.hd-body .home-lead-form .wpcf7-form-control-wrap {
    display: block;
}

.hd-body .home-lead-form__submit {
    width: 100%;
    height: 56px;
    margin-top: 24px;
    border: 0;
    border-radius: 6px;
    background: var(--hd-red);
    color: var(--hd-white);
    font-family: var(--hd-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hd-body .home-lead-form__submit:hover {
    background: var(--hd-red-dark);
}

.hd-body .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #FF8A8C;
    font-size: 13px;
    line-height: 18px;
}

.hd-body .wpcf7 form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 10px 14px;
    border-radius: 4px;
    color: var(--hd-white);
    font-size: 14px;
    line-height: 20px;
}

.hd-body .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.hd-footer {
    position: relative;
    padding: 90px 0 0;
    overflow: hidden;
    background-color: #071526;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(191, 39, 47, 0.16) 0%, rgba(191, 39, 47, 0) 40%),
        radial-gradient(circle at 85% 20%, rgba(70, 120, 180, 0.2) 0%, rgba(70, 120, 180, 0) 45%),
        radial-gradient(rgba(120, 160, 210, 0.16) 1.2px, transparent 1.2px);
    background-size: auto, auto, 10px 10px;
}

.hd-footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
}

.hd-footer__brand img {
    width: auto;
    height: 40px;
}

.hd-footer__text {
    margin-top: 26px;
    color: var(--hd-white);
    font-size: 16px;
    line-height: 28px;
}

.hd-footer__label {
    margin-top: 22px;
    color: var(--hd-text);
    font-size: 14px;
    line-height: 22px;
    font-style: italic;
}

.hd-footer__cta {
    margin-top: 16px;
}

.hd-footer__heading {
    margin-bottom: 28px;
    font-size: 22px;
    line-height: 30px;
    font-weight: 500;
}

.hd-footer__links li {
    margin-bottom: 14px;
}

.hd-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hd-white);
    font-size: 15px;
    line-height: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hd-footer__links .hd-icon {
    color: var(--hd-red-text);
}

.hd-footer__links a:hover {
    color: var(--hd-red-text);
    transform: translateX(4px);
}

.hd-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--hd-white);
    font-size: 15px;
    line-height: 24px;
}

.hd-footer__contact-item .hd-icon {
    flex: 0 0 22px;
    color: var(--hd-red-text);
}

.hd-footer__contact-item a:hover {
    color: var(--hd-red-text);
}

.hd-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.hd-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: var(--hd-red);
    color: var(--hd-white);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hd-footer__social a:hover {
    background: var(--hd-white);
    color: var(--hd-red-text);
    transform: translateY(-3px);
}

.hd-footer__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 70px;
    padding-top: 28px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--hd-white);
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
}

.hd-footer__bar a:hover {
    color: var(--hd-red-text);
}

.hd-footer__sep {
    margin: 0 8px;
    color: var(--hd-red-text);
}

.hd-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--hd-red);
    color: var(--hd-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.hd-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* ==========================================================================
   Video modal
   ========================================================================== */

.hd-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hd-modal[hidden] {
    display: none;
}

.hd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 9, 16, 0.88);
}

.hd-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
}

.hd-modal__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #000000;
}

.hd-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hd-modal__close {
    position: absolute;
    right: 0;
    top: -54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hd-red);
    color: var(--hd-white);
    cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Team banner (homepage "Who We Are")
   ========================================================================== */

.hd-team {
    position: relative;
    padding: 130px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hd-team::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 17, 29, 0.92) 0%, rgba(20, 45, 66, 0.86) 50%, rgba(6, 17, 29, 0.94) 100%);
}

.hd-team__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 860px;
}

.hd-team .hd-lead {
    max-width: 760px;
}

.hd-team__members {
    width: 164px;
    height: auto;
    margin: 34px 0 34px;
}

/* ==========================================================================
   Trades (homepage "Plumbing & HVAC")
   ========================================================================== */

.hd-trades__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    flex: none;
}

.hd-trades__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--hd-white);
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hd-trades__phone:hover {
    color: var(--hd-red-text);
}

.hd-trades__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hd-red);
    border-radius: 50%;
    color: var(--hd-red-text);
}

.hd-trades__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.hd-trade {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 46px 44px 40px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hd-trade:hover {
    border-color: var(--hd-red);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hd-trade__num {
    position: absolute;
    top: 18px;
    right: 30px;
    z-index: -1;
    color: transparent;
    font-size: 110px;
    line-height: 1;
    font-weight: 800;
    -webkit-text-stroke: 1px rgba(191, 39, 47, 0.35);
}

.hd-trade__head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hd-trade__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: var(--hd-navy);
    color: var(--hd-red-text);
    transition: background 0.3s ease, color 0.3s ease;
}

.hd-trade:hover .hd-trade__icon {
    background: var(--hd-red);
    color: var(--hd-white);
}

.hd-trade__title {
    color: var(--hd-white);
    font-size: 30px;
    line-height: 38px;
    font-weight: 500;
}

.hd-trade__text {
    margin-top: 22px;
    color: var(--hd-text);
    font-size: 16px;
    line-height: 27px;
}

.hd-trade__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
    margin-top: 26px;
    padding: 24px 0 0;
    border-top: 1px solid var(--hd-line);
    list-style: none;
}

.hd-trade__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hd-trade__links a .hd-icon {
    flex: none;
    color: var(--hd-red-text);
}

.hd-trade__links a:hover {
    color: var(--hd-white);
    transform: translateX(4px);
}

/* ==========================================================================
   Fit (homepage "Straight Talk") + shared accordion
   ========================================================================== */

.hd-fit {
    background: var(--hd-bg-2);
}

.hd-fit .hd-head--split .hd-btn {
    flex: none;
}

.hd-fit__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.hd-fit__box {
    padding: 36px 34px 26px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-card);
}

.hd-fit__box--good {
    border-color: rgba(63, 181, 122, 0.45);
}

.hd-fit__box--bad {
    border-color: rgba(232, 90, 98, 0.45);
}

.hd-fit__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.hd-fit__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--hd-white);
}

.hd-fit__box--good .hd-fit__badge {
    background: #3FB57A;
}

.hd-fit__box--bad .hd-fit__badge {
    background: var(--hd-red);
}

.hd-fit__title {
    color: var(--hd-white);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
}

.hd-fit__mark {
    flex: none;
    display: inline-flex;
    margin-top: 5px;
}

.hd-fit__box--good .hd-fit__mark {
    color: #3FB57A;
}

.hd-fit__box--bad .hd-fit__mark {
    color: var(--hd-red-text);
}

.hd-acc {
    border-bottom: 1px solid var(--hd-line);
}

.hd-acc:last-child {
    border-bottom: 0;
}

.hd-acc summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    color: var(--hd-white);
    font-size: 17px;
    line-height: 26px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hd-acc summary::-webkit-details-marker {
    display: none;
}

.hd-acc summary:hover,
.hd-acc[open] summary {
    color: var(--hd-red-text);
}

.hd-acc summary:focus-visible {
    outline: 2px solid var(--hd-red);
    outline-offset: 2px;
}

.hd-acc--fit summary {
    font-size: 16px;
    line-height: 25px;
}

.hd-acc--fit summary:hover,
.hd-acc--fit[open] summary {
    color: var(--hd-white);
}

.hd-acc__q {
    flex: 1;
}

.hd-acc__toggle {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    margin-top: -1px;
    border: 1px solid var(--hd-line);
    border-radius: 50%;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hd-acc__toggle::before,
.hd-acc__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    margin: -1px 0 0 -5px;
    background: var(--hd-white);
    transition: transform 0.3s ease;
}

.hd-acc__toggle::after {
    transform: rotate(90deg);
}

.hd-acc[open] .hd-acc__toggle {
    border-color: var(--hd-red);
    background: var(--hd-red);
}

.hd-acc[open] .hd-acc__toggle::after {
    transform: rotate(0deg);
}

.hd-acc__a {
    padding: 0 42px 20px 0;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 26px;
}

.hd-acc--fit .hd-acc__a {
    padding-left: 28px;
}

.hd-acc[open] .hd-acc__a {
    animation: hd-process-in 0.35s ease both;
}

/* ==========================================================================
   FAQ (homepage "Questions Contractors Ask")
   ========================================================================== */

.hd-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.hd-faq__col {
    padding: 14px 34px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-card);
}

@media (max-width: 1100px) {
    .hd-trades__actions {
        align-items: flex-start;
    }

    .hd-trades__grid,
    .hd-fit__grid,
    .hd-faq__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hd-team {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .hd-trade {
        padding: 34px 22px 28px;
    }

    .hd-trade__num {
        font-size: 80px;
        right: 18px;
    }

    .hd-trade__title {
        font-size: 24px;
        line-height: 32px;
    }

    .hd-trade__links {
        grid-template-columns: 1fr;
    }

    .hd-fit__box {
        padding: 28px 20px 18px;
    }

    .hd-faq__col {
        padding: 6px 20px;
    }

    .hd-swoosh {
        bottom: -7px;
        height: 9px;
    }

    .hd-acc summary {
        font-size: 16px;
        line-height: 25px;
    }

    .hd-acc__a {
        padding-right: 0;
    }
}

@media (max-width: 1200px) {
    .hd-nav .menu {
        gap: 24px;
    }

    .hd-hero__title {
        font-size: 46px;
        line-height: 58px;
    }

    .hd-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-band__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hd-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .hd-burger {
        display: inline-block;
    }

    .hd-header__phone span {
        display: none;
    }

    .hd-header__phone {
        width: 46px;
        padding: 0;
    }

    .hd-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: -1;
        max-height: 100vh;
        padding: 96px 20px 30px;
        overflow-y: auto;
        background: var(--hd-bg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .hd-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hd-nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hd-nav .menu > li {
        flex-wrap: wrap;
        justify-content: space-between;
        border-bottom: 1px solid var(--hd-line);
    }

    .hd-nav .menu > li > a {
        padding: 14px 0;
        font-size: 18px;
    }

    .hd-nav .menu > li > a::before {
        display: none;
    }

    .hd-nav .mega-toggle {
        width: 40px;
        height: 40px;
    }

    .hd-nav .mega-menu {
        position: static;
        display: none;
        width: 100%;
        margin: 0 0 14px;
        padding: 18px;
        border-top-width: 1px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .hd-nav .has-mega:hover .mega-menu,
    .hd-nav .has-mega:focus-within .mega-menu {
        display: none;
    }

    .hd-nav .has-mega.is-open .mega-menu {
        display: block;
    }

    .hd-nav .mega-menu__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hd-nav__phone {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: 22px;
        color: var(--hd-white);
        font-size: 18px;
        font-weight: 600;
    }

    .hd-nav__phone .hd-icon {
        color: var(--hd-red-text);
    }

    .hd-header.is-menu-open {
        background: var(--hd-bg);
    }

    .hd-about__grid,
    .hd-contact__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hd-process__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .hd-process__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hd-process__tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hd-pricing__grid,
    .hd-blog__grid,
    .hd-cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-stats {
        background-attachment: scroll;
    }
}

@media (max-width: 782px) {
    .admin-bar .hd-header {
        top: 46px;
    }
}

@media (max-width: 767px) {
    body.hd-body {
        font-size: 16px;
        line-height: 26px;
    }

    .hd-section {
        padding: 80px 0;
    }

    .hd-about,
    .hd-reviews,
    .hd-blog {
        padding-top: 20px;
    }

    .hd-header {
        padding: 14px 0;
    }

    .hd-header__brand img {
        height: 32px;
    }

    .hd-title {
        font-size: 34px;
        line-height: 44px;
    }

    .hd-head {
        margin-bottom: 40px;
    }

    .hd-head--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .hd-hero {
        height: auto;
        min-height: 0;
    }

    .hd-hero__slides {
        display: grid;
    }

    .hd-hero__slide {
        position: relative;
        grid-area: 1 / 1;
        align-items: flex-start;
    }

    .hd-hero__content {
        padding-top: 150px;
        padding-bottom: 96px;
    }

    .hd-hero__social {
        margin-bottom: 24px;
    }

    .hd-hero__title {
        font-size: 34px;
        line-height: 44px;
    }

    .hd-hero__text {
        margin-top: 30px;
        font-size: 16px;
        line-height: 27px;
    }

    .hd-hero__actions {
        flex-wrap: wrap;
        gap: 18px;
        margin-top: 30px;
    }

    .hd-hero__actions .hd-btn {
        width: 100%;
    }

    .hd-play {
        width: 56px;
        height: 56px;
    }

    .hd-hero__arrows {
        display: none;
    }

    .hd-hero__pager {
        bottom: 30px;
    }

    .hd-hero__count {
        font-size: 22px;
    }

    .hd-services__grid,
    .hd-pricing__grid,
    .hd-blog__grid,
    .hd-cases__grid,
    .hd-about__features,
    .hd-footer__grid {
        grid-template-columns: 1fr;
    }

    .hd-band__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hd-band__title {
        font-size: 26px;
        line-height: 36px;
    }

    .hd-about__footer {
        flex-wrap: wrap;
        gap: 30px;
    }

    .hd-about__media {
        padding: 24px 0 24px 24px;
    }

    .hd-about__badge {
        padding: 14px 20px;
    }

    .hd-about__badge strong {
        font-size: 30px;
        line-height: 34px;
    }

    .hd-process__head {
        margin-bottom: 40px;
    }

    .hd-process__tab {
        gap: 10px;
        padding: 14px 14px;
        font-size: 16px;
        line-height: 22px;
    }

    .hd-process__panel {
        padding: 30px 22px 28px;
    }

    .hd-process__num {
        font-size: 40px;
        line-height: 44px;
    }

    .hd-process__title {
        font-size: 22px;
        line-height: 30px;
    }

    .hd-process__cols {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hd-stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .hd-stat {
        padding: 26px 12px;
    }

    .hd-stat__value {
        font-size: 36px;
        line-height: 42px;
    }

    .hd-stat__label {
        font-size: 15px;
        line-height: 22px;
    }

    .hd-reviews__slider {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hd-reviews__track {
        order: -1;
        flex-basis: 100%;
    }

    .hd-review__quote p {
        font-size: 18px;
        line-height: 31px;
    }

    .hd-contact__form {
        padding: 30px 20px;
    }

    .hd-body .home-lead-form__grid {
        grid-template-columns: 1fr;
    }

    .hd-footer__bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hd-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd-body *,
    .hd-body *::before,
    .hd-body *::after {
        animation: none !important;
        transition: none !important;
    }

    .hd-js .hd-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Founder (v1.0.38): "An Honest Word From Our Founder", laid out after the
   reference "Working Process" section: heading + numbered steps left, photo
   with rotating ring and bouncing counter badge right.
   ========================================================================== */

.hd-founder__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 80px;
}

.hd-founder__lead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: var(--hd-white);
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    font-style: italic;
}

.hd-founder__lead .hd-icon {
    flex: 0 0 auto;
    color: var(--hd-red-text);
}

.hd-founder__steps {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hd-founder__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 26px;
    padding: 26px 0;
    border-bottom: 1px solid var(--hd-line);
}

.hd-founder__step:first-child {
    border-top: 1px solid var(--hd-line);
}

.hd-founder__num {
    flex: 0 0 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid var(--hd-red);
    border-radius: 4px 16px 4px 16px;
    color: var(--hd-red-text);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hd-founder__step:hover .hd-founder__num {
    background: var(--hd-red);
    color: var(--hd-white);
}

.hd-founder__step-title {
    margin-bottom: 8px;
    color: var(--hd-white);
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
}

.hd-founder__text {
    color: var(--hd-text);
    font-size: 17px;
    line-height: 30px;
}

.hd-founder__close {
    margin-top: 30px;
    color: var(--hd-white);
    font-size: 17px;
    line-height: 30px;
}

.hd-founder__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 34px;
    margin-top: 30px;
}

.hd-founder__sign {
    color: var(--hd-white);
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    font-style: italic;
}

.hd-founder__media {
    position: relative;
    padding: 50px 0 50px 50px;
}

.hd-founder__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(191, 39, 47, 0.7);
    border-radius: 50%;
    animation: hd-founder-spin 24s linear infinite;
    pointer-events: none;
}

.hd-founder__ring::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 36px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hd-red);
}

.hd-founder__dots {
    position: absolute;
    right: -20px;
    bottom: 10px;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
}

.hd-founder__frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px 60px 6px 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hd-founder__frame {
    background: var(--hd-bg);
}

/* The source photo has small white rounded corners baked in; scale it a
   touch inside the clipped frame so no white shows at the radius. */
.hd-founder__frame img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.06);
    transform-origin: center;
}

.hd-founder__badge {
    position: absolute;
    left: 0;
    bottom: 90px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
    border-radius: 4px 16px 4px 16px;
    background: var(--hd-red);
    color: var(--hd-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    animation: hd-bob 4s ease-in-out infinite;
}

.hd-founder__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hd-founder__badge strong {
    display: block;
    font-size: 38px;
    line-height: 42px;
    font-weight: 700;
}

.hd-founder__badge-label {
    display: block;
    font-size: 13px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes hd-founder-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1199px) {
    .hd-founder__grid {
        gap: 50px;
    }
}

@media (max-width: 991px) {
    .hd-founder__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hd-founder__media {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .hd-founder__lead {
        font-size: 18px;
        line-height: 28px;
    }

    .hd-founder__step {
        gap: 18px;
        padding: 22px 0;
    }

    .hd-founder__num {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .hd-founder__step-title {
        font-size: 20px;
        line-height: 28px;
    }

    .hd-founder__text,
    .hd-founder__close {
        font-size: 16px;
        line-height: 27px;
    }

    .hd-founder__media {
        padding: 30px 0 30px 24px;
    }

    .hd-founder__ring {
        width: 200px;
        height: 200px;
    }

    .hd-founder__dots {
        right: 0;
        width: 110px;
        height: 110px;
    }

    .hd-founder__badge {
        bottom: 50px;
        padding: 14px 18px;
        gap: 10px;
    }

    .hd-founder__badge-icon {
        width: 42px;
        height: 42px;
    }

    .hd-founder__badge strong {
        font-size: 30px;
        line-height: 34px;
    }

    .hd-founder__badge-label {
        font-size: 11px;
        line-height: 15px;
    }
}

/* ==========================================================================
   Featured Portfolio / The Partnership (v1.0.40)
   Inspired by the reference "Features Portfolio" slider: centred heading,
   3 square image cards, round white arrows, inset panel that slides up on hover.
   ========================================================================== */

.hd-portfolio__head {
    max-width: 820px;
    margin: 0 auto 60px;
    text-align: center;
}

.hd-portfolio__head .hd-lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hd-portfolio__slider {
    position: relative;
    --hd-pf-gap: 30px;
    --hd-pf-per: 3;
}

.hd-portfolio__viewport {
    overflow: hidden;
    border-radius: 10px;
    touch-action: pan-y;
}

.hd-portfolio__track {
    display: flex;
    gap: var(--hd-pf-gap);
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.hd-portfolio__track.is-jumping {
    transition: none;
}

.hd-portfolio__slide {
    flex: 0 0 calc((100% - (var(--hd-pf-per) - 1) * var(--hd-pf-gap)) / var(--hd-pf-per));
    min-width: 0;
    outline: none;
}

.hd-portfolio__card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--hd-card);
}

.hd-portfolio__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hd-portfolio__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 17, 29, 0) 45%, rgba(6, 17, 29, 0.9) 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hd-portfolio__label {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 26px;
    z-index: 1;
    color: var(--hd-white);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hd-portfolio__content {
    position: absolute;
    inset: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hd-portfolio__icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(19, 44, 65, 0.15);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease 0.1s, background-color 0.3s ease;
}

.hd-portfolio__icon::before {
    content: "";
    position: absolute;
    inset: 13px 15px;
    background: var(--hd-red);
    -webkit-mask: var(--hd-icon) center / contain no-repeat;
    mask: var(--hd-icon) center / contain no-repeat;
}

.hd-portfolio__title {
    color: #132C41;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.hd-portfolio__text {
    margin-top: 12px;
    color: #212838;
    font-size: 16px;
    line-height: 26px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.hd-portfolio__slide:hover .hd-portfolio__img,
.hd-portfolio__slide:focus-within .hd-portfolio__img {
    transform: scale(1.06);
}

.hd-portfolio__slide:hover .hd-portfolio__label,
.hd-portfolio__slide:focus-within .hd-portfolio__label {
    opacity: 0;
    transform: translateY(20px);
}

.hd-portfolio__slide:hover .hd-portfolio__content,
.hd-portfolio__slide:focus-within .hd-portfolio__content {
    opacity: 1;
    visibility: visible;
}

.hd-portfolio__slide:hover .hd-portfolio__icon,
.hd-portfolio__slide:focus-within .hd-portfolio__icon {
    transform: scale(1);
}

.hd-portfolio__slide:hover .hd-portfolio__title,
.hd-portfolio__slide:hover .hd-portfolio__text,
.hd-portfolio__slide:focus-within .hd-portfolio__title,
.hd-portfolio__slide:focus-within .hd-portfolio__text {
    opacity: 1;
    transform: translateY(0);
}

.hd-portfolio__slide:focus-visible .hd-portfolio__card {
    box-shadow: 0 0 0 2px var(--hd-red);
}

.hd-portfolio__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-top: -32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hd-white);
    color: #132C41;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hd-portfolio__arrow:hover,
.hd-portfolio__arrow:focus-visible {
    background: var(--hd-red);
    color: var(--hd-white);
}

.hd-portfolio__arrow--prev {
    left: -32px;
}

.hd-portfolio__arrow--prev svg {
    transform: rotate(180deg);
}

.hd-portfolio__arrow--next {
    right: -32px;
}

.hd-portfolio__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.hd-portfolio__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hd-line);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.hd-portfolio__dot.is-active {
    width: 30px;
    border-radius: 5px;
    background: var(--hd-red);
}

@media (max-width: 1399px) {
    .hd-portfolio__arrow--prev {
        left: 12px;
    }

    .hd-portfolio__arrow--next {
        right: 12px;
    }
}

@media (max-width: 1024px) {
    .hd-portfolio__slider {
        --hd-pf-per: 2;
        --hd-pf-gap: 24px;
    }
}

@media (max-width: 767px) {
    .hd-portfolio__head {
        margin-bottom: 40px;
    }

    .hd-portfolio__slider {
        --hd-pf-per: 1;
    }

    .hd-portfolio__arrow {
        display: none;
    }

    .hd-portfolio__label {
        left: 22px;
        right: 22px;
        font-size: 21px;
        line-height: 28px;
    }

    .hd-portfolio__content {
        padding: 24px;
    }

    .hd-portfolio__title {
        font-size: 21px;
        line-height: 28px;
    }
}

/* Touch screens have no hover: image on top, white content panel below it. */
@media (hover: none) {
    .hd-portfolio__label,
    .hd-portfolio__card::after {
        display: none;
    }

    .hd-portfolio__card {
        display: flex;
        flex-direction: column;
        height: 100%;
        aspect-ratio: auto;
        background: var(--hd-white);
    }

    .hd-portfolio__img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .hd-portfolio__content {
        position: relative;
        inset: auto;
        flex: 1 1 auto;
        justify-content: flex-start;
        border-radius: 0;
        background: var(--hd-white);
        opacity: 1;
        visibility: visible;
    }

    .hd-portfolio__icon {
        position: relative;
        top: auto;
        right: auto;
        flex: 0 0 auto;
        margin-bottom: 16px;
        transform: none;
    }

    .hd-portfolio__title,
    .hd-portfolio__text {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd-portfolio__track,
    .hd-portfolio__img {
        transition: none;
    }
}

/* ==========================================================================
   12-section restructure (v1.0.42)
   ========================================================================== */

/* Why DemandStream: 15+ years line, team row, Meet the Team link */
.hd-about__exp {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
    color: var(--hd-white);
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

.hd-about__exp-num {
    flex: none;
    color: var(--hd-red-text);
    font-size: 46px;
    line-height: 1;
    font-weight: 700;
}

.hd-about__team {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--hd-line);
}

.hd-about__members {
    flex: none;
    width: 164px;
    height: auto;
}

.hd-about__team p {
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
}

.hd-about .hd-about__footer {
    gap: 34px;
    margin-top: 40px;
}

/* Services: Plumbing / HVAC split under the 8 service cards */
.hd-services__split {
    margin: 70px 0 34px;
    text-align: center;
}

.hd-services__split-title {
    color: var(--hd-white);
    font-size: 30px;
    line-height: 38px;
    font-weight: 700;
}

.hd-services__split-lead {
    margin-top: 10px;
    color: var(--hd-text);
    font-size: 17px;
    line-height: 27px;
}

.hd-services .hd-trades__grid {
    margin-top: 0;
}

/* Proven Results: "Your Market" card */
.hd-case--market {
    border: 1px dashed var(--hd-red);
    background: linear-gradient(160deg, var(--hd-navy) 0%, var(--hd-bg) 100%);
}

.hd-case--market .hd-case__shade {
    background: radial-gradient(circle at 80% 15%, rgba(191, 39, 47, 0.28), transparent 60%);
}

/* Reviews CTA */
.hd-reviews__cta {
    margin-top: 34px;
    text-align: center;
}

/* Process: What Every Month Includes */
.hd-includes {
    margin-top: 70px;
    padding-top: 60px;
    border-top: 1px solid var(--hd-line);
}

.hd-includes__title {
    margin-bottom: 40px;
    color: var(--hd-white);
    font-size: 30px;
    line-height: 38px;
    font-weight: 700;
    text-align: center;
}

.hd-includes__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.hd-includes__item {
    flex-direction: column;
    gap: 18px;
    padding: 30px 26px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-card);
}

.hd-includes__item .hd-feature__title {
    margin: 0;
    color: var(--hd-white);
    font-size: 21px;
    line-height: 28px;
    font-weight: 500;
}

.hd-includes__item .hd-feature__text {
    margin-top: 10px;
}

/* Straight Talk: Not for Everyone */
.hd-fit__note {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 26px 30px;
    border: 1px solid var(--hd-line);
    border-radius: 6px;
    background: var(--hd-card);
}

.hd-fit__note-icon {
    flex: none;
    width: 46px;
    height: 46px;
    background: var(--hd-red);
    -webkit-mask: var(--hd-icon) center / contain no-repeat;
    mask: var(--hd-icon) center / contain no-repeat;
}

.hd-fit__note-title {
    color: var(--hd-white);
    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
}

.hd-fit__note-text {
    margin-top: 6px;
    color: var(--hd-text);
    font-size: 15px;
    line-height: 24px;
}

/* Marketing Guides: compact blog strip */
.hd-blog--compact .hd-post__media {
    aspect-ratio: 16 / 9;
}

.hd-blog--compact .hd-post__body {
    padding-top: 22px;
    padding-bottom: 24px;
}

.hd-blog--compact .hd-post__title {
    margin-bottom: 16px;
    font-size: 19px;
    line-height: 27px;
}

@media (max-width: 1024px) {
    .hd-includes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hd-includes__grid {
        grid-template-columns: 1fr;
    }

    .hd-about__exp-num {
        font-size: 38px;
    }

    .hd-about__team {
        flex-direction: column;
        align-items: flex-start;
    }

    .hd-about .hd-about__footer {
        flex-wrap: wrap;
        gap: 22px;
    }

    .hd-fit__note {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px;
    }

    .hd-services__split-title,
    .hd-includes__title {
        font-size: 26px;
        line-height: 34px;
    }
}

/* ==========================================================================
   Even section rhythm (keep last): every section gets the same top/bottom
   spacing, and backgrounds alternate so each section reads as its own band.
   ========================================================================== */

.hd-section,
.hd-team,
.hd-stats,
.hd-band {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Order: hero, stats, services, about, cases, reviews, founder, process, partnership, pricing, fit, blog, faq, contact */
.hd-services,
.hd-cases,
.hd-founder,
.hd-portfolio,
.hd-fit,
.hd-faq {
    background-color: var(--hd-bg-2);
}

.hd-about,
.hd-reviews,
.hd-process,
.hd-pricing,
.hd-blog,
.hd-contact {
    background-color: var(--hd-bg);
}

.hd-blog .hd-post {
    background: var(--hd-bg);
}

@media (max-width: 767px) {
    .hd-section,
    .hd-team,
    .hd-stats,
    .hd-band {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

/* ==========================================================================
   Reference button style (v1.0.36): leaf-shaped corners (small radius, larger
   top-right / bottom-left), solid fill that turns transparent with red text on
   hover; outline buttons fill on hover; arrow nudges right.
   ========================================================================== */
.hd-btn,
.hd-body .home-lead-form__submit {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--hd-red);
    border-radius: 4px 16px 4px 16px;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.hd-btn:hover,
.hd-btn:focus-visible,
.hd-body .home-lead-form__submit:hover,
.hd-body .home-lead-form__submit:focus-visible {
    background: transparent;
    border-color: var(--hd-red);
    color: var(--hd-red) !important;
    transform: none;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.15);
}

.hd-header__phone:hover .hd-icon,
.hd-header__phone:focus-visible .hd-icon {
    color: var(--hd-red-text);
}

.hd-btn--outline {
    background: transparent;
    color: var(--hd-red) !important;
}

.hd-btn--outline:hover,
.hd-btn--outline:focus-visible {
    background: var(--hd-red);
    color: var(--hd-white) !important;
}

.hd-btn--arrow:hover .hd-icon,
.hd-btn--arrow:focus-visible .hd-icon {
    transform: translateX(5px);
}

/* Popular (red) pricing card: white outline button, fills white on hover */
.hd-plan--popular .hd-plan__btn {
    border-color: var(--hd-white);
    color: var(--hd-white) !important;
}

.hd-plan--popular .hd-plan__btn:hover,
.hd-plan--popular .hd-plan__btn:focus-visible {
    background: var(--hd-white);
    border-color: var(--hd-white);
    color: var(--hd-red) !important;
}
