/* Main CSS - Consolidated */

/* =========================================
   Variables
   ========================================= */
:root {
    /* Colors */
    --color-primary: #F2C230;
    --color-navy: #2E3A59;
    --color-steel: #3F4E73;
    --color-bg: #F4F5F7;
    --color-white: #FFFFFF;
    --color-text: #2E3A59;
    /* consolidated from --color-text-main */
    --color-text-main: #2E3A59;
    --color-text-secondary: #556685;
    --color-text-light: #3F4E73;
    --color-border: #D8DDE6;
    /* index.html uses this, var.css uses #E6E6E6. using darker for contrast */

    /* Typography */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-main: var(--font);
    --font-size-h1: 2.4rem;
    --font-size-h2: 1.6rem;
    --font-size-body: 1rem;
    --font-size-meta: 0.875rem;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-unit: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* Layout */
    --max-width: 1120px;
    --header-h: 64px;
    /* From index.html */
    --header-height: 64px;
    /* From variables.css */

    /* Animation */
    --ease: 150ms ease-out;
    --transition-fast: 150ms ease-out;
}

@media (min-width: 768px) {
    :root {
        --font-size-h1: 3rem;
        --font-size-h2: 2rem;
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
}

p {
    margin-bottom: 0;
    /* Index.html override */
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* =========================================
   Layout
   ========================================= */
.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .wrap {
        padding: 0 32px;
    }
}

/* Container alias for other pages if needed */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 96px 0;
    }
}

.section--white {
    background: var(--color-white);
}

.section--navy {
    background: var(--color-navy);
    color: var(--color-white);
}

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 0;
    border: none;
}

/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px;
    transition: all var(--ease);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-navy);
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-ghost {
    color: var(--color-navy);
    border: 1.5px solid var(--color-navy);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

/* =========================================
   Header
   ========================================= */
.site-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
}

.site-nav.is-active {
    display: flex;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-navy);
    padding: 4px 0;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--color-steel);
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        border: none;
        padding: 0;
        align-items: center;
        gap: 32px;
    }

    .menu-toggle {
        display: none;
    }
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--color-navy) 0%, #1a2236 100%);
    overflow: hidden;
    padding: 56px 0 32px;
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.site-footer .wrap {
    position: relative;
    z-index: 1;
}

/* =========================================
   Utilities / Animations
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Feature Icons & Cards */
.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 32px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.hero-bg {
    transition: transform 0.1s linear;
}

/* Parallax Section */
.section--parallax {
    background-image: url('../img/sector_manufacturing_plant_1771239833406.png');
    /* Relative path adjust */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--color-white);
}

.section--parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 58, 89, 0.85);
}

.section--parallax .wrap {
    position: relative;
    z-index: 1;
}

/* Stats */
.stat-card {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: #b0bdd0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}