/* ============================================
   THE CANADIAN RAILROAD HISTORICAL ASSOCIATION
   Pacific Coast Division - Main Stylesheet
   ============================================ */

:root {
    --primary-color: #1B4F72;
    --primary-dark: #154360;
    --primary-light: #2874A6;
    --secondary-color: #5D6D7E;
    --accent-red: #C0392B;
    --accent-gold: #D4AC0D;
    --bg-light: #F8F9FA;
    --bg-dark: #1C2833;
    --bg-darker: #17202A;
    --bg-white: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #566573;
    --text-light: #EAECEE;
    --text-muted: #85929E;
    --gradient-primary: linear-gradient(135deg, #1B4F72 0%, #2874A6 100%);
    --gradient-gold: linear-gradient(135deg, #D4AC0D 0%, #F4D03F 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text-primary); background: var(--bg-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 3rem; } h2 { font-size: 2.25rem; } h3 { font-size: 1.875rem; } h4 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--bg-white); box-shadow: var(--shadow-sm); transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-top { background: var(--gradient-primary); color: var(--text-light); padding: 0.5rem 0; font-size: 0.875rem; }
.header-top-content { display: flex; justify-content: space-between; align-items: center; }
.header-contact { display: flex; gap: 1.5rem; }
.header-contact a { color: var(--text-light); display: flex; align-items: center; gap: 0.5rem; }
.header-contact a:hover { opacity: 0.8; color: var(--text-light); }
.header-social { display: flex; gap: 1rem; }
.header-social a { color: var(--text-light); font-size: 1.125rem; }
.header-main { padding: 1rem 0; }
.header-main-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 1rem; }
.logo-icon { width: 55px; height: 55px; background: var(--gradient-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 1.5rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--primary-color); line-height: 1.2; max-width: 260px; }
.logo-subtitle { font-size: 0.8rem; color: var(--text-muted); }

/* NAVIGATION */
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu { display: flex; gap: 0.25rem; }
.nav-link { padding: 0.5rem 1rem; color: var(--text-primary); font-weight: 500; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; border-radius: var(--radius-sm); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent-gold); transition: var(--transition); transform: translateX(-50%); }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link:hover::after, .nav-link.active::after { width: 80%; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; cursor: pointer; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--radius-md); transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-primary); color: var(--text-light); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text-light); }
.btn-accent { background: var(--accent-red); color: var(--text-light); }
.btn-accent:hover { background: #A93226; transform: translateY(-2px); color: var(--text-light); }
.btn-gold { background: var(--gradient-gold); color: var(--bg-dark); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,172,13,0.4); color: var(--bg-dark); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: var(--text-light); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,79,114,0.85) 0%, rgba(28,40,51,0.9) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; color: var(--text-light); padding: 6rem 1.5rem; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); padding: 0.5rem 1.5rem; border-radius: 50px; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.2); }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; color: var(--text-light); }
.hero-title span { color: var(--accent-gold); }
.hero-description { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stat { text-align: center; }
.hero-stat-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); }
.hero-stat-label { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* PAGE HEADER */
.page-header { position: relative; padding: calc(100px + 4rem) 0 4rem; background: var(--gradient-primary); }
.page-header-content { text-align: center; color: var(--text-light); }
.page-header-title { font-size: 3rem; margin-bottom: 1rem; color: var(--text-light); }
.page-header-subtitle { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.875rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb span { color: var(--accent-gold); }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-light); }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-label { display: inline-block; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent-gold); margin-bottom: 1rem; font-weight: 600; }
.section-title { margin-bottom: 1rem; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gradient-gold); margin: 1rem auto 0; border-radius: 2px; }
.section-description { font-size: 1.125rem; color: var(--text-secondary); }
