/* ==========================================================================
   TCM GROUP - MODERN CORPORATE DESIGN SYSTEM
   Bilingual / Shared-Hosting Ready / Flat-File Storage / 2x2 Mobile Layout
   ========================================================================== */

:root {
    /* Brand Color Palette */
    --tcm-emerald: #0b5e28;
    --tcm-emerald-light: #16813b;
    --tcm-emerald-dark: #073d19;
    --tcm-citrus: #f59e0b;
    --tcm-citrus-dark: #d97706;
    --tcm-citrus-light: #fef3c7;
    --tcm-lime: #84cc16;

    /* Neutrals */
    --tcm-ink: #0f172a;
    --tcm-slate: #334155;
    --tcm-muted: #64748b;
    --tcm-line: #e2e8f0;
    --tcm-soft: #f8fafc;
    --tcm-card-bg: #ffffff;
    --tcm-tint: #f0fdf4;

    /* Elevation & Curves */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(11, 94, 40, 0.08), 0 8px 10px -6px rgba(11, 94, 40, 0.04);
    --shadow-lg: 0 20px 35px -8px rgba(11, 94, 40, 0.12), 0 10px 15px -3px rgba(0, 0, 0, 0.05);

    /* Layout */
    --container-max: 1240px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--tcm-slate);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

.container {
    width: min(var(--container-max), calc(100% - 40px));
    margin: 0 auto;
}

/* ==========================================================================
   SCROLL PROGRESS BAR, LUXURY PAGE TRANSITION & BACK TO TOP
   ========================================================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #0b5e28 0%, #16813b 45%, #f59e0b 80%, #fbbf24 100%);
    z-index: 100000;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    transition: width 0.08s ease-out;
    pointer-events: none;
}

.page-transition-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #f59e0b, #10b981, #f59e0b);
    z-index: 100001;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
    transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}

.page-transition {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(11, 94, 40, 0.92) 0%, rgba(7, 42, 19, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-in-out;
}
.page-transition.is-active {
    opacity: 1;
    pointer-events: all;
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--tcm-emerald);
    border: 1.5px solid rgba(11, 94, 40, 0.2);
    box-shadow: 0 8px 24px rgba(11, 94, 40, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.back-to-top-btn:hover {
    background: var(--tcm-emerald);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(11, 94, 40, 0.35);
    transform: translateY(-4px) scale(1.08);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

/* Brand */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}
.brand-link:hover .brand-logo {
    transform: scale(1.02);
}
.brand-text-fallback {
    display: flex;
    flex-direction: column;
}
.brand-tcm {
    font-size: 26px;
    font-weight: 800;
    color: var(--tcm-citrus);
    line-height: 1;
}
.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--tcm-emerald);
    letter-spacing: 0.1em;
}

/* Desktop Navigation Menu */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--tcm-slate);
    padding: 8px 4px;
    position: relative;
    transition: color var(--transition-fast);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tcm-emerald);
    border-radius: 2px;
    transition: width var(--transition-fast);
}
.nav-item:hover, .nav-item.active {
    color: var(--tcm-emerald);
}
.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--tcm-soft);
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tcm-muted);
    padding: 3px 6px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}
.lang-btn:hover {
    color: var(--tcm-ink);
}
.lang-btn.active {
    color: var(--tcm-emerald);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}
.lang-divider {
    color: var(--tcm-line);
    margin: 0 4px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.toggle-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--tcm-ink);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

/* ==========================================================================
   BUTTONS & UI COMPONENTS (STATIC LUXURY GLOW + DYNAMIC RIPPLE)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    user-select: none;
    letter-spacing: 0.01em;
}

/* Static ambient sheen ray inside buttons */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
    animation: btnShimmerSweep 0.75s ease-out;
}

@keyframes btnShimmerSweep {
    0% { left: -80%; }
    100% { left: 160%; }
}

.btn:active {
    transform: translateY(0) scale(0.97) !important;
}

/* Primary Button: Static Emerald Halo + Dynamic Hover */
.btn-primary {
    background: linear-gradient(135deg, #0d7031 0%, #0b5e28 50%, #07431c 100%);
    color: #ffffff;
    /* Static constant glow */
    box-shadow: 0 6px 18px rgba(11, 94, 40, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0f7a37 0%, #0d6d30 50%, #094b20 100%);
    box-shadow: 0 10px 26px rgba(11, 94, 40, 0.42), 0 0 15px rgba(22, 129, 59, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Accent Button: Static Gold Halo + Breathing Aura */
.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    /* Static constant glow */
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    animation: staticButtonAura 3.6s infinite ease-in-out;
}
@keyframes staticButtonAura {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
    50% {
        box-shadow: 0 8px 26px rgba(245, 158, 11, 0.58), 0 0 18px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    }
}
.btn-accent:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.4);
    color: #ffffff;
}

/* Outline Button: Crisp Static Ring */
.btn-outline {
    background: #ffffff;
    border: 1.5px solid rgba(11, 94, 40, 0.25);
    color: var(--tcm-ink);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.btn-outline:hover {
    border-color: var(--tcm-emerald);
    color: var(--tcm-emerald);
    background: var(--tcm-tint);
    box-shadow: 0 6px 18px rgba(11, 94, 40, 0.15);
    transform: translateY(-2px);
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #ffffff;
}

/* Ripple Click Micro-interaction */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -40px;
}
@keyframes rippleAnimation {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}
.btn-block {
    width: 100%;
}
.btn-icon {
    transition: transform var(--transition-fast);
}
.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #072a13;
}
.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    transform: scale(1.02);
    transition: transform 10s ease;
}
.hero-section:hover .hero-backdrop {
    transform: scale(1.06);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 42, 19, 0.95) 0%, rgba(11, 94, 40, 0.8) 50%, rgba(7, 61, 25, 0.6) 100%);
}
.hero-container {
    position: relative;
    z-index: 2;
    padding: 90px 0 110px;
}
.hero-content {
    max-width: 680px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    color: #e2f5e8;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-title-main {
    display: block;
    color: #ffffff;
}
.hero-title-sub {
    display: block;
    font-size: 0.52em;
    font-weight: 700;
    color: #d1fae5;
    margin-top: 8px;
}
.hero-title-accent {
    display: inline-block;
    font-style: normal;
    color: var(--tcm-citrus);
    font-size: 0.65em;
    border-bottom: 3px solid var(--tcm-citrus);
    padding-bottom: 4px;
}
.hero-description {
    font-size: 18px;
    color: #e2f5e8;
    margin-bottom: 32px;
    max-width: 580px;
    line-height: 1.6;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    z-index: 3;
}

/* ==========================================================================
   QUICK STATS SECTION (2x2 on mobile)
   ========================================================================== */
.quick-stats-section {
    position: relative;
    z-index: 4;
    margin-top: -24px;
    padding-bottom: 40px;
}
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--tcm-line);
    overflow: hidden;
}
.stat-card {
    padding: 24px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--tcm-line);
    transition: background var(--transition-fast);
}
.stat-card:last-child {
    border-right: none;
}
.stat-card:hover {
    background: var(--tcm-tint);
}
.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--tcm-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #a7f3d0;
}
.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--tcm-emerald);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--tcm-ink);
    letter-spacing: 0.05em;
    margin-top: 3px;
}
.stat-sub {
    display: block;
    font-size: 11px;
    color: var(--tcm-muted);
    line-height: 1.3;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
    padding: 76px 0;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(11, 94, 40, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 40%);
}
.section-soft-bg {
    background-color: var(--tcm-soft);
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, #f4fbf5 100%);
}
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 46px;
    position: relative;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tcm-emerald);
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(11, 94, 40, 0.06);
}
.section-eyebrow::before {
    content: '✦';
    font-size: 9px;
    color: var(--tcm-citrus);
}
.text-emerald { color: var(--tcm-emerald); }
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--tcm-ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-title::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--tcm-emerald), var(--tcm-citrus), transparent);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--tcm-muted);
    line-height: 1.5;
    margin-top: 10px;
}

/* ==========================================================================
   COMPANIES CARDS GRID (Crucial 2x2 on mobile)
   ========================================================================== */
.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.company-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-md);
    overflow: visible; /* Ensure floating badges are never clipped */
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.card-hover-fx:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(11, 94, 40, 0.16), 0 0 15px rgba(245, 158, 11, 0.12);
    border-color: #94a3b8;
}
.card-img-wrap {
    height: 165px;
    position: relative;
    background: #f1f5f9;
    overflow: visible; /* Allows badge to overlap freely */
    z-index: 2;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.company-card:hover .card-img-wrap img {
    transform: scale(1.06);
}
.card-badge-icon {
    position: absolute;
    bottom: -22px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tcm-emerald) 0%, #15803d 100%);
    color: #ffffff;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(11, 94, 40, 0.3), 0 0 0 1px rgba(245, 158, 11, 0.35);
    z-index: 10; /* Brought to the absolute front on top of both image and card body */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.company-card:hover .card-badge-icon {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 12px 26px rgba(11, 94, 40, 0.4), 0 0 14px rgba(245, 158, 11, 0.5);
}
.company-card-body {
    padding: 28px 18px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.company-role-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--tcm-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.company-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin-bottom: 4px;
}
.company-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--tcm-muted);
    margin-bottom: 12px;
}
.loc-icon { color: var(--tcm-citrus); flex-shrink: 0; }
.company-summary {
    font-size: 13px;
    color: var(--tcm-slate);
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}
.compact-features {
    margin-bottom: 16px;
    font-size: 12px;
    color: #475569;
}
.compact-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.feat-icon { color: var(--tcm-emerald); flex-shrink: 0; }

/* Deep Profile Cards on companies.php */
.deep-card .company-capabilities {
    background: var(--tcm-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
}
.cap-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tcm-slate);
    margin-bottom: 6px;
}
.checks {
    font-size: 12px;
    color: var(--tcm-muted);
}
.checks li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.check-svg { color: var(--tcm-emerald); flex-shrink: 0; }

/* ==========================================================================
   STRATEGY FLOW SECTION & STEPS (2x2 on mobile)
   ========================================================================== */
.section-flow {
    background: linear-gradient(135deg, #09471f 0%, #0d632b 100%);
    color: #ffffff;
}
.flow-layout {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.flow-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 8px;
}
.flow-subtitle {
    color: #d1fae5;
    font-size: 16px;
    margin-bottom: 30px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.step-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    backdrop-filter: blur(8px);
    position: relative;
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.step-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}
.step-number-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 800;
    color: var(--tcm-citrus);
    background: rgba(245, 158, 11, 0.18);
    padding: 2px 7px;
    border-radius: 6px;
}
.step-icon-round {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--tcm-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.step-heading {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.step-text {
    font-size: 12px;
    color: #e2f5e8;
    line-height: 1.4;
}
.flow-cta-wrap {
    margin-top: 26px;
}

/* Flow Aside */
.flow-aside {
    background: rgba(4, 38, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(10px);
}
.aside-heading {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 800;
}
.aside-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.aside-item:last-child {
    margin-bottom: 0;
}
.aside-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aside-item strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
}
.aside-item p {
    font-size: 12px;
    color: #c7eed2;
    line-height: 1.35;
}

/* Strategy Pillars on strategy.php */
.strategy-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pillar-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--tcm-emerald);
}
.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pillar-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--tcm-emerald);
    line-height: 1;
}
.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tcm-tint);
    color: var(--tcm-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pillar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin-bottom: 8px;
}
.pillar-desc {
    font-size: 13px;
    color: var(--tcm-slate);
    line-height: 1.5;
    margin-bottom: 14px;
}
.pillar-list {
    font-size: 12px;
    color: var(--tcm-muted);
}
.pillar-list li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 14px;
}
.pillar-list li::before {
    content: '•';
    color: var(--tcm-emerald);
    position: absolute;
    left: 0;
    font-size: 16px;
    line-height: 1;
}

/* Why Choose Banner */
.why-choose-banner {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
}
.why-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin-bottom: 30px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.why-card {
    text-align: center;
    padding: 10px;
}
.why-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--tcm-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.why-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tcm-ink);
    margin-bottom: 6px;
}
.why-card p {
    font-size: 12px;
    color: var(--tcm-muted);
    line-height: 1.4;
}

/* ==========================================================================
   PRODUCT CATALOG (2x2 on mobile)
   ========================================================================== */
.catalog-toolbar-section {
    padding: 24px 0;
    background: var(--tcm-soft);
    border-bottom: 1px solid var(--tcm-line);
}
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-pill {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--tcm-slate);
    transition: all var(--transition-fast);
}
.cat-pill:hover, .cat-pill.active {
    background: var(--tcm-emerald);
    border-color: var(--tcm-emerald);
    color: #ffffff;
}
.catalog-search-wrap {
    min-width: 260px;
}
.catalog-search-input {
    width: 100%;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--tcm-line);
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.catalog-search-input:focus {
    border-color: var(--tcm-emerald);
    box-shadow: 0 0 0 3px rgba(11, 94, 40, 0.12);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.catalog-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.catalog-img-wrap {
    height: 160px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.catalog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.catalog-card:hover .catalog-img-wrap img {
    transform: scale(1.05);
}
.catalog-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}
.catalog-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.catalog-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.catalog-item-icon {
    color: var(--tcm-emerald);
}
.catalog-badge-pill {
    font-size: 10px;
    font-weight: 700;
    color: var(--tcm-citrus-dark);
    background: var(--tcm-citrus-light);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}
.catalog-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tcm-ink);
    margin-bottom: 6px;
    line-height: 1.3;
}
.catalog-desc {
    font-size: 12px;
    color: var(--tcm-muted);
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}
.catalog-more-btn-wrap {
    text-align: center;
    margin-top: 40px;
}
.empty-state {
    padding: 60px 20px;
    color: var(--tcm-muted);
}
.empty-icon {
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* ==========================================================================
   MARKETS SECTION & CORRIDORS (2x2 on mobile)
   ========================================================================== */
.footprint-grid, .markets-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.market-pill-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.market-pill-card:hover {
    transform: translateY(-3px);
    border-color: var(--tcm-emerald);
}
.market-pill-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.flag-circle {
    font-size: 20px;
}
.market-pill-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tcm-emerald);
}
.market-pill-card p {
    font-size: 12px;
    color: var(--tcm-muted);
    line-height: 1.4;
}

/* Deep Market Cards on markets.php */
.market-deep-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.market-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.flag-symbol { font-size: 26px; }
.node-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--tcm-emerald);
    background: var(--tcm-tint);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}
.market-node-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tcm-ink);
    margin-bottom: 6px;
}
.market-node-desc {
    font-size: 12px;
    color: var(--tcm-muted);
    line-height: 1.45;
    margin-bottom: 16px;
    flex-grow: 1;
}
.market-metrics {
    border-top: 1px solid var(--tcm-line);
    padding-top: 12px;
    font-size: 11px;
}
.metric-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.metric-item strong { color: var(--tcm-slate); }
.metric-item span { color: var(--tcm-emerald); font-weight: 600; }

.corridor-banner {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}
.corridor-banner h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin: 8px 0 12px;
}
.corridor-banner p {
    font-size: 15px;
    color: var(--tcm-muted);
    line-height: 1.6;
}

/* ==========================================================================
   INNER HERO SECTION (INNER PAGES)
   ========================================================================== */
.inner-hero-section {
    background: radial-gradient(circle at 85% 15%, #d1fae5 0%, transparent 45%), linear-gradient(135deg, #f0fdf4 0%, #ffffff 65%);
    border-bottom: 1px solid var(--tcm-line);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.inner-hero-section::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.inner-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
.inner-hero-heading {
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 800;
    color: var(--tcm-emerald);
    line-height: 1.1;
    margin: 6px 0 14px;
    letter-spacing: -0.02em;
}
.inner-hero-lead {
    font-size: 17px;
    color: var(--tcm-slate);
    line-height: 1.55;
    margin-bottom: 24px;
}
.inner-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.media-card-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(11, 94, 40, 0.2), 0 0 0 1px rgba(11, 94, 40, 0.1);
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 158, 11, 0.5) 30%, rgba(11, 94, 40, 0.4) 70%, rgba(255, 255, 255, 0.95) 100%) border-box;
    height: 330px;
}
.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   THE GROUP PAGE DETAILS
   ========================================================================== */
.content-2col-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    align-items: start;
}
.section-title-large {
    font-size: 34px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin: 8px 0 16px;
    line-height: 1.15;
}
.rich-text-content .lead-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--tcm-slate);
    margin-bottom: 14px;
    line-height: 1.6;
}
.rich-text-content p {
    font-size: 15px;
    color: var(--tcm-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}
.group-value-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
}
.value-mini-card {
    background: var(--tcm-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--tcm-line);
}
.val-icon-wrap {
    color: var(--tcm-emerald);
    margin-bottom: 8px;
}
.value-mini-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tcm-ink);
    margin-bottom: 4px;
}
.value-mini-card p {
    font-size: 12px;
    color: var(--tcm-muted);
    line-height: 1.4;
}

/* Group HQ Sidebar Card */
.group-hq-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}
.hq-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--tcm-emerald);
}
.hq-card-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--tcm-ink);
}
.hq-address-box {
    background: var(--tcm-soft);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 13px;
    margin-bottom: 18px;
}
.hq-address-box strong {
    display: block;
    color: var(--tcm-emerald);
    margin-bottom: 4px;
}
.hq-focus-box h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tcm-slate);
    margin-bottom: 10px;
}
.focus-checklist {
    font-size: 12px;
    color: var(--tcm-muted);
    margin-bottom: 22px;
}
.focus-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.check-icon {
    color: var(--tcm-emerald);
    flex-shrink: 0;
}

/* Synergy Box */
.synergy-box {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}
.synergy-text {
    font-size: 16px;
    color: var(--tcm-slate);
    line-height: 1.6;
    margin: 14px 0 24px;
}

/* ==========================================================================
   CONTACTS SECTION & FORM
   ========================================================================== */
.contact-wrap-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}
.contact-panel-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--tcm-emerald);
    margin: 6px 0 20px;
}
.contact-block-card {
    background: var(--tcm-soft);
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--tcm-line);
    margin-bottom: 24px;
}
.contact-item-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}
.contact-item-row:last-child {
    margin-bottom: 0;
}
.contact-item-icon {
    color: var(--tcm-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-item-row strong {
    display: block;
    color: var(--tcm-ink);
    margin-bottom: 2px;
}
.contact-item-row p {
    color: var(--tcm-muted);
}
.mail-link {
    color: var(--tcm-emerald);
    font-weight: 600;
}
.contact-nodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.node-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.node-chip:hover {
    border-color: var(--tcm-emerald);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 94, 40, 0.12);
}
.node-chip:hover strong {
    color: var(--tcm-emerald);
}
.chip-flag { font-size: 20px; transition: transform var(--transition-fast); }
.node-chip:hover .chip-flag { transform: scale(1.15); }
.node-chip strong { display: block; font-size: 12px; color: var(--tcm-ink); transition: color var(--transition-fast); }
.node-chip small { display: block; font-size: 10px; color: var(--tcm-muted); }

/* Form Card */
.form-wrapper-card {
    background: #ffffff;
    border: 1px solid var(--tcm-line);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-md);
}
.form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin-bottom: 4px;
}
.form-subtitle {
    font-size: 13px;
    color: var(--tcm-muted);
    margin-bottom: 24px;
}
.modern-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group.full-width {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--tcm-slate);
    margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--tcm-line);
    font-family: inherit;
    font-size: 14px;
    color: var(--tcm-ink);
    background: #ffffff;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--tcm-emerald);
    box-shadow: 0 0 0 3px rgba(11, 94, 40, 0.12);
}
.form-textarea {
    height: 120px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ==========================================================================
   GLOBAL CTA & FOOTER
   ========================================================================== */
.global-cta-section {
    background: linear-gradient(135deg, var(--tcm-emerald) 0%, var(--tcm-emerald-light) 60%, #15803d 100%);
    color: #ffffff;
    padding: 50px 0;
}
.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}
.cta-heading {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    margin-bottom: 6px;
}
.cta-description {
    font-size: 15px;
    color: #e2f5e8;
}

/* Site Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--tcm-line);
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
}
.footer-about-text {
    font-size: 13px;
    color: var(--tcm-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}
.footer-lang-pills {
    display: flex;
    gap: 8px;
}
.footer-lang-pills .pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--tcm-soft);
    border: 1px solid var(--tcm-line);
    color: var(--tcm-slate);
}
.footer-lang-pills .pill.active {
    background: var(--tcm-emerald);
    color: #ffffff;
    border-color: var(--tcm-emerald);
}
.footer-col-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 13px;
    color: var(--tcm-muted);
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--tcm-emerald);
}
.footer-companies-list li {
    font-size: 12px;
    margin-bottom: 8px;
}
.footer-companies-list a {
    display: block;
    text-decoration: none;
    transition: transform var(--transition-fast);
}
.footer-companies-list a:hover {
    transform: translateX(3px);
}
.footer-companies-list strong {
    display: block;
    color: var(--tcm-slate);
    transition: color var(--transition-fast);
}
.footer-companies-list a:hover strong {
    color: var(--tcm-emerald);
}
.footer-companies-list span {
    color: var(--tcm-muted);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--tcm-muted);
    margin-bottom: 12px;
}
.footer-icon {
    color: var(--tcm-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}
.admin-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tcm-muted);
    background: var(--tcm-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--tcm-line);
    margin-top: 8px;
}
.admin-badge-link:hover {
    color: var(--tcm-emerald);
    border-color: var(--tcm-emerald);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--tcm-line);
    font-size: 12px;
    color: var(--tcm-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   OFF-CANVAS MOBILE DRAWER
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility var(--transition-smooth);
}
.mobile-drawer.is-open {
    visibility: visible;
    pointer-events: all;
}
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.mobile-drawer.is-open .drawer-backdrop {
    opacity: 1;
}
.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}
.mobile-drawer.is-open .drawer-content {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--tcm-slate);
    padding: 4px;
}
.drawer-lang {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--tcm-soft);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.drawer-lang-btn {
    text-align: center;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    color: var(--tcm-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.drawer-lang-btn.active {
    background: #ffffff;
    color: var(--tcm-emerald);
    box-shadow: var(--shadow-sm);
}
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--tcm-slate);
}
.drawer-link:hover, .drawer-link.active {
    background: var(--tcm-tint);
    color: var(--tcm-emerald);
}
.drawer-icon {
    color: var(--tcm-emerald);
}
.drawer-footer {
    padding-top: 16px;
    border-top: 1px solid var(--tcm-line);
}
.drawer-admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tcm-muted);
    margin-top: 12px;
}

/* ==========================================================================
   SCROLL REVEALS & MICRO-INTERACTIONS
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Cascade Delay for Grid Elements */
.reveal-on-scroll[style*="--stagger-idx"] {
    transition-delay: calc(var(--stagger-idx, 0) * 85ms);
}

/* Static Luxury Top Edge & Glow on Main Cards */
.company-card, .catalog-card {
    position: relative;
    /* Static permanent ambient aura */
    box-shadow: 0 10px 28px -6px rgba(11, 94, 40, 0.09), 0 0 0 1px rgba(11, 94, 40, 0.08);
}

.company-card::before, .catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #0b5e28 0%, #16813b 45%, #f59e0b 100%);
    z-index: 12;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Static Breathing Animation for Badges and Floating Icons */
@keyframes staticBadgeBreathing {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 20px rgba(11, 94, 40, 0.3), 0 0 0 1px rgba(245, 158, 11, 0.35);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(11, 94, 40, 0.45), 0 0 0 2px rgba(245, 158, 11, 0.6);
    }
}
.card-badge-icon, .diamond-step-icon {
    animation: staticBadgeBreathing 3.8s ease-in-out infinite;
}

/* Static Diamond Sparkle Pulse */
@keyframes sparkleAura {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
        filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.95));
    }
}
.section-eyebrow::before {
    display: inline-block;
    animation: sparkleAura 2.6s infinite ease-in-out;
}

/* ==========================================================================
   DIAMOND FINISH & LUXURY DYNAMIC EFFECTS
   ========================================================================== */
.section-group-strategy {
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f4fbf5 100%);
    position: relative;
    overflow: hidden;
}

.diamond-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.diamond-step-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 26px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 10px 30px -5px rgba(11, 94, 40, 0.08), 0 0 0 1px rgba(11, 94, 40, 0.08);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

/* Diamond Prismatic Border Accent */
.diamond-step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5) 0%, rgba(11, 94, 40, 0.4) 30%, rgba(132, 204, 22, 0.3) 60%, rgba(245, 158, 11, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.diamond-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(11, 94, 40, 0.18), 0 0 20px rgba(245, 158, 11, 0.15);
}

.diamond-step-card:hover::before {
    opacity: 1;
}

/* Diamond Shimmer Ray Effect across all cards */
.diamond-step-card::after,
.company-card::after,
.catalog-card::after,
.stat-card::after,
.market-pill-card::after,
.market-deep-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    transition: left 0.75s ease;
    z-index: 5;
    opacity: 0;
}

.diamond-step-card:hover::after,
.company-card:hover::after,
.catalog-card:hover::after,
.stat-card:hover::after,
.market-pill-card:hover::after,
.market-deep-card:hover::after {
    left: 150%;
    opacity: 1;
}

.diamond-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.diamond-step-num {
    font-size: 13px;
    font-weight: 800;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.diamond-step-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: var(--tcm-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(11, 94, 40, 0.12);
    border: 1px solid #a7f3d0;
}

.diamond-step-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tcm-ink);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.diamond-step-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.diamond-step-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--tcm-emerald);
    background: var(--tcm-tint);
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Pulse Hover */
.pulse-hover:hover {
    animation: pulse-kf 1s infinite alternate;
}
@keyframes pulse-kf {
    from { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3); }
    to { box-shadow: 0 8px 26px rgba(245, 158, 11, 0.6); }
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE 2x2 LAYOUT (EXPLICIT USER REQUIREMENT)
   ========================================================================== */

/* Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    .nav-cta { display: none; }
    
    .flow-layout, .inner-hero-grid, .content-2col-grid, .contact-wrap-grid {
        grid-template-columns: 1fr;
    }
    
    .media-card-frame { height: 260px; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Mobile & Small Tablets (<= 768px):
   CRITICAL REQUIREMENT: "no simplemente que se adapte cada tarjeta a una en version movil,
   sino que cada tarjeta se vea en 2x2 y tenga un diseño atractivo final en movil."
*/
@media (max-width: 768px) {
    .container {
        width: calc(100% - 24px);
    }
    .nav-container { height: 68px; }
    .brand-logo { height: 38px; }

    /* 2x2 Grid for Quick Statistics */
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stat-card {
        padding: 14px 12px;
        gap: 10px;
        border-right: none;
        border-bottom: 1px solid var(--tcm-line);
    }
    .stat-card:nth-child(odd) {
        border-right: 1px solid var(--tcm-line);
    }
    .stat-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .stat-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    .stat-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 11px; }
    .stat-sub { font-size: 10px; line-height: 1.2; }

    /* 2x2 Grid for Companies */
    .company-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .card-img-wrap {
        height: 105px;
        overflow: visible;
        z-index: 2;
    }
    .card-badge-icon {
        width: 36px;
        height: 36px;
        right: 10px;
        bottom: -16px;
        z-index: 10;
        border-width: 2.5px;
    }
    .card-badge-icon svg {
        width: 18px;
        height: 18px;
    }
    .company-card-body {
        padding: 22px 10px 12px;
        position: relative;
        z-index: 1;
    }
    .company-name { font-size: 14px; }
    .company-role-tag { font-size: 9px; }
    .company-location { font-size: 11px; margin-bottom: 6px; }
    .company-summary {
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .compact-features, .company-capabilities {
        display: none; /* Hide heavy details on 2x2 mobile cards for clean compactness */
    }
    .company-card .btn-sm {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* 2x2 Grid for Strategy Steps */
    .steps-grid, .strategy-pillars-grid, .diamond-steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .step-card, .pillar-card, .diamond-step-card {
        padding: 14px 10px;
    }
    .diamond-step-title { font-size: 13px; }
    .diamond-step-text { font-size: 11px; line-height: 1.35; margin-bottom: 8px; }
    .diamond-step-icon { width: 34px; height: 34px; }
    .diamond-step-icon svg { width: 17px; height: 17px; }
    .diamond-step-badge { font-size: 9px; padding: 2px 6px; }
    .step-icon-round {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
    .step-icon-round svg, .pillar-icon svg {
        width: 18px;
        height: 18px;
    }
    .step-heading, .pillar-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .step-text, .pillar-desc {
        font-size: 10px;
        line-height: 1.3;
    }
    .pillar-list { display: none; }

    /* 2x2 Grid for Product Catalog */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .catalog-img-wrap {
        height: 110px;
    }
    .catalog-body {
        padding: 10px 8px;
    }
    .catalog-title {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .catalog-desc {
        font-size: 10px;
        line-height: 1.35;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .catalog-badge-pill { font-size: 9px; padding: 1px 5px; }
    .catalog-actions-row .btn { padding: 6px 8px; font-size: 11px; }

    /* 2x2 Grid for Footprint & Markets */
    .footprint-grid, .markets-cards-grid, .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .market-pill-card, .market-deep-card {
        padding: 12px 10px;
    }
    .market-pill-header h4, .market-node-title {
        font-size: 12px;
    }
    .market-pill-card p, .market-node-desc {
        font-size: 10px;
        line-height: 1.3;
    }

    /* Contacts Form Mobile */
    .modern-form .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-wrapper-card {
        padding: 22px 16px;
    }

    /* Hero Text Mobile */
    .hero-title {
        font-size: 34px;
    }
    .hero-description {
        font-size: 14px;
    }
    .hero-cta-group .btn {
        width: 100%;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

/* Very Small Mobile (< 400px) Adjustments */
@media (max-width: 400px) {
    .container {
        width: calc(100% - 16px);
    }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 10px; }
    .company-name { font-size: 13px; }
    .catalog-title { font-size: 12px; }
    .card-img-wrap, .catalog-img-wrap { height: 90px; }
}
