/* ==========================================================================
   BABUDEEN CONTRACTOR - Main stylesheet (mobile-first)
   Palette: Charcoal (#141414) / Gold (#f5b301) / White
   ========================================================================== */

:root {
  --charcoal: #141414;
  --charcoal-2: #1f1f1f;
  --charcoal-3: #2b2b2b;
  --gold: #f5b301;
  --gold-dark: #d99a00;
  --gold-soft: #fff6d6;
  --white: #ffffff;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --light-bg: #f6f6f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, .18);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 64px; /* room for mobile sticky bar */
  overflow-x: hidden;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--charcoal); }
h1, h2, h3, h4, h5, h6 { color: var(--charcoal); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 2000; background: var(--gold); padding: 8px 14px; }

.section { padding: 64px 0; }
.section-alt { background: var(--light-bg); }
.section-dark { background: var(--charcoal); color: #e9e9e9; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-title .eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 600; margin-bottom: 6px;
}
.section-dark .eyebrow { color: var(--gold); }
.section-title p { color: var(--muted); margin: 12px 0 0; }
.section-dark .section-title p { color: #cfcfcf; }
.gold-line { width: 70px; height: 4px; background: var(--gold); border-radius: 4px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold); color: var(--charcoal); font-weight: 600; border: 2px solid var(--gold);
  border-radius: 50px; padding: .55rem 1.3rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--charcoal); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245,179,1,.35); }
.btn-outline-gold {
  background: transparent; color: var(--white); border: 2px solid var(--gold); border-radius: 50px; font-weight: 600; padding: .55rem 1.3rem;
  transition: all .25s ease;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--charcoal); }
.btn-charcoal { background: var(--charcoal); color: var(--white); border-radius: 50px; font-weight: 600; padding: .55rem 1.3rem; border: 2px solid var(--charcoal); }
.btn-charcoal:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.btn-whatsapp { background: #25d366; color: #fff; border: 2px solid #25d366; border-radius: 50px; font-weight: 600; }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }

/* ---------- Header / navbar ---------- */
.site-header { background: rgba(20, 20, 20, .97); box-shadow: 0 2px 16px rgba(0,0,0,.25); z-index: 1030; backdrop-filter: blur(6px); }
.site-header .navbar { min-height: var(--header-h); }
.brand-logo { background: transparent; }
.hero-carousel .carousel-item.image-only::after { display: none; }
.brand-text { color: var(--white); font-weight: 800; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { color: var(--gold); font-size: .62rem; letter-spacing: .35em; font-weight: 600; margin-top: 3px; }
.navbar-dark .navbar-toggler { border-color: rgba(245,179,1,.6); }
.navbar-dark .navbar-nav .nav-link { color: #f1f1f1; font-weight: 500; padding: .6rem .9rem; position: relative; }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: var(--gold); }
.navbar-dark .navbar-nav .nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px;
}
.service-dropdown { max-height: 70vh; overflow-y: auto; border-top: 3px solid var(--gold); }
.service-dropdown .dropdown-item:hover, .service-dropdown .dropdown-item:focus { background: var(--gold); color: var(--charcoal); }
@media (min-width: 1200px) {
  .service-dropdown { min-width: 280px; }
  .navbar-nav .dropdown:hover > .dropdown-menu { display: block; }
}
.btn-sm { font-size: .85rem; padding: .4rem .9rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb-wrap { font-size: .85rem; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--gold-dark); font-weight: 600; }

/* ---------- Hero slider ---------- */
.hero-carousel .carousel-item { height: clamp(460px, 78vh, 680px); background: var(--charcoal); }
.hero-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .carousel-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.2) 100%);
}
.hero-carousel .carousel-item { position: relative; overflow: hidden; }
.hero-caption {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--white); padding: 0 16px;
}
.hero-caption .hero-tag { display: inline-block; background: var(--gold); color: var(--charcoal); font-weight: 700; font-size: .78rem; letter-spacing: .08em; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; text-transform: uppercase; }
.hero-caption h1, .hero-caption h2 { color: var(--white); font-size: clamp(1.8rem, 5vw, 3.4rem); margin-bottom: 12px; }
.hero-caption h2 span { color: var(--gold); }
.hero-caption p { color: #e6e6e6; font-size: clamp(.95rem, 2vw, 1.15rem); max-width: 640px; margin-bottom: 22px; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 56px; z-index: 3; }
.hero-carousel .carousel-control-prev-icon, .hero-carousel .carousel-control-next-icon {
  background-color: rgba(245,179,1,.9); border-radius: 50%; width: 42px; height: 42px; background-size: 60%;
}
.hero-carousel .carousel-indicators [data-bs-target] { background-color: var(--gold); width: 28px; height: 4px; border-radius: 4px; }
.hero-trust { background: var(--charcoal); color: var(--white); padding: 14px 0; }
.hero-trust .item { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; justify-content: center; }
.hero-trust i { color: var(--gold); font-size: 1.2rem; }

/* Inner page banner */
.page-banner {
  position: relative; background: var(--charcoal) center/cover no-repeat; color: var(--white);
  padding: 70px 0 60px;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92), rgba(10,10,10,.65)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); }
.page-banner p { color: #e4e4e4; max-width: 720px; }
.page-banner .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }

/* ---------- Cards ---------- */
.service-card, .card-premium {
  background: var(--white); border-radius: var(--radius); overflow: hidden; height: 100%;
  box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease; border: 1px solid #efefef;
  display: flex; flex-direction: column;
}
.service-card:hover, .card-premium:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card .img-wrap, .card-premium .img-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--charcoal-3); }
.service-card img, .card-premium img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover img, .card-premium:hover img { transform: scale(1.07); }
.service-card .card-body, .card-premium .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-card .card-body p { color: var(--muted); font-size: .95rem; }
.service-card .card-body .btn, .card-premium .card-body .btn { margin-top: auto; align-self: flex-start; }
.card-tag {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--charcoal);
  font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 4px; z-index: 2;
}

.feature-box {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px; height: 100%;
  border-bottom: 4px solid transparent; box-shadow: var(--shadow); transition: all .3s ease;
}
.feature-box:hover { border-bottom-color: var(--gold); transform: translateY(-4px); }
.feature-icon {
  width: 62px; height: 62px; border-radius: 16px; background: var(--charcoal); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
  transition: transform .3s ease, background .3s ease;
}
.feature-box:hover .feature-icon { transform: rotateY(180deg); background: var(--gold); color: var(--charcoal); }
.feature-box p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Dark section feature boxes */
.section-dark .feature-box { background: var(--charcoal-2); color: #ddd; box-shadow: none; }
.section-dark .feature-box h3 { color: var(--white); }
.section-dark .feature-box p { color: #bdbdbd; }

/* Process steps */
.process-step { position: relative; text-align: center; padding: 10px; }
.process-step .step-num {
  width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--charcoal);
  font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 0 0 8px rgba(245,179,1,.18); position: relative; z-index: 1;
}
.process-step p { color: var(--muted); font-size: .93rem; }
@media (min-width: 992px) {
  .process-row::before {
    content: ""; position: absolute; top: 46px; left: 10%; right: 10%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px); z-index: 0;
  }
  .process-row { position: relative; }
}

/* Location chips */
.location-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid #e6e6e6;
  border-radius: 50px; padding: 8px 16px; font-weight: 500; font-size: .92rem; color: var(--charcoal);
  transition: all .25s ease; margin: 5px;
}
.location-chip i { color: var(--gold-dark); }
.location-chip:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.section-dark .location-chip { background: var(--charcoal-2); border-color: #3a3a3a; color: var(--white); }

/* Testimonials */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial .quote-icon { color: var(--gold); font-size: 1.8rem; }
.testimonial p { color: var(--muted); font-style: italic; }
.placeholder-badge {
  display: inline-block; font-size: .72rem; background: var(--gold-soft); color: #7a5a00; border: 1px dashed var(--gold-dark);
  padding: 2px 10px; border-radius: 4px; font-weight: 600; margin-bottom: 10px;
}
.stars { color: var(--gold); letter-spacing: 2px; }

/* FAQ accordion */
.accordion-button:not(.collapsed) { background: var(--gold-soft); color: var(--charcoal); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(245,179,1,.35); }
.accordion-item { border-radius: 10px !important; overflow: hidden; margin-bottom: 10px; border: 1px solid #ececec; }
.accordion-button { font-weight: 600; color: var(--charcoal); }

/* About / content blocks */
.content-block h2 { margin-bottom: 14px; }
.content-block p { color: #444; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 6px 0 6px 30px; position: relative; color: #444; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--gold-dark); }
.section-dark .check-list li { color: #d6d6d6; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
.img-frame { position: relative; }
.img-frame::after { content: ""; position: absolute; top: 16px; left: 16px; right: -16px; bottom: -16px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }

/* Stat/strip */
.stat-strip { background: var(--gold); color: var(--charcoal); padding: 28px 0; }
.stat-strip h3 { color: var(--charcoal); margin: 0; font-size: 1.1rem; }
.stat-strip p { margin: 0; font-weight: 500; }

/* Gallery */
.filter-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-btns button {
  border: 2px solid var(--charcoal); background: transparent; color: var(--charcoal); font-weight: 600;
  padding: 6px 16px; border-radius: 50px; font-size: .88rem; transition: all .25s ease;
}
.filter-btns button:hover, .filter-btns button.active { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; display: block; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s ease; }
.gallery-item .overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item .overlay strong { font-size: 1rem; }
.gallery-item .overlay span { font-size: .8rem; color: var(--gold); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .overlay, .gallery-item:focus .overlay { opacity: 1; }
.gallery-item.hide { display: none; }
.lightbox-modal .modal-content { background: transparent; border: 0; }
.lightbox-modal img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox-modal .caption { color: #fff; text-align: center; margin-top: 10px; font-weight: 500; }

/* Projects */
.project-card .location { font-size: .85rem; color: var(--muted); }
.project-card .location i { color: var(--gold-dark); }
.sample-banner { background: var(--gold-soft); border-left: 5px solid var(--gold); padding: 14px 18px; border-radius: 8px; font-size: .92rem; }

/* Blog */
.blog-card .card-body .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.article-body h2 { margin-top: 32px; font-size: 1.5rem; }
.article-body p { color: #444; font-size: 1.02rem; }
.article-body .lead { font-size: 1.12rem; color: #333; }
.share-btns a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--white); margin-right: 6px; transition: all .25s ease;
}
.share-btns a:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-3px); }
.article-cta { background: var(--charcoal); color: #eee; border-radius: var(--radius); padding: 26px; }
.article-cta h3 { color: var(--white); }

/* Contact */
.contact-info-card { background: var(--charcoal); color: #eee; border-radius: var(--radius); padding: 30px; height: 100%; }
.contact-info-card h3 { color: var(--gold); }
.contact-info-card li { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info-card li i { color: var(--gold); font-size: 1.2rem; margin-top: 4px; width: 22px; text-align: center; }
.contact-info-card a { color: var(--white); }
.enquiry-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(245,179,1,.25); }
.form-label { font-weight: 500; font-size: .92rem; color: var(--charcoal); }
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert-slot { margin-bottom: 18px; }

/* Enquiry modal */
.enquiry-modal .modal-header { background: var(--charcoal); color: var(--white); border-radius: 14px 14px 0 0; }
.enquiry-modal .modal-title { color: var(--white); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--charcoal) 0%, var(--charcoal-3) 100%); color: var(--white);
  border-radius: 20px; padding: 46px 30px; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(245,179,1,.15);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #ddd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #bfbfbf; font-size: .93rem; }
.footer-logo { background: transparent; }
.footer-title { color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--gold); border-radius: 3px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .site-footer a { color: #cfcfcf; transition: color .25s ease, padding .25s ease; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--gold); margin-top: 5px; width: 18px; text-align: center; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3c3c3c; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: all .25s ease;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); transform: translateY(-3px); }
.footer-divider { border-color: #333; opacity: 1; }

/* ---------- Floating buttons ---------- */
.floating-contact {
  position: fixed; right: 14px; bottom: 22px; z-index: 1050; display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 50px; color: #fff; font-weight: 600;
  padding: 0; width: 52px; height: 52px; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: all .3s ease; font-size: 1.3rem; overflow: hidden; white-space: nowrap;
}
.float-btn span { display: none; font-size: .9rem; }
.float-btn:hover { width: auto; padding: 0 18px; color: #fff; }
.float-btn:hover span { display: inline; }
.float-whatsapp { background: #25d366; }
.float-call { background: var(--charcoal); color: var(--gold); }
.float-call:hover { color: var(--gold); }
.float-enquiry { background: var(--gold); color: var(--charcoal); }
.float-enquiry:hover { color: var(--charcoal); }
.float-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.floating-contact .float-btn:nth-child(1) { animation: pulse-wa 2.4s infinite; }
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.back-to-top {
  position: fixed; left: 14px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--charcoal);
  color: var(--gold); z-index: 1040; opacity: 0; visibility: hidden; transition: all .3s ease; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--charcoal); }

/* Mobile sticky bar */
.mobile-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1045; display: flex; background: var(--charcoal);
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.mobile-sticky-bar a {
  flex: 1; text-align: center; color: #fff; font-size: .8rem; font-weight: 600; padding: 14px 4px; min-height: 56px;
}
.mobile-sticky-bar a + a { border-left: 1px solid #333; }
.mobile-sticky-bar a:first-child { background: var(--gold); color: var(--charcoal); }
.mobile-sticky-bar a:nth-child(2) i { color: #25d366; }
.mobile-sticky-bar i { display: block; font-size: 1.1rem; margin-bottom: 2px; }
@media (max-width: 767.98px) {
  .floating-contact { bottom: 80px; right: 12px; }
  .back-to-top { bottom: 86px; }
  .float-btn { width: 48px; height: 48px; }
}

/* ---------- Utilities ---------- */
.lazy-img { background: #eee; }
.text-gold { color: var(--gold-dark) !important; }
.bg-gold { background: var(--gold) !important; }
.fs-small { font-size: .92rem; }
.legal-content h2 { font-size: 1.3rem; margin-top: 28px; }
.legal-content p, .legal-content li { color: #444; }
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--gold); line-height: 1; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575.98px) {
  .section { padding: 48px 0; }
  .hero-caption { top: 52%; }
  .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
  .gallery-item img { height: 200px; }
  .map-embed iframe { height: 280px; }
  .enquiry-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
