/* =====================================================
   MOBILE RESPONSIVE FIXES — Complete Overhaul
   Add this AFTER your existing style.css
   ===================================================== */

/* ─── BASE FIXES ─────────────────────────────────── */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

/* ─── HERO SECTION ───────────────────────────────── */
.hero {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    padding: 100px 0 60px;
}

.hero-wrapper {
    padding: 0 20px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    word-break: break-word;
    hyphens: auto;
}

.hero p {
    font-size: 0.95rem;
    margin-bottom: 36px;
    padding: 0 4px;
}

.pill-badge {
    font-size: 0.65rem;
    padding: 6px 14px;
    margin-bottom: 28px;
    letter-spacing: 0.06em;
    text-align: center;
}

.btn-group {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 4px;
}

.btn-group .btn-primary,
.btn-group .btn-secondary,
.btn-group .btn-white,
.btn-group .btn-outline {
    width: 80%;
    justify-content: center;
    padding: 10px 0px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(70, 70, 70, 0.432);
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
    position: fixed;
    height: 60px;
    padding: 0 16px;
}

.nav-inner {
    padding: 0;
    height: 100%;
}

.brand {
    font-size: 1.2rem;
}

.brand img {
    height: 30px;
}

.nav-links {
    display: none !important;
}

.hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-right {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--c-border);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 999;
}

.nav-right.active {
    display: flex;
}

.nav-right .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    width: 100%;
}

.nav-right .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.nav-right .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    margin-top: 8px;
}

/* ─── STATS STRIP ────────────────────────────────── */
.stats-strip {
    padding: 48px 0;
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    padding: 0 20px;
}

.stat-item::after {
    display: none;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

/* ─── SECTIONS ───────────────────────────────────── */
.section {
    padding: 64px 0;
}

.section-sm {
    padding: 48px 0;
}

.container {
    padding: 0 16px;
    max-width: 100%;
}

.section-header {
    margin-bottom: 48px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    word-break: break-word;
}

.section-header p {
    font-size: 0.95rem;
    line-height: 1.7;
}

h2 {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    word-break: break-word;
}

/* ─── SPLIT LAYOUT ───────────────────────────────── */
.split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
}

/* ─── ABOUT SECTION ──────────────────────────────── */
#about .split-layout {
    flex-direction: column;
    gap: 32px;
}

#about .about-content {
    text-align: left;
}

#about-body {
    font-size: 0.95rem !important;
}

.about-features {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.feature-item {
    flex: unset;
    width: 100%;
    padding: 20px 16px;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.feature-content p {
    width: auto;
    height: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.about-image-container {
    display: none
}

.floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 16px;
    flex-direction: row;
    gap: 12px;
    padding: 16px;
}

#about-floating-card {
    display: none;
}

/* ─── EXPERTISE SECTION ──────────────────────────── */
.expertise-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
}

.expertise-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.exp-tab {
    padding: 16px 12px;
}

.exp-tab:hover {
    transform: none;
}

.tab-content h4 {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.tab-content p {
    font-size: 0.75rem;
    display: none;
}

.tab-icon {
    font-size: 24px;
}

.exp-image-wrapper {
    height: 220px;
}

.exp-body {
    padding: 24px 20px;
}

.exp-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.exp-body p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.tags-container {
    gap: 8px;
}

.exp-tag {
    padding: 8px 14px;
    font-size: 0.8rem;
}

/* ─── PROCESS TIMELINE ───────────────────────────── */
.timeline-wrapper {
    padding: 20px 0;
}

.timeline-wrapper::before {
    left: 24px;
    top: 0;
    bottom: 0;
}

.timeline-step {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    padding-left: 64px;
    padding-right: 0;
    padding-bottom: 48px;
}

.timeline-step:nth-child(even),
.timeline-step:nth-child(odd) {
    width: 100%;
    margin: 0;
    padding-left: 64px;
    justify-content: flex-start;
}

.timeline-node {
    left: 0 !important;
    right: auto !important;
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
    top: 0;
}

.timeline-card {
    width: 100%;
    padding: 20px 16px;
}

.timeline-card::before,
.timeline-step:nth-child(even) .timeline-card::before {
    display: none;
}

.timeline-card h3 {
    font-size: 1.125rem;
}

.timeline-card p {
    font-size: 0.875rem;
}

.timeline-icon {
    padding: 10px;
    font-size: 20px;
    margin-bottom: 12px;
}

/* ─── FOOTPRINT MAP ──────────────────────────────── */
#footprint-section {
    padding-top: 64px;
    margin-top: 0;
}

.footprint-wrapper {
    grid-template-columns: 1fr;
    height: auto;
    border-radius: 12px;
}

.footprint-map-container {
    height: 320px;
    order: 1;
}

.footprint-sidebar {
    border-left: none;
    border-top: 1px solid var(--c-border);
    padding: 24px 16px;
    order: 2;
    max-height: 400px;
    overflow-y: auto;
}

.highlight-item {
    padding: 16px;
    margin-bottom: 16px;
}

.highlight-item h4 {
    font-size: 0.95rem;
}

.highlight-item p {
    font-size: 0.875rem;
}

/* ─── PROJECTS GRID ──────────────────────────────── */
.projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.projects-deck {
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card.featured {
    grid-column: span 1;
    flex-direction: column;
}

.project-card.featured .project-img-wrapper,
.project-card.featured .project-content {
    width: 100%;
}

.project-card.featured .project-img-wrapper {
    height: 200px;
}

.project-card.featured .project-content {
    padding: 24px 20px;
}

.project-img-wrapper {
    height: 200px;
}

.project-content {
    padding: 20px 16px;
}

.project-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* ─── MARQUEE / LOGOS ────────────────────────────── */
.marquee-container {
    max-width: 100%;
    padding: 0 16px;
}

.marquee-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
}

.client-logo {
    height: 36px;
    transform: scale(1);
}

/* ─── TEAM GRID ──────────────────────────────────── */
.team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.team-card {
    padding: 24px 20px;
    align-items: center;
    text-align: center;
}

.team-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
}

.team-card h3 {
    font-size: 1.125rem;
}

.team-bio {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.read-bio-btn {
    font-size: 0.8rem;
}

.team-btn-container {
    margin-top: 40px;
}

.team-socials {
    justify-content: center;
}

/* ─── DOMAINS GRID ───────────────────────────────── */
.domains-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.domain-card {
    padding: 24px 20px;
}

.domain-card h3 {
    font-size: 1.125rem;
}

.domain-card p {
    font-size: 0.875rem;
}

/* ─── PARTNERS ───────────────────────────────────── */
#partners-grid {
    flex-direction: column !important;
    gap: 16px;
    overflow-x: visible;
}

.partner-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    min-width: 0;
}

.partner-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.partner-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.partner-info p {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ─── CTA SECTION ────────────────────────────────── */
.cta-section {
    padding: 0 0 64px !important;
}

.cta-wrapper {
    padding: 60px 24px;
    border-radius: 16px;
}

.cta-wrapper h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 16px;
}

.cta-wrapper p {
    font-size: 1rem;
    margin-bottom: 32px;
}

.cta-wrapper .btn-group {
    flex-direction: column;
    gap: 12px;
}

.cta-wrapper .btn-white,
.cta-wrapper .btn-outline,
.cta-wrapper .btn-secondary {
    width: 100%;
    justify-content: center;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer-modern {
    padding: 48px 0 32px;
}

.footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 16px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    max-width: 100%;
}

.footer-links {
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
}

.footer-links a:hover {
    transform: translateX(4px);
}

.contact-item {
    font-size: 0.875rem;
    gap: 10px;
    word-break: break-word;
}

.footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 16px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
}

.social-links {
    gap: 16px;
}

/* ─── FILTER BUTTONS ─────────────────────────────── */
.filter-container {
    gap: 10px;
    margin-bottom: 48px;
    padding: 0 4px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 10px 18px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── MODALS ─────────────────────────────────────── */
.project-modal {
    padding: 0;
    align-items: flex-end;
}

.modal-container {
    max-height: 92vh;
    height: auto;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    width: 100%;
}

.modal-hero-img {
    height: 200px;
}

.modal-title-section {
    padding: 24px 20px 16px;
}

.modal-title-section h2 {
    font-size: 1.5rem;
}

.modal-subtitle {
    font-size: 0.95rem;
}

.modal-body {
    padding: 20px;
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.modal-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: left;
}

.modal-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.modal-kpi-card {
    padding: 14px;
}

.modal-kpi-card h4 {
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.modal-kpi-card p {
    font-size: 0.95rem;
    margin: 0;
}

.modal-actions {
    flex-direction: column;
    gap: 12px;
}

.btn-pdf,
.btn-case-study {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
}

.modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
}

/* ─── GALLERY ────────────────────────────────────── */
.gallery-item {
    width: 240px;
    height: 160px;
}

/* ─── POLICIES ───────────────────────────────────── */
.policies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.policy-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.policy-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    flex-shrink: 0;
}

.policy-text h4 {
    font-size: 0.95rem;
}

.policy-text span {
    font-size: 0.75rem;
}

/* ─── TOGGLE / RESOURCES PAGE ────────────────────── */
.toggle-section {
    margin-top: 16px;
    margin-bottom: 40px;
    padding: 0 16px;
}

.toggle-pill-container {
    max-width: 100%;
}

.toggle-btn {
    font-size: 0.85rem;
    padding: 10px 0;
}

.resource-card {
    padding: 20px 16px;
    gap: 14px;
}

/* ─── MISSION / GOAL ─────────────────────────────── */
.mission-goal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
}

.mission-list li {
    font-size: 0.95rem;
    gap: 10px;
}

.goal-card {
    padding: 24px 20px;
}

.goal-card p {
    font-size: 1rem;
}

/* ─── CARDS GENERAL ──────────────────────────────── */
.card {
    padding: 20px 16px;
}

.modern-card {
    padding: 24px 20px;
}

.modern-card h3 {
    font-size: 1.1rem;
}

.modern-card p {
    font-size: 0.875rem;
}

/* ─── EYEBROW / TYPOGRAPHY ───────────────────────── */
.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

p {
    font-size: 0.95rem;
}

/* ─── ENSURE SECTION TITLES LOOK GOOD ───────────────*/
#hero-title {
    font-size: clamp(2rem, 8vw, 4rem) !important;
    letter-spacing: -0.02em;
}

/* ─── SMALL SCREENS < 480px ──────────────────────── */
@media (max-width: 480px) {

    .hero h1,
    #hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem) !important;
    }

    .hero p {
        font-size: 0.875rem;
    }

    .expertise-tabs {
        grid-template-columns: 1fr;
    }

    .modal-kpi-grid {
        grid-template-columns: 1fr;
    }

    .marquee-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .cta-wrapper {
        padding: 48px 16px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ─── TABLETS 768px – 1024px ─────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        border-radius: 24px;
        top: 8px;
        left: 8px;
        width: calc(100% - 16px);
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item::after {
        display: block;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-deck {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #partners-grid {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .partner-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 240px;
    }

    .expertise-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-wrapper::before {
        left: 50%;
    }

    .timeline-step {
        width: 50% !important;
        padding-left: 0;
    }

    .timeline-step:nth-child(odd) {
        margin-right: 50% !important;
        justify-content: flex-end !important;
        padding-right: 64px;
    }

    .timeline-step:nth-child(even) {
        margin-left: 50% !important;
        justify-content: flex-start !important;
        padding-left: 64px;
    }

    .timeline-node {
        right: -32px !important;
        left: auto !important;
        width: 64px;
        height: 64px;
        font-size: 1.125rem;
    }

    .timeline-step:nth-child(even) .timeline-node {
        right: auto !important;
        left: -32px !important;
    }

    .timeline-card::before {
        display: block;
    }

    .footprint-wrapper {
        grid-template-columns: 2fr 1fr;
        height: 500px;
    }

    .footprint-map-container {
        height: 100%;
    }

    .modal-container {
        max-width: 720px;
        border-radius: 16px;
        max-height: 90vh;
        height: auto;
    }

    .project-modal {
        padding: 20px;
        align-items: center;
    }
}

/* ─── LARGE DESKTOP: restore pill-shaped hero ─────── */
@media (min-width: 1025px) {
    .hero {
        position: relative;
        top: 8px;
        left: 10px;
        width: 98%;
        border-radius: 50px;
    }
}