/* Buttons */
.btn-glow {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.btn-glow:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-primary-glow);
}

/* Cards */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    transition: 0.3s;
    position: relative;
}



.card-glass:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 150px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1a1a1e 0%, #121214 60%);
    overflow: hidden;
    /* Angled bottom cut */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Standardized Hero Background with Overlay */
.hero-bg {
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    position: relative;
    /* Reset default gradient if applied via style attribute, handled by class now partially */
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Standardized Dark Overlay */
    z-index: 1;
}

.hero-bg>.container {
    position: relative;
    z-index: 2;
}

.section-angled {
    margin-top: -50px;
    /* Overlap slightly */
    padding-top: 100px;
    padding-bottom: 100px;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.section-angled-reverse {
    margin-top: -50px;
    padding-top: 100px;
    padding-bottom: 100px;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

/* Ensure content isn't cut off by clip-path */
.container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #A8A8B3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 216, 0, 0.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--color-primary);
}

/* Section Title Alignment Overrides */
.section-title.text-left::after,
.text-left .section-title::after,
.section-title.text-start::after,
.text-start .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

.section-title.text-right::after,
.text-right .section-title::after,
.section-title.text-end::after,
.text-end .section-title::after {
    margin-left: auto;
    margin-right: 0;
}

/* Utilities for Refactor */
.section-padding {
    padding: 100px 0;
}

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

.section-padding-y {
    padding-top: 80px;
    padding-bottom: 40px;
}

.bg-secondary {
    background: var(--color-bg-secondary);
}

.bg-white-custom {
    background: #ffffff;
    color: #333;
}

.bg-glass-light {
    background: rgba(255, 255, 255, 0.02);
}

.bg-transparent {
    background: transparent !important;
}

.no-overlay::after {
    display: none !important;
    content: none !important;
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-dark-primary {
    color: #111;
}

.text-dark-secondary {
    color: #666;
}

.text-light-secondary {
    color: #ccc;
}

.text-lg {
    font-size: 1.2rem;
}

.text-md {
    font-size: 1.1rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.container-narrow-sm {
    max-width: 700px;
    margin: 0 auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {

    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Spacing Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

/* WhatsApp Lead Button */
.whatsapp-float-dwt {
    position: fixed;
    right: 50px;
    bottom: 126px;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10010;
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: whatsapp-dwt-pulse 2.4s infinite;
}

.whatsapp-float-dwt:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2fe477, #0d7d71);
    box-shadow: 0 16px 34px rgba(18, 140, 126, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.whatsapp-float-dwt__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float-dwt__badge.show {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-float-dwt__tooltip {
    position: absolute;
    right: 78px;
    top: 50%;
    min-width: 230px;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    color: #151515;
    border-radius: 8px;
    padding: 12px 36px 12px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.whatsapp-float-dwt__tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #fff;
}

.whatsapp-float-dwt__tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.whatsapp-float-dwt__tooltip-close {
    position: absolute;
    top: 4px;
    right: 9px;
    color: #777;
    font-size: 1.35rem;
    line-height: 1;
}

.whatsapp-float-dwt__tooltip-close:hover {
    color: #111;
}

.whatsapp-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.whatsapp-lead-modal.active {
    display: flex;
    opacity: 1;
}

.whatsapp-lead-modal__panel {
    width: min(100%, 460px);
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    color: #1b1b1b;
    border: 1px solid rgba(37, 211, 102, 0.22);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35), 0 0 32px rgba(37, 211, 102, 0.1);
    transform: translateY(16px);
    transition: transform 0.2s ease;
}

.whatsapp-lead-modal.active .whatsapp-lead-modal__panel {
    transform: translateY(0);
}

.whatsapp-lead-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f2f4f3;
    color: #333;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.whatsapp-lead-modal__close:hover {
    background: #e6f4ec;
}

.whatsapp-lead-modal__header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 34px;
}

.whatsapp-lead-modal__icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

.whatsapp-lead-modal__header h3 {
    color: #151515;
    margin: 0 0 4px;
    font-size: 1.55rem;
}

.whatsapp-lead-modal__header p {
    color: #666;
    margin: 0;
}

.whatsapp-lead-form label {
    display: block;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.whatsapp-lead-form .form-control {
    background: #fff;
    border-color: #dcdcdc;
    color: #1b1b1b;
}

.whatsapp-lead-form .form-control:focus {
    border-color: #25d366;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.14);
}

.whatsapp-lead-form__recaptcha {
    min-height: 78px;
    display: flex;
    justify-content: center;
    margin: 2px 0 18px;
}

.whatsapp-lead-form__submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.whatsapp-lead-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.22);
}

.whatsapp-lead-form__submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

@keyframes whatsapp-dwt-pulse {
    0% {
        box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.55);
    }

    70% {
        box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35), 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float-dwt {
        right: 22px;
        bottom: 112px;
        width: 58px;
        height: 58px;
        font-size: 1.8rem;
    }

    .whatsapp-float-dwt__tooltip {
        display: none;
    }

    .whatsapp-lead-modal {
        align-items: flex-end;
        padding: 14px;
    }

    .whatsapp-lead-modal__panel {
        width: 100%;
        padding: 26px 18px 20px;
    }
}
