/* === Single Post + Breadcrumbs + Burger + Org + Back-to-top === */

/* === SINGLE POST === */
.single-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
}
.single-content {
    flex: 1;
    min-width: 0;
}
.single-featured-image {
    margin-bottom: 40px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.single-body {
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
}
.single-body p {
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 16px;
}
.single-body h2 { font-size: 24px; margin-top: 40px; margin-bottom: 16px; color: #fff; }
.single-body h3 { font-size: 20px; margin-top: 30px; margin-bottom: 12px; color: #fff; }
.single-body ul, .single-body ol { margin: 16px 0; padding-left: 24px; color: var(--text); opacity: 0.9; }
.single-body li { margin-bottom: 8px; line-height: 1.7; }
.single-body blockquote {
    border-left: 3px solid var(--teal);
    padding: 20px 30px;
    margin: 30px 0;
    background: rgba(0,201,167,0.05);
    font-style: italic;
}
.single-body blockquote p { color: var(--text); margin-bottom: 0; }
.single-body img { max-width: 100%; height: auto; border: 1px solid var(--card-border); margin: 20px 0; }
.single-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.single-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.single-nav {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
}
.single-nav-link {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.single-nav-link:hover { border-color: rgba(0,201,167,0.3); background: var(--card-hover); }
.single-nav-link.next { text-align: right; }
.single-nav-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.single-nav-link.next .single-nav-label { justify-content: flex-end; }
.single-nav-label svg { stroke: currentColor; stroke-width: 2; fill: none; width: 14px; height: 14px; }
.single-nav-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }

.news-card-image img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); background: rgba(255,255,255,0.03); }

@media (max-width: 1024px) {
    .single-layout { flex-direction: column; }
}
@media (max-width: 768px) {
    .single-nav { flex-direction: column; }
    .single-nav-link.next { text-align: left; }
    .single-nav-link.next .single-nav-label { justify-content: flex-start; }
}


/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { opacity: 0.4; }

/* ═══ FULL FOOTER ═══ */
.site-footer {
    background: var(--navy-deep);
    padding: 80px 24px 30px;
    border-top: 1px solid var(--card-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}
.footer-logo span { color: var(--teal); }
.footer-desc {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s;
}
.footer-social a:hover {
    border-color: var(--teal);
    background: rgba(0,201,167,0.1);
}
.footer-social svg {
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    stroke-width: 2;
    fill: none;
}
.footer-social a:hover svg { stroke: var(--teal); }
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.footer-contacts svg {
    width: 16px;
    height: 16px;
    stroke: var(--teal);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    text-align: center;
}
.footer-copy {
    font-size: 12px;
    color: var(--muted);
}

/* ═══ BURGER MENU ═══ */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══ FLAT ORG ILLUSTRATION ═══ */
.org-illustration { max-width: 100%; }
.org-illustration svg { width: 100%; height: auto; }


/* ═══ MOBILE RESPONSIVE ═══ */

/* Burger button */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    position: relative;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .single-layout { grid-template-columns: 1fr !important; }
    .news-layout { grid-template-columns: 1fr !important; }
    .why-grid { grid-template-columns: 1fr !important; }
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .segments-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .flagship-grid { grid-template-columns: 1fr !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .industries-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .certs-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .platform-grid { grid-template-columns: 1fr !important; }
    .workflow-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Burger visible */
    .burger { display: block !important; }
    .hide-mobile { display: none !important; }
    
    /* Full-screen mobile nav overlay */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: #061220 !important;
        display: none !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 100px 40px 40px !important;
        gap: 28px !important;
        z-index: 150 !important;
    }
    .header-nav.open {
        display: flex !important;
    }
    .header-nav a {
        font-size: 22px !important;
        font-weight: 600 !important;
        color: var(--text) !important;
    }
    .header-nav a:hover,
    .header-nav a.active {
        color: var(--teal) !important;
    }
    
    /* Header */
    .header { padding: 12px 16px !important; background-color: #061220 !important; }
    .header-cta.hide-mobile { display: none !important; }
    
    /* Sections */
    section { padding: 60px 16px !important; }
    .container { padding: 0 16px; }
    
    /* Hero */
    .hero-home {
        min-height: auto !important;
        height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        display: block !important;
    }
    .hero-home .hero-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .hero-home .hero-tag,
    .hero-home .hero-description,
    .hero-home .hero-cta {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        width: auto !important;
    }
    .hero-home h1 { font-size: clamp(28px, 8vw, 40px) !important; white-space: normal !important; letter-spacing: 0 !important; }
    .hero-home .hero-description { font-size: 16px !important; margin-bottom: 28px !important; }
    .hero-home .hero-tag { margin-bottom: 16px !important; }
    .hero-inner { min-height: auto !important; height: auto !important; padding-top: 90px !important; padding-bottom: 40px !important; }
    .hero-inner h1 { font-size: clamp(24px, 6vw, 34px) !important; }
    .hero-cta { flex-direction: column !important; align-items: flex-start !important; margin-top: 24px !important; gap: 12px !important; }
    .hero-cta a { width: 100% !important; text-align: center !important; }
    
    /* ALL grids → single column */
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .segments-grid { grid-template-columns: 1fr !important; }
    .news-grid { grid-template-columns: 1fr !important; }
    .industries-grid { grid-template-columns: 1fr !important; }
    .certs-grid { grid-template-columns: 1fr !important; }
    .values-grid { grid-template-columns: 1fr !important; }
    .products-grid { grid-template-columns: 1fr !important; }
    .workflow-grid { grid-template-columns: 1fr !important; }
    .benefits-grid { grid-template-columns: 1fr !important; }
    .standards-grid { grid-template-columns: 1fr !important; }
    .steps-grid { grid-template-columns: 1fr !important; }
    .client-grid { grid-template-columns: 1fr !important; }
    .hours-grid { grid-template-columns: 1fr !important; }
    .careers-grid { grid-template-columns: 1fr !important; }
    .features-grid { grid-template-columns: 1fr !important; }
    .security-grid { grid-template-columns: 1fr !important; }
    .flagship-features { grid-template-columns: 1fr !important; }
    .platform-stats { grid-template-columns: 1fr !important; }
    .why-grid { grid-template-columns: 1fr !important; }
    .about-grid { grid-template-columns: 1fr !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .flagship-grid { grid-template-columns: 1fr !important; }
    .platform-grid { grid-template-columns: 1fr !important; }
    .program-intro { grid-template-columns: 1fr !important; }
    .org-branches { grid-template-columns: 1fr !important; }
    
    /* Multi-column flex → column */
    .hero-stats { flex-direction: column !important; gap: 24px !important; }
    .map-stats { flex-direction: column !important; gap: 24px !important; }
    .org-comparison { flex-direction: column !important; }
    .org-comparison-side { min-width: auto !important; }
    
    /* News / sidebar */
    .news-layout { grid-template-columns: 1fr !important; }
    .single-layout { grid-template-columns: 1fr !important; }
    .sidebar { flex-direction: column !important; }
    .featured-grid { grid-template-columns: 1fr !important; }
    .featured-sidebar { flex-direction: column !important; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .site-footer { padding: 50px 16px 20px !important; }
    
    /* Partners */
    .partners-grid { flex-direction: column !important; gap: 8px !important; }
    .partner { padding: 14px 20px !important; }
    
    /* CTA */
    .cta-section { padding: 60px 16px !important; }
    
    /* Typography */
    h1 { font-size: clamp(26px, 7vw, 38px) !important; }
    h2 { font-size: clamp(20px, 5vw, 28px) !important; }
    
    /* Single post */
    .single-nav { flex-direction: column !important; }
    .single-nav-link.next { text-align: left !important; }
    .single-nav-link.next .single-nav-label { justify-content: flex-start !important; }
    
    /* Newsletter */
    .newsletter-form { flex-direction: column !important; }
    
    /* Contact form */
    .contact-form-wrapper { padding: 24px !important; }
    .info-card { padding: 24px !important; }
    
    /* Workflow arrows hidden */
    .workflow-step::after { display: none !important; }
}

/* Small mobile */
@media (max-width: 480px) {
    .stat-value { font-size: 28px !important; }
    .hero-home h1 { font-size: 28px !important; }
    .partner { padding: 12px 16px !important; }
    .partner-name { font-size: 13px !important; }
    .map-stat-value { font-size: 36px !important; }
}

/* ═══ BACK TO TOP ═══ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--teal);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0,201,167,0.3);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #00ddb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,201,167,0.4);
}
.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}
@media (max-width: 768px) {
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ═══ ORG COMPARISON DIAGRAM ═══ */
.org-comparison {
    display: flex;
    gap: 40px;
    align-items: stretch;
}
.org-comparison-side {
    flex: 1;
    min-width: 0;
}

/* ═══ ABOUT PAGE — FLAT STRUCTURE ILLUSTRATIONS ═══ */
.about-illustrations {
    margin-top: 0;
}
.about-illustration-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    padding: 36px 32px 28px;
}
.about-illustration-card + .about-illustration-card {
    margin-top: 24px;
}
.about-illustration-label {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal);
    opacity: 0.85;
    margin-bottom: 18px;
    text-align: center;
}
.about-illustration-card svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 900px;
    margin: 0 auto;
}
.about-illustration-caption {
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
    margin: 18px auto 0;
    max-width: 720px;
}
@media (max-width: 768px) {
    .about-illustration-card { padding: 22px 14px 18px; }
    .about-illustration-card + .about-illustration-card { margin-top: 16px; }
    .about-illustration-label { font-size: 10px; margin-bottom: 14px; }
    .about-illustration-caption { font-size: 12.5px; margin-top: 14px; }
}

/* ═══ SHARED STACK — bullet-proof mobile single column ═══ */
@media (max-width: 768px) {
    .methodology-section .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 32px !important;
    }
    .methodology-section .feature-card {
        padding: 24px 20px !important;
    }
}

.mgmt-section .service-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    padding: 30px 24px;
}
.mgmt-section .service-card:hover {
    border-color: rgba(0,201,167,0.3);
    background: var(--card-hover);
    transform: translateY(-3px);
}

/* Show contact in mobile nav */
@media (max-width: 768px) {
    .header-nav .show-mobile {
        display: block !important;
        margin-top: 16px;
        padding: 14px 32px !important;
        border: 1px solid var(--teal) !important;
        color: var(--teal) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        text-decoration: none !important;
    }
}


