/* LOVALTO Critical CSS — Above-fold essentials for fast first paint */

/* Self-hosted fonts */
@font-face {
    font-family: 'BBH Sans Hegarty';
    src: url('/Fonts/BBH_Hegarty/BBHHegarty-Regular.woff2') format('woff2'),
         url('/Fonts/BBH_Hegarty/BBHHegarty-Regular.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --accent-red: #980000;
    --accent-red-light: #b30000;
    --cool-steel: #A1A1A1;
    --charcoal: #5C5C5C;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e2e4e6;
    --gray-300: #dee2e6;
    --gray-400: #767676;
    --gray-500: #5C5C5C;
    --gray-600: #404040;
    --gray-700: #343a40;
    --gray-800: #2c2c2c;
    --gray-900: #1a1a1a;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-wordmark: 'BBH Sans Hegarty', 'Oswald', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-black);
    background-color: var(--primary-white);
    -webkit-font-smoothing: antialiased;
}

/* Inverted (dark mode) — prevent FOUC */
body.inverted {
    --primary-black: #ffffff;
    --primary-white: #000000;
    --gray-100: #1a1a1a;
    --gray-200: #303030;
    --gray-300: #404040;
    --gray-400: #999999;
    --gray-500: #aaaaaa;
    --gray-600: #b3b3b3;
    --gray-700: #999999;
    --gray-800: #999999;
    --gray-900: #e8e8e8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding-left: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-black);
    border-bottom: 1px solid var(--gray-700);
    z-index: 1000;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}
.logo-text {
    font-family: var(--font-wordmark);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo-img {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    padding-right: 0.5rem;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: 5.5rem;
}
.nav-menu a {
    font-size: 1.0625rem;
    letter-spacing: 0.3px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    color: var(--primary-white);
    white-space: nowrap;
    text-transform: uppercase;
}
.nav-menu > li > a {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}
.nav-menu li { position: relative; }
.mobile-menu-toggle { display: none; }

/* Hero — subpages (compact banner with canvas) */
.hero-section {
    margin-top: 70px;
    padding: 3rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--primary-white);
    overflow: hidden;
}

/* Nav button */
.nav-menu .btn-primary,
.nav-menu .btn-primary:link,
.nav-menu .btn-primary:visited,
.nav-menu .btn-primary:active {
    background-color: var(--primary-white) !important;
    color: var(--primary-black) !important;
    border-color: var(--primary-white) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}
.theme-icon { width: 24px; height: 24px; object-fit: contain; }

/* Mobile nav */
@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-white);
        border-radius: 2px;
    }
    .theme-toggle { top: 1rem; right: 4.5rem; }
    .theme-icon { width: 28px; height: 28px; }
}
@media (max-width: 768px) {
    .theme-toggle { top: 0.9rem; right: 4rem; }
    .theme-icon { width: 18px; height: 18px; }
}
