/* ==========================================================================
   Tasko Civil Contracts — Custom Styles
   ========================================================================== */

:root {
  --primary: #f4a300;
  --primary-dark: #d68e00;
  --secondary: #1e293b;
  --secondary-light: #2c3c53;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text: #555555;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
  --transition: all 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  background: var(--white);
  position: relative;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

section.section {
  padding: 100px 0;
}

@media (max-width: 767px) {
  section.section {
    padding: 70px 0;
  }
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--secondary);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-outline-light-custom {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-outline-light-custom:hover {
  background: var(--white);
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-outline-dark-custom {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-outline-dark-custom:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ---------- Header ---------- */
#header {
  /* padding: 18px 0; */
  transition: var(--transition);
  background: transparent;
  z-index: 1000;
}
#header.scrolled {
  background: rgba(30, 41, 59, 0.95);
  /* padding: 10px 0; */
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}

@media screen and (max-width: 600px) {
  .brand-text {
    display: none;
  }
}

.brand-text em {
  color: var(--primary);
  font-style: normal;
}
.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  margin: 0 12px;
  position: relative;
  transition: var(--transition);
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}
.navbar-toggler {
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  background: transparent;
}
.navbar-toggler:focus {
  box-shadow: none;
}
#header.scrolled .navbar-toggler,
#header.scrolled .navbar-brand .brand-text {
  color: var(--white);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--secondary);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
}
.carousel,
.carousel-inner,
.carousel-item {
  height: 100vh;
  min-height: 640px;
}
.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.carousel-item .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(30, 41, 59, 0.88) 0%,
    rgba(30, 41, 59, 0.65) 55%,
    rgba(30, 41, 59, 0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  color: var(--white);
  padding: 30px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.carousel-item.active .hero-content {
  animation: heroContentIn 0.9s ease forwards;
  animation-delay: 0.35s;
}
@keyframes heroContentIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-tag {
  display: inline-block;
  background: rgba(244, 163, 0, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  white-space: normal;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  word-wrap: break-word;
}
.hero-content h1 span {
  color: var(--primary);
}
.hero-content p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0 auto 30px;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 1;
}
.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}
.carousel-control-prev:hover .carousel-arrow,
.carousel-control-next:hover .carousel-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}
.hero-indicators {
  bottom: 30px;
}
.hero-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  opacity: 1;
}
.hero-indicators button.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

@media (max-width: 767px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

/* ---------- Section Headings ---------- */
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}
.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 2px;
  background: var(--primary);
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 15px;
}
.section-subtitle {
  color: var(--text);
  max-width: 620px;
  font-size: 1.05rem;
}

/* ---------- About ---------- */
.about-section {
  background: var(--light-gray);
}
.about-img-wrap {
  position: relative;
}
.about-main-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--primary);
  color: var(--secondary);
  padding: 22px 28px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(244, 163, 0, 0.35);
}
.about-exp-badge h3 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--secondary);
}
.about-exp-badge p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.lead-text {
  font-size: 1.15rem;
  color: var(--secondary);
  font-weight: 500;
}
.about-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
  margin: 4px 0 20px;
}
.about-highlight i {
  color: var(--primary);
  font-size: 1.1rem;
}
.mission-box {
  display: flex;
  gap: 18px;
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-top: 20px;
  border-left: 4px solid var(--primary);
}
.mission-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(244, 163, 0, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.about-stats h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0;
}
.about-stats p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .about-main-img {
    height: 350px;
  }
  .about-exp-badge {
    right: 10px;
    bottom: -15px;
    padding: 16px 20px;
  }
}

/* ---------- Services ---------- */
.services-section {
  background: var(--white);
}
.service-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  height: 100%;
  border: 1px solid #eee;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.14);
}
.service-img-wrap {
  position: relative;
  height: 220px;
}
.service-img-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.service-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.service-card:hover .service-img-inner img {
  transform: scale(1.12);
}
.service-icon {
  position: absolute;
  z-index: 3;
  bottom: -26px;
  left: 24px;
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(244, 163, 0, 0.4);
}
.service-body {
  padding: 40px 24px 24px;
}
.service-body h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.service-body p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  min-height: 66px;
}
.service-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.service-btns .btn {
  flex: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

/* ---------- Why Us ---------- */
.why-us-section {
  background: var(--secondary);
  position: relative;
}
.why-us-section .section-title,
.why-us-section .section-subtitle {
  color: var(--white);
}
.why-us-section .section-subtitle {
  color: #cbd5e1;
}
.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(244, 163, 0, 0.12);
  border-color: var(--primary);
  transform: translateY(-8px);
}
.why-icon {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.why-card h5 {
  color: var(--white);
  margin-bottom: 12px;
}
.why-card p {
  color: #cbd5e1;
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--light-gray);
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  height: 220px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.15);
}
.gallery-zoom {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
}

/* ---------- Gallery Lightbox Modal ---------- */
.gallery-modal-dialog {
  max-width: 90vw;
}
.gallery-modal-content {
  background: transparent;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.gallery-modal-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.gallery-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--white);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  opacity: 1;
  z-index: 5;
}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
}
.gallery-nav-btn:hover {
  background: var(--primary);
  color: var(--secondary);
}
.gallery-prev {
  left: 10px;
}
.gallery-next {
  right: 10px;
}
.gallery-modal-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 767px) {
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .gallery-prev {
    left: 4px;
  }
  .gallery-next {
    right: 4px;
  }
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 110px 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.85);
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}
.cta-content h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.cta-content p {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  .cta-section {
    background-attachment: scroll;
  }
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--white);
}
.contact-info-card {
  background: var(--secondary);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
}
.contact-info-card h4 {
  color: var(--white);
  margin-bottom: 25px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(244, 163, 0, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 3px;
  font-size: 0.95rem;
}
.contact-list a,
.contact-list span {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.contact-map-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  min-height: 420px;
}
.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

@media (max-width: 767px) {
  .contact-info-card {
    padding: 28px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: #14202f;
  color: #cbd5e1;
  padding: 26px 0;
}
.footer-bottom {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ---------- Floating Buttons ---------- */
.floating-btns {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.float-btn {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: none;
  transition: var(--transition);
}
.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}
.call-btn {
  background: #22c55e;
  animation: pulseBtn 2s infinite;
}
@keyframes pulseBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (max-width: 767px) {
  .floating-btns {
    display: none;
  }
}

/* ---------- Side Enquire Now Tab ---------- */
.side-enquire-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1040;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--primary);
  color: var(--secondary);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  line-height: 1;
  padding: 22px 12px;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.side-enquire-btn i {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.side-enquire-btn:hover {
  background: var(--secondary);
  color: var(--white);
  padding-right: 16px;
}

@media (max-width: 767px) {
  .side-enquire-btn {
    display: none;
  }
}

/* ---------- Sticky Mobile CTA Bar ---------- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1055;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15);
  }
  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 15px 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-cta-btn.call {
    background: #22c55e;
    color: var(--white);
  }
  .mobile-cta-btn.enquire {
    background: var(--primary);
    color: var(--secondary);
  }
}

/* ---------- Scroll To Top ---------- */
#scrollTopBtn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 1.2rem;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}
#scrollTopBtn:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-4px);
}

@media (max-width: 767px) {
  #scrollTopBtn {
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* ---------- Enquire Modal ---------- */
.enquire-modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
  padding: 10px;
}
.modal-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.enquire-modal-content .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--light-gray);
  background-size: 14px;
  opacity: 1;
}
.enquire-modal-content .btn-close:hover {
  background-color: var(--primary);
}
