/* =========================================================
   AWS Envirotech – frontend theme
   Change the brand colours here; everything else follows.
   ========================================================= */
:root {
    --primary: #128a43;        /* main green */
    --primary-dark: #0b6631;
    --accent: #8dc63f;         /* leaf / lime accent */
    --dark: #0d2a1c;           /* footer / headings */
    --text: #4f5d55;
    --muted: #7b8a82;
    --soft: #f2f8f3;           /* light section background */
    --border: #e1ece4;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 35px rgba(13, 42, 28, .08);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-body); color: var(--text); font-size: 16px; line-height: 1.75; background: var(--white); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--dark); font-weight: 700; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: .25s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

.section { padding: 90px 0; }
.bg-soft { background: var(--soft); }
.rounded-4 { border-radius: var(--radius) !important; }

/* ---------- Buttons ---------- */
.btn-theme {
    background: var(--primary); color: #fff; border: 2px solid var(--primary);
    border-radius: 50px; padding: 11px 28px; font-weight: 600; font-family: var(--font-head);
}
.btn-theme:hover, .btn-theme:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-theme {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    border-radius: 50px; padding: 11px 28px; font-weight: 600; font-family: var(--font-head);
}
.btn-outline-theme:hover { background: var(--primary); color: #fff; }
.btn-lg.btn-theme { padding: 14px 34px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #cfe3d6; font-size: 14px; padding: 8px 0; }
.topbar a { color: #cfe3d6; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: 6px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin-left: 6px; font-size: 14px;
}
.social-links a:hover { background: var(--primary); color: #fff; }
.topbar .social-links a i { color: inherit; margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.06); transition: .3s; }
.site-header .navbar { padding: 14px 0; }
.site-header.scrolled .navbar { padding: 8px 0; }
.navbar-brand img { height: 52px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.5rem; }
.navbar-toggler { border: 0; font-size: 1.5rem; color: var(--dark); box-shadow: none !important; }
.site-header .nav-link {
    font-family: var(--font-head); font-weight: 500; color: var(--dark); padding: 8px 14px !important; position: relative;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--primary); }
.site-header .nav-link.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--primary); border-radius: 2px;
}
.offcanvas-logo { height: 40px; }
@media (min-width: 992px) {
    .site-header .offcanvas { position: static; visibility: visible !important; transform: none !important; background: transparent; border: 0; flex-grow: 1; }
    .site-header .offcanvas-header { display: none; }
    .site-header .offcanvas-body { display: flex; padding: 0; overflow: visible; }
}
@media (max-width: 991.98px) {
    .site-header .offcanvas-body .btn-theme { margin-top: 16px; }
    .navbar-brand img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero-slide {
    min-height: 640px; display: flex; align-items: center; background-size: cover; background-position: center; position: relative;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,35,21,.85) 0%, rgba(8,35,21,.55) 55%, rgba(8,35,21,.15) 100%); }
.hero-content { max-width: 680px; color: #fff; padding: 80px 0; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: #e3efe7; margin-bottom: 32px; }
.hero .swiper-slide-active .hero-content > * { animation: heroUp .8s ease both; }
.hero .swiper-slide-active .hero-content p { animation-delay: .15s; }
.hero .swiper-slide-active .hero-content .btn { animation-delay: .3s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero .swiper-button-prev, .hero .swiper-button-next {
    color: #fff; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.15);
}
.hero .swiper-button-prev::after, .hero .swiper-button-next::after { font-size: 18px; }
.hero .swiper-button-prev:hover, .hero .swiper-button-next:hover { background: var(--primary); }
.swiper-pagination-bullet-active { background: var(--accent) !important; }
@media (max-width: 767px) { .hero-slide { min-height: 520px; } .hero .swiper-button-prev, .hero .swiper-button-next { display: none; } }

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: 50px; max-width: 780px; }
.section-heading:not(.text-center) { max-width: none; margin-bottom: 0; }
.section-label {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--primary); margin-bottom: 12px; padding-left: 34px; position: relative;
}
.section-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: var(--accent); }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; }
.section-intro p:last-child { margin-bottom: 0; }
.section-heading.light h2 { color: #fff; }
.section-heading.light .section-label { color: var(--accent); }

/* ---------- About ---------- */
.about-img img { border-radius: var(--radius); }
.about-section .section-intro strong { color: var(--dark); }

/* ---------- Service cards (home) ---------- */
.service-card {
    background: #fff; border-radius: var(--radius); padding: 34px 26px 28px; height: 100%; position: relative;
    border: 1px solid var(--border); transition: .3s; display: flex; flex-direction: column; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--primary); transition: .35s; }
.service-card:hover::before { width: 100%; }
.service-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--soft); line-height: 1; }
.service-card:hover .service-num { color: #e2f0e5; }
.service-icon {
    width: 60px; height: 60px; border-radius: 14px; background: var(--soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; transition: .3s;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { font-size: 15px; flex-grow: 1; }
.service-link { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.service-link i { font-size: 12px; margin-left: 4px; transition: .25s; }
.service-link:hover i { margin-left: 8px; }

/* ---------- Testimonials ---------- */
.testimonial-swiper { padding-bottom: 50px !important; }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial-swiper .swiper-slide { height: auto; padding: 10px 4px; }
.testimonial-card .avatar {
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.testimonial-card h5 { margin: 0; font-size: 1rem; }
.testimonial-card .source { color: var(--muted); font-size: 12px; }
.testimonial-card .source i { color: #4285f4; }
.testimonial-card .stars { color: #f6b100; font-size: 14px; }
.testimonial-card p { margin: 0; font-size: 15px; }
.testimonial-card .quote { position: absolute; right: 24px; top: 24px; font-size: 30px; color: var(--soft); }

/* ---------- Work process ---------- */
.process-card { text-align: center; padding: 10px 16px; position: relative; }
.process-icon {
    width: 110px; height: 110px; margin: 0 auto 22px; border-radius: 50%; background: var(--soft); border: 2px dashed var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--primary); position: relative; transition: .3s;
}
.process-card:hover .process-icon { background: var(--primary); color: #fff; border-style: solid; }
.process-num {
    position: absolute; top: -4px; right: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.process-card h3 { font-size: 1.15rem; }
@media (min-width: 992px) {
    .process-row > div:not(:last-child) .process-card::after {
        content: ''; position: absolute; top: 55px; right: -18%; width: 36%; border-top: 2px dashed var(--border);
    }
}

/* ---------- Clients ---------- */
.client-logo { background: #fff; border-radius: 12px; height: 110px; display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid var(--border); }
.client-logo img { max-height: 76px; width: auto; filter: grayscale(100%); opacity: .8; transition: .3s; }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- Counters ---------- */
.counters-section { background: linear-gradient(135deg, var(--primary-dark), var(--dark)); color: #fff; }
.counter-box { text-align: center; padding: 30px 10px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.counter-box i { font-size: 30px; color: var(--accent); margin-bottom: 10px; }
.counter-value { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1.2; }
.counter-label { color: #cfe3d6; font-weight: 500; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.form-card .section-heading { margin-bottom: 30px; }
.form-label { font-weight: 600; color: var(--dark); font-size: 14px; margin-bottom: 6px; }
.form-label .req { color: #d63939; }
.form-control, .form-select { border-radius: 10px; border: 1px solid var(--border); padding: 12px 16px; background-color: #fbfdfb; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(18,138,67,.15); }
.has-error .form-control, .has-error .form-select { border-color: #d63939; }
@media (max-width: 575px) { .form-card { padding: 28px 20px; } }

/* ---------- Page banner ---------- */
.page-banner {
    padding: 90px 0 80px; text-align: center; color: #fff; position: relative;
    background-color: var(--dark); background-size: cover; background-position: center;
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.page-banner .breadcrumb { margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #cfe3d6; }
.page-banner .breadcrumb-item.active { color: var(--accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #cfe3d6; }

/* ---------- About page ---------- */
.vision-item { display: flex; gap: 20px; padding: 22px; border-radius: var(--radius); background: #fff; margin-top: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.vision-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.vision-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.vision-item p { margin: 0; font-size: 15px; }
.director-card { background: var(--soft); border-radius: 24px; padding: 56px; border-left: 6px solid var(--primary); }
.director-text p { font-size: 1.02rem; }
.director-sign { font-family: var(--font-head); font-weight: 600; color: var(--dark); margin-top: 20px; }
.director-img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 767px) { .director-card { padding: 30px 22px; } }

/* ---------- Services page ---------- */
.service-detail h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 18px; }
.service-detail .service-text { font-size: 1.02rem; }

/* ---------- Career ---------- */
.vacancy-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.vacancy-item {
    display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--border); color: var(--dark); font-family: var(--font-head); font-weight: 600; transition: .3s;
}
.vacancy-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }
.vacancy-icon { font-size: 1.4rem; color: var(--accent); width: 28px; text-align: center; }
.vacancy-title { flex-grow: 1; }

/* ---------- Projects ---------- */
.project-list-card { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.project-list-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 20px; }
.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.project-list li:last-child { border-bottom: 0; }
.project-list i { color: var(--primary); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-list small { display: block; color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.contact-list a, .contact-list span { color: var(--dark); font-weight: 500; }
.ci-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.urgent-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 30px 36px; }
.urgent-card h4 { color: #fff; }
.urgent-card p { color: #e3efe7; margin-bottom: 8px; }
.urgent-card .btn-light { border-radius: 50px; font-weight: 600; color: var(--primary-dark); padding: 10px 24px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

/* ---------- Blog ---------- */
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; transition: .3s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 46px; color: var(--accent); }
.blog-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-body h3 { font-size: 1.2rem; }
.blog-body h3 a { color: var(--dark); }
.blog-body h3 a:hover { color: var(--primary); }
.blog-body p { flex-grow: 1; font-size: 15px; }
.blog-date { font-size: 13px; color: var(--muted); }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.sidebar-card { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.sidebar-card li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-card li a { display: block; color: var(--dark); font-weight: 600; }
.sidebar-card small { color: var(--muted); }
.pagination .page-link { color: var(--primary); border-radius: 8px !important; margin: 0 3px; }
.pagination .active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9cfc1; padding-top: 80px; font-size: 15px; }
.footer-logo img { height: 54px; width: auto; background: #fff; padding: 8px 14px; border-radius: 10px; }
.footer-title { color: #fff; font-size: 1.2rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9cfc1; }
.footer-links a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 8px; color: var(--accent); font-size: 12px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--accent); margin-top: 6px; width: 16px; }
.footer-contact a { color: #b9cfc1; }
.footer-contact a:hover { color: #fff; }
.site-footer .social-links a { margin: 0 8px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; padding: 22px 0; font-size: 14px; }
.footer-bottom a { color: var(--accent); }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed; left: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 1040; box-shadow: 0 6px 20px rgba(37,211,102,.45);
    animation: waPulse 2s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 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; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; z-index: 1040; opacity: 0; visibility: hidden; transition: .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); color: #fff; }

.error-code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }

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