/* ========== EDITORIAL DESIGN SYSTEM ========== */
/* Inspired by premium editorial and print design */

:root {
    /* Editorial Color Palette */
    --cream: #F2EBE3;
    --cream-dark: #E5DDD3;
    --ink-black: #0a0a0a;
    --charcoal: #2a2a2a;
    --accent-red: #FF3B30;
    --accent-yellow: #FFD60A;
    --accent-blue: #0A84FF;
    --soft-white: #FAFAFA;
    --text-secondary: #666666;

    /* Typography */
    --font-display: 'Playfair Display', 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Editorial Spacing */
    --section-padding: clamp(4rem, 12vh, 10rem);
    --container-max: 1400px;
    --content-max: 800px;

    /* Borders - Hairline */
    --border-hairline: 0.5px solid rgba(0, 0, 0, 0.12);
    --border-medium: 1px solid rgba(0, 0, 0, 0.15);
    --border-light: 0.5px solid rgba(255, 255, 255, 0.2);

    /* Transitions */
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bg: background-color 600ms ease-in-out;
}

/* ========== GLOBAL POLISH ========== */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-black);
    border: 2px solid var(--cream);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--charcoal);
}

/* Text Selection */
::selection {
    background: var(--accent-red);
    color: white;
}

/* Active Navigation State */
.nav-editorial-link.active {
    font-weight: 700;
    color: var(--ink-black);
}

.nav-editorial-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-red);
}

/* ========== EDITORIAL TYPOGRAPHY ========== */

.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.display-medium {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.display-small {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
}

.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.body-large {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* ========== EDITORIAL LAYOUT ========== */

.section-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) 0;
    position: relative;
    transition: var(--transition-bg);
}

.section-cream {
    background-color: var(--cream);
    color: var(--ink-black);
}

.section-black {
    background-color: var(--ink-black);
    color: var(--soft-white);
}

.section-red {
    background-color: var(--accent-red);
    color: var(--soft-white);
}

.section-yellow {
    background-color: var(--accent-yellow);
    color: var(--ink-black);
}

.section-white {
    background-color: #ffffff;
    color: var(--ink-black);
}

.editorial-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
}

.editorial-content {
    max-width: var(--content-max);
    margin: 0 auto;
    width: 100%;
}

/* ========== HAIRLINE CARDS ========== */

.card-editorial {
    background: transparent;
    border: var(--border-hairline);
    border-radius: 0;
    padding: clamp(1.5rem, 4vw, 3rem);
    transition: border-color var(--transition-smooth);
}

.card-editorial:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.card-editorial-light {
    border: var(--border-light);
}

.card-editorial-light:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Editorial Grid */
.grid-editorial {
    display: grid;
    gap: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.grid-editorial-2 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
}

.grid-editorial-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-editorial>* {
    background: var(--cream);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.section-black .grid-editorial>* {
    background: transparent;
    color: var(--soft-white);
}

/* ========== PILL BUTTONS ========== */

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
}

.btn-pill-black {
    background: var(--ink-black);
    color: var(--soft-white);
}

.btn-pill-black:hover {
    background: var(--charcoal);
    transform: translateX(2px);
}

.btn-pill-black:hover .arrow {
    transform: translateX(4px);
}

.btn-pill-red {
    background: var(--accent-red);
    color: var(--soft-white);
}

.btn-pill-red:hover {
    background: #FF4B40;
}

.btn-pill-outline {
    background: transparent;
    border: 1.5px solid currentColor;
}

.btn-pill-outline:hover {
    background: rgba(0, 0, 0, 0.03);
}

.arrow {
    display: inline-block;
    transition: transform 300ms ease;
}

/* ========== SCROLL INDICATOR ========== */

.scroll-indicator {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 3rem;
    z-index: 100;
}

.scroll-path {
    position: fixed;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    /* Hidden on mobile primarily */
}

@media (min-width: 1024px) {
    .scroll-path {
        display: block;
    }
}

.scroll-path-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--ink-black);
    transition: height 100ms linear;
}

.scroll-path-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    transition: top 100ms linear;
}

/* ========== MINIMAL NAVIGATION ========== */

.nav-editorial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cream);
    border-bottom: var(--border-hairline);
    transition: var(--transition-bg);
}

.nav-editorial.nav-dark {
    background: var(--ink-black);
    border-bottom: var(--border-light);
}

.nav-editorial-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-editorial-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    line-height: 1;
}

.nav-editorial-links {
    display: flex;
    gap: clamp(1rem, 4vw, 3rem);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-editorial-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    /* Essential for active underline */
}

.nav-editorial-link:hover {
    opacity: 0.6;
}

/* ========== ENTRANCE ANIMATIONS ========== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
    will-change: opacity, transform;
}

.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.fade-in {
    opacity: 0;
    transition: opacity 600ms ease-out;
}

.fade-in.revealed {
    opacity: 1;
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .display {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .display-medium {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .nav-editorial-links {
        gap: 1rem;
        width: 100%;
        justify-content: center;
        /* Center links on mobile if they wrap */
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    .nav-editorial-container {
        justify-content: center;
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-editorial-link {
        font-size: 0.75rem;
    }

    .grid-editorial-2 {
        grid-template-columns: 1fr;
    }
}

/* ========== FILTER TABS ========== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-tab {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--ink-black);
    border-color: var(--ink-black);
    opacity: 1;
}

/* ========== ENHANCED PROJECT CARD ========== */
.project-card-editorial {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
    will-change: transform;
}

.project-card-editorial:hover {
    transform: translateY(-5px);
}

.project-image-container {
    position: relative;
    padding-top: 66.66%;
    /* 3:2 Aspect Ratio */
    background: #f0f0f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.project-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card-editorial:hover .project-image-container img {
    transform: scale(1.05);
}

.project-meta {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-category-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent-red);
    /* Changed from blue to red for consistency */
}

.project-title-editorial {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--ink-black);
    /* Force black color */
}

.project-excerpt {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    color: #555;
    font-weight: 500;
}

/* ========== GLOBAL PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.loaded {
    transform: translateY(-100%);
}

.preloader-content {
    text-align: center;
    overflow: hidden;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: var(--ink-black);
    transform: translateY(100%);
    animation: revealLogo 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes revealLogo {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== SUBSIDIARY SECTION (Premium Red Redesign) ========== */
.section-full.section-red-subsidiary {
    background-color: #A61B2E;
    /* Deep Premium Red (Maroon/Crimson) */
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    color: white;
}

.subsidiary-grid-red {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* .subsidiary-logo-container {
   REMOVED - Text is now direct child
} */

.subsidiary-logo {
    display: none;
}

.subsidiary-content-red {
    text-align: left;
}

.subsidiary-title-red {
    font-family: var(--font-display);
    font-size: 4.5rem;
    /* Larger for impact since it's the hero now */
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 0;
    /* No margin bottom as it is standalone in column */
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.subsidiary-desc-red {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 650px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1.5rem;
}

.subsidiary-features-red {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.subsidiary-features-red li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    /* Removed pill background */
    padding: 0;
    border-radius: 0;
}

.subsidiary-features-red li i {
    color: white;
    /* White icon */
    background: transparent;
    /* Remove circle background */
    width: auto;
    height: auto;
    font-size: 1.1rem;
    opacity: 0.8;
}

.btn-white-red-cta {
    display: inline-block;
    background: white;
    color: #A61B2E;
    padding: 1.2rem 2.5rem;
    border-radius: 2px;
    /* Slight radius but mostly sharp */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white-red-cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .subsidiary-grid-red {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .subsidiary-logo-container {
        padding: 1.5rem;
    }

    .subsidiary-title-red {
        font-size: 2.5rem;
    }

    .subsidiary-features-red {
        align-items: center;
        /* Center list items */
    }
}

.package-card.popular {
    border: 2px solid var(--accent-yellow);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--accent-yellow);
    color: var(--ink-black);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.package-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.package-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.package-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.package-price .currency {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: super;
}

.package-price .period {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.package-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    min-height: 3rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.package-features li i {
    color: var(--ink-black);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .subsidiary-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .subsidiary-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ========== COMBINED SUBSIDIARIES SECTION ========== */
.section-subsidiaries {
    background: linear-gradient(180deg, var(--cream) 0%, #E8E1D9 100%);
    color: var(--ink-black);
}

.subsidiaries-header {
    text-align: center;
    margin-bottom: 2rem;
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Card Base */
.subsidiary-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.subsidiary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.subsidiary-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.6s ease;
}

.subsidiary-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.subsidiary-card:hover::after {
    transform: translate(-20%, 20%);
}

.subsidiary-card-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    min-height: 580px;
    display: flex;
    flex-direction: column;
}

/* Enhanced Header */
.subsidiary-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.subsidiary-card-icon {
    font-size: 1.75rem;
    opacity: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.subsidiary-card:hover .subsidiary-card-icon {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(255, 255, 255, 0.25);
}

.subsidiary-badge {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* Enhanced Title */
.subsidiary-card-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced Description */
.subsidiary-card-desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    flex-grow: 0;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Features Grid */
.subsidiary-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex-grow: 1;
}

.subsidiary-card-features li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.subsidiary-card-features li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.subsidiary-card-features li i {
    font-size: 1rem;
    opacity: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    flex-shrink: 0;
}

/* Enhanced Button */
.subsidiary-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.subsidiary-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.subsidiary-card-btn:hover::before {
    left: 100%;
}

.subsidiary-card-btn span {
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.subsidiary-card-btn:hover span {
    transform: translateX(6px);
}

/* Automotive Card Theme - Deep Red */
.subsidiary-card-automotive {
    background: linear-gradient(145deg, #B71C32 0%, #8B1525 40%, #6A101C 100%);
    color: white;
}

.subsidiary-card-automotive::before {
    background-image:
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 200, 200, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255, 255, 255, 0.02) 100px, rgba(255, 255, 255, 0.02) 200px);
}

.subsidiary-card-automotive .subsidiary-badge {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 200, 200, 0.3);
}

.btn-automotive {
    background: white;
    color: #A61B2E;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-automotive:hover {
    background: #fff5f5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* AeroLane Card Theme - Tech Blue */
.subsidiary-card-aerolane {
    background: linear-gradient(145deg, #1A8FFF 0%, #0070E0 40%, #0056B3 100%);
    color: white;
}

.subsidiary-card-aerolane::before {
    background-image:
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 10% 20%, rgba(100, 200, 255, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(-45deg, transparent, transparent 100px, rgba(255, 255, 255, 0.02) 100px, rgba(255, 255, 255, 0.02) 200px);
}

.subsidiary-card-aerolane .subsidiary-badge {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(150, 220, 255, 0.3);
}

.btn-aerolane {
    background: white;
    color: #0A84FF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-aerolane:hover {
    background: #f0f8ff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .subsidiaries-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .subsidiary-card-content {
        padding: 2.5rem;
        min-height: auto;
    }

    .subsidiary-card-title {
        font-size: 2.25rem;
    }

    .subsidiary-card-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .subsidiary-card-content {
        padding: 2rem;
    }

    .subsidiary-card-title {
        font-size: 2rem;
    }

    .subsidiary-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .subsidiary-card-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== MOBILE NAVIGATION SYSTEM ========== */

/* Hamburger Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink-black);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger animation when open */
.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Dark nav hamburger color */
.nav-editorial.nav-dark .nav-hamburger span {
    background: var(--soft-white);
}

/* Mobile Overlay */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.nav-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.nav-mobile-menu.active {
    right: 0;
}

/* Mobile Menu Links */
.nav-mobile-links {
    list-style: none;
    margin: 0;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile-link {
    display: block;
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink-black);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-mobile-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.nav-mobile-link.active {
    background: var(--ink-black);
    color: var(--soft-white);
}

/* Body scroll lock when menu is open */
body.nav-open {
    overflow: hidden;
}

/* Mobile breakpoint - show hamburger, hide desktop nav */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-desktop {
        display: none !important;
    }

    .nav-editorial-container {
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

/* Extra small devices - adjust typography and spacing */
@media (max-width: 480px) {
    .display {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .display-medium {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }

    .body-large {
        font-size: 1.1rem;
    }

    .btn-pill {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .nav-mobile-links {
        padding: 5rem 1.5rem 1.5rem;
    }

    .nav-mobile-link {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    /* Ensure touch targets are at least 44x44px */
    .nav-editorial-link,
    .btn-pill,
    .filter-tab,
    .faq-question {
        min-height: 44px;
    }
}

/* Tablet landscape - optional hamburger */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-editorial-links {
        gap: 1.5rem;
    }

    .nav-editorial-link {
        font-size: 0.8rem;
    }
}