/* -------------------------------------------------------------
   Home Assist - Base Styles
   - Bootstrap-friendly (doesn't fight utilities)
   - Minimal, modern, clean
-------------------------------------------------------------- */

/* Theme tokens (easy to tune later) */
:root{
    --primary: #0f2347;
    --secondary: #1f4fd8;
    --accent: #4c7dff;
    --offwhite: #f6f7f9;
    --ha-radius: 14px;
    --ha-shadow-sm: 0 6px 18px rgba(0,0,0,.08);
    --ha-shadow-md: 0 12px 28px rgba(0,0,0,.10);
    --ha-border: rgba(0,0,0,.08);
    --ha-muted: rgba(255,255,255,.70);
    --ha-navy: rgb(15, 35, 71); /* #0f2347 */
}

/* Global */
html { scroll-behavior: smooth; }
body{
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.btn{
    text-transform: uppercase;
}
.btn-primary{
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover{
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-outline-primary{
    background-color: #fff;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
footer{
    background-color: var(--primary);
}

/* Links */
a{
    transition: opacity .15s ease, transform .15s ease, color .15s ease;
}
a:hover{
    opacity: .92;
}
.logo-img{
    max-width: 180px;
}
.grey-bg{
    background: var(--offwhite) !important;
}
.blue-bg{
    background: var(--primary) !important;
    color: #fff !important;
}
.section-pad-top{
    padding-top: 6rem !important;
}
.section-pad-bottom{
    padding-bottom: 6rem !important;
}
.section-title{
    position: relative;
    font-weight: 700;
    font-size: 4rem !important;
    color: var(--primary);
}
.section-pretitle{
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    background: var(--secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin-bottom: 5px;
}
.section-pretitle::after{
    position: absolute;
    content: "";
    width: 40px;
    height: 3px;
    right: -48px;
    bottom: 5px;
    background: var(--secondary);
}
.blue-bg .section-title{
    color: #fff !important;
}
.blue-bg .section-pretitle{
    background: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blue-bg .section-pretitle::after{
    background: #fff;
}

/* -------------------------------------------------------------
   Top Bar
-------------------------------------------------------------- */
#topBar{
    background: var(--primary);
    transition: height .18s ease, opacity .18s ease;
    will-change: height, opacity;
}
#topBar.ha-topbar-collapsed{
    opacity: 0;
    pointer-events: none;
}

#topBar a{
    opacity: .95;
    color: #fff;
}
#topBar a:hover{
    opacity: 1;
    color: #fff;
}

/* -------------------------------------------------------------
   Navbar
-------------------------------------------------------------- */
.navbar{
    backdrop-filter: saturate(180%) blur(10px);
}
.navbar.bg-white{
    background-color: rgba(255,255,255,.96) !important;
}
.navbar .navbar-brand span{
    letter-spacing: .2px;
}
.navbar .nav-link{
    font-weight: 500;
    border-radius: 10px;
    padding: .55rem .85rem;
}
.navbar .nav-link:hover{
    background: rgba(0,0,0,.04);
}
.navbar .nav-link.active{
    background: rgba(13,110,253,.10);
    color: #0d6efd;
}

/* Make the sticky nav feel “lifted” */
.navbar.sticky-top{
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* Mobile spacing refinements */
@media (max-width: 991.98px){
    .navbar .navbar-nav{
        padding-top: .75rem;
        padding-bottom: .75rem;
    }
    .navbar .btn{
        width: 100%;
        margin-top: .5rem;
    }
}

/* -------------------------------------------------------------
   Buttons
-------------------------------------------------------------- */
.btn{
    border-radius: 12px;
    padding: .65rem 1rem;
}
.btn-primary{
    box-shadow: 0 10px 22px rgba(13,110,253,.18);
}
.btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(13,110,253,.22);
}
.btn-primary:active{
    transform: translateY(0);
}

/* -------------------------------------------------------------
   Main Content Area (future-proof)
-------------------------------------------------------------- */
main.container{
    min-height: 55vh;
}

/* Simple content cards you’ll likely use later */
.ha-card{
    border: 1px solid var(--ha-border);
    border-radius: var(--ha-radius);
    box-shadow: var(--ha-shadow-sm);
    background: #fff;
}
.ha-card:hover{
    box-shadow: var(--ha-shadow-md);
}

/* -------------------------------------------------------------
   Hero Area
 --------------------------------------------------------------*/
.hero-headline {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    font-size: 5rem;
}
.hero-left-zone .card{
    border: 1px solid var(--ha-border)
}

/* Keep carousel clipped to rounded corners */
/* Keep carousel clipped to rounded corners */
.hero-carousel {
    overflow: hidden;
}

/* Slide wrapper so overlay travels with the image */
.hero-slide {
    position: relative;
}

.hero-slide-img {
    width: 100%;
    height: 960px;
    object-fit: cover;
    display: block;
}

/* PNG shape overlay that MOVES with each slide */
.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 32%;              /* adjust if you want more/less shape coverage */
    z-index: 2;
    pointer-events: none;

    background-image: url("../img/banner-main-shape.png"); /* <-- update path if needed */
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover; /* keeps the PNG proportions */
    margin-left: -1px; /* fix slight gap on left edge */
}

.hero-left-zone{
    position: relative;
}

/* ensure left content is above shapes */
.hero-left-zone > .row,
.hero-left-zone h1,
.hero-left-zone p,
.hero-left-zone .card{
    position: relative;
    z-index: 2;
}

.hero-bg-shape{
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* stagger + independent motion */
.hero-bg-shape-1{
    top: -200px;
    left: -40px;
    width: 480px;
    animation: heroFloatA 14s ease-in-out infinite;
}

.hero-bg-shape-2{
    top: 80px;
    left: 320px;
    width: 480px;
    animation: heroFloatB 14s ease-in-out infinite;
}

@keyframes heroFloatA {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(0, 50px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes heroFloatB {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(0, -50px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce){
    .hero-bg-shape-1,
    .hero-bg-shape-2{
        animation: none;
    }
}

/* -------------------------------------------------------------
   Help Section
-------------------------------------------------------------- */
/* Here to Help icons */
.help-icon{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: rgba(13,110,253,0.10); /* uses Bootstrap primary feel */
    color: #fff;
    font-size: 20px;
    line-height: 1;
}
.help-cta a{
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
}
.help-cta a:hover .bi-arrow-right{
    display: inline-block;
    animation: letsGo 0.6s ease-in-out infinite;
}
@keyframes letsGo {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(10px, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* -------------------------------------------------------------
   Testimonials Section
-------------------------------------------------------------- */

/* Testimonials slider */
.testimonial-slider{
    position: relative;
    overflow: hidden;
    padding: 6px; /* gives highlighted card breathing room */
}

.testimonial-track{
    display: flex;
    gap: 16px;
    transition: transform 450ms ease;
    will-change: transform;
}

/* Each slide is a card container */
.testimonial-slide{
    flex: 0 0 calc(100% - 0px); /* mobile default: 1 per view */
}

@media (min-width: 768px){
    .testimonial-slide{ flex-basis: calc(50% - 8px); } /* md: 2 per view */
}

@media (min-width: 992px){
    .testimonial-slide{ flex-basis: calc(33.333% - 10.666px); } /* lg+: 3 per view */
}

/* Base card (unchanged behavior, slight transition for polish) */
.testimonial-card{
    transition:
            transform 300ms ease,
            box-shadow 300ms ease,
            background-color 300ms ease;
}

/* Highlighted (center) testimonial */
.testimonial-card.is-active{
    background: var(--primary);
    color: #fff;

    /* subtle scale-up */
    transform: scale(1.05);
}

/* Increase star size in highlighted card */
.testimonial-card.is-active .testimonial-stars{
    font-size: 1.25rem;
}

/* Increase testimonial text size */
.testimonial-card.is-active p{
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Slightly larger name/location for emphasis */
.testimonial-card.is-active .fw-semibold{
    font-size: 1.05rem;
}

.testimonial-card.is-active .testimonial-meta{
    font-size: .95rem;
}
.testimonial-slide{
    padding: 6px 0;
}

/* -------------------------------------------------------------
   FAQ Section
-------------------------------------------------------------- */
/* FAQ background */
.faq-section{
    background: url("../img/faq-bg.jpg") no-repeat center center / cover;
}

/* Optional: add a subtle overlay for readability (remove if you don't want it) */
.faq-section::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.faq-section{
    position: relative;
}
.faq-section > .container-fluid{
    position: relative;
    z-index: 1;
}

/* Accordion styling polish */
.faq-section .accordion-item{
    border: 0;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.08);
}

.faq-section .accordion-button{
    font-weight: 600;
}

.faq-right{
    position: relative;
}

.faq-img{
    max-height: 420px; /* adjust to taste */
    object-fit: contain;
}
.faq-img-display{
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 20px;
}

/* ===========================
           About Page - Scoped Styles
        ============================ */

.about-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background-color: var(--primary);
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
            radial-gradient(600px 300px at 20% 30%, rgba(255,255,255,.12), transparent 60%),
            radial-gradient(600px 300px at 80% 70%, rgba(255,255,255,.10), transparent 60%);
    pointer-events: none;
}

.about-hero .hero-inner {
    position: relative;
    z-index: 1;
    padding: 5rem 0 3.5rem;
}

@media (max-width: 991.98px) {
    .about-hero .hero-inner { padding: 4rem 0 3rem; }
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
}

.about-title {
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.glass-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
}

.soft-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.04);
}

.icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}
.icon-badge-dark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 35, 71, 0.7);
    color: var(--primary);
}

.icon-badge i, .icon-badge-dark i {
    font-size: 22px;
}

.highlight-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    box-shadow: 0 24px 60px rgba(0,0,0,.20);
}

.about-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
}

.about-grid .a { grid-column: span 7; }
.about-grid .b { grid-column: span 5; }

@media (max-width: 991.98px) {
    .about-grid .a,
    .about-grid .b { grid-column: 1 / -1; }
}

.stat-pill {
    border-radius: 999px;
    padding: .6rem .9rem;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
}

.timeline {
    position: relative;
    padding-left: 1.25rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: .25rem;
    bottom: .25rem;
    left: .45rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255,255,255,.25), rgba(255,255,255,.05));
}

.timeline-item {
    position: relative;
    padding: 0 0 1.25rem 1.25rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: .22rem;
    top: .35rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 0 0 6px rgba(255,255,255,.10);
}

.trust-strip {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background:
            radial-gradient(700px 250px at 15% 50%, rgba(255,255,255,.10), transparent 60%),
            radial-gradient(700px 250px at 85% 50%, rgba(255,255,255,.08), transparent 60%),
            linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

/* ========================
   Contact Section
    ========================*/

.contact-hero{
    background:
            radial-gradient(900px 420px at 15% 20%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
            radial-gradient(900px 420px at 85% 10%, rgba(255,255,255,.08), rgba(255,255,255,0) 55%),
            linear-gradient(135deg, var(--ha-navy), #08142b);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.contact-hero::after{
    content:"";
    position:absolute;
    inset:-2px;
    background:
            radial-gradient(700px 260px at 80% 80%, rgba(255,255,255,.08), rgba(255,255,255,0) 55%);
    pointer-events:none;
}

.contact-hero .hero-card{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.soft-card{
    border: 1px solid rgba(15,35,71,.10);
    box-shadow: 0 12px 32px rgba(15,35,71,.08);
}

.icon-badge{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,35,71,.08);
}

.form-hint{
    font-size: .92rem;
    color: rgba(255,255,255,.80);
}

.map-frame{
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 18px;
}

.required-dot{
    color: #ffc107;
    font-weight: 700;
    margin-left: 2px;
}

/* -------------------------------------------------------------
   Footer
-------------------------------------------------------------- */
footer{
    background: var(--primary);
}
footer h6{
    letter-spacing: .06em;
}
footer .text-muted{
    color: rgba(255,255,255,.65) !important;
}
footer a.text-light{
    opacity: .92;
}
footer a.text-light:hover{
    opacity: 1;
    text-decoration: underline;
}

/* Sub-footer border blend */
footer .border-secondary{
    border-color: rgba(255,255,255,.14) !important;
}

/* -------------------------------------------------------------
   Scroll To Top Button
-------------------------------------------------------------- */
#scrollToTop{
    border-radius: 999px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(0,0,0,.22);
}
#scrollToTop:hover{
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   Form polish (will help once we add prequal/contact forms)
-------------------------------------------------------------- */
.form-control,
.form-select{
    border-radius: 12px;
}
.form-control:focus,
.form-select:focus{
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* -------------------------------------------------------------
   Utility helpers (optional)
-------------------------------------------------------------- */
.ha-section{
    padding: 3rem 0;
}
.ha-section-title{
    letter-spacing: .2px;
}


/* -------------------------------------------------------------
   Responsive Adjustments
-------------------------------------------------------------- */

@media (max-width: 991.98px){

    /* Reduce floating shapes size */
    .hero-bg-shape-1{
        top: -20px;
        left: -40px;
        width: 250px; /* 50% of desktop */
    }

    .hero-bg-shape-2{
        top: 80px;
        left: 200px;
        width: 250px; /* 50% of desktop */
    }
    .hero-headline {
        font-size: 3rem;
    }
    #heroCarousel{
        display: none;
    }
    .section-title {
        font-size: 3rem !important;
    }
}
