:root {
    --jw-primary: #0b6ea8;
    --jw-secondary: #1499d3;
    --jw-light: #e9f7ff;
    --jw-dark: #043b5d;
    --jw-bg: #f4fbff;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--jw-bg);
    color: #113142;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.custom-nav {
    background: linear-gradient(90deg, var(--jw-dark), var(--jw-primary));
}

.navbar-brand {
    font-size: clamp(1rem, 2.8vw, 1.3rem);
}

h1,
.display-4 {
    font-size: clamp(1.9rem, 5.6vw, 3.2rem);
}

h2 {
    font-size: clamp(1.4rem, 4vw, 2.1rem);
}

.hero-section {
    min-height: 68vh;
    background: url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(4, 59, 93, 0.82), rgba(20, 153, 211, 0.45));
}

.page-header {
    background: linear-gradient(135deg, var(--jw-primary), var(--jw-secondary));
}

.bg-light-wave {
    background: radial-gradient(circle at 10% 10%, rgba(20, 153, 211, 0.2), transparent 40%), #eef8ff;
}

.service-card,
.service-detail-card,
.testimonial-card,
.about-icon-card,
.admin-stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(4, 59, 93, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-detail-card:hover,
.testimonial-card:hover,
.about-icon-card:hover,
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(11, 110, 168, 0.2);
}

.service-card i,
.service-detail-card i,
.about-icon-card i {
    color: var(--jw-primary);
}

.cta-band {
    background: linear-gradient(135deg, var(--jw-dark), var(--jw-primary));
}

.carousel-img {
    height: 460px;
    object-fit: cover;
}

.site-footer {
    background: #062a42;
    color: #d5efff;
    margin-top: auto;
}

.social-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--jw-secondary);
}

.quote-calc .estimated-price-wrap {
    background: var(--jw-light);
    border: 1px solid #b5e4ff;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-calc .estimated-price-wrap strong {
    font-size: 1.8rem;
    color: var(--jw-primary);
}

.gallery-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(4, 59, 93, 0.1);
    transition: all 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    padding: 1rem;
}

.about-icon-card {
    text-align: center;
    font-weight: 600;
}

.about-icon-card i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.testimonial-card {
    border-left: 4px solid #27a4dc;
}

.testimonial-stars {
    color: #f5b301;
    letter-spacing: 0.08rem;
}

.testimonial-copy {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #1d4a63;
}

.testimonial-user {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b6ea8, #1499d3);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #03253a, #0e77b6);
}

.admin-body {
    background: #ecf5fb;
}

.admin-sidebar {
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, #083b5d, #09507d);
    position: sticky;
    top: 0;
}

.admin-link {
    display: block;
    color: #e2f6ff;
    text-decoration: none;
    padding: 0.65rem 0.8rem;
    border-radius: 0.65rem;
    margin-bottom: 0.4rem;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.admin-content {
    min-width: 0;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    #adminWrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        flex: 0 0 auto;
        min-height: auto;
        position: static;
        padding: 0.8rem 0.9rem !important;
    }

    .admin-sidebar h4 {
        margin-bottom: 0.7rem !important;
    }

    .admin-links {
        display: flex;
        gap: 0.45rem;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.25rem;
    }

    .admin-link {
        margin-bottom: 0;
        flex: 0 0 auto;
        padding: 0.55rem 0.75rem;
    }

    .admin-content {
        padding: 1rem !important;
    }

    .hero-section {
        min-height: 52vh;
    }

    .service-card,
    .service-detail-card,
    .testimonial-card,
    .about-icon-card,
    .admin-stat-card {
        padding: 1.1rem;
    }

    .carousel-img {
        height: 280px;
    }

    .gallery-card img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 48vh;
    }

    .navbar-collapse {
        background: rgba(4, 59, 93, 0.95);
        border-radius: 0.6rem;
        margin-top: 0.65rem;
        padding: 0.5rem 0.4rem;
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 0.85rem;
        text-align: center;
    }

    .navbar-nav .btn {
        width: 100%;
        margin: 0.4rem 0 0.35rem 0 !important;
    }

    .page-header {
        padding-top: 2.2rem !important;
        padding-bottom: 2.2rem !important;
    }

    .quote-calc .estimated-price-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .quote-calc .estimated-price-wrap strong {
        font-size: 1.55rem;
    }

    .carousel-img {
        height: 220px;
    }

    .gallery-card img {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.6rem;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }

    .carousel-img {
        height: 190px;
    }

    .gallery-card img {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
