/* Font Definitions & Mint Green Color Palette */
:root {
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-ui: 'Roboto', sans-serif;

    /* Mint Green Palette */
    --primary-color: #00b894;
    --primary-hover: #008f72;
    --secondary-color: #1a3636;
    --body-bg: #f2faf7;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #5a6a70;
}

/* Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

button, .btn-primary, .btn-secondary, .btn-nav, .nav-links a {
    font-family: var(--font-ui);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 184, 148, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
}

.btn-nav:hover { background: var(--primary-hover); }

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section with Team Background Image */
.hero {
    background: linear-gradient(rgba(26, 54, 54, 0.78), rgba(26, 54, 54, 0.78)), 
                url('../images/hero-team-clean.png') center/cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span { color: var(--primary-color); }

.hero-content p {
    font-size: 19px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    margin: 5px;
    transition: 0.3s;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #fff; color: var(--secondary-color); }
.btn-secondary:hover { background: #e2f5ee; }

/* Grid & Section Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-section, .services-section {
    padding: 80px 0;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.15);
}

.about-content h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-checklist {
    list-style: none;
    margin-top: 20px;
}

.about-checklist li {
    margin-bottom: 10px;
    font-weight: 600;
}

.about-checklist i { color: var(--primary-color); margin-right: 10px; }

/* Services Section */
.services-section { background: #e6f7f1; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 { font-size: 36px; color: var(--secondary-color); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.2);
}

.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    position: relative;
}

.card-body h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.service-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer Section & Contact Us Details */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.text-white { color: #fff !important; }

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-links ul { list-style: none; }
.footer-links a { color: #d0e5dd; text-decoration: none; display: block; margin-bottom: 8px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-color); }

/* Footer Contact Styles */
.footer-contact p {
    color: #d0e5dd;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.footer-contact a {
    color: #d0e5dd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover { background: var(--primary-color); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #d0e5dd;
    font-size: 14px;
}

/* Scroll To Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
    }
    .nav-links.active { right: 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 32px; }
}


/* Quick Contact Info Next to Contact Us Button */
.nav-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
    border-left: 1px solid #e0e0e0; /* Subtle vertical divider line */
    gap: 4px;
}

.nav-contact-info a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-dark, #2d3748) !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.nav-contact-info a i {
    font-size: 12px;
    color: var(--primary-color, #00b894);
}

.nav-contact-info a:hover {
    color: var(--primary-color, #00b894) !important;
}

/* Mobile Responsiveness Adjustment */
@media (max-width: 992px) {
    .nav-contact-info {
        border-left: none;
        align-items: center;
        padding-left: 0;
        margin-top: 10px;
    }
}

/* Header Quick Contact Info Wrapper */
.nav-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;            /* Contact Us Button එකත් එක්ක තියෙන පරතරය */
    margin-left: 10px;
    border-left: 2px solid #e2e8f0; /* පැත්තෙන් එන පිරිසිදු සිරස් ඉරක් */
    gap: 6px;                      /* 3 Lines අතර තියෙන පරතරය */
}

/* Individual Contact Item Styles */
.nav-contact-info .info-item {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-dark, #2d3748) !important;
    display: flex;
    align-items: center;
    gap: 8px;                     /* Icon එකයි Text එකයි අතර පරතරය */
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Icon Styles */
.nav-contact-info .info-item i {
    font-size: 13px;
    color: var(--primary-color, #00b894);
    width: 14px;                   /* Icons කෙලින් තබා ගැනීමට */
    text-align: center;
}

/* Hover Effect for Clickable Links */
.nav-contact-info a.info-item:hover {
    color: var(--primary-color, #00b894) !important;
}

.nav-contact-info .location {
    cursor: default;
    color: var(--text-light, #5a6a70) !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .nav-contact-info {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        align-items: center;
        margin-top: 15px;
        gap: 10px;
    }
}

/* Footer Layout Tweaks for Cleaner Spacing */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr; /* Brand column එකට වැඩි ඉඩක් */
    gap: 40px;
    align-items: start;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7; /* Text අතර පරතරය වැඩි කිරීමට */
    color: #d1d5db;
    margin-bottom: 12px;
}

.footer-brand p.brand-motto {
    font-size: 0.9rem;
    color: #9ca3af;
    border-left: 3px solid #2ecc71; /* Green accent bar */
    padding-left: 12px;
    margin-top: 15px;
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix Footer Social Icons Alignment */
.footer-social .social-icons {
    display: flex;
    flex-wrap: nowrap; /* Icons දෙවෙනි පේළියට යාම වළක්වයි */
    gap: 10px;         /* Icons අතර ඉඩ 10px දක්වා සකස් කරයි */
    align-items: center;
}

.footer-social .social-icons a {
    width: 38px;       /* Icon circle එකේ ප්‍රමාණය */
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;    /* Circles කුඩා වීම වළක්වයි */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.1fr; /* Social Column එක 1.1fr කළා */
    gap: 30px;
}

/* ==========================================
   CONTACT FORM & INPUT FIELD FIXES
   ========================================== */

/* Grid layout for two cards */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Container Card */
.contact-form-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.contact-form-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 24px;
}

/* Two Column Layout for First/Last Name, Email/Phone */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Form Group & Labels */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

/* All Inputs, Selects, Textarea Direct Styling */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #1f2937;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
}

/* Hover & Focus state */
#contactForm input:hover,
#contactForm select:hover,
#contactForm textarea:hover {
    border-color: #9ca3af;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    background-color: #ffffff;
    border-color: #27ae60; /* Primary Brand Accent */
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

/* Select Dropdown Custom Arrow Style */
#contactForm select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%3c374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea height */
#contactForm textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button Override */
#contactForm button[type="submit"] {
    margin-top: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Header Logo Styling (Fixed to 160px scale) */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    max-width: 160px;       /* Constrains logo width to 160px max */
    max-height: 160px;      /* Constrains logo height to 160px max */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

/* Compact Navbar Container Adjustment */
.navbar {
    padding: 10px 0;        /* Gives vertical room for the 160px frame */
}

/* Footer Logo Styling (160px scale) */
.footer-logo-img {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */

.why-choose-us-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background to visually separate from services */
}

.why-choose-us-section .section-title {
    margin-bottom: 50px;
}

.why-choose-us-section .section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Grid Layout for Cards */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Card Styling */
.why-us-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eef2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card Hover Effect */
.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Icon Wrapper Circle */
.card-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1); /* Subtle theme accent background */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card-icon-wrapper i {
    font-size: 32px;
    color: #007bff; /* Primary theme color */
}

/* Change Icon Accent on Card Hover */
.why-us-card:hover .card-icon-wrapper {
    background: #007bff;
}

.why-us-card:hover .card-icon-wrapper i {
    color: #ffffff;
}

/* Card Typography */
.why-us-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.why-us-card p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Adjustments for Mobile & Tablet */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .why-choose-us-section {
        padding: 50px 0;
    }

    .why-us-grid {
        grid-template-columns: 1fr; /* Stack into a single column on phone screens */
    }

    .why-us-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Centered Services Page Header
   ========================================================================== */

.services-header-section {
    background-color: #e8f5f1 !important; /* Soft mint/teal tint background */
    padding: 70px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.services-header-section .container {
    max-width: 1050px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.services-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    color: #1b3835 !important; /* Dark teal heading color */
    margin-bottom: 20px !important;
    text-align: center !important;
}

.services-desc {
    font-family: 'Nunito', sans-serif !important;
    font-size: 1.05rem !important;
    color: #4a605d !important;
    line-height: 1.7 !important;
    margin: 0 auto !important;
    max-width: 950px !important;
    text-align: center !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .services-header-section {
        padding: 45px 15px !important;
    }

    .services-title {
        font-size: 2rem !important;
    }

    .services-desc {
        font-size: 0.95rem !important;
    }
}

/* ==========================================================================
   Contact Page Header
   ========================================================================== */
.services-header-section {
    background-color: #e8f5f1;
    padding: 70px 20px;
    width: 100%;
}

.services-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #1b3835;
    margin-bottom: 20px;
}

.services-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    color: #4a605d;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 950px;
}

/* ==========================================================================
   Contact Main Section & Grid Layout
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: #f9fbfb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* Contact Info Card */
.contact-info-card {
    background-color: #1b3835;
    color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-card .info-item i {
    font-size: 1.4rem;
    color: #48bb78; /* Minty green icon */
    margin-top: 4px;
}

.contact-info-card .info-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #ffffff;
}

/* Normalized Normal Font for Phone & Email Links */
.contact-info-card .info-item p,
.contact-info-card .info-item a {
    color: #e2e8f0;
    text-decoration: none; /* Removes standard link underline */
    font-size: 0.98rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.contact-info-card .info-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   Modern Contact Form & Mint Focus Styling
   ========================================================================== */
.contact-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
}

.contact-form-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #1b3835;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 8px;
}

/* Base Input & Textarea */
.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    color: #2d3748;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control:hover {
    background-color: #ffffff;
    border-color: #a0aec0;
}

/* Mint Color Border & Glow On Click/Focus */
.form-control:focus {
    background-color: #ffffff;
    border-color: #20b2aa; /* Mint border color */
    box-shadow: 0 0 0 4px rgba(32, 178, 170, 0.18); /* Soft mint ring */
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Submit Button */
.btn-primary {
    background-color: #1b3835;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 56, 53, 0.2);
}

.btn-primary:hover {
    background-color: #27524e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27, 56, 53, 0.28);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-header-section {
        padding: 45px 15px;
    }

    .services-title {
        font-size: 2rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
}

/* ==========================================================================
   Team / Portfolio Page Styles
   ========================================================================== */
.team-section {
    padding: 80px 0;
    background-color: #f9fbfb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #e8f5f1;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1b3835;
    margin-bottom: 6px;
}

.team-info .designation {
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #20b2aa; /* Mint brand accent */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer Base & Mobile Layout (Forced Single Column Stack)
   ========================================================================== */

.footer {
    width: 100% !important;
    background-color: #0f211f;
    color: #a0aec0;
    padding: 60px 0 20px 0;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    width: 100%;
}

/* Force single column stack on screens smaller than 900px */
@media screen and (max-width: 900px) {
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-social {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-contact p {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        word-break: break-word; /* Prevents long emails/phone numbers from cutting off */
    }

    .footer-links ul li {
        margin-bottom: 12px;
    }

    .footer-links a {
        display: inline-block;
        font-size: 1.05rem; /* Larger text for comfortable mobile tapping */
    }
}

/* ==========================================================================
   Google Map Section
   ========================================================================== */
.map-section {
    padding-bottom: 60px;
    background-color: #f9fbfb;
}

.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f5;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Full Width Google Map Section
   ========================================================================== */
.map-section-full {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0; /* Prevents tiny whitespace gap beneath iframe */
    overflow: hidden;
}

.map-section-full iframe {
    width: 100%;
    display: block;
}