/* ============================================
   K&S Construction & Services — Custom Theme
   ============================================ */

:root {
    --ks-navy: #06283d;
    --ks-navy-2: #0a3a57;
    --ks-blue: #1363df;
    --ks-cyan: #47b5ff;
    --ks-aqua: #dff6ff;
    --ks-text: #33475b;
    --ks-radius: 1rem;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--ks-text);
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ks-navy);
    font-weight: 700;
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--ks-navy);
    color: #cfe8ff;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.topbar a {
    color: #cfe8ff;
    text-decoration: none;
    transition: color 0.2s;
}

.topbar a:hover {
    color: var(--ks-cyan);
}

/* ---------- Navbar ---------- */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(6, 40, 61, 0.08);
    padding: 0.75rem 0;
}

.brand-logo {
    height: 56px;
    max-height: 56px;
    width: auto;
}

/* White version for the dark footer */
.brand-logo-footer {
    height: 64px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.main-navbar .nav-link {
    color: var(--ks-navy);
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.main-navbar .nav-link:hover {
    color: var(--ks-blue);
}

.main-navbar .nav-link.active {
    color: var(--ks-blue);
    background: var(--ks-aqua);
}

/* ---------- Buttons ---------- */
.btn-cta {
    background: linear-gradient(135deg, var(--ks-blue), var(--ks-cyan));
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 0.65rem;
    padding: 0.6rem 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 99, 223, 0.35);
}

.btn-primary-soft {
    background: var(--ks-aqua);
    color: var(--ks-blue);
    font-weight: 600;
    border: none;
    border-radius: 0.65rem;
    padding: 0.6rem 1.4rem;
    transition: background 0.2s, color 0.2s;
}

.btn-primary-soft:hover {
    background: var(--ks-blue);
    color: #fff;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 88vh;
    background:
        linear-gradient(100deg, rgba(6, 40, 61, 0.92) 20%, rgba(6, 40, 61, 0.55) 60%, rgba(6, 40, 61, 0.25)),
        url('https://images.unsplash.com/photo-1572331165267-854da2b10ccc?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(71, 181, 255, 0.15);
    border: 1px solid rgba(71, 181, 255, 0.4);
    color: var(--ks-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--ks-cyan), #8fd6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: #d5e6f2;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* ---------- Stats bar ---------- */
.stats-bar {
    background: var(--ks-navy);
    padding: 2.5rem 0;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ks-cyan);
}

.stat-label {
    color: #b9d2e4;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: #f4faff;
}

.section-eyebrow {
    display: inline-block;
    color: var(--ks-blue);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ---------- Lists ---------- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.check-list li {
    padding: 0.35rem 0;
    font-weight: 500;
}

.check-list li i {
    color: var(--ks-blue);
    margin-right: 0.6rem;
}

.check-list-sm li {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--ks-text);
}

/* ---------- Cards ---------- */
.service-card {
    background: #fff;
    border: 1px solid #e3eef7;
    border-radius: var(--ks-radius);
    padding: 2rem 1.75rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(6, 40, 61, 0.1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ks-blue), var(--ks-cyan));
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.service-card h5 {
    margin-bottom: 0.6rem;
}

.service-card p {
    color: #5b7186;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.service-card-lg p {
    margin-bottom: 0.75rem;
}

/* ---------- Feature rows (why choose us) ---------- */
.feature-row {
    display: flex;
    gap: 1.15rem;
    margin-top: 1.75rem;
}

.feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ks-aqua);
    color: var(--ks-blue);
    font-size: 1.4rem;
}

.feature-row h6 {
    margin-bottom: 0.3rem;
}

.feature-row p {
    color: #5b7186;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid #e3eef7;
    border-radius: var(--ks-radius);
    padding: 2rem 1.75rem;
}

.testimonial-card .stars {
    color: #ffb400;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #44586c;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--ks-navy);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #7a93a8;
}

/* ---------- Page banner ---------- */
.page-banner {
    background:
        linear-gradient(100deg, rgba(6, 40, 61, 0.93), rgba(10, 58, 87, 0.8)),
        url('https://images.unsplash.com/photo-1572331165267-854da2b10ccc?auto=format&fit=crop&w=1800&q=70') center/cover no-repeat;
    color: #fff;
    padding: 4.5rem 0 3.5rem;
}

.page-banner h1 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-banner .breadcrumb {
    margin-bottom: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a,
.page-banner .breadcrumb-item.active,
.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: #a9c9de;
    text-decoration: none;
}

.page-banner .breadcrumb-item a:hover {
    color: var(--ks-cyan);
}

/* ---------- About page ---------- */
.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #f4faff;
    border-radius: 0.9rem;
    padding: 1rem 1.15rem;
}

.mini-stat i {
    font-size: 1.7rem;
    color: var(--ks-blue);
}

.mini-stat strong {
    display: block;
    color: var(--ks-navy);
    font-size: 0.98rem;
}

.mini-stat span {
    font-size: 0.83rem;
    color: #7a93a8;
}

.process-step {
    background: #fff;
    border: 1px solid #e3eef7;
    border-radius: var(--ks-radius);
    padding: 1.9rem 1.6rem;
    height: 100%;
}

.process-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ks-blue), var(--ks-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
}

.process-step p {
    color: #5b7186;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.team-card {
    background: #fff;
    border: 1px solid #e3eef7;
    border-radius: var(--ks-radius);
    padding: 2rem 1.5rem;
}

.team-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ks-navy), var(--ks-blue));
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.team-card span {
    font-size: 0.88rem;
    color: #7a93a8;
}

/* ---------- Plans ---------- */
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #e3eef7;
    border-radius: var(--ks-radius);
    padding: 2.1rem 1.8rem;
}

.plan-featured {
    border: 2px solid var(--ks-blue);
    box-shadow: 0 16px 40px rgba(19, 99, 223, 0.15);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ks-blue), var(--ks-cyan));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-freq {
    color: var(--ks-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- Gallery ---------- */
.gallery-card {
    position: relative;
    display: block;
    border-radius: var(--ks-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-card:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    background: linear-gradient(to top, rgba(6, 40, 61, 0.88) 0%, rgba(6, 40, 61, 0.15) 55%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    color: var(--ks-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-overlay h6 {
    color: #fff;
    margin: 0.25rem 0 0;
}

.gallery-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.1rem;
}

.gallery-modal {
    background: transparent;
    border: none;
    align-items: center;
}

.gallery-modal-close {
    position: absolute;
    top: -2.4rem;
    right: 0;
    z-index: 5;
}

/* ---------- Contact ---------- */
.contact-info-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: #f4faff;
    border-radius: 0.9rem;
    padding: 1.15rem 1.3rem;
    margin-bottom: 1rem;
}

.contact-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ks-blue), var(--ks-cyan));
    color: #fff;
    font-size: 1.15rem;
}

.contact-info-card h6 {
    margin-bottom: 0.2rem;
}

.contact-info-card p {
    margin: 0;
    color: #5b7186;
    font-size: 0.93rem;
}

.contact-form-card {
    background: #fff;
    border: 1px solid #e3eef7;
    border-radius: var(--ks-radius);
    padding: 2.25rem;
    box-shadow: 0 12px 40px rgba(6, 40, 61, 0.07);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    padding: 0.7rem 0.95rem;
    border-color: #d8e6f1;
    border-radius: 0.6rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--ks-cyan);
    box-shadow: 0 0 0 0.2rem rgba(71, 181, 255, 0.2);
}

.map-section iframe {
    display: block;
}

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(120deg, var(--ks-blue), var(--ks-cyan));
    color: #fff;
    padding: 3rem 0;
}

.cta-strip h3 {
    color: #fff;
    font-weight: 800;
}

.cta-strip p {
    color: #e3f2ff;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ks-navy);
    color: #b9d2e4;
    padding: 4.5rem 0 0;
}

.footer-brand {
    text-decoration: none;
}

.footer-desc {
    font-size: 0.93rem;
    line-height: 1.7;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #cfe8ff;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: var(--ks-blue);
    color: #fff;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #b9d2e4;
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--ks-cyan);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.93rem;
}

.footer-contact li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.footer-contact i {
    color: var(--ks-cyan);
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.4rem 0;
    font-size: 0.85rem;
    gap: 0.5rem;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .brand-logo {
        height: 44px;
    }

    .hero {
        min-height: 70vh;
        padding: 5rem 0;
    }

    .section {
        padding: 3.75rem 0;
    }
}
