/* ═══════════════════════════════════════════════════════════
   site-refresh.css — Non-destructive typographic + visual layer
   Tuskers India · 2026
   ═══════════════════════════════════════════════════════════ */

/* ── Color Tokens ── */
:root {
    --color-surface: #FAFAF7;
    --color-ink: #0A0A0A;
    --color-ink-secondary: #666666;
    --color-border: rgba(0,0,0,0.08);
    --color-border-strong: rgba(0,0,0,0.14);
}

/* ── Typography: Accent Font ── */
h1 em,
h2 em,
h3 em,
.accent-word {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
}

/* ── Typography: Heading Overrides ── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.2;
}

/* Downgrade 800 → 700 globally */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ── Eyebrow Labels ── */
.eyebrow,
.section-number,
.label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Stats / Numeric Typography ── */
.stat-value,
.mono-value,
.svs-value,
.hero-stat-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ── UI Controls: Pills / Badges ── */
.page-hero-badge,
.video-hero-badge,
.leader-badge,
.card-tag {
    border-radius: 999px;
    padding: 0.3em 0.9em;
    font-size: 0.78rem;
}

/* ── Cards: Hover Effect ── */
.card,
.service-card,
.feature-card,
.team-card,
.news-card,
.cert-card,
.industry-card,
.leader-card,
.mvv-card,
.value-card,
.faq-mini-item {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.3s ease;
}

.card:hover,
.service-card:hover,
.feature-card:hover,
.team-card:hover,
.news-card:hover,
.cert-card:hover,
.industry-card:hover,
.leader-card:hover,
.mvv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

/* ── Header: Scroll Shadow ── */
nav,
.site-header,
header[role="banner"] {
    transition: box-shadow 0.3s ease, padding 0.4s ease, background 0.4s ease;
}

nav.is-scrolled,
.site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--color-border), 0 4px 18px rgba(0,0,0,0.06);
}

/* ── Scroll Reveal Base ── */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Word Reveal (homepage hero) ── */
.word-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.word-reveal.in-view span {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .word-reveal span {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Magnetic CTA Base ── */
.btn-quote,
.hero-audit-btn {
    transition: transform 0.15s ease;
    will-change: transform;
}

/* ── Alternating Section Backgrounds ── */
.section-alt,
.bg-light {
    background-color: var(--color-surface);
}

/* ══════════════════════════════════════════════════════════
   MOBILE DRAWER — Premium Editorial Navigation
   ══════════════════════════════════════════════════════════ */

/* ── Drawer Container ── */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer.is-open,
.mobile-drawer.active {
    display: flex;
    flex-direction: column;
    animation: drawerReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawerReveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Drawer Panel ── */
.drawer-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    width: 82%;
    max-width: 380px;
    margin-left: auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: -8px 0 48px rgba(0,0,0,0.18), -1px 0 0 rgba(0,0,0,0.04);
    animation: panelSlideRight 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes panelSlideRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* ── Drawer Header ── */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    background: #ffffff;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.drawer-header img {
    height: 34px;
    transition: opacity 0.3s ease;
}

.drawer-header-actions {
    display: none;
}

/* ── Drawer Close ── */
.drawer-close {
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 24px;
    padding: 6px;
    margin-left: auto;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.drawer-close:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.15);
    transform: rotate(90deg);
}

.drawer-close:active {
    transform: rotate(90deg) scale(0.9);
    background: #eee;
}

/* ── Drawer Nav Links ── */
.drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 22px 0;
    overflow-y: hidden;
}

.drawer-link, .drawer-category {
    display: flex;
    align-items: center;
    padding: 13px 0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    animation: drawerLinkIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    position: relative;
}

/* Arrow indicator on hover */
.drawer-link::after {
    content: '›';
    position: absolute;
    right: 4px;
    font-size: 18px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-link:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: #BC3232;
}

.drawer-link:hover, .drawer-sub-link:hover {
    padding-left: 6px;
    color: #BC3232;
}

.drawer-link:active, .drawer-sub-link:active {
    transform: scale(0.98);
}

.drawer-link.drawer-home {
    color: #BC3232;
    font-weight: 800;
}

.drawer-category {
    border-bottom: none;
    padding-bottom: 6px;
    color: #1a1a1a;
    font-weight: 800;
}

/* ── Staggered Animations ── */
.mobile-drawer.is-open .drawer-nav > *:nth-child(1) { animation-delay: 0.04s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(2) { animation-delay: 0.08s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(3) { animation-delay: 0.12s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(4) { animation-delay: 0.16s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(5) { animation-delay: 0.20s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(6) { animation-delay: 0.24s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(7) { animation-delay: 0.28s; }
.mobile-drawer.is-open .drawer-nav > *:nth-child(8) { animation-delay: 0.32s; }

@keyframes drawerLinkIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Sub Menu ── */
.drawer-sub-menu {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    border-left: 3px solid rgba(188, 50, 50, 0.15);
    opacity: 0;
    animation: drawerLinkIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.drawer-sub-link {
    color: #555;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 5px 4px;
    border-radius: 6px;
}

.drawer-sub-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(188, 50, 50, 0.3);
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.drawer-sub-link:hover::before {
    background: #BC3232;
    transform: scale(1.3);
}

.drawer-sub-link:hover {
    color: #BC3232;
    background: rgba(188, 50, 50, 0.04);
    padding-left: 10px;
}

/* ── Drawer Footer ── */
.drawer-footer {
    padding: 12px 22px 16px;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    opacity: 0;
    animation: drawerFooterIn 0.5s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-drawer:not(.is-open) .drawer-footer {
    animation: none;
    opacity: 0;
}

@keyframes drawerFooterIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.drawer-footer-buttons {
    display: none;
}

.drawer-footer-btn {
    display: none;
}

/* ── Drawer social strip ── */
.drawer-social-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.drawer-social-strip a {
    color: #999;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    padding: 6px;
    border-radius: 50%;
}

.drawer-social-strip a:hover {
    color: #BC3232;
    transform: translateY(-2px);
    background: rgba(188, 50, 50, 0.06);
}

/* Single CTA fallback (old drawer-cta) */
.drawer-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #BC3232, #d44040);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(188, 50, 50, 0.3);
}

.drawer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(188, 50, 50, 0.45);
}

.drawer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    margin-top: 8px;
}

/* ── Hamburger standardization ── */
@media (max-width: 1024px) {
    .hamburger {
        display: flex !important;
    }
}

/* ── Mobile Nav Get Quote Button ── */
.nav-mobile-quote {
    display: none;
}

@media (max-width: 1024px) {
    .nav-row__right {
        display: flex !important;
        align-items: center;
        gap: 12px;
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 10001;
    }
    .nav-mobile-quote {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #BC3232;
        color: #fff;
        padding: 10px 16px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
        transition: background 0.3s ease, transform 0.2s ease;
        box-shadow: 0 2px 10px rgba(188, 50, 50, 0.2);
    }
    .nav-mobile-quote:active {
        transform: scale(0.96);
        background: #a02020;
    }
    .nav-mobile-quote svg {
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE PADDING — Site-Wide Consistency Layer
   Breakpoints: 1200px → 1024px → 768px → 480px
   ═══════════════════════════════════════════════════════════ */

/* ── 1200px: Reduce 80px → 60px ── */
@media (max-width: 1200px) {
    .breadcrumb { padding-left: 60px !important; padding-right: 60px !important; }
    .page-hero,
    .page-section,
    .contact-main,
    .faq-strip,
    .news-section,
    .services-section,
    .industries-section,
    .process-inner,
    .sectors-section,
    .certs-inner,
    .cta-banner-inner,
    .capabilities-inner,
    .careers-hero,
    .culture-inner,
    .filter-bar,
    .jobs-section,
    .open-cta-inner,
    .emergency-inner,
    .fm-hero-content,
    .highlight-band { padding-left: 60px !important; padding-right: 60px !important; }
    footer { padding-left: 60px !important; padding-right: 60px !important; }
    .filter-inner { padding-left: 60px !important; padding-right: 60px !important; }
}

/* ── 1024px: Reduce 60px → 40px ── */
@media (max-width: 1024px) {
    .breadcrumb { padding-left: 24px !important; padding-right: 24px !important; }
    .page-hero,
    .page-section,
    .contact-main,
    .faq-strip,
    .news-section,
    .services-section,
    .industries-section,
    .process-inner,
    .sectors-section,
    .certs-inner,
    .cta-banner-inner,
    .capabilities-inner,
    .careers-hero,
    .culture-inner,
    .filter-bar,
    .jobs-section,
    .open-cta-inner,
    .emergency-inner,
    .fm-hero-content,
    .highlight-band { padding-left: 40px !important; padding-right: 40px !important; }
    footer { padding-left: 40px !important; padding-right: 40px !important; }
    .filter-inner { padding-left: 40px !important; padding-right: 40px !important; }
}

/* ── 768px: Reduce 40px → 24px ── */
@media (max-width: 768px) {
    .page-hero,
    .page-section,
    .contact-main,
    .faq-strip,
    .news-section,
    .services-section,
    .industries-section,
    .process-inner,
    .sectors-section,
    .certs-inner,
    .cta-banner-inner,
    .capabilities-inner,
    .careers-hero,
    .culture-inner,
    .filter-bar,
    .jobs-section,
    .open-cta-inner,
    .emergency-inner,
    .fm-hero-content,
    .highlight-band { padding-left: 24px !important; padding-right: 24px !important; }
    footer { padding-left: 24px !important; padding-right: 24px !important; }
    .filter-inner { padding-left: 24px !important; padding-right: 24px !important; }
    .breadcrumb { padding-left: 24px !important; padding-right: 24px !important; }
}

/* ── 480px: Reduce 24px → 16px ── */
@media (max-width: 480px) {
    .page-hero,
    .page-section,
    .contact-main,
    .faq-strip,
    .news-section,
    .services-section,
    .industries-section,
    .process-inner,
    .sectors-section,
    .certs-inner,
    .cta-banner-inner,
    .capabilities-inner,
    .careers-hero,
    .culture-inner,
    .filter-bar,
    .jobs-section,
    .open-cta-inner,
    .emergency-inner,
    .fm-hero-content,
    .highlight-band { padding-left: 16px !important; padding-right: 16px !important; }
    footer { padding-left: 16px !important; padding-right: 16px !important; }
    .filter-inner { padding-left: 16px !important; padding-right: 16px !important; }
    .breadcrumb { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ── Full-width background sections: remove max-width constraints ── */
.emergency-strip,
.cta-banner,
.capabilities-strip,
.culture-strip,
.process-section,
.certs-section,
.open-cta,
.highlight-band,
.fm-hero,
.filter-bar {
    max-width: none !important;
    width: 100%;
}

/* ── Ensure html has overflow-x hidden globally ── */
html {
    overflow-x: hidden;
}


/* ── Drawer Actions ── */
.drawer-action-buttons {
    display: flex;
    gap: 10px;
    padding: 0 22px 14px;
    margin-top: auto;
    padding-top: 12px;
}

.drawer-btn {
    flex: 1;
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.drawer-btn:active {
    transform: scale(0.96);
}

.drawer-btn.btn-primary {
    background: linear-gradient(135deg, #BC3232, #d43b3b);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(188, 50, 50, 0.25);
}

.drawer-btn.btn-primary:hover {
    box-shadow: 0 5px 18px rgba(188, 50, 50, 0.35);
    transform: translateY(-1px);
}

.drawer-btn.btn-secondary {
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-btn.btn-secondary:hover {
    background: #e8e8e8;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL SERVICES POPUP & BUTTON
   ═══════════════════════════════════════════════════════════ */

/* ── Service Button ── */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #BC3232;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(188, 50, 50, 0.2);
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
}

.service-btn:hover {
    background: #a02020;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 50, 50, 0.3);
}

.service-btn svg {
    transition: transform 0.3s ease;
}

.service-btn:hover svg {
    transform: translateX(4px);
}

/* ── Popup Overlay ── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 29, 53, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Popup Modal ── */
.popup-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.popup-overlay.active .popup-modal {
    transform: translateY(0) scale(1);
}

/* ── Popup Close Button ── */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--color-ink-secondary);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #BC3232;
}

/* ── Popup Header ── */
.popup-header {
    margin-bottom: 30px;
    text-align: center;
}

.popup-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
    color: var(--color-ink);
}

.popup-header p {
    font-size: 0.85rem;
    font-weight: 700;
    color: #BC3232;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* ── Popup Form Groups ── */
.popup-form .form-group {
    margin-bottom: 20px;
}

.popup-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-ink);
    font-family: 'Inter', sans-serif;
}

.popup-form .form-group input,
.popup-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.popup-form .form-group input:focus,
.popup-form .form-group textarea:focus {
    outline: none;
    border-color: #BC3232;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(188, 50, 50, 0.1);
}

/* ── Popup Success State ── */
.popup-success {
    text-align: center;
    padding: 20px 0;
}

.popup-success h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 12px;
    color: var(--color-ink);
    font-family: 'Inter', sans-serif;
}

.popup-success p {
    color: var(--color-ink-secondary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .popup-modal { padding: 30px 24px; }
}
