/* 
   Zenvie Design System v4
   Premium Corporate Pharma — Award-Level
*/

:root {
    --color-primary: #0A1B3D;
    --color-secondary: #0076CE;
    --color-accent: #005696;
    --color-clinical: #F9FAFB;
    --color-success: #0A5D4A;
    --color-cta: #0A1B3D;          /* Deep Premium Navy */
    --color-cta-hover: #162D54;

    --color-bg-light: #F8F9FA;
    --color-bg-white: #FFFFFF;
    --color-cream: #FDFBF7;
    --color-cream-dark: #F5F1E6;
    --color-text-main: #1D2939;
    --color-text-muted: #475467;
    --color-border: #EAECF0;

    /* Typography — Premium Corporate (System, Zenvie, Helvetica) */
    --font-heading: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;

    --container-max: 1400px;
    --radius-main: 12px;
    --radius-hero: 80px 0 0 0;
    --section-padding: 120px;

    /* Motion tokens */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-base: 0.4s;
    --duration-slow: 0.8s;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    text-wrap: balance;
}

a {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Skip link — accessibility */
.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--color-primary); color: white;
    padding: 8px 16px; border-radius: 0 0 8px 8px;
    z-index: 10000; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* Focus-visible — accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* === SCROLL REVEAL SYSTEM === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Layout System */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 60px;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.gap-0 { gap: 0; }

/* Utility Classes */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.bg-navy { background-color: var(--color-primary); color: white; }
.bg-light { background-color: var(--color-bg-light); }
.bg-white { background-color: var(--color-bg-white); }
.text-white { color: white !important; }
.text-blue { color: var(--color-secondary) !important; }
.text-green { color: var(--color-success) !important; }
.text-center { text-align: center; }

.shadow-none { box-shadow: none; }
.border-top { border-top: 1px solid var(--color-border); }
.me-2 { margin-right: 8px; }
.ms-2 { margin-left: 8px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 32px; }
.mt-5 { margin-top: 40px; }

/* zenvie Buttons/Links */
.link-action {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}
.link-action::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-accent);
    transition: width 0.4s var(--ease-out-expo);
}
.link-action:hover::after { width: 100%; }
.link-action:hover { text-decoration: none; }

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

.align-center { align-items: center; }
.no-gap { gap: 0; }


.ecosystem-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-main);
    border: 1px solid var(--color-border);
    transition: transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s var(--ease-out-expo),
                border-color 0.4s ease;
}
.ecosystem-item:hover {
    border-color: var(--color-secondary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 118, 206, 0.08);
}

.ecosystem-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.ecosystem-item p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.btn-corporate {
    display: inline-flex;
    padding: 18px 36px;
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-main);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-corporate:hover {
    background: var(--color-secondary);
    color: white;
}

/* --- Hero (zenvie Style) --- */
.hero-zenvie {
    position: relative;
    height: 85vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    margin: 20px;
    border-radius: var(--radius-hero);
    overflow: hidden;
    color: white;
    padding-top: 110px; /* Push below fixed navbar */
}

.hero-zenvie::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.6) 50%, rgba(253, 251, 247, 0) 100%);
    z-index: 1;
}

.hero-zenvie.light-theme {
    color: var(--color-primary);
    background-color: var(--color-cream);
}

.hero-zenvie.light-theme .hero-title-zenvie {
    color: var(--color-primary);
}

.hero-zenvie.light-theme .hero-label {
    color: var(--color-secondary);
}

.hero-zenvie.dark-theme::before {
    /* Sophisticated Charcoal Gradient for Premium Depth */
    background: linear-gradient(90deg, 
        rgba(26, 28, 30, 0.85) 0%, 
        rgba(26, 28, 30, 0.7) 35%, 
        rgba(26, 28, 30, 0.4) 60%, 
        rgba(26, 28, 30, 0) 100%
    );
}

.hero-zenvie.dark-theme .hero-title-zenvie {
    color: white;
}

.hero-content-zenvie {
    position: relative;
    z-index: 5;
    padding: 0 100px;
    max-width: 900px;
}

.hero-label {
    display: block;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title-zenvie {
    font-size: 82px;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1;
}

/* --- Content Blocks --- */
.zenvie-card {
    background: white;
    padding: 0;
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.zenvie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.zenvie-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-out-expo);
}
.zenvie-card:hover img {
    transform: scale(1.05);
}

.zenvie-card-body {
    padding: 35px 35px 40px 35px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.zenvie-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-subtitle-wrap {
    margin-bottom: 15px;
}

.card-desc-wrap {
    flex-grow: 1;
}

.zenvie-card p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.card-action-wrap {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

/* --- Brands Slider (Clean Corporate) --- */
.brands-container-zenvie {
    padding: 80px 0;
    background: white;
}

.brands-track-zenvie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.brand-item-zenvie img {
    height: 40px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.brand-item-zenvie:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
.footer-zenvie {
    background: var(--color-primary);
    color: white;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: white;
}


/* Badge System */
.badge {
    position: relative;
    z-index: 10;
}

.badge,
.badge-rd {
    background: rgba(15, 110, 168, 0.05);
    color: #074d75;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: none;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* Font color for text below badges */
.hero-title-zenvie.highlight-green {
    color: var(--color-success) !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: var(--radius-main);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-cta);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(10, 93, 74, 0.2);
}
.btn-primary:hover {
    background: var(--color-cta-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 93, 74, 0.3);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* --- Navigation & Utility Bar --- */
.utility-bar {
    background: linear-gradient(90deg, #0A1B3D 0%, #162D54 100%);
    height: 35px;
    display: flex;
    align-items: center;
    font-size: 12px;
    z-index: 1001;
    position: fixed;
    top: 0;
    width: 100%;
}
.utility-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.utility-left { color: white; font-weight: 500; }
.utility-right { display: flex; gap: 20px; }
.utility-right a { color: white; }
.utility-right a:hover { opacity: 0.8; }

.navbar {
    height: 75px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 35px;
    width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    transition: height 0.4s var(--ease-out-expo),
                box-shadow 0.4s ease;
}
.navbar.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
}
.logo { margin-right: 40px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover {
    color: var(--color-secondary);
}

.nav-actions { margin-left: auto; }

.mobile-menu-toggle {
    display: none;
    margin-left: 20px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE DESIGN — Tablet / Mobile / Small Phone
   ═══════════════════════════════════════════════════ */

/* ─── Tablet (≤1024px) ─── */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .container { padding: 0 40px; }
    .hero-title-zenvie { font-size: 52px; }
    .hero-content-zenvie { padding: 0 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .utility-bar { display: none; }
    .navbar { top: 0; background: white; height: 70px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 9999;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-actions { display: none; }
    .nav-actions.active {
        display: block;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: white;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .mobile-menu-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
    .mobile-menu-toggle span { width: 25px; height: 2px; background: var(--color-primary); transition: all 0.3s; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .navbar-inner { justify-content: space-between; }
    .logo { margin-right: 0; }

    .col-span-9, .col-span-10, .col-span-11, .col-span-12 { grid-column: span 12; }
    .col-span-8, .col-span-7 { grid-column: span 12; }
    .col-span-6, .col-span-5 { grid-column: span 6; }
    .col-span-4 { grid-column: span 6; }
    .col-span-3 { grid-column: span 6; }
    .col-span-1, .col-span-2 { grid-column: span 6; }

    .pipeline-item { flex-direction: row; gap: 20px; }
    .phase-badge { min-width: 100px; font-size: 11px; }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    .container { padding: 0 20px; }

    .hero-zenvie {
        height: auto; min-height: 60vh;
        padding: 100px 0 60px 0;
        margin: 10px; border-radius: 20px;
    }
    .hero-content-zenvie { padding: 0 20px; }
    .hero-title-zenvie { font-size: 38px; margin-bottom: 20px; }
    .hero-zenvie p { font-size: 16px !important; }
    .hero-zenvie::before {
        background: linear-gradient(180deg, rgba(253,251,247,0.95) 0%, rgba(253,251,247,0.7) 60%, rgba(253,251,247,0) 100%);
    }

    .section { padding: 60px 0; }
    .grid-12 { display: flex; flex-direction: column; gap: 24px; }
    .col-span-1, .col-span-2, .col-span-3, .col-span-4, .col-span-5,
    .col-span-6, .col-span-7, .col-span-8, .col-span-9, .col-span-10,
    .col-span-11, .col-span-12 { grid-column: span 12; width: 100%; }

    .display-title { font-size: 32px !important; }
    .lead-text { font-size: 17px !important; line-height: 1.6 !important; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    .zenvie-card h3 { font-size: 24px; }
    .zenvie-card p { font-size: 16px; }
    .zenvie-card img { height: 220px; }


    .brands-container-zenvie { padding: 40px 0; }
    .brands-track-zenvie { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .brand-item-zenvie { font-size: 16px !important; }
    .brand-item-zenvie img { height: 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer { padding: 60px 0 30px; }
    .footer-bottom { margin-top: 40px; padding-top: 20px; }

    .d-flex.gap-3 { flex-direction: column; gap: 12px !important; }
    .btn { width: 100%; text-align: center; padding: 14px 24px; min-height: 48px; }
    .btn-sm { width: auto; }

    .pillar-block { flex-direction: column; gap: 15px; padding-right: 0; margin-bottom: 40px; }
    .pillar-number { font-size: 48px; }
    .pillar-content h3 { font-size: 22px; }
    .rounded-section-top { border-radius: 30px 30px 0 0; margin-top: 30px; }

    .pipeline-item { flex-direction: column; gap: 15px; padding: 20px; }
    .phase-badge { min-width: auto; width: fit-content; }
    .rnd-card { padding: 25px; }

    .approach-grid { grid-template-columns: 1fr !important; }
    .philosophy-text { font-size: 18px !important; }
    .section-divider { margin: 40px 0 !important; }

    .form-grid { grid-template-columns: 1fr !important; }
    .full-width { grid-column: span 1 !important; }
    .contact-form-wrapper { padding: 25px !important; }

    .partner-category-card { padding: 25px; }
    .inquiry-cta { padding: 30px !important; }
    .inquiry-cta h2 { font-size: 28px !important; }

    .brand-showcase .grid-12 { display: flex; flex-direction: column; }
    .brand-info { padding: 30px !important; }
    .brand-name { font-size: 32px !important; }
    .order-mobile-2 { order: 2; }

    .expo-nav-item { padding: 20px; }
    .expo-form-section { padding: 20px !important; }
    .stats-card { margin-top: 20px; }
    .investor-block { padding: 25px !important; }
    .value-card { padding: 25px; }
    .value-card i { font-size: 32px; }

    img { max-width: 100%; height: auto; }
    .rounded-module img { height: auto; }
    .ecosystem-item { padding: 20px; }
}

/* ─── Small Phone (≤480px) ─── */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-zenvie { margin: 5px; border-radius: 16px; min-height: 50vh; padding: 90px 0 40px 0; }
    .hero-content-zenvie { padding: 0 16px; }
    .hero-title-zenvie { font-size: 30px; margin-bottom: 16px; }

    .display-title { font-size: 26px !important; }
    .lead-text { font-size: 15px !important; }
    h2 { font-size: 24px; }
    .section { padding: 40px 0; }

    .zenvie-card img { height: 180px; }
    .zenvie-card-body { padding: 20px 0; }
    .zenvie-card h3 { font-size: 20px; }
    .zenvie-card p { font-size: 15px; }
    .badge, .badge-rd { font-size: 11px; padding: 4px 8px; }

    .brands-track-zenvie { gap: 15px; }
    .brand-item-zenvie { font-size: 14px !important; }

    .nav-links a { padding: 14px 0; min-height: 44px; }
    .btn { min-height: 48px; font-size: 12px; }
    .footer h4 { font-size: 16px; margin-bottom: 16px; }
    .footer ul a { font-size: 14px; }
    .footer-desc { font-size: 14px; }
}

