/* =====================================================
   HICAP SERVICES OF NORTHERN CALIFORNIA
   Main Stylesheet
===================================================== */
:root{
    --primary:#005A9C;
    --primary-dark:#00487c;
    --secondary:#00897B;
    --accent:#F4B400;
    --light:#F8FAFC;
    --dark:#1F2937;
    --gray:#6B7280;
    --border:#E5E7EB;
}
/* =====================================================
   GLOBAL
===================================================== */
html{
    scroll-behavior:smooth;
}
body{
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:#fff;
    color:var(--dark);
    line-height:1.7;
}
a{
    text-decoration:none;
}
section{
    position:relative;
}
img{
    max-width:100%;
}
/* =====================================================
   TOP BAR
===================================================== */
.top-bar{
    background:#f8fafc;
    border-bottom:1px solid var(--border);
    font-size:.9rem;
    color:var(--dark);
}
.top-bar i{
    color:var(--primary);
}
/* =====================================================
   NAVBAR
===================================================== */
.navbar{
    background:var(--primary) !important;
    padding:.9rem 0;
    transition:.3s;
}
.navbar-brand{
    font-size:1.4rem;
    letter-spacing:.5px;
}
.navbar-brand img{
    border-radius:6px;
}
.navbar .nav-link{
    color:white !important;
    font-weight:500;
    padding:.8rem 1rem !important;
}
.navbar .nav-link:hover{
    color:#dbeafe !important;
}
.dropdown-menu{
    border:none;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.dropdown-item{
    padding:.7rem 1rem;
}
.dropdown-item:hover{
    background:#eef6ff;
}
/* =====================================================
   HERO
===================================================== */
.hero-section{
    background:
        linear-gradient(
            rgba(0,90,156,.85),
            rgba(0,90,156,.75)
        ),
        url('../images/hero.jpg');
    background-size:cover;
    background-position:center;
    color:white;
    padding:120px 0;
}
.hero-section h1{
    line-height:1.15;
}
.hero-section .lead{
    font-size:1.2rem;
    opacity:.95;
}
.hero-image{
    max-height:420px;
}
.hero-badge{
    display:inline-block;
    background:rgba(255,255,255,.15);
    color:white;
    padding:10px 18px;
    border-radius:30px;
    backdrop-filter:blur(5px);
    font-size:.9rem;
    font-weight:600;
}
/* =====================================================
   BUTTONS
===================================================== */
.btn-primary{
    background:var(--primary);
    border-color:var(--primary);
}
.btn-primary:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
}
.btn-warning{
    color:#111827;
    font-weight:600;
}
.btn-lg{
    border-radius:10px;
    padding:.8rem 1.5rem;
}
/* =====================================================
   CARDS
===================================================== */
.card{
    border:none;
    border-radius:16px;
    overflow:hidden;
    transition:.3s ease;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}
.card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}
.card-body{
    padding:2rem;
}
.card h4{
    margin-top:.5rem;
    margin-bottom:1rem;
    font-weight:700;
}
/* =====================================================
   COUNTIES
===================================================== */
.county-badge{
    background:var(--secondary);
    color:white;
    margin:6px;
    padding:10px 18px;
    border-radius:30px;
    font-size:.95rem;
    font-weight:500;
}
/* =====================================================
   STATS SECTION
===================================================== */
.stats-section h2{
    color:var(--primary);
    font-weight:700;
}
.stats-section p{
    color:var(--gray);
}
/* =====================================================
   CTA SECTION
===================================================== */
.cta-section{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );
    color:white;
}
.cta-section h2{
    font-weight:700;
}
.cta-section .btn{
    min-width:220px;
}
/* =====================================================
   FOOTER
===================================================== */
.footer{
    background:#111827;
    color:#d1d5db;
    padding:50px 0;
}
.footer h5{
    color:white;
    margin-bottom:15px;
}
.footer p{
    margin-bottom:10px;
}
.footer i{
    color:var(--accent);
}
/* =====================================================
   BACK TO TOP
===================================================== */
.back-to-top{
    position:fixed;
    right:20px;
    bottom:20px;
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    z-index:999;
    display:none;
}
/* =====================================================
   SECTIONS
===================================================== */
section h2{
    font-weight:700;
    color:var(--dark);
}
section p{
    color:var(--gray);
}
/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width:992px){
    .hero-section{
        text-align:center;
        padding:90px 0;
    }
    .hero-image{
        margin-top:40px;
        max-height:300px;
    }
    .top-bar{
        text-align:center;
    }
    .top-bar .container{
        flex-direction:column;
        gap:5px;
    }
}
@media (max-width:768px){
    .hero-section h1{
        font-size:2.2rem;
    }
    .hero-section .lead{
        font-size:1rem;
    }
    .btn-lg{
        width:100%;
        margin-bottom:10px;
    }
}
/* =====================================================
   LOGO
===================================================== */

.navbar-brand img{
    height:45px;
    width:auto;
    object-fit:contain;
}

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

.hero-section{
    min-height:650px;
    display:flex;
    align-items:center;
}

.hero-section h1{
    text-shadow:0 2px 10px rgba(0,0,0,.20);
}

.hero-section .lead{
    max-width:650px;
}

.hero-image{
    filter:drop-shadow(0 20px 30px rgba(0,0,0,.20));
}

/* =====================================================
   SERVICE ICONS
===================================================== */

.card i{
    transition:.3s ease;
}

.card:hover i{
    transform:scale(1.15);
}

/* =====================================================
   SECTION SPACING
===================================================== */

section{
    padding-top:1rem;
    padding-bottom:1rem;
}

.py-5{
    padding-top:5rem !important;
    padding-bottom:5rem !important;
}

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

.cta-section{
    position:relative;
    overflow:hidden;
}

.cta-section::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.12),
            transparent 40%
        );
}

.cta-section .container{
    position:relative;
    z-index:2;
}

/* =====================================================
   FOOTER LINKS
===================================================== */

.footer a{
    color:#d1d5db;
    transition:.3s;
}

.footer a:hover{
    color:white;
}

/* =====================================================
   BACK TO TOP
===================================================== */

.back-to-top{
    transition:.3s;
}

.back-to-top:hover{
    transform:translateY(-4px);
}

/* =====================================================
   ANIMATIONS
===================================================== */

.card,
.county-badge,
.btn{
    transition:.3s ease;
}

.county-badge:hover{

    transform:translateY(-2px);

    background:var(--primary);
}

/* =====================================================
   SHADOW UTILITIES
===================================================== */

.shadow-soft{
    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}

.rounded-xl{
    border-radius:20px;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px){

    .hero-section{

        min-height:auto;
        padding:80px 0;
    }

    .hero-image{

        margin-top:30px;
        max-height:250px;
    }

    .hero-badge{

        display:block;
        margin:0 auto 15px;
        width:max-content;
    }

    .county-badge{

        display:inline-block;
        margin:4px;
    }
}