﻿

/* --- DESIGN SYSTEM & SYSTEM RESET --- */
:root {
    /* Color Palette */
    --navy-base: 216, 45%, 20%;      /* #1a2e4a */
    --gold-base: 46, 65%, 52%;       /* #d4af37 */
    --gold-hover-base: 46, 65%, 42%; /* #b8942b */
    
    --color-navy: hsl(var(--navy-base));
    --color-gold: hsl(var(--gold-base));
    --color-gold-hover: hsl(var(--gold-hover-base));
    
    /* Semantic Light Theme */
    --bg-primary: #ffffff;           /* Pure White */
    --bg-secondary: #fdfdfd;         /* Extremely light off-white card bg */
    --bg-tertiary: #f4f4f4;          /* Soft grey contrast section bg */
    --text-primary: #0f172a;         /* Slate 900 */
    --text-secondary: #334155;       /* Slate 700 */
    --text-muted: #64748b;          /* Slate 500 */
    --border-color: #e2e8f0;         /* Slate 200 */
    --card-shadow: 0 15px 35px -15px rgba(26, 46, 74, 0.12), 0 5px 15px -5px rgba(26, 46, 74, 0.04);
    --hover-shadow: 0 25px 50px -15px rgba(26, 46, 74, 0.2), 0 10px 20px -10px rgba(212, 175, 55, 0.25);
    --gold-glow: rgba(212, 175, 55, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Layout Tokens */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Dimensions */
    --header-height: 80px;
    --gradient-light-to-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    --gradient-dark-to-light: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    --max-width: 1200px;
}

/* Semantic Dark Theme Override */
[data-theme="dark"] {
    --bg-primary: #070a13;           /* Deep Obsidian */
    --bg-secondary: #0e1424;         /* Dark Navy Card bg */
    --bg-tertiary: #151e33;          /* Navy Accent bg */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;       /* Slate 300 */
    --text-muted: #94a3b8;          /* Slate 400 */
    --border-color: #1e293b;         /* Slate 800 */
    --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5);
    --hover-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.25);
    --glass-bg: rgba(14, 20, 36, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%) no-repeat;
    background-attachment: fixed;
    color: var(--text-secondary);
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background: linear-gradient(180deg, #070a13 0%, #0e1424 100%) no-repeat;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    transition: color var(--transition-smooth);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* --- BASE UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

.text-center { text-align: center; }
.w-full { width: 100%; }

/* Grid systems */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex alignments */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-gold);
    color: #0f172a;
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--gold-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-navy);
    color: var(--color-navy);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: #ffffff;
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--color-gold);
    color: #0f172a;
    box-shadow: 0 10px 20px -5px var(--gold-glow);
}

/* Section Header */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.section-header .tag {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    display: inline-block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }
    .section-header p {
        font-size: 16px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Diagonal CSS mask separators */
.diagonal-box {
    position: relative;
    background: var(--bg-secondary);
}

.diagonal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transform: translateY(-99%);
}

/* Card Subtitle Utility for Hierarchical Fixes */
.card-subtitle-style {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-navy);
}

[data-theme="dark"] .card-subtitle-style {
    color: #ffffff;
}
