/* =========================================================
   Four Wheeler Towing Service - Main Stylesheet
   ========================================================= */

/* ---------- 1. Local Fonts (Poppins) ---------- */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../vendor/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../vendor/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../vendor/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../vendor/fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url('../vendor/fonts/poppins-800.woff2') format('woff2'); }

/* ---------- 2. Theme Variables ---------- */
:root {
  --navy: #101E32;
  --slate: #26364A;
  --yellow: #FFC928;
  --yellow-dark: #E8B30F;
  --white: #FFFFFF;
  --light-grey: #F2F4F7;
  --text: #4A5568;
  --whatsapp: #25D366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 30, 50, .08);
  --shadow-lg: 0 18px 40px rgba(16, 30, 50, .16);
  --transition: all .3s ease;
}

/* ---------- 3. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Prevent any section from creating horizontal scroll on mobile */
html, body { max-width: 100%; overflow-x: clip; }
section, header, footer { overflow-x: clip; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15.5px;
  line-height: 1.75;
}
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 700; line-height: 1.25; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }
.bg-light-grey { background: var(--light-grey); }
.text-light-muted { color: rgba(255, 255, 255, .7) !important; }

/* ---------- 4. Buttons ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .6rem 1.5rem; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { padding: .8rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }

.btn-yellow { background: var(--yellow); color: var(--navy); border: 2px solid var(--yellow); }
.btn-yellow:hover, .btn-yellow:focus { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 201, 40, .35); }

.btn-navy { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--slate); border-color: var(--slate); color: var(--white); transform: translateY(-2px); }

.btn-navy-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light-custom { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .8); }
.btn-outline-light-custom:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); border: 2px solid var(--whatsapp); }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; color: var(--white); transform: translateY(-2px); }

/* ---------- 5. Top Bar ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: .85rem; padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-info a, .topbar-info span { color: rgba(255, 255, 255, .75); margin-right: 1.5rem; }
.topbar-info i { color: var(--yellow); margin-right: .35rem; }
.topbar a:hover { color: var(--yellow); }

/* ---------- 6. Navbar ---------- */
.main-nav { background: var(--white); padding: .85rem 0; box-shadow: 0 2px 15px rgba(16, 30, 50, .06); transition: var(--transition); }
.main-nav.scrolled { padding: .5rem 0; box-shadow: 0 6px 25px rgba(16, 30, 50, .12); }

.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; }
.brand-text { font-weight: 800; color: var(--navy); font-size: 1.15rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text small { font-weight: 500; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }

.main-nav .nav-link { color: var(--navy); font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.main-nav .nav-link::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .3s ease; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--navy); }

.navbar-toggler { border: none; font-size: 1.5rem; color: var(--navy); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- 7. Hero Carousel ---------- */
.hero { position: relative; }
.hero-slide { height: calc(100vh - 115px); min-height: 560px; max-height: 820px; background-size: cover; background-position: center; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 30, 50, .92) 0%, rgba(16, 30, 50, .75) 45%, rgba(16, 30, 50, .35) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: var(--white); }
.hero-content > * { max-width: 680px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; background: rgba(255, 201, 40, .15); border: 1px solid rgba(255, 201, 40, .5); color: var(--yellow); padding: .35rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 1.08rem; color: rgba(255, 255, 255, .85); margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Caption entrance animation for the active slide */
.carousel-item .hero-content > * { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.carousel-item.active .hero-content > * { opacity: 1; transform: none; }
.carousel-item.active .hero-content > *:nth-child(2) { transition-delay: .15s; }
.carousel-item.active .hero-content > *:nth-child(3) { transition-delay: .3s; }
.carousel-item.active .hero-content > *:nth-child(4) { transition-delay: .45s; }

.carousel-indicators { margin-bottom: 2rem; }
.carousel-indicators [data-bs-target] { width: 32px; height: 5px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .5); }
.carousel-indicators .active { background: var(--yellow); width: 48px; }
.carousel-control-prev, .carousel-control-next { width: 6%; opacity: .6; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

/* ---------- 8. Feature Strip ---------- */
.feature-strip { background: var(--yellow); }
.strip-item { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1.4rem .5rem; color: var(--navy); font-weight: 600; border-right: 1px solid rgba(16, 30, 50, .12); }
.feature-strip .col-6:last-child .strip-item { border-right: none; }
.strip-item i { font-size: 1.6rem; }

/* ---------- 9. Section Common ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; }
.section-tag { display: inline-block; color: var(--slate); background: rgba(255, 201, 40, .22); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; padding: .3rem 1rem; border-radius: 50px; margin-bottom: 1rem; }
.why-us .section-tag { color: var(--yellow); background: rgba(255, 201, 40, .12); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.section-title span { color: var(--yellow-dark); }
.why-us .section-title span { color: var(--yellow); }
.section-sub { font-size: 1.05rem; margin-bottom: 0; }

/* Scroll reveal (toggled by JS) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 10. About ---------- */
.about-img-wrap { position: relative; padding: 0 0 50px 0; }
.about-img { width: 88%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-img-small { position: absolute; right: 0; bottom: 0; width: 45%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: 20px; top: 20px; background: var(--yellow); color: var(--navy); display: flex; align-items: center; gap: .75rem; padding: .85rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow); }
.about-badge i { font-size: 1.8rem; }
.about-badge strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.about-badge span { font-size: .8rem; font-weight: 500; }

.about-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.about-points li { display: flex; gap: 1rem; align-items: flex-start; background: var(--light-grey); padding: 1rem 1.2rem; border-radius: 12px; border-left: 4px solid var(--yellow); transition: var(--transition); }
.about-points li:hover { transform: translateX(6px); box-shadow: var(--shadow); background: var(--white); }
.about-points i { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--navy); color: var(--yellow); border-radius: 10px; font-size: 1.1rem; }
.about-points strong { display: block; color: var(--navy); }
.about-points span { font-size: .9rem; }

.about-call { display: flex; align-items: center; gap: .75rem; color: var(--navy); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.about-call small { display: block; font-weight: 500; font-size: .8rem; color: var(--text); }
.about-call-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.about-call:hover { color: var(--yellow-dark); }

/* ---------- 11. Services ---------- */
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--yellow); }
.service-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 30, 50, .55)); pointer-events: none; }
.service-icon { position: absolute; left: 1.25rem; bottom: 1.1rem; width: 54px; height: 54px; border-radius: 12px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.35rem; box-shadow: 0 6px 16px rgba(16, 30, 50, .3); z-index: 2; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--navy); color: var(--yellow); }
.service-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-body h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.service-body p { font-size: .93rem; flex-grow: 1; }
.service-btns { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.service-btns .btn { flex: 1 1 auto; }

/* ---------- 12. Why Choose Us ---------- */
.why-us { background: var(--navy); position: relative; overflow: hidden; }
.why-us::before { content: ''; position: absolute; inset: 0; background: url('../images/gallery/4.jpeg') center / cover no-repeat; opacity: .06; }
.why-us .container { position: relative; }
.why-card { position: relative; background: var(--slate); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 2rem 1.75rem; height: 100%; transition: var(--transition); overflow: hidden; }
.why-card:hover { transform: translateY(-6px); border-color: var(--yellow); background: #2c3e55; }
.why-num { position: absolute; top: 1rem; right: 1.25rem; font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .06); line-height: 1; }
.why-icon { width: 64px; height: 64px; border-radius: 14px; background: rgba(255, 201, 40, .12); color: var(--yellow); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.25rem; transition: var(--transition); }
.why-card:hover .why-icon { background: var(--yellow); color: var(--navy); }
.why-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .5rem; }
.why-card p { color: rgba(255, 255, 255, .7); margin: 0; font-size: .93rem; }

/* ---------- 13. Gallery ---------- */
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--light-grey); cursor: zoom-in; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
/* ::after = dark overlay, ::before = yellow zoom icon */
.gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(16, 30, 50, .45); opacity: 0; transition: var(--transition); z-index: 1; }
.gallery-item::before { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; opacity: 0; transform: scale(.5); transition: var(--transition); z-index: 3; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.1); }
.gallery-item:hover::before, .gallery-item:hover::after { opacity: 1; }
.gallery-item:hover::before { transform: scale(1); }
.gallery-item[data-type="video"]::before { content: '\f04b'; }
.gallery-item[data-type="video"]:hover .play-badge { opacity: 0; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.2rem; z-index: 2; box-shadow: 0 0 0 8px rgba(255, 201, 40, .3); transition: var(--transition); }
.gallery-extra { display: none; }
.gallery.show-all .gallery-extra { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 14. Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 30, .95); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { max-width: 90vw; max-height: 85vh; display: flex; }
.lb-stage img, .lb-stage video { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); object-fit: contain; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .1); color: var(--white); border: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; transition: var(--transition); }
.lb-close:hover, .lb-nav:hover { background: var(--yellow); color: var(--navy); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .9rem; }

/* ---------- 15. CTA Band ---------- */
.cta-band { background: var(--yellow); padding: 3.5rem 0; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: .35rem; }
.cta-band p { color: var(--slate); margin: 0; font-weight: 500; }

/* ---------- 16. Contact ---------- */
.contact-info { background: var(--navy); border-radius: var(--radius); padding: 2rem; height: 100%; box-shadow: var(--shadow-lg); }
.info-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--white); }
.info-item small { display: block; color: rgba(255, 255, 255, .6); font-size: .8rem; }
.info-item strong { font-weight: 600; word-break: break-word; }
a.info-item:hover strong { color: var(--yellow); }
.info-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.15rem; }
.map-card { position: relative; height: 100%; min-height: 480px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); background: var(--white); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding-top: 80px; font-size: .93rem; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .6); }
.footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.25rem; position: relative; padding-bottom: .75rem; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--yellow); border-radius: 3px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: .5rem; color: var(--yellow); font-size: .8rem; }
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.footer-contact i { color: var(--yellow); margin-top: .35rem; }
.footer-contact a { color: rgba(255, 255, 255, .7); word-break: break-word; }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding: 1.25rem 0; }
.footer-bottom p { margin: 0; font-size: .875rem; }

/* ---------- 18. Floating Buttons ---------- */
.float-btn { position: fixed; right: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-size: 1.6rem; z-index: 1050; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.float-whatsapp { bottom: 24px; background: var(--whatsapp); animation: pulse 2.2s infinite; }
.float-whatsapp:hover { color: var(--white); transform: scale(1.08); }
.float-call { bottom: 92px; background: var(--yellow); color: var(--navy); font-size: 1.3rem; animation: ring 2.5s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 40, .6); } 70% { box-shadow: 0 0 0 16px rgba(255, 201, 40, 0); } }
.float-call:hover { color: var(--navy); transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 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: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px; border: none; background: var(--navy); color: var(--yellow); z-index: 1040; opacity: 0; visibility: hidden; transform: translateY(15px); transition: var(--transition); box-shadow: var(--shadow-lg); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--yellow); color: var(--navy); }

/* ---------- 19. Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--white); padding: 1rem 0; border-top: 1px solid var(--light-grey); margin-top: .75rem; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link.active { color: var(--yellow-dark); }
  .hero-slide { height: 78vh; min-height: 520px; }
  .hero-overlay { background: rgba(16, 30, 50, .78); }
  .section { padding: 75px 0; }
  .strip-item { border-bottom: 1px solid rgba(16, 30, 50, .12); }
  .feature-strip .col-6:nth-child(2) .strip-item { border-right: none; }
  .map-card { min-height: 380px; }
}

@media (max-width: 575.98px) {
  body { font-size: 15px; }
  .hero-slide { height: auto; min-height: 560px; padding: 70px 0 90px; }
  .hero p { font-size: .98rem; }
  .hero-btns .btn { flex: 1 1 100%; }
  .carousel-control-prev, .carousel-control-next { display: none; }
  .strip-item { flex-direction: column; gap: .35rem; font-size: .85rem; text-align: center; padding: 1.1rem .5rem; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 2.5rem; }
  .about-img { width: 100%; }
  .about-img-wrap { padding: 0; }
  .contact-info { padding: 1.5rem; }
  .map-card { min-height: 320px; }
  .brand-text { font-size: 1rem; }
  .brand-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .float-btn { width: 50px; height: 50px; right: 14px; }
  .float-call { bottom: 84px; }
  .back-to-top { left: 14px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
