/* Fonts are self-hosted: see fonts.css (loaded via templates/redstargreen/content/google.html) */

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #001F47;        /* Prussian Blue (Official Haver brand dark) */
    --color-primary-light: #0a3366;  /* Medium Prussian Blue */
    --color-accent: #AEDA1F;         /* Key Lime Pie (Official Haver brand accent) */
    --color-accent-hover: #92b814;   /* Darker Key Lime Pie */
    --color-accent-light: #f3fada;   /* Soft Key Lime Pie background */
    --color-bg-light: #f2f4f7;       /* Soft grey-blue background */
    --color-bg-white: #ffffff;
    --color-text-dark: #001F47;      /* Prussian Blue for dark text */
    --color-text-muted: #4a5d78;     /* Muted blue-grey */
    --color-text-light: #f4f6f9;     /* Soft white/grey */
    --color-border: #e2e3e5;         /* Iron Light Gray (Official Haver brand grey) */
    
    /* Typography — industrial condensed display + clean body */
    --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    
    /* Layout Sizes */
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --container-width: 1600px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--color-primary);
}

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ==========================================================================
   LAYOUT GRID & CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

.grid {
    display: grid;
    gap: 2rem;
}

.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: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   COMMON LAYOUT SECTIONS
   ========================================================================== */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-bg-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
    color: var(--color-text-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    display: inline-block;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

.section-header.text-left {
    text-align: left;
    margin-left: 0;
}

.section-header.text-left .section-title::after {
    margin-left: 0;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.section-bg-dark .section-desc {
    color: var(--color-text-light);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

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

.btn-white:hover {
    background-color: var(--color-bg-light);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-bg-white);
    border: 2px solid var(--color-bg-white);
}

.btn-outline-white:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

/* ==========================================================================
   ANIMATIONS & SCROLL EFFECT UTILS
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PAGE BANNER (INNER PAGES HERO)
   ========================================================================== */
.page-banner {
    position: relative;
    background-color: var(--color-primary);
    padding: 8rem 0 5rem 0;
    color: var(--color-text-light);
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(174, 218, 31, 0.15) 0%, var(--color-primary) 70%);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.7);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs span {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .page-banner {
        padding: 6rem 0 4rem 0;
    }
    .page-banner-title {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   PREMIUM EFFECTS (Glow Orbs, Glassmorphism, Button sweeps)
   ========================================================================== */
.glow-orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(174, 218, 31, 0.12) 0%, rgba(0, 31, 71, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 31, 71, 0.15);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(174, 218, 31, 0.3) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 12px 40px 0 rgba(174, 218, 31, 0.1);
}

/* Button Sweep Animation */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-outline-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
}

.btn-primary:hover::before,
.btn-outline-white:hover::before {
    animation: button-shine 1s ease-out;
}

@keyframes button-shine {
    100% {
        left: 150%;
    }
}

