/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          BODY SECTION                                              ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

:root {
  --footer-bg: linear-gradient(180deg, #061016 0%, #062026 60%);
  --bg-image: url("../utilities/images/index/3.jpg");
  --accent: #37c6b2;
  --accent-2: #3ea18f;
  --muted: #a8b5b3;
  --phase-accent: #cc990f;
  --phase-accent-2: #3ea18f;
  --phase-card-bg: rgba(255, 255, 255, 0.3);
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                     HEADINGS AND TITLES                                            ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
}

.section-divider {
  width: 60px;
  border-top: 4px solid #66bb6a;
  margin: 1rem auto;
}

.section-subtitle {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 600px;
  margin: 0 auto;
}

.section-title.section-title-white {
  color: #fff;
}

.section-divider.section-divider-white {
  border-top: 4px solid #fff;
}

.section-subtitle.section-subtitle-white {
  color: #fff;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          HEADER SECTION                                            ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.4) 60%,
    rgba(255, 255, 255, 0.4) 100%
  );
  backdrop-filter: blur(1.2px);
  -webkit-backdrop-filter: blur(3.2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding-bottom: 0.5rem;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 5rem;
  position: relative;
}

.logo {
  flex-grow: 1;
}

.logo img {
  width: 28rem;
  transition: transform 0.3s ease-in-out;
}

.logo img:hover {
  transform: scale(1.05);
}

.social-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

/* Common base style for all links */
.social-links a {
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  padding: 0.2rem 0.3rem;
}

/* Hover animation for all */
.social-links a:hover {
  transform: translateY(-2px);
}

/* WhatsApp (first child) */
.social-links a:first-child {
  color: #25d366;
}

/* LinkedIn (middle child) */
.social-links a:nth-child(2) {
  color: #0077b5;
}

/* Instagram (last child) */
.social-links a:last-child {
  color: #e4405f;
}

/* Optional hover color tweaks for subtle effect */
.social-links a:first-child:hover {
  color: #1ebe5d;
}

.social-links a:nth-child(2):hover {
  color: #0a66c2;
}

.social-links a:last-child:hover {
  color: #f56073;
}

.header-labels {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.header-labels label {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.2rem 0.3rem;
  transition: color 0.4s ease-in-out;
}

.header-labels label:hover {
  color: #00796b;
  transform: translateY(-2px);
}

.flash-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff9800, #ffc107);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.7);
  white-space: nowrap;
  animation: flashGlow 1.5s infinite alternate;
}
@keyframes flashGlow {
  0% {
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 193, 7, 1);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
    transform: scale(1);
  }
}

.marquee {
  background: #fff3cd; /* Yellow background */
  color: #856404; /* Text color */
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 8px 0;
  position: relative;
}

.marquee span {
  display: inline-block;
  padding-left: 100%; /* Start from right side */
  animation: marquee 20s linear infinite; /* Speed: smaller = faster */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Optional: pause on hover */
.marquee:hover span {
  animation-play-state: paused;
}

.header-line {
  width: calc(100% - 10rem);
  margin: 0 auto;
}

.header-line hr {
  border: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0;
}

.navbar {
  background: transparent !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 0;
}

.navbar-collapse {
  display: flex;
  justify-content: center;
}

.navbar-nav .nav-link {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0 1.2rem;
  transition: color 0.5s, transform 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #00796b;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: #00796b;
  text-decoration-thickness: 3px;
  transform: translateY(-2px);
}

.navbar-nav .dropdown-toggle::after {
  display: none;
}

.navbar-nav .dropdown-menu {
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(40, 183, 231, 0.08);
  border: none;
  margin-top: 0.7rem;
  background: #fff;
  padding: 0.5rem 0;
  transition: all 0.2s;
}

.navbar-nav .dropdown-item {
  color: #333;
  font-size: 1rem;
  padding: 0.6rem 1.5rem;
  transition: background 0.2s, color 0.2s;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: #e6f7fd;
  color: #28b7e7;
}

.navbar-nav .nav-link .fa-chevron-down {
  font-size: 0.8em;
  margin-left: 0.3em;
  transition: transform 0.3s;
}

.navbar-nav .dropdown.show .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease-in-out;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          CAROUSEL SECTION                                          ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.carousel {
  position: relative;
  z-index: 0;
}

.carousel-item {
  height: 80vh;
  overflow: hidden;
  position: relative;
}

.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 7s ease-in-out infinite;
  position: relative;
  z-index: 0;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

.carousel-item.active img {
  transform: scale(1.2);
}

.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: white;
  padding: 0 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.carousel-caption-custom .btn {
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.carousel-caption-custom .btn:hover {
  background-color: white;
  color: black;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          ABOUT US SECTION                                          ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.highlight-line {
  font-weight: bold;
  color: #00796b;
}

.about-image-wrapper {
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.about-image {
  width: 70%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 20px;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.feature-section {
  padding: 1rem 2rem;
}

.feature-content h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.feature-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
  text-align: justify;
}

.feature-content .btn {
  margin-right: 10px;
}

.company-btn {
  background: linear-gradient(135deg, #59c2ae, #007bff);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.company-btn:hover {
  background: linear-gradient(135deg, #0056b3, #00aaff);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
  transform: translateY(-2px);
}

.touch-btn {
  background: linear-gradient(135deg, #59c2ae, #4caf50);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.touch-btn:hover {
  background: linear-gradient(
    135deg,
    #43a047,
    #2e7d32
  ); /* Deeper green on hover */
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.6);
  transform: translateY(-2px);
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          SMC GOALS SECTION                                         ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.vision-mission-section {
  overflow: hidden;
  padding: 50px;
}

.vm-box {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
}

.vm-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.vm-box .vm-icon {
  font-size: 2rem;
  color: var(--accent-a);
  z-index: 3;
  position: relative;
}

.vm-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 164, 0.08),
    rgba(255, 255, 255, 0.15)
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.vm-box:hover .vm-overlay {
  opacity: 0.2;
}

.vision-box::before,
.mission-box::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  top: -40px;
  right: -40px;
  background: radial-gradient(
    circle at center,
    rgba(14, 165, 164, 0.18),
    transparent 70%
  );
  z-index: 0;
}

.mission-box::before {
  left: -40px;
  right: auto;
  background: radial-gradient(
    circle at center,
    rgba(13, 148, 136, 0.15),
    transparent 70%
  );
}

.vm-box .container-inner {
  position: relative;
  z-index: 2;
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          SMC SERVICES SECTION                                      ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.services-bg {
  position: relative;
  background-image: url("../utilities/images/index/3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  overflow: hidden;
}

.services-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.services-bg .container-fluid {
  position: relative;
  z-index: 1;
  max-width: 1350px; /* wider container */
}

.eco-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px 28px;
  color: #f9fdfd;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.eco-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.eco-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: -50px;
  right: -50px;
  background: radial-gradient(
    circle at center,
    rgba(55, 198, 178, 0.18),
    transparent 70%
  );
  transition: transform 0.5s ease;
  z-index: 0;
}

.eco-card:hover::before {
  transform: scale(1.1);
}

.eco-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 86, 81, 0.3);
  margin-bottom: 16px;
  z-index: 1;
}

.eco-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  z-index: 1;
}

.eco-card-divider {
  height: 3px;
  width: 50px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.5)
  );
  border: none;
  border-radius: 999px;
  margin: 10px 0 15px;
}

.eco-card-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
  line-height: 1.55;
  flex: 1;
  z-index: 1;
}

.eco-card-btn {
  align-self: flex-start;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.8rem;
  z-index: 1;
}

.eco-card-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 15px rgba(11, 86, 81, 0.4);
  transform: translateY(-2px);
  border-color: transparent;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          CORE VALUES SECTION                                       ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.three-column-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 0.2rem;
  margin-bottom: 3rem;
}

.column {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.column:hover {
  transform: scale(1.02);
}

.content {
  display: flex;
  align-items: center;
  padding: 5px;
  margin-bottom: 5px;
  transition: background 0.3s ease-in-out;
}

.content:hover {
  background: rgba(255, 255, 255, 0.3);
}

.left-column-b .text {
  text-align: right;
  flex-grow: 1;
}

.text h4 {
  font-size: 1.3rem;
}

.text p {
  font-size: 0.9rem;
}

.right-column-b .text {
  text-align: left;
  flex-grow: 1;
}

.content i {
  font-size: 2rem;
  color: #28b7e7;
  margin: 0 15px;
}

.middle-column img {
  width: 100%;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          WHY CHOOSE SECTION                                        ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.why-choose-section {
  padding: 80px 20px;
  background-color: #e8f5e9;
}

.fancy-card {
  background: #ffffff;
  border: 2px solid #c8e6c9;
  border-radius: 1.5rem 1.5rem 0 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fancy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(34, 139, 34, 0.2);
}

.fancy-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background-color: #a5d6a7;
  transform: rotate(45deg);
  z-index: 0;
  opacity: 0.15;
}

.fancy-icon {
  font-size: 2rem;
  color: #388e3c;
  margin-bottom: 1rem;
}

.fancy-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.fancy-desc {
  font-size: 0.95rem;
  color: #555;
  z-index: 1;
  position: relative;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          REQUEST SECTION                                           ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.services-request-bg {
  background-image: url("../utilities/images/index/3.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 40px;
}

.services-request-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.content-box {
  text-align: center;
  padding: 40px;
  border-radius: 12px;
}

.main-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 60px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.sub-description {
  font-size: 1.2rem;
  color: #ddd;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
}

.button-group .btn {
  font-size: 1rem;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-bottom: 60px;
}

.button-group .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  color: white;
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          FOOTER SECTION                                            ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

.smc-footer {
  background: var(--footer-bg);
  color: #e9f6f4;
  padding: 60px 0 20px;
  font-family: "Poppins", sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.35);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.footer-col h5 {
  font-size: 1rem;
  color: #dff6f2;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-logo {
  width: 80px;
  max-width: 100%;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}
.footer-logo:hover {
  transform: scale(1.05);
}

.footerAbout {
  color: #cde7e2;
  font-weight: 500;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: justify;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #cfeeea;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.footer-col ul li a:hover {
  color: var(--accent);
  margin-left: 4px;
}

/* Contact and socials */
.contact-block h6 {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #dff6f2;
}
.contact-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #dff6f2;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-5px);
  color: #fff;
}
.social-btn.whatsapp:hover {
  background: linear-gradient(135deg, #25d366, #1fae54);
}
.social-btn.instagram:hover {
  background: #f56073;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom .copyright {
  font-size: 0.9rem;
  color: #bfeee6;
}
.policy-links a {
  color: var(--muted);
  margin-left: 16px;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.policy-links a:hover {
  color: var(--accent);
}

/* ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ */
/* ║                                                          MEDIA QUERIES RESPONSIVENESS                              ║ */
/* ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ */

/* =========================
   RESPONSIVE / MEDIA QUERIES
   Paste this at the end of your styles.css
   ========================= */

/* -------------------------
   Ultra-wide / Very large screens (>= 1600px)
   ------------------------- */
@media (min-width: 1600px) {
  .footer-inner {
    max-width: 1800px;
    padding: 0 40px;
  }
  .phase-container {
    max-width: 1800px;
  }
  .logo img {
    width: 34rem;
  } /* slightly larger logo on huge screens */
  .footer-row {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }
}

/* -------------------------
   Very large / large desktops (1400px - 1599px)
   ------------------------- */
@media (min-width: 1400px) and (max-width: 1599px) {
  .top-header {
    padding: 0.7rem 4rem;
  }
  .services-bg .container-fluid {
    max-width: 1500px;
  }
  .phase-flow {
    grid-template-columns: repeat(6, 1fr);
  }
  .footer-inner {
    padding: 0 40px;
  }
  .footer-row {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }
}

/* -------------------------
   Large desktops / laptops (1366px - 1399px)
   kept separate in original — still supported
   ------------------------- */
@media (min-width: 1366px) and (max-width: 1599px) {
  .top-header {
    padding: 0.7rem 4rem;
  }
  .phase-flow {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* -------------------------
   Desktop / Large laptop (1200px - 1365px)
   ------------------------- */
@media (min-width: 1200px) and (max-width: 1365px) {
  .top-header {
    padding: 0.7rem 3.5rem;
  }
  .logo img {
    width: 26rem;
  }
  .footer-inner {
    max-width: 1400px;
    padding: 0 32px;
  }
  .phase-flow {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* -------------------------
   Medium laptops / small desktops (992px - 1199px)
   - Typical bootstrap lg adjustments
   ------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .top-header {
    padding: 0.7rem 2.6rem;
  }
  .logo img {
    width: 22rem;
  }
  .header-labels {
    gap: 0.6rem;
    font-size: 0.95rem;
  }
  .carousel-item {
    height: 72vh;
  }
  .phase-flow {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
  .hero-text {
    width: 62%;
  }
}

/* -------------------------
   Tablets / small laptops (768px - 991px)
   - tablet landscape & small laptop
   ------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
  .top-header {
    padding: 0.6rem 1.8rem;
  }
  .logo img {
    width: 18.5rem;
  }
  .header-labels {
    display: none;
  } /* hide long labels to save space */
  .nav-wrap {
    display: none;
  } /* show collapsed mobile nav */
  .carousel-item {
    height: 62vh;
  }
  .hero-text {
    width: 100%;
    padding: 18px 8px;
  }
  .hero-info {
    display: none;
  } /* hide right info on small viewports */
  .phase-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .phase-card {
    min-height: 360px;
  }
  .services-bg {
    padding: 48px 0;
  }
  .eco-card {
    padding: 22px;
  }
  .footer-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  /* footer tablet adjustments */
  .footer-inner {
    padding: 0 24px;
  }
  .footer-logo {
    width: 72px;
  }
  .footerAbout {
    font-size: 0.95rem;
  }
  .footer-col ul li a {
    font-size: 0.92rem;
  }
}

/* -------------------------
   Large phones / phablets (600px - 767px)
   ------------------------- */
@media (min-width: 600px) and (max-width: 767px) {
  .top-header {
    padding: 0.5rem 1rem;
  }
  .logo img {
    width: 16.5rem;
  }
  .carousel-item {
    height: 58vh;
  }
  .hero {
    height: 58vh;
  }
  .hero-inner {
    padding: 16px;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .phase-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .phase-card {
    min-height: 320px;
  }
  .services-bg {
    padding: 40px 0;
  }
  .eco-card {
    padding: 18px;
  }
  .footer-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .footer-inner {
    padding: 0 18px;
  }
  .footer-logo {
    width: 68px;
  }
  .footerAbout {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .socials {
    gap: 8px;
  }
  .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .footer-col h5 {
    font-size: 0.98rem;
  }
}

/* -------------------------
   Small phones (425px - 599px)
   ------------------------- */
@media (min-width: 425px) and (max-width: 599px) {
  .header {
    padding-bottom: 0.2rem;
  }
  .top-header {
    padding: 0.4rem 0.8rem;
  }
  .logo img {
    width: 14.5rem;
  }
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
    font-size: 1rem;
  }
  .hero {
    height: 56vh;
  }
  .carousel-item {
    height: 54vh;
  }
  .hero-text h1 {
    font-size: 1.6rem;
  }
  .hero-text p {
    font-size: 0.98rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .eco-card {
    padding: 16px;
  }
  .phase-card {
    min-height: 300px;
  }
  .footer-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footerAbout {
    text-align: left;
  }
}

/* -------------------------
   Extra small phones (<= 424px)
   covers common phone widths: 412, 390, 375, 360, 320
   ------------------------- */
@media (max-width: 424px) {
  .site-header,
  .header {
    padding: 6px 8px;
  }
  .top-header {
    padding: 0.35rem 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .logo img {
    width: 22.2rem;
  }
  .social-links {
    gap: 0.6rem;
  }
  .header-labels {
    display: none;
  } /* hide labels on smallest screens */
  .navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.45rem 0.6rem;
    margin: 0 0.3rem;
  }
  .carousel-item {
    height: 48vh;
  }
  .hero {
    height: 52vh;
  }
  .hero-inner {
    padding: 12px;
    flex-direction: column;
  }
  .hero-text h1 {
    font-size: 1.35rem;
    line-height: 1.05;
  }
  .hero-text p {
    font-size: 0.95rem;
  }
  .btn-primary-cta,
  .btn-ghost {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .hero-info {
    display: none;
  }
  .phase-flow {
    grid-template-columns: 1fr;
  }
  .phase-card {
    min-height: auto;
    padding: 12px;
  }
  .eco-card {
    padding: 14px;
  }
  .about-image {
    width: 100%;
  }
  .footer-logo {
    width: 140px;
  }
  .footerAbout {
    font-size: 0.9rem;
  }
  .footer-inner {
    padding: 0 14px;
  }
  .footer-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-col.about-col {
    order: -1;
  }
  .footer-col {
    padding: 12px 0;
  }
  .footer-logo {
    width: 64px;
    margin-bottom: 10px;
  }
  .footerAbout {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .footer-col ul li a {
    font-size: 0.98rem;
    display: inline-block;
    padding: 6px 0;
  }
  .socials {
    margin-top: 8px;
  }
  .social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
  }
  .policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .policy-links a {
    margin-left: 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
  }
}

/* -------------------------
   Utility tweaks: avoid overflow & improve tap targets
   ------------------------- */
@media (max-width: 991px) {
  .top-header,
  .header-inner,
  .footer-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .carousel-caption-custom {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* make interactive elements slightly larger on small touch devices */
@media (max-width: 600px) {
  .nav-link,
  .eco-card-btn,
  .company-btn,
  .touch-btn {
    padding: 12px 14px;
    border-radius: 12px;
  }
}

/* -------------------------
   Component-specific fallbacks (if some elements still overflow)
   ------------------------- */
/* phase-flow fallback: ensure vertical stacking if too narrow */
@media (max-width: 480px) {
  .phase-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* services grid fallback */
@media (min-width: 992px) {
  .services-grid-3 > .col {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .services-grid-3 > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 767px) {
  .services-grid-3 > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Improve tap targets on touch devices */
@media (max-width: 900px) {
  .footer-col ul li a,
  .policy-links a {
    padding: 8px 4px;
    display: inline-block;
  }
}

/* Accessibility: ensure high contrast for small text if needed */
@media (max-width: 575px) {
  .footer-col h5 {
    color: #e8fbf7;
  }
  .footerAbout,
  .contact-block p,
  .footer-col ul li a {
    color: #dff6f2;
  }
}

/* END of consolidated media queries */
