@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    /* Color Palette - Sophisticated Royal Navy, Steel Blue, and Crimson Red */
    --clr-primary: hsl(218, 32%, 15%);       /* Deep Indigo Navy Slate - Elite Trust */
    --clr-primary-light: hsl(218, 22%, 24%);
    --clr-primary-dark: hsl(218, 42%, 9%);
    
    --clr-accent: hsl(210, 50%, 38%);        /* Sophisticated Steel Blue - Not blunt blue */
    --clr-accent-light: hsl(210, 45%, 52%);
    --clr-accent-dark: hsl(210, 55%, 28%);
    
    --clr-accent-red: hsl(354, 70%, 46%);     /* Matching Logo Crimson Red */
    --clr-accent-red-light: hsl(354, 70%, 65%);
    --clr-accent-red-dark: hsl(354, 70%, 35%);
    
    --clr-bg: hsl(210, 20%, 97%);            /* Clean Ice-Grey/Light Grey Background */
    --clr-surface: hsl(0, 0%, 100%);         /* Pure White */
    --clr-surface-warm: hsl(210, 15%, 93%);   /* Warm Ice-Grey for panels */
    
    --clr-text-main: hsl(218, 20%, 20%);     /* Readability Slate Charcoal */
    --clr-text-muted: hsl(218, 12%, 46%);
    --clr-text-light: hsl(0, 0%, 98%);
    
    --clr-success: hsl(150, 40%, 45%);
    --clr-error: hsl(354, 70%, 46%);
    
    /* Layout Constants */
    --grid-gap: clamp(1.5rem, 3vw, 2.5rem);
    --border-radius-sm: 8px;
    --border-radius-md: 20px;
    --border-radius-lg: 32px;
    
    /* Typography Scales */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Transition Timings */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease-out;
    
    /* Box Shadows */
    --shadow-sm: 0 8px 24px rgba(26, 35, 50, 0.04);
    --shadow-md: 0 16px 32px rgba(26, 35, 50, 0.06);
    --shadow-lg: 0 24px 48px rgba(26, 35, 50, 0.08);
    --shadow-accent: 0 12px 30px rgba(48, 86, 128, 0.15);
}

/* --- CSS RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
    color: var(--clr-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 500; }
h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; }

p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--clr-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* --- CORE LAYOUT & CONTAINER --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
}

.section {
    padding-top: clamp(4rem, 8vw, 8rem);
    padding-bottom: clamp(4rem, 8vw, 8rem);
    position: relative;
}

/* Flexbox/Grid Utilities */
.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-down {
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Indicator Animation */
@keyframes scrollPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Scroll Fade Transitions */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scroll--active {
    opacity: 1;
    transform: translateY(0);
}

