/* ==========================================================
   The Bug Squad Pest Control Service – Landing Page Styles
   ========================================================== */
:root {
  --green: #174D32;
  --green-dark: #0f3622;
  --lime: #8BC34A;
  --yellow: #FFC928;
  --white: #FFFFFF;
  --light: #F4F8F2;
  --text: #3d4a42;
  --heading: #12301f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 77, 50, .10);
  --shadow-lg: 0 20px 45px rgba(23, 77, 50, .18);
  --accent-color: #174D32;
  --accent-secondary-color: #8BC34A;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
main, footer, section { overflow-x: clip; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--white); line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4, h5, .h1, .h3, .h5 { font-family: 'Montserrat', sans-serif; color: var(--heading); font-weight: 700; }
a { color: var(--green); text-decoration: none; transition: color .25s; }
a:hover { color: var(--lime); }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .65rem 1.5rem; transition: all .3s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { padding: .8rem 1.9rem; font-size: 1rem; }
.btn-accent { background: var(--yellow); color: var(--green-dark); border: 2px solid var(--yellow); }
.btn-accent:hover { background: #ffd54f; border-color: #ffd54f; color: var(--green-dark); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(255, 201, 40, .45); }
.btn-primary-green { background: var(--green); color: #fff; border: 2px solid var(--green); }
.btn-primary-green:hover { background: var(--lime); border-color: var(--lime); color: var(--green-dark); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(139, 195, 74, .4); }
.btn-outline-green { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-green:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.btn-outline-light:hover { transform: translateY(-3px); color: var(--green); }

/* ---------- Top bar & Navbar ---------- */
.topbar { background: var(--green-dark); font-size: .85rem; padding: .45rem 0; color: #d7e8d9; }
.topbar a { color: #d7e8d9; }
.topbar a:hover { color: var(--yellow); }
.topbar i { color: var(--lime); margin-right: .3rem; }

#mainNav { background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); box-shadow: 0 2px 14px rgba(0, 0, 0, .06); padding: .55rem 0; transition: padding .3s, box-shadow .3s; }
#mainNav.scrolled { padding: .3rem 0; box-shadow: 0 6px 22px rgba(23, 77, 50, .14); }
.brand-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); }
.brand-text { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--green); font-size: 1.15rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text small { font-weight: 600; font-size: .7rem; color: var(--lime); letter-spacing: .5px; text-transform: uppercase; }
.navbar-toggler { border: none; font-size: 2rem; color: var(--green); padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }
.nav-link { font-weight: 500; color: var(--heading) !important; position: relative; padding: .5rem .9rem !important; }
.nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--green) !important; }
.btn-call { padding: .55rem 1.2rem; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 40, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 201, 40, 0); } }

/* ---------- Hero ---------- */
.hero .carousel-item { height: 88vh; min-height: 560px; max-height: 860px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.12); transition: transform 7s ease-out; }
.carousel-item.active .hero-bg { transform: scale(1); }
.hero .carousel-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(15, 54, 34, .92) 0%, rgba(23, 77, 50, .72) 45%, rgba(23, 77, 50, .15) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 1140px; }
.hero-content > * { max-width: 680px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; background: rgba(139, 195, 74, .2); border: 1px solid rgba(139, 195, 74, .55); color: #e6f4d7; padding: .4rem 1rem; border-radius: 50px; font-size: .88rem; margin-bottom: 1.2rem; }
.hero h1, .hero .h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.1rem; }
.hero h1 span, .hero .h1 span { color: var(--yellow); }
.hero p { color: #e8f1ea; font-size: 1.1rem; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
/* animated text on slide change */
.carousel-item .hero-content > * { opacity: 0; transform: translateY(30px); }
.carousel-item.active .hero-content > * { animation: heroUp .9s var(--ease) forwards; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .15s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .3s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }
.carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #fff; opacity: .5; margin: 0 6px; }
.carousel-indicators .active { background: var(--yellow); opacity: 1; width: 32px; border-radius: 10px; }
.carousel-control-prev, .carousel-control-next { width: 6%; z-index: 3; }
.hero .carousel-indicators { bottom: 64px; z-index: 4; }

/* ---------- Quick strip ---------- */
.quick-strip { margin-top: -48px; position: relative; z-index: 5; }
.quick-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .85rem; font-weight: 600; color: var(--heading); height: 100%; transition: transform .3s var(--ease); font-size: .95rem; line-height: 1.35; }
.quick-item:hover { transform: translateY(-6px); }
.quick-item i { font-size: 1.6rem; color: var(--green); background: var(--light); min-width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.bg-light-green { background: var(--light); }
.section-tag { display: inline-block; color: var(--green); background: rgba(139, 195, 74, .18); font-weight: 600; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; padding: .35rem 1rem; border-radius: 50px; margin-bottom: .9rem; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: .8rem; text-align: center; }
.section-sub { font-size: 1.08rem; color: #5c6b62; max-width: 640px; margin: 0 auto; }

/* ---------- About ---------- */
.about-img { position: relative; border-radius: 24px; }
.about-img img { width: 100%; height: 560px; object-fit: cover; object-position: center 30%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-img::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 3px dashed var(--lime); border-radius: 28px; z-index: -1; }
.about-badge { position: absolute; right: -14px; bottom: 34px; background: var(--yellow); color: var(--green-dark); border-radius: 16px; padding: 1rem 1.3rem; display: flex; gap: .8rem; align-items: center; box-shadow: var(--shadow-lg); animation: float 4s ease-in-out infinite; }
.about-badge i { font-size: 2rem; }
.about-badge strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }
.about-badge span { font-size: .85rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about-point { background: var(--light); border-radius: 12px; padding: .7rem 1rem; font-weight: 500; color: var(--heading); display: flex; gap: .6rem; align-items: center; transition: background .3s, transform .3s; }
.about-point:hover { background: #e7f2df; transform: translateX(5px); }
.about-point i { color: var(--lime); font-size: 1.3rem; }

/* ---------- Service cards ---------- */
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-img img { transform: scale(1.1); }
.service-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 54, 34, .55), transparent 55%); }
.service-icon { position: absolute; left: 1.4rem; top: -27px; z-index: 2; width: 54px; height: 54px; border-radius: 14px; background: var(--yellow); color: var(--green-dark); display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 18px rgba(0, 0, 0, .15); transition: transform .4s var(--ease), background .3s; }
.service-card:hover .service-icon { transform: rotate(-10deg) scale(1.08); background: var(--lime); }
.service-body { position: relative; padding: 2.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-body p { font-size: .94rem; color: #5c6b62; flex-grow: 1; }
.service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.service-actions .btn { padding: .55rem .6rem; font-size: .86rem; }
.service-actions .btn-know { grid-column: 1 / -1; background: var(--light); color: var(--green); border: 2px solid transparent; }
.service-actions .btn-know:hover { border-color: var(--green); background: #fff; }

/* ---------- Why choose us ---------- */
.why-section { background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%238BC34A' fill-opacity='.18'/%3E%3C/svg%3E"); }
.feature-box { background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem; height: 100%; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; border-bottom: 4px solid transparent; }
.feature-box::before { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; background: rgba(139, 195, 74, .12); border-radius: 50%; transition: transform .5s var(--ease); }
.feature-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--lime); }
.feature-box:hover::before { transform: scale(2.4); }
.feature-icon { width: 66px; height: 66px; border-radius: 18px; background: var(--green); color: var(--yellow); display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 1.2rem; position: relative; transition: transform .4s var(--ease); }
.feature-box:hover .feature-icon { transform: rotateY(180deg); }
.feature-box h3 { font-size: 1.2rem; position: relative; }
.feature-box p { margin: 0; color: #5c6b62; position: relative; }

/* ---------- CTA ---------- */
.cta-banner { padding: 110px 0; color: #fff; background: linear-gradient(rgba(15, 54, 34, .86), rgba(23, 77, 50, .86)), url('../images/hero-1.jpg') center / cover fixed; }
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; }
.cta-banner p { max-width: 680px; margin: 1rem auto 2rem; font-size: 1.1rem; color: #e3eee6; }

/* ---------- Contact ---------- */
.form-card { background: #fff; border-radius: 22px; padding: 2.3rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--lime); }
.form-card h3 { font-size: 1.35rem; margin-bottom: 1.3rem; }
.form-label { font-weight: 500; font-size: .9rem; color: var(--heading); }
.form-control, .form-select { border-radius: 12px; padding: .7rem 1rem; border: 1.5px solid #dbe6dd; background-color: #fbfdfa; }
.form-control:focus, .form-select:focus { border-color: var(--lime); box-shadow: 0 0 0 .2rem rgba(139, 195, 74, .25); }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: #c4d6c8; }
.footer a { color: #c4d6c8; }
.footer-bottom { padding: 1.3rem 0; text-align: center; font-size: .9rem; }

/* ---------- Floating actions ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); transition: transform .3s var(--ease); position: relative; }
.fab:hover { transform: scale(1.12); }
.fab-call { background: var(--green); }.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: ring 2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

.enquire-tab { position: fixed; right: 0; top: 50%; z-index: 1040; transform: translateY(-50%); writing-mode: vertical-rl; rotate: 180deg; background: var(--yellow); color: var(--green-dark); border: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; padding: 1.1rem .6rem; border-radius: 0 12px 12px 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); display: flex; align-items: center; gap: .5rem; letter-spacing: .5px; transition: padding .3s, background .3s; }
.enquire-tab i { rotate: 90deg; }
.enquire-tab:hover { background: var(--lime); padding-left: .9rem; }

.back-top { position: fixed; left: 18px; bottom: 22px; z-index: 1040; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--green-dark); font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Modals ---------- */
.enquiry-modal { border: 0; border-radius: 20px; overflow: hidden; }
.enquiry-modal .modal-header { background: linear-gradient(120deg, var(--green), #24704a); color: #fff; border: 0; padding: 1.2rem 1.5rem; align-items: flex-start; }
.enquiry-modal .modal-title { color: #fff; margin: 0; }
.enquiry-modal .modal-title i { color: var(--yellow); }
.enquiry-modal .modal-header small { color: #d6e9d9; }
.enquiry-modal .modal-body { padding: 1.5rem; }
.service-modal { border: 0; border-radius: 20px; overflow: hidden; }
.service-modal .btn-close { position: absolute; right: 14px; top: 14px; z-index: 3; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: 1; }
.service-modal-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.service-modal-list { list-style: none; padding: 0; margin: 0; }
.service-modal-list li { padding: .25rem 0; display: flex; gap: .5rem; }
.service-modal-list li::before { content: "\2714"; color: var(--lime); font-weight: 700; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse { background: #fff; border-radius: 14px; padding: 1rem; margin-top: .6rem; box-shadow: var(--shadow); }
  .nav-link::after { display: none; }
  .btn-call { width: 100%; }
  .hero .carousel-item { height: 78vh; min-height: 520px; }
  .hero .carousel-item::before { background: linear-gradient(180deg, rgba(15, 54, 34, .78), rgba(15, 54, 34, .9)); }
  .section { padding: 72px 0; }
  .about-img img { height: 440px; }
  .cta-banner { background-attachment: scroll; }
}
@media (max-width: 575.98px) {
  .brand-logo { width: 46px; height: 46px; }
  .brand-text { font-size: 1rem; }
  .hero .carousel-item { min-height: 560px; }
  .hero p { font-size: 1rem; }
  .hero-btns .btn { width: 100%; }
  .carousel-control-prev, .carousel-control-next { display: none; }
  .quick-strip { margin-top: -30px; }
  .quick-item { flex-direction: column; text-align: center; font-size: .82rem; padding: .9rem .6rem; }
  .about-img img { height: 360px; }
  .about-img::before { inset: -10px 6px 10px -6px; }
  .about-badge { right: 10px; bottom: 16px; padding: .75rem 1rem; }
  .form-card { padding: 1.6rem; }
  .fab { width: 50px; height: 50px; font-size: 1.3rem; }
  .enquire-tab { padding: .9rem .45rem; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .carousel-item .hero-content > * { opacity: 1; transform: none; }
}

/* ---------- Popup enquiry form ---------- */
#enquiryForm .form-control { padding: .75rem 1rem; }
#enquiryForm .form-control:invalid:not(:placeholder-shown) { border-color: #dc3545 !important; }
#enquiryForm button[type="submit"] { border-radius: 50px; padding: .8rem 1.5rem; font-weight: 600; transition: transform .3s var(--ease), box-shadow .3s; }
#enquiryForm button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 77, 50, .3); }

/* ---------- Mobile: no horizontal slide-in (prevents right-side gap) ---------- */
@media (max-width: 991.98px) {
  .reveal.from-left, .reveal.from-right { transform: translateY(40px); }
  .reveal.visible { transform: none; }
}

/* ---------- Contact cards ---------- */
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.4rem 1.8rem; height: 100%; text-align: center; border-bottom: 4px solid transparent; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--lime); }
.contact-card-icon { width: 74px; height: 74px; margin: 0 auto 1.3rem; border-radius: 50%; background: var(--green); color: var(--yellow); display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 0 0 8px var(--light); transition: background .3s, color .3s; }
.contact-card:hover .contact-card-icon { background: var(--yellow); color: var(--green-dark); }
.contact-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-card p, .contact-card address { color: #5c6b62; font-size: .95rem; }
.contact-card-link { font-weight: 600; font-size: 1.05rem; color: var(--green); word-break: break-word; }
.contact-card-link:hover { color: var(--lime); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem 1.8rem 1.8rem; height: 100%; margin: 0; display: flex; flex-direction: column; position: relative; border-top: 4px solid var(--lime); transition: transform .4s var(--ease), box-shadow .4s; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.testimonial-quote { position: absolute; top: .6rem; right: 1.2rem; font-size: 3.6rem; line-height: 1; color: rgba(139, 195, 74, .3); }
.testimonial-card blockquote { flex-grow: 1; margin: 0 0 1.4rem; padding-right: 2.8rem; }
.testimonial-card blockquote p { font-size: 1.02rem; color: var(--heading); font-style: italic; margin: 0; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1.1rem; border-top: 1px dashed #dbe6dd; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--yellow); display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.testimonial-card figcaption strong { font-family: 'Montserrat', sans-serif; color: var(--heading); }

/* ---------- Testimonial slider ---------- */
.testimonial-slider { max-width: 820px; margin: 0 auto; padding: 0 70px 60px; }
.testimonial-slider .carousel-item { padding: 10px 6px 20px; }
.testimonial-slider .testimonial-card { text-align: center; padding: 2.8rem 2.4rem 2.2rem; min-height: 290px; }
.testimonial-slider .testimonial-card:hover { transform: none; }
.testimonial-slider .testimonial-quote { position: static; display: block; margin-bottom: .4rem; color: var(--lime); }
.testimonial-slider .testimonial-card blockquote { padding-right: 0; }
.testimonial-slider .testimonial-card blockquote p { font-size: 1.2rem; line-height: 1.7; }
.testimonial-slider .testimonial-card figcaption { justify-content: center; }
.testimonial-nav { position: absolute; top: calc(50% - 30px); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--green); background: #fff; color: var(--green); font-size: 1.2rem; display: grid; place-items: center; transition: background .3s, color .3s; z-index: 3; }
.testimonial-nav:hover { background: var(--green); color: #fff; }
.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }
.testimonial-dots { bottom: 0; margin-bottom: 0; }
.testimonial-dots [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--green); opacity: .25; margin: 0 5px; }
.testimonial-dots .active { opacity: 1; background: var(--lime); width: 30px; border-radius: 10px; }
@media (max-width: 575.98px) {
  .testimonial-slider { padding: 0 0 56px; }
  .testimonial-nav { display: none; }
  .testimonial-slider .testimonial-card { padding: 2.2rem 1.4rem 1.8rem; }
  .testimonial-slider .testimonial-card blockquote p { font-size: 1.05rem; }
}
