/* =========================================================================
   CS Contractors — theme
   Palette: navy #14213d · amber #fca311 · light #f5f6fa · ink #1b1f2a
   ========================================================================= */
:root {
    --navy:    #14213d;
    --navy-2:  #1d2d4f;
    --amber:   #fca311;
    --amber-d: #e8930b;
    --light:   #f5f6fa;
    --ink:     #1b1f2a;
    --muted:   #6b7280;
    --line:    #e6e8ee;
    --white:   #ffffff;
    --shadow:  0 18px 40px -18px rgba(20, 33, 61, .35);
    --radius:  14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,.brand-text,.display-title { font-family: 'Poppins', sans-serif; font-weight: 700; }
a { text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .7rem 1.5rem; transition: all .25s ease; }
.btn-amber { background: var(--amber); color: var(--navy); border: 2px solid var(--amber); }
.btn-amber:hover { background: var(--amber-d); border-color: var(--amber-d); color: var(--navy); transform: translateY(-2px); }
.btn-outline-light-amber { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-light-amber:hover { background: #fff; color: var(--navy); }
.btn-dark-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-dark-navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Section helpers ---------- */
.section { padding: 90px 0; }
.section-light { background: var(--light); }
.eyebrow {
    display: inline-block; color: var(--amber-d); font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
.section-title .hl { color: var(--amber); }
.lead-muted { color: var(--muted); font-size: 1.05rem; }
.divider-amber { width: 64px; height: 4px; background: var(--amber); border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c9d2e3; font-size: .85rem; padding: .5rem 0; }
.topbar a { color: #c9d2e3; margin-right: 1.3rem; }
.topbar a:hover { color: var(--amber); }
.topbar-contact i { color: var(--amber); margin-right: .35rem; }
.topbar-social a { margin: 0 .15rem; margin-right: .5rem; }
.topbar-social a:last-child { margin-right: 0; }

/* Topbar on tablet/mobile — stays visible, condensed & centered */
@media (max-width: 991.98px) {
    .topbar { font-size: .78rem; padding: .45rem 0; }
    .topbar .container { flex-direction: column; gap: .25rem; }
    .topbar-contact { text-align: center; }
    .topbar-contact a, .topbar-contact span { margin: 0 .5rem; display: inline-block; }
    /* On mobile show only phone + email; hide address and social icons */
    .topbar .tb-address { display: none; }
    .topbar-social { display: none; }
}
@media (max-width: 575.98px) {
    .topbar-contact a { margin: 0 .4rem; }
    .topbar-contact a span,
    .topbar-contact a { white-space: nowrap; }
}

/* ---------- Navbar ---------- */
.site-nav {
    background: rgba(255,255,255,.98); padding: .8rem 0; position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 4px 20px rgba(20,33,61,.06); transition: all .3s ease;
}
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(20,33,61,.12); padding: .55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 52px; width: auto; display: block; transition: height .3s ease; }
.site-nav.scrolled .brand-logo { height: 44px; }
@media (max-width: 575.98px) { .brand-logo { height: 42px; } }
.brand-mark {
    background: var(--navy); color: var(--amber); font-family: 'Poppins'; font-weight: 800;
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; font-size: 1.25rem;
    border-bottom: 3px solid var(--amber);
}
.brand-text { color: var(--navy); font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: 'Inter'; font-weight: 500; font-size: .65rem; color: var(--muted); letter-spacing: .05em; }
.site-nav .nav-link { color: var(--navy); font-weight: 600; margin: 0 .25rem; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link::after {
    content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 2px;
    background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--amber-d); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero .swiper { height: 88vh; min-height: 560px; }
.hero-slide { position: relative; height: 100%; background-size: cover; background-position: center; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(20,33,61,.86) 0%, rgba(20,33,61,.6) 45%, rgba(20,33,61,.25) 100%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; color: #fff; }
.hero-content .eyebrow { color: var(--amber); }
.hero-title { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 1.1rem; }
.hero-title .hl { color: var(--amber); }
.hero-sub { font-size: 1.15rem; color: #dde3ef; max-width: 600px; margin-bottom: 1.8rem; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .5; width: 11px; height: 11px; }
.hero .swiper-pagination-bullet-active { background: var(--amber); opacity: 1; width: 28px; border-radius: 6px; }
.hero-arrow {
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4); color: #fff; display: grid; place-items: center; cursor: pointer;
    transition: all .25s ease;
}
.hero-arrow:hover { background: var(--amber); color: var(--navy); border-color: var(--amber); }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 3rem 0; margin-top: -1px; }
.stat-item { text-align: center; padding: 1rem 0; }
.stat-item .num { font-family: 'Poppins'; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--amber); line-height: 1; }
.stat-item .num span { font-size: 1.6rem; }
.stat-item .label { color: #c2cce0; margin-top: .4rem; font-weight: 500; letter-spacing: .03em; }
.stat-item i { font-size: 1.6rem; color: rgba(255,255,255,.5); margin-bottom: .5rem; }

/* ---------- About ---------- */
.about-images { position: relative; }
.about-images .img-main { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-images .img-float {
    position: absolute; right: -18px; bottom: -28px; width: 46%; border-radius: var(--radius);
    border: 6px solid #fff; box-shadow: var(--shadow);
}
.about-badge {
    position: absolute; left: -18px; top: 24px; background: var(--amber); color: var(--navy);
    border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow); text-align: center;
}
.about-badge .y { font-family: 'Poppins'; font-weight: 800; font-size: 1.8rem; line-height: 1; }
.about-badge .t { font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.about-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.about-list li { padding: .35rem 0; display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.about-list i { color: var(--amber-d); }

/* ---------- Services ---------- */
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem;
    height: 100%; transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--amber);
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
    background: rgba(252,163,17,.13); color: var(--amber-d); margin-bottom: 1.1rem; transition: all .3s ease;
}
.service-card:hover .service-icon { background: var(--navy); color: var(--amber); }
.service-card h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.filter-btn {
    border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600;
    padding: .5rem 1.2rem; border-radius: 30px; cursor: pointer; transition: all .2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.project-card {
    position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -16px rgba(20,33,61,.4);
    height: 100%;
}
.project-card .pc-img { aspect-ratio: 4/3; overflow: hidden; }
.project-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .pc-img img { transform: scale(1.08); }
.project-card .pc-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,33,61,.92) 0%, rgba(20,33,61,.1) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; color: #fff;
    opacity: 0; transform: translateY(14px); transition: all .35s ease;
}
.project-card:hover .pc-overlay { opacity: 1; transform: translateY(0); }
.pc-cat { color: var(--amber); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.pc-title { font-family: 'Poppins'; font-weight: 700; font-size: 1.25rem; margin: .2rem 0 .8rem; }
.pc-actions { display: flex; gap: .6rem; }
.pc-btn {
    width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.16);
    color: #fff; border: 1px solid rgba(255,255,255,.3); transition: all .2s ease;
}
.pc-btn:hover { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.pc-badge {
    position: absolute; top: 14px; left: 14px; background: var(--amber); color: var(--navy);
    font-weight: 700; font-size: .72rem; text-transform: uppercase; padding: .3rem .7rem; border-radius: 20px; z-index: 2;
}
.pc-badge.ongoing { background: #fff; color: var(--navy); }
.pc-cost {
    position: absolute; top: 14px; right: 14px; background: var(--navy); color: #fff;
    font-weight: 700; font-size: .72rem; letter-spacing: .02em; padding: .3rem .7rem;
    border-radius: 20px; z-index: 2; box-shadow: 0 6px 16px -6px rgba(20,33,61,.6);
}
.pc-cost i { color: var(--amber); margin-right: .25rem; }

/* ---------- Home-page on-load pop-up ---------- */
/* Blur the page behind the dialog (class added to the backdrop via main.js). */
.modal-backdrop.promo-backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(20,33,61,.55); }
.modal-backdrop.promo-backdrop.show { opacity: 1; }

/* Smooth zoom-out-from-center entrance (override Bootstrap's slide-down transform). */
.promo-modal.modal .modal-dialog { transform: scale(.82); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.25,1), opacity .35s ease; }
.promo-modal.modal.show .modal-dialog { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .promo-modal.modal .modal-dialog { transition: opacity .2s ease; transform: none; }
}

.promo-modal .modal-content { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(20,33,61,.7); }
.promo-modal .modal-header { background: var(--navy); color: #fff; border-bottom: 0; }
.promo-modal .modal-header .modal-title { font-family: 'Poppins'; font-weight: 700; }
.promo-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.promo-modal .modal-body { padding: 0; }
.promo-modal .promo-media { display: block; max-height: 70vh; object-fit: contain; background: #000; }
.promo-modal .modal-footer { border-top: 0; }

/* ---------- Why / process ---------- */
.why { background: var(--navy); color: #fff; }
.why .section-title { color: #fff; }
.process-step { text-align: center; padding: 1rem; }
.process-num {
    width: 70px; height: 70px; border-radius: 50%; border: 2px dashed rgba(252,163,17,.6); color: var(--amber);
    display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.6rem;
}
.process-step h5 { color: #fff; }
.process-step p { color: #aeb9d0; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testi-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; height: 100%;
    box-shadow: 0 12px 30px -22px rgba(20,33,61,.5);
}
.testi-card .quote { color: var(--amber); font-size: 2rem; line-height: 1; }
.testi-card p { color: #444; font-style: italic; margin: .8rem 0 1.2rem; }
.testi-stars { color: var(--amber); margin-bottom: 1rem; }
.testi-person { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
    width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--amber);
    display: grid; place-items: center; font-family: 'Poppins'; font-weight: 700;
}
.testi-person .nm { font-weight: 700; color: var(--navy); }
.testi-person .rl { font-size: .85rem; color: var(--muted); }
.testimonials .swiper { padding-bottom: 3rem; }
.testimonials .swiper-pagination-bullet-active { background: var(--amber); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--amber); color: var(--navy); padding: 3rem 0; }
.cta-strip h3 { font-size: 1.7rem; }

/* ---------- Contact ---------- */
.contact-info-card {
    background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.2rem; height: 100%;
}
.contact-info-card .ci-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-info-card .ci-item:last-child { border-bottom: 0; }
.contact-info-card .ci-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(252,163,17,.18); color: var(--amber);
    display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-card .ci-item .lbl { color: #aeb9d0; font-size: .82rem; }
.contact-info-card .ci-item .val { font-weight: 600; }
.form-control, .form-select { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 .2rem rgba(252,163,17,.18); }
.form-label { font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.captcha-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--line); height: 50px; }
.captcha-refresh {
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy);
    cursor: pointer; transition: all .2s ease;
}
.captcha-refresh:hover { background: var(--navy); color: #fff; }
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(rgba(20,33,61,.85), rgba(20,33,61,.85)), url('../img/projects/township-09.jpg');
    background-size: cover; background-position: center; color: #fff; padding: 120px 0 70px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .breadcrumb { justify-content: center; --bs-breadcrumb-divider-color: #9fb0cf; }
.page-hero .breadcrumb a { color: var(--amber); }
.page-hero .breadcrumb-item.active { color: #cdd6e8; }

/* ---------- Project detail ---------- */
.project-meta { list-style: none; padding: 0; margin: 0; }
.project-meta li { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.project-meta li span:first-child { color: var(--muted); font-weight: 600; }
.project-meta li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
.gallery-thumb { border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb9d0; padding: 4rem 0 0; }
.site-footer h5 { color: #fff; margin-bottom: 1.2rem; font-size: 1.05rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand .brand-text { color: #fff; }
.footer-logo { height: 60px; width: auto; }
.footer-social a, .footer-social { margin-top: 1rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 9px; display: inline-grid; place-items: center; margin-right: .4rem;
    background: rgba(255,255,255,.08); color: #fff; transition: all .2s ease;
}
.footer-social a:hover { background: var(--amber); color: var(--navy); }
.footer-links, .footer-contact, .footer-recent { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .35rem 0; }
.footer-links a { color: #aeb9d0; }
.footer-links a:hover { color: var(--amber); padding-left: 5px; }
.footer-contact li { display: flex; gap: .6rem; padding: .4rem 0; }
.footer-contact i { color: var(--amber); margin-top: 4px; }
.footer-contact a { color: #aeb9d0; }
.footer-contact a:hover { color: var(--amber); }
.footer-recent li { margin-bottom: .8rem; }
.footer-recent a { display: flex; gap: .7rem; align-items: center; color: #cdd6e8; }
.footer-recent img { width: 56px; height: 44px; object-fit: cover; border-radius: 7px; }
.footer-recent a:hover span { color: var(--amber); }
.footer-recent span { font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom a { color: var(--amber); font-weight: 600; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Floating helpers ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; z-index: 1040;
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.back-to-top {
    position: fixed; right: 22px; bottom: 88px; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--navy); color: #fff; z-index: 1040; opacity: 0; visibility: hidden; transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--amber); color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: #fff; margin-top: .8rem; padding: 1rem; border-radius: 12px; box-shadow: var(--shadow); }
    .hero .swiper { height: 78vh; }
    .about-images { margin-bottom: 3rem; }
}
@media (max-width: 575.98px) {
    .section { padding: 60px 0; }
    .hero-sub { font-size: 1rem; }
    .about-images .img-float { position: static; width: 100%; margin-top: 1rem; border: 0; }
    .about-badge { display: none; }
    .cta-strip { text-align: center; }
}

/* Leadership profile bios */
.leader-bio { text-align: justify; }
