.hero-section::after,
.hero-section::before {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}
.hero-section,
.hero-section-inner {
    min-height: 100vh;
    position: relative;
}
.hero-background,
.hero-section {
    position: relative;
}
.hero-section {
    width: 100%;
    overflow: hidden;
}
.hero-section::before {
    background: url('../img/hero_bg_scale\,w_683.webp') ;
    z-index: 0;
}
.hero-section::after {
    /* Updated background overlay */
    /* background: #14487Fe8; */
    background: #14487fdb;
    z-index: 1;
}
.hero-section-inner {
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 50vw;
}
.hero-content-wrapper {
    display: grid;
    align-content: center;
    padding-block: 3rem;
    justify-items: end;
    background-image: linear-gradient(rgba(120, 120, 110, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 120, 110, .07) 1px, transparent 1px);
    background-size: 34px 34px;
}
.hero-content {
    color: #fff;
    max-width: 75ch;
    /* Use the site's font family */
    font-family: var(--font-family); 
}
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1.25rem 0.35rem 0.35rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.hero-tagline .tagline-badge {
    background: var(--red-500);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hero-tagline .tagline-text {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-content h1 {
    font-size: clamp(3rem, 4.4vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}
.hero-content h2 {
    font-size: clamp(1.5rem, 6vw, 1rem);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: .95;
    line-height: 1.6;
    color: #fff;
}
.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: .95;
    font-weight: 300;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.cta-buttons .btn-primary {
    align-self: auto;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 16px 35px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .3s;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 187px;
    min-height: 62px;
    font-family: var(--font-family);
}
.hero-background,
.hero-background img {
    width: 100%;
    height: 100%;
    min-height: 100%;
}
.cta-button.primary {
    background: var(--red-500);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(232, 5, 12, 0.25);
}
.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 5, 12, 0.45);
}
.cta-button.secondary {
    background: 0 0;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.cta-button.secondary:hover {
    background: rgba(232, 5, 12, 0.9);
    border-color: rgba(232, 5, 12, 0.9);
    transform: translateY(-2px);
}
.hero-background img {
    object-fit: cover;
    clip-path: url(#custom-shape-clip);
    display: block;
}
.hero-background svg {
    width: 0;
    height: 0;
    position: absolute;
}
/* Hero service cards */
.hero-service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.1rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(237, 233, 195, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    text-align: center;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hero-service-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.hsc-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}
.hsc-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red-500);
}
@media (max-width: 640px) {
    .hero-service-cards {
        grid-template-columns: 1fr;
    }
}


/* @media (min-width: 1024px) {
    .content-grid {
        --padding-inline: 3rem;
    }
} */
@media (max-width: 1024px) {
    .hero-section-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(50vh, auto);
    }
    .hero-content-wrapper {
        order: 1;
        justify-items: center;
    }
    .hero-background {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 50vh;
    }
    .hero-background img {
        clip-path: url(#custom-shape-clip-mobile);
        width: 100%;
        height: 100%;
        min-height: 50vh;
    }
    .hero-content {
        text-align: center;
    }
    .cta-buttons {
        justify-content: center;
    }
    .hero-section::before {
        background: url('../img/hero_bg_scale\,w_449.webp');
    }
}
@media (max-width: 640px) {
    .hero-section-inner {
        grid-template-rows: auto minmax(40vh, auto);
    }
    .hero-background,
    .hero-background img {
        min-height: 40vh;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        justify-content: center;
    }
}

/* Glassmorphism Hero Buttons */
.hero-content .cta-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.5rem;
}
.hero-content .cta-buttons .btn-primary::before {
    display: none;
}
.hero-content .cta-buttons .btn-primary::after {
    border-radius: 0.5rem;
}
.hero-content .cta-buttons .btn-primary .btn-label {
    color: #ffffff !important;
}
.hero-content .cta-buttons .btn-primary .btn-circle {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-content .cta-buttons .btn-primary:hover .btn-circle {
    background: var(--red-500) !important;
    border-color: var(--red-500);
}
