* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f8fd;
    color: #18324a;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(31,122,224,.1);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.nav nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo-wrap { display: inline-flex; align-items: center; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.site-logo { height: 58px; width: auto; object-fit: contain; }
.admin-link { padding: 10px 14px; border-radius: 999px; background: var(--secondary); color: #17324a; font-weight: 700; }

.hero { padding: 30px 0 40px; }
.hero-slider { position: relative; border-radius: 28px; overflow: hidden; min-height: 520px; box-shadow: 0 22px 60px rgba(17, 47, 80, .16); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; pointer-events: none;
    background-size: cover; background-position: center;
    transition: opacity .5s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,43,75,.76), rgba(13,43,75,.25)); }
.hero-content { position: relative; z-index: 2; max-width: 560px; padding: 70px 54px; color: #fff; }
.pill, .section-tag {
    display: inline-block; padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: .9rem;
}
.section-tag { background: rgba(15,95,158,.12); color: var(--primary); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin: 16px 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 24px; }
h3 { margin-top: 0; }
.hero p, .about p, .service-card p, .quote-card p, .ba-content p { font-size: 1.02rem; color: #47627b; }
.hero .hero-content p { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }

.btn {
    padding: 14px 20px; border-radius: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    border: 0; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-light { background: rgba(255,255,255,.95); color: #17324a; border: 1px solid rgba(24,50,74,.12); }
.btn-secondary { background: var(--secondary); color: #17324a; margin-top: auto; }
.full { width: 100%; }

.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #17324a; font-size: 30px; cursor: pointer; z-index: 3;
}
.slider-nav.prev { left: 18px; }
.slider-nav.next { right: 18px; }
.slider-dots {
    position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
    display: flex; justify-content: center; gap: 10px;
}
.slider-dot {
    width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.5);
    border: 0; cursor: pointer;
}
.slider-dot.active { background: var(--secondary); }

.section { padding: 80px 0; }
.about { background: #fff; }
.two-col, .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-box, .contact-box, .quote-card, .service-card, .ba-card {
    background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 12px 40px rgba(17, 47, 80, .08);
}
.services-alt { background: linear-gradient(180deg, rgba(15,95,158,.06), rgba(247,181,0,.06)); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.small-gap { grid-template-columns: repeat(2, 1fr); }

.carousel { position: relative; }
.carousel-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar { height: 10px; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(15,95,158,.18); border-radius: 999px; }
.carousel-card {
    flex: 0 0 calc(33.333% - 12px); scroll-snap-align: start;
}
.carousel-actions {
    display: flex; justify-content: center; gap: 12px; margin-top: 18px;
}
.carousel-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--primary); color: #fff; font-size: 28px; box-shadow: 0 8px 24px rgba(15,95,158,.22);
}

.image-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-top: none; }
.image-card img { height: 240px; width: 100%; object-fit: cover; }
.image-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card p, .ba-content p, .quote-card p { margin: 0; }

.before-after { background: #ffffff; }
.ba-card { display: grid; gap: 18px; }
.ba-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ba-images span {
    display: inline-block; margin-bottom: 8px; font-size: .86rem; font-weight: 700; color: var(--primary);
    background: rgba(15,95,158,.08); padding: 6px 10px; border-radius: 999px;
}
.ba-images img { height: 240px; width: 100%; object-fit: cover; border-radius: 16px; }

.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(24,50,74,.14); font: inherit;
}
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; }
.alert.success { background: #e7f9ef; color: #17663d; }
.alert.error { background: #fdeaea; color: #9e2b2b; }

.footer { background: #17324a; color: #dce8f4; padding: 28px 0; }
.footer-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.whatsapp-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #fff; font-weight: 700;
    padding: 14px 18px; border-radius: 999px; box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.modal {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal.active { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,22,35,.62); }
.modal-box {
    position: relative; z-index: 1; width: min(620px, calc(100% - 28px)); background: #fff; border-radius: 24px; padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.modal-close {
    position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #edf3f8; cursor: pointer;
}

@media (max-width: 960px) {
    .two-col, .contact-grid, .card-grid, .stats-grid { grid-template-columns: 1fr; }
    .carousel-card { flex-basis: calc(50% - 9px); }
}
@media (max-width: 720px) {
    .nav, .footer-flex { flex-direction: column; align-items: flex-start; }
    .hero-content { padding: 44px 22px 70px; }
    .carousel-card { flex-basis: 100%; }
    .ba-images { grid-template-columns: 1fr; }
    .hero-slider { min-height: 500px; }
    .site-logo { height: 48px; }
}
