/* =====================================================
   NOTE FOR FUTURE DEVELOPMENT

   This project uses OLDER, HIGH-COMPATIBILITY CSS.

   Avoid:
   - position: sticky
   - gap
   - clamp()
   - advanced flex/grid

   Use:
   - position: fixed
   - floats / inline-block
   - margins for spacing
===================================================== */



/* =========================
   RESET
========================= */
html, body {
    margin: 0;
    padding: 0;
}

body, h1, h2, h3, p {
    margin-top: 0;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #16385b;
}

p {
    line-height: 1.6;
}

h2 {
    margin-bottom: 15px;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
/* =========================
   BODY
========================= */
body {
    font-family: 'Open Sans', sans-serif;
    background: #f8fbfb;
    color: #2a2a2a;

    /* FIX: replaces JS padding system */
    padding-top: 140px;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* HEADER TOP */
.header-top {
    text-align: center;
    padding: 14px 10px;
}

/* TITLE */
.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0b1c3c;
}

/* SLOGAN */
.site-slogan {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* SHRINK STATE */
.site-header.shrink .header-top {
    padding: 6px 10px;
}

.site-header.shrink .site-title {
    font-size: 20px;
}

.site-header.shrink .site-slogan {
    opacity: 0;
    max-height: 0;
    margin: 0;
}


/* =========================
   NAVIGATION
========================= */
.mobile-nav {
    width: 100%;
    overflow: hidden;
}

.nav-box {
    float: left;
    width: 25%;
    text-align: center;
    padding: 12px 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #16385b;
    background: #f4fbfb;
    border-top: 1px solid #e6f7f6;
    border-right: 1px solid #e6f7f6;
    box-sizing: border-box;
}

.nav-box:last-child {
    border-right: none;
}

.mobile-nav:after {
    content: "";
    display: block;
    clear: both;
}

.nav-box.active {
    background: #3abdb5;
    color: #fff;
}

.nav-box:active {
    opacity: 0.7;
}


/* =========================
   HERO
========================= */
.hero-solid {
    text-align: center;
    padding: 60px 20px;
    background: #e6f7f6;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-content h2 { font-size: 38px; }
    .hero-content p { font-size: 18px; }
}


/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    background: #ff7a7a;
    color: #fff;
    padding: 12px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 8px;
}

.btn:hover { background: #e96b6b; }
.btn:active { opacity: 0.7; }

.whatsapp { background: #3abdb5; }
.whatsapp:hover { background: #2fa49d; }


/* =========================
   SECTIONS
========================= */
.section {
    padding: 50px 0;
}

/* safer than nth-child */
.section.alt {
    background: #e6f7f6;
}


/* =========================
   ABOUT (FIXED)
========================= */
.about-wrapper {
    overflow: hidden;
}

.about-img {
    float: left;
    width: 40%;
    max-width: 300px;
    margin-right: 20px;
    border-radius: 10px;
}

.about-text {
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-img {
        float: none;
        display: block;
        width: 70%;
        max-width: 220px;
        margin: 0 auto 20px auto;
    }
}


/* =========================
   SERVICES
========================= */
.grid {
    overflow: hidden;
}

.card {
    float: left;
    width: 29%;
    margin: 2%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.grid:after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 768px) {
    .card {
        width: 100%;
        margin: 10px 0;
    }
}



/* =========================
   PRODUCTS - LEGACY GRID (INLINE-BLOCK)
   FULL IMAGE ALWAYS VISIBLE (NO CROPPING)
========================= */

.product-grid {
    text-align: center;
    font-size: 0;
}

/* PRODUCT CARD */
.product-card {
    display: inline-block;

    width: 46%;
    margin: 2%;

    background: #fff;

    padding: 25px 20px;

    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);

    vertical-align: top;
    box-sizing: border-box;

    text-align: left;
    font-size: 16px;
}

/* IMAGE WRAPPER (FIXED FRAME) */
.product-image {
    width: 100%;
    height: 200px;

    margin-bottom: 15px;

    overflow: hidden;
    border-radius: 8px;

    background: #f4fbfb;

    text-align: center;

    /* helps vertical centering */
    line-height: 200px;
}

/* IMAGE (CORE FIX: NO CROPPING) */
.product-image img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    display: inline-block;

    vertical-align: middle;
}

/* TITLE */
.product-card h3 {
    font-size: 16px;
    margin: 10px 0 8px 0;
}

/* DESCRIPTION */
.product-card p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #333;
}

/* BUTTON */
.product-card .btn {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
}

/* =========================
   MOBILE STACK + SAME IMAGE RULE
========================= */
@media (max-width: 768px) {

    .product-card {
        width: 100%;
        margin: 12px 0;
    }

    .product-image {
        height: 180px;
        line-height: 180px;
    }

    .product-image img {
        max-width: 100%;
        max-height: 100%;

        width: auto;
        height: auto;
    }
}

/* =========================
   CONTACT MAP
========================= */
iframe {
    width: 100%;
    height: 250px;
    margin-top: 20px;
    border: none;
}

@media (min-width: 768px) {
    iframe { height: 350px; }
}


/* =========================
   FLOATING BUTTON
========================= */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #3abdb5;
    color: #fff;
    text-align: center;
    line-height: 55px;
    font-size: 22px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.floating-whatsapp:hover {
    background: #2fa49d;
}

.floating-whatsapp:active {
    opacity: 0.8;
}


/* =========================
   ANIMATIONS
========================= */
.hidden {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.show {
    opacity: 1;
}


/* =========================
   TESTIMONIAL
========================= */
#testimonialText {
    transition: opacity 0.5s ease;
}


/* =========================
   PROGRESS BAR
========================= */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #3abdb5;
    z-index: 2000;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #16385b;
    color: #ffffff;

    padding: 50px 0 25px 0;

    border-top: 4px solid #3abdb5;
}

/* GRID CONTAINER */
.footer-grid {
    overflow: hidden;
    padding-bottom: 20px;
}

/* FOOTER COLUMNS */
.footer-grid div {
    float: left;
    width: 29%;
    margin: 1.66%;

    box-sizing: border-box;
}

/* HEADINGS */
.footer h3,
.footer h4 {
    margin: 0 0 12px 0;

    color: #ffffff;
    font-weight: 600;
}

/* PARAGRAPHS */
.footer p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #d9e6f2;
}

/* LINKS */
.footer a {
    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    display: inline-block;
    margin-bottom: 6px;
}

.footer a:hover {
    color: #3abdb5;
    text-decoration: underline;
}

/* CONTACT LINKS (SLIGHT EMPHASIS) */
.footer p a {
    color: #ffffff;
    font-weight: 500;
}

/* FOOTER BOTTOM */
.footer-bottom {
    text-align: center;

    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #b8c9d9;
}

/* MOBILE */
@media (max-width: 768px) {

    .footer-grid div {
        width: 100%;
        margin: 15px 0;
    }

    .footer {
        padding: 40px 0 20px 0;
    }
}