/* ==========================================================================
   OPTIMAL MR — LUXURY MINIMALIST DESIGN SYSTEM (GLOBAL CSS)
   ========================================================================== */

/* FA icon size tokens — używamy fa-regular jako thin/light */
.fa-icon-sm { font-size: 0.9rem; }
.fa-icon-md { font-size: 1.15rem; }
.fa-icon-lg { font-size: 1.4rem; }
.fa-icon-xl { font-size: 1.75rem; }

:root {
    /*--- DIMS (80vw navigation & hero width) ---*/
    --global-width: 80vw;
    --global-padding: clamp(40px, 5vw, 80px);

    /*--- PALETTE ---*/
    --bg-main: #ffffff;
    /* Pristine absolute white */
    --bg-card: #ffffff;
    /* White background for card panels */
    --shadow-sm: 0 6px 20px rgba(9, 13, 22, 0.03);
    /* Subtle premium shadow for cards */
    --hero-bg: #E3EFFB;
    /* Luxury soft aliceblue from template */
    --color-main: #090d16;
    /* Deep slate / ink black */
    --color-muted: #5e6b7e;
    /* Elegant muted grey */

    /*--- ACCENTS (Used with absolute restraint) ---*/
    --brand-red: #E44C53;
    --brand-red-light: rgba(228, 76, 83, 0.08);

    /*--- BORDERS & CORNERS ---*/
    --border-light: #eef2f6;
    --border-medium: #cbd5e1;
    --border-active: #090d16;
    --radius-sm: 8px;
    /* Modern rounded corners like reference */
    --radius-md: 12px;
    --radius-full: 9999px;

    /*--- TYPOGRAPHY ---*/
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 1024px) {
    :root { --global-width: 88vw; }
}

@media (max-width: 768px) {
    :root { --global-width: 92vw; }
}

@media (max-width: 480px) {
    :root { --global-width: 94vw; }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Grid Containers */
.container {
    max-width: var(--global-width);
    margin: 0 auto;
    width: 100%;
}

/* Sections */
section {
    padding: var(--global-padding) 0;
}

/* Typography elements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--color-main);
    word-break: break-word;
    overflow-wrap: break-word;
}

p {
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--color-muted);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.25, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.25, 1, 0.3, 1);
}

/* 1. Fade Up (More pronounced vertical offset) */
.scroll-reveal.fade-up {
    transform: translateY(60px);
}

/* 2. Scale Up */
.scroll-reveal.scale-up {
    transform: scale(0.92);
}

/* 3. Blur In (Stronger blur for maximum premium transition effect) */
.scroll-reveal.blur-in {
    filter: blur(24px);
    transform: translateY(30px);
}

/* 4. Active states */
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 5. Staggered delays */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
