/* ===================================================================
   CFA East Ridge — shared public-site styles
   Single source of truth for the public pages (home, careers, about).
   Design system taken from the careers page: clean white, red accent,
   .block sections, .why-card grids, pill .btn, red CTA band.
   =================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; }

/* ── Navigation ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: #ffffff; border-bottom: 1px solid #f0f0f0;
    z-index: 1000; padding: 15px 0;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 10px 0; }
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 24px; font-weight: 700; color: #333333;
    text-decoration: none; transition: color 0.3s ease;
}
.logo:hover { color: #E31B23; }
.logo-image { height: 40px; width: auto; transition: transform 0.3s ease; }
.logo:hover .logo-image { transform: scale(1.05); }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-item { position: relative; }
.nav-link {
    color: #333333; text-decoration: none; font-weight: 500;
    padding: 10px 15px; border-radius: 8px;
    transition: color 0.3s ease; display: block;
    border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active { color: #E31B23; }
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background: #ffffff; min-width: 220px; border-radius: 8px;
    border: 1px solid #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding-top: 10px; z-index: 1001;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: #333333; padding: 12px 20px; text-decoration: none;
    display: block; transition: color 0.2s ease, background 0.2s ease;
    border-radius: 6px; margin: 5px;
}
.dropdown-content a:hover { color: #E31B23; background: #f5f5f5; }
.mobile-toggle { display: none; flex-direction: column; cursor: pointer; padding: 5px; }
.mobile-toggle span {
    width: 25px; height: 3px; background: #333333;
    margin: 3px 0; transition: 0.3s; border-radius: 2px;
}
.mobile-toggle:hover span { background: #E31B23; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 28px; border-radius: 999px;
    font-size: 16px; font-weight: 600; text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: #E31B23; color: #ffffff; box-shadow: 0 8px 22px rgba(227,27,35,0.35); }
.btn-primary:hover { background: #c41419; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(227,27,35,0.45); }
.btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #ffffff; }
.btn-outline { background: transparent; color: #E31B23; border-color: #E31B23; }
.btn-outline:hover { background: #E31B23; color: #ffffff; transform: translateY(-1px); }

/* ── Full image hero (home, careers) ── */
.hero {
    position: relative; min-height: 560px; margin-top: 70px;
    display: flex; align-items: center; color: #ffffff; overflow: hidden;
}
.hero-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 25%; background-repeat: no-repeat;
    background-color: #3a3a3a; z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0.18) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 80px 24px; width: 100%; }
.hero-eyebrow {
    display: inline-block; background: rgba(227,27,35,0.95); color: #ffffff;
    font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -1px;
    line-height: 1.05; max-width: 720px; margin-bottom: 18px;
}
.hero p.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6;
    max-width: 560px; margin-bottom: 32px; color: rgba(255,255,255,0.92);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Compact interior hero (about pages) ── */
.page-hero {
    margin-top: 70px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 64px 24px 56px;
    text-align: center;
}
.page-hero .inner { max-width: 760px; margin: 0 auto; }
.page-hero .hero-eyebrow { background: rgba(227,27,35,0.1); color: #E31B23; }
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.5px;
    color: #1a1a1a; line-height: 1.1; margin-bottom: 14px;
}
.page-hero p.lead { font-size: 1.1rem; line-height: 1.7; color: #5a5757; max-width: 620px; margin: 0 auto; }

/* ── Sections ── */
section.block { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
section.block.alt { max-width: none; background: #fafafa; padding-left: 0; padding-right: 0; }
section.block.alt > .inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section.block.narrow { max-width: 820px; }
.section-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
    color: #E31B23; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700;
    margin-bottom: 16px; color: #1a1a1a; letter-spacing: -0.5px;
}
.section-sub { color: #5a5757; font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin-bottom: 40px; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Prose (about-page body copy inside a .block) ── */
.prose h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: #1a1a1a;
    letter-spacing: -0.3px; margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; margin: 28px 0 10px; }
.prose p { color: #5a5757; line-height: 1.8; font-size: 1.05rem; margin-bottom: 18px; }
.prose ul { color: #5a5757; line-height: 1.8; font-size: 1.05rem; margin: 0 0 20px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: #333; }

/* ── Why / value cards ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card {
    background: #ffffff; border: 1px solid #ececec; border-radius: 16px; padding: 28px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.06); border-color: #E31B23; }
.why-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(227,27,35,0.1); color: #E31B23;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.why-card p { font-size: 0.96rem; color: #5a5757; line-height: 1.6; }

/* ── Process steps (numbered) ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #ffffff; border-radius: 16px; padding: 28px 24px; border: 1px solid #ececec; position: relative; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
    background: #E31B23; color: #ffffff; font-weight: 700;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(227,27,35,0.3);
}
.step h3 { margin-top: 8px; font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.step p { color: #5a5757; font-size: 0.96rem; line-height: 1.6; }

/* ── Quick-fact pills ── */
.facts-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.fact-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ffffff; border: 1px solid #ececec; color: #333;
    padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.fact-pill svg { color: #E31B23; flex-shrink: 0; }

/* ── Callout (red-accented highlight) ── */
.callout {
    background: rgba(227,27,35,0.05);
    border-left: 4px solid #E31B23;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0;
}
.callout h3 { color: #1a1a1a; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.callout p { color: #5a5757; line-height: 1.75; margin-bottom: 12px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { color: #5a5757; line-height: 1.8; margin: 0 0 12px 22px; }
.callout li { margin-bottom: 8px; }
.callout.center { text-align: center; border-left: none; border-top: 4px solid #E31B23; }

/* ── Pull quote ── */
.pull-quote {
    font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6;
    color: #1a1a1a; padding: 8px 0 8px 28px; border-left: 4px solid #E31B23; margin: 32px 0;
}
.pull-quote.center { border-left: none; text-align: center; padding: 8px 20px; }
.pull-quote cite { display: block; font-style: normal; font-size: 0.95rem; color: #8a8a8a; margin-top: 12px; font-weight: 600; }

/* ── CTA band ── */
.cta-band {
    background: linear-gradient(135deg, #E31B23 0%, #b1131a 100%);
    color: #ffffff; border-radius: 24px; padding: 56px 40px; text-align: center; margin: 0 auto;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; font-weight: 700; }
.cta-band p { font-size: 1.05rem; opacity: 0.94; margin: 0 auto 26px; max-width: 560px; }
.cta-band .btn { background: #ffffff; color: #E31B23; box-shadow: 0 8px 22px rgba(0,0,0,0.15); }
.cta-band .btn:hover { background: #fff5f5; transform: translateY(-1px); }
.cta-band .stop-by { display: block; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.86); }
.cta-band .stop-by a { color: #ffffff; text-decoration: underline; }

/* ── Video ── */
.video-frame {
    max-width: 900px; margin: 0 auto; border-radius: 16px; overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12); border: 1px solid #ececec;
}
.video-wrapper { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; background: #000; }

/* ── Footer ── */
footer.site-footer { background: #ffffff; border-top: 1px solid #e0e0e0; padding: 30px 20px; text-align: center; }
footer.site-footer .inner { max-width: 1200px; margin: 0 auto; }
footer.site-footer .org { color: #333333; font-weight: 600; margin-bottom: 6px; }
footer.site-footer .addr { color: #999999; font-size: 14px; margin-bottom: 12px; }
footer.site-footer .links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 14px; }
footer.site-footer .links a { color: #E31B23; text-decoration: none; }
footer.site-footer .links a:hover { text-decoration: underline; }
footer.site-footer .copyright { color: #cccccc; font-size: 12px; margin-top: 16px; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: #ffffff; flex-direction: column; justify-content: flex-start; align-items: center;
        padding-top: 50px; transition: left 0.3s ease; border-top: 1px solid #f0f0f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 10px 0; width: 80%; text-align: center; }
    .nav-link { font-size: 1.2rem; padding: 15px 30px; background: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; }
    .nav-link:hover { background: #f5f5f5; }
    .mobile-toggle { display: flex; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    .dropdown-content { position: static; display: none; background: #f5f5f5; margin-top: 5px; box-shadow: none; border: none; }
    .dropdown.active .dropdown-content { display: block; }

    .hero { min-height: 480px; }
    .hero-content { padding: 60px 20px; }
    .page-hero { padding: 48px 20px 40px; }
    section.block { padding: 56px 20px; }
    section.block.alt > .inner { padding: 0 20px; }
    .cta-band { padding: 44px 24px; border-radius: 16px; }
}

@media (max-width: 480px) {
    .logo { font-size: 20px; }
    .logo-image { height: 32px; }
}
