/* Main CSS for ecotech.php */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');


:root {
    --primary-red: #e31e24;
    --light-gray: #f2f3f7;
    --text-muted: #6c757d;
    --footer-bg: #f8f9fa;
    --whatsapp-color: #25D366;
    --contrast-color: #ffffff;
}

/************ CANVASBUILDER CSS STYLE **********/
.se-image-container.__se__float-left {
    float: left;
    margin-right: 12px;
}

.se-image-container.__se__float-left img {
    display: block;
}

.cb-box-block::after {
    content: "";
    display: block;
    clear: both;
}

/************ END OF CANVASBUILDER CSS STYLE **********/

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--primary-red), transparent 25%);
  text-decoration: none;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.eco-body {
    font-family: 'Outfit', sans-serif;
    color: #444;
    overflow-x: hidden;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: top center;
}

.whyus-body {
    font-family: 'Outfit', sans-serif;
    color: #444;
    overflow-x: hidden;
    background-image: url('../img/why-us-bg.png');
    background-size: cover;
    background-position: top center;
}

/* Top Wrapper (Nav + Hero) */
.top-wrapper {
    background-image: url('../img/header-top.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-wrapper {
    position: relative;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/*
.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Adjust 0.4 for darkness */
    /*z-index: 1;
}*/

/* Make sure content stays above overlay */
.hero-wrapper > * {
    position: relative;
    z-index: 2;
}

.client-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* fixed height for logos */
    padding:6px;
    margin: 10px;
}

.main-hero {
    flex: 1; /* take remaining space after navbar */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* vertical center */
    align-items: flex-start; /* left align text */
    padding: 0 15px; /* optional padding */
}

.main-hero > .container {
    margin-bottom: 80px; /* moves content up 40px from bottom */
}

.partner-bg {
    background-image: url('../img/partner-bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
}

.bg-red {
    background-color: var(--primary-red);
}

.text-redcolor {
    color: var(--primary-red);
}

.sr-only {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px
}

.co_number {
    display:none;
}    

.red-box-card {
    background-color: var(--primary-red);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 30px 24px;
    border-radius: 30px;
    width: 100%;
    text-align: center;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.red-box-card img {
    width: 60px;
    height: 60px;
}

.red-box-card div {
    font-size:14px;

}

.counter-card {
    background-color: #fff;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 30px 20px;
    border-radius: 20px;
    width: 100%;
    text-align: center;
}

.counter-card .counter-value {
    font-size: 3.5rem;
    color: var(--primary-red);
}

.counter-card .counter-label {
    font-size: 1rem;
    font-weight: normal;
    color: var(--primary-red);
    margin-top: 10px;
}
/* Navbar Tuning */


.navbar-brand img {
    height: 180px; /* your desktop size */
}

.vm-group h2 {
    font-size:90px; 
    font-weight:bold; 
    color:#ec1d24
}

@media (max-width: 991px) {
    .vm-group h2 {
        font-size:60px; 
    }
    
    .navbar-brand img {
        height: 80px; /* smaller logo for mobile */
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%; /* start hidden off-screen */
        height: 100vh;
        width: calc(100% - 30px); /* leave 30px gap on right */
        background: #fff;
        padding: 20px;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse.show {
        left: 0; /* slide in */
    }

    .btn-close {
        background: none;
        font-size: 28px;
        opacity: 1;
    }
    .btn-close::before {
        content: "✕";
        color: #727272;
        font-weight: bold;
    }
    .mobile-menu-header {
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .mainmenu_push{
        align-items: center;
    }

    .main-title {
    font-size: 3rem !important;
    }
}

.blog .blog-item {
	border: 1px solid #f2f2f2;
	border-radius: 8px;
	box-shadow: 0px 0 6px rgba(0, 0, 0, 0.1);
	padding: 26px;
}

.blog .blog-item h5 {
	font-size: 18px
}

.blog-item .truncate p {
	overflow: hidden;
   	text-overflow: ellipsis;
   	display: -webkit-box;
   	-webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2;
   	-webkit-box-orient: vertical;
}

.blog-custome-img {
	max-height: 228px;
	width: auto;
	display: block; /* Required for margin auto to work */
    margin: 0 auto; /* Horizontally center the image */
}

.affiliation-title h2{
    font-size:82px;
    text-transform: uppercase;
    font-weight: bold;
    color:#a0a0a0;
    margin:0;
    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:2px;
}

@media (max-width: 991px) {
    .affiliation-title h2{
        font-size:38px;
    }
}

.navbar {
    background-color: transparent !important;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

body.navbar-sticky-active {
    padding-top: 80px; /* Adjust based on navbar height */
}



.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666666 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.dropdown-item {
    font-size: 1rem;
    color: #666666;
    padding: 10px 20px !important;
}

.navbar-nav li:hover>a,
  .navbar-nav .active,
  .navbar-nav .active:focus {
    color: #046d3b;
  }

.navbar-nav .nav-link.active {
    color: #046d3b !important;
}

.navbar-nav li:last-child {
    margin-left: auto;   /* pushes WhatsApp to the far right */
}

/* Desktop (>=992px) */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex;
        align-items: center;  /* vertically center all nav-items */
        gap: 12px;            /* optional spacing between items */
    }

    .navbar-nav .dropdown-menu {
        display: block; /* keep it always in flow for animation */
        position: absolute;  /* absolutely positioned so it overlaps content */
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(20px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;

        margin: 0;
        padding: 10px 14px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Mobile (<992px) */
@media (max-width: 991px) {
    .navbar-nav {
        display: block; /* stack links vertically */
        align-items: stretch; /* remove flex centering */
    }

    .navbar-nav .nav-item {
        text-align: left; /* left-align text links */
        width: 100%;
    }

    .navbar-nav li:last-child { /* WhatsApp button */
        text-align: left; 
        margin-left: 0;  /* remove auto spacing */
        padding: 12px 0; /* optional spacing */
    }

    .btn-whatsapp {
        width: 48px; /* keep circle */
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left:20px
    }

    .navbar-nav .dropdown-menu {
        position: static; /* so it pushes content down */
        display: none;           /* always block for animation */
        max-height: 0;            /* collapsed state */
        overflow: hidden;         /* hide content when collapsed */
        opacity: 0;
        transform: scaleY(0.95);
        transition: all 0.3s ease;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
        max-height: 300px;        /* large enough for content */
        opacity: 1;
        transform: scaleY(1);
    }
}

.dropdown-item {
    color: #666666 !important;
    transition: all 0.3s ease;
    font-weight:600
}
.dropdown-item:hover {
    color: #046d3b !important;
    background-color: transparent !important
}

/* Hero Section */
.hero-section {
    padding: 10px 0;
    position: relative;
    text-align: left;
    z-index: 2;
}

.hero-title-section {
    padding: 10px 0 170px;
    position: relative;
    text-align: left;
    z-index: 2;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: #c9ccd1;
    /*text-transform: uppercase;*/
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--primary-red);
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-red);
    /*text-transform: uppercase;
    text-shadow: 2px 2px 1px #686D67;*/
}

.section-title {
    text-transform: uppercase;
    font-size: 3.5rem !important
}

.text-grey {
    color: #dddddd;
}

.text-red {
    color: var(--primary-red);
}

.btn-whatsapp,
.btn-whatsapp:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  color: var(--contrast-color);
  background: var(--whatsapp-color);

  border-radius: 50%;
  padding: 0;
  transition: 0.3s;

  font-size: 30px; 
}

.btn-whatsapp i {
  line-height: 1;
  display: block;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--whatsapp-color), transparent 15%);
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 30px;
    color: #fff;
    text-shadow: 2px 2px 1px #686D67;

    position: relative;
    overflow: hidden;
}

/* gradient overlay */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;

    background: linear-gradient(to top, rgba(255,0,0,0.85), rgba(255,0,0,0));
    opacity: 0;

    transition: opacity 0.4s ease;
    z-index: 1;
}

/* show gradient on hover */
.service-card:hover::before {
    opacity: 1;
}

/* keep text above overlay */
.service-card * {
    position: relative;
    z-index: 2;
}

/* Description */
.description-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin: 0 auto;
    text-align: justify;
}

/* Why Partner Section */
.partner-section h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.partner-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Feature Boxes */
.feature-box {
    background-color: var(--primary-red);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    min-width: 320px;
    text-align: center;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 50px;
    text-align: justify;
}

/* Footer Styling */
footer {
    background: url('../img/footer-bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0 40px;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-logo {
    max-width: 180px;
}

.footer-col-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.prospect-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.prospect-link a:hover {
    color: var(--primary-red);
}

.floating-img {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.floating-img:hover {
    animation: wiggle 0.4s ease-in-out;
}

@keyframes wiggle {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(-8deg); }
    50%  { transform: rotate(8deg); }
    75%  { transform: rotate(-6deg); }
    100% { transform: rotate(0deg); }
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #666;
}

.social-icons a {
    color: #333;
    text-decoration: none;
    margin-right: 10px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thumb-circle {
    background-color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    color: #333;
}

.social-size {
    font-size: 18px;
    line-height: 1;
}

.social-icons a:hover .thumb-circle {
    background-color: var(--primary-red);
    color: #fff !important;
}

.footer-logo {
    max-width: 160px;
}

.btn-custom {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-subscribe {
    background-color: #0d5c36;
    color: white;
    border: none;
    line-height: 22px
}

.btn-resume {
    background-color: #0d5c36;
    color: white;
    border: none;
}

.btn-custom:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .hero-section {
        padding: 40px 0 ;
    }

    .hero-title-section {
        padding: 40px 0 100px;
    }

    .feature-box {
        min-width: 100%;
        font-size: 1rem;
    }

    .hero-wrapper {
        background-position-y: top;
        background-position-x: 70%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-section {
        padding: 10px 0;
    }

    .hero-title-section {
        padding: 40px 0 100px;
    }
    .hero-wrapper {
        background-position-y: top;
        background-position-x: 70%;
    }

    footer {
        text-align: center;
    }

}