/* ═══════════════════════════════════════════════════════════
   IJS Website - CSS Custom Properties
   Colors, typography, spacing, breakpoints
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Brand Colors ── */
    --ijs-primary: #D01164;
    --ijs-primary-dark: #B50E56;
    --ijs-primary-light: rgba(208, 17, 100, 0.1);
    --ijs-secondary: #2f67d6;
    --ijs-secondary-dark: #1e4fa8;

    /* ── Neutral Colors ── */
    --ijs-dark: #1A1D2E;
    --ijs-dark-alt: #12151f;
    --ijs-text: #333333;
    --ijs-text-light: #666666;
    --ijs-text-muted: #999999;
    --ijs-bg: #FFFFFF;
    --ijs-bg-gray: #F5F5F5;
    --ijs-bg-dark: #F0F2F5;
    --ijs-border: #E5E7EB;
    --ijs-border-light: #F0F0F0;

    /* ── Status Colors ── */
    --color-success: #10B981;
    --color-danger: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    /* ── Typography ── */
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Pretendard', -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */

    --leading-tight: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* ── Spacing ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* ── Layout ── */
    --container-max: 1400px;
    --container-narrow: 1200px;
    --container-wide: 1600px;
    --header-height: 80px;
    --header-height-scrolled: 64px;
    --footer-height: auto;

    /* ── Border Radius ── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.08);

    /* ── Transitions ── */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Z-Index Scale ── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popup: 600;
    --z-toast: 700;
    --z-tooltip: 800;

    /* Breakpoints (referenced in comments, used in responsive.css)
       --bp-mobile: 480px
       --bp-tablet: 768px
       --bp-desktop: 1024px
       --bp-wide: 1400px
       --bp-ultrawide: 1680px
    */
}

/* ═══════════════════════════════════════════════════════════
   Dark Mode — CSS Variable Overrides
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --ijs-dark: #E8EAF0;
    --ijs-dark-alt: #F0F2F5;
    --ijs-text: #D1D5DB;
    --ijs-text-light: #9CA3AF;
    --ijs-text-muted: #6B7280;
    --ijs-bg: #0F1118;
    --ijs-bg-gray: #181B26;
    --ijs-bg-dark: #12151f;
    --ijs-border: #2A2D3A;
    --ijs-border-light: #1F2230;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Header */
[data-theme="dark"] .header.scrolled {
    background: rgba(15, 17, 24, 0.96);
}

[data-theme="dark"] .header.scrolled .nav-link,
[data-theme="dark"] .header.scrolled .header-search-btn,
[data-theme="dark"] .header.scrolled .header-lang-btn,
[data-theme="dark"] .header.scrolled .header-darkmode-btn {
    color: var(--ijs-text);
}

[data-theme="dark"] .header.scrolled .header-logo-dark {
    filter: brightness(0) invert(1);
}

/* Navigation */
[data-theme="dark"] .mega-menu {
    background: #181B26;
    border-color: var(--ijs-border);
}

[data-theme="dark"] .mega-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mobile-nav {
    background: #0F1118;
}

[data-theme="dark"] .mobile-nav-link {
    color: var(--ijs-text);
    border-bottom-color: var(--ijs-border);
}

[data-theme="dark"] .mobile-nav-children {
    background: #181B26;
}

[data-theme="dark"] .search-overlay {
    background: rgba(15, 17, 24, 0.96);
}

/* Footer — already dark by default, slightly deeper in dark mode */
[data-theme="dark"] .footer {
    background: #080a12;
}

/* Cards & Components */
[data-theme="dark"] .culture-card,
[data-theme="dark"] .talent-card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .esg-card,
[data-theme="dark"] .product-feature,
[data-theme="dark"] .board-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .policy-item,
[data-theme="dark"] .cyber-notice,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .charter-content,
[data-theme="dark"] .process-step {
    background: #181B26;
    border-color: var(--ijs-border);
}

[data-theme="dark"] .esg-content-text h3,
[data-theme="dark"] .esg-card h4,
[data-theme="dark"] .culture-card h3,
[data-theme="dark"] .talent-card h3,
[data-theme="dark"] .benefit-card h3 {
    color: var(--ijs-dark);
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] select.form-control {
    background: #181B26;
    border-color: var(--ijs-border);
    color: var(--ijs-text);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--ijs-primary);
}

/* Tables */
[data-theme="dark"] .esg-table th {
    background: #1A1D2E;
}

[data-theme="dark"] .esg-table td {
    border-color: var(--ijs-border);
}

/* Cookie Consent */
[data-theme="dark"] .cookie-consent {
    background: #181B26;
    border-color: var(--ijs-border);
}

/* Scroll Top & Sticky Contact */
[data-theme="dark"] .scroll-top {
    background: #181B26;
    border-color: var(--ijs-border);
    color: var(--ijs-text);
}

/* Popup */
[data-theme="dark"] .site-popup {
    background: #181B26;
    border-color: var(--ijs-border);
}

/* Dark mode toggle button */
.header-darkmode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.header.scrolled .header-darkmode-btn {
    color: var(--ijs-text);
}

.header-darkmode-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .header-darkmode-btn:hover {
    background: var(--ijs-bg-gray);
}

/* Icon swap */
.header-darkmode-btn .ti-moon { display: inline-block; }
.header-darkmode-btn .ti-sun { display: none; }
[data-theme="dark"] .header-darkmode-btn .ti-moon { display: none; }
[data-theme="dark"] .header-darkmode-btn .ti-sun { display: inline-block; }

/* Sections already dark → no override needed:
   .home-kpi, .home-section-dark, .home-cta, .sub-visual */
