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

:root {
    --navy: #1a2744;
    --navy-light: #2a3d5e;
    --navy-dark: #111c33;
    --gold: #c9a84c;
    --gold-light: #dcc06e;
    --gold-muted: rgba(201, 168, 76, 0.12);
    --cream: #faf8f4;
    --cream-dark: #f0ede6;
    --text: #2d2d2d;
    --text-light: #5f6368;
    --text-muted: #8a8f96;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.07);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 39, 68, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--navy);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background-color: rgba(26, 39, 68, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo span {
    color: var(--gold);
}

/* Desktop Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: var(--gold-light);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--navy-dark);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 400;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--gold-light);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(42, 61, 94, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-hero .divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto 1.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Smaller hero for subpages */
.page-hero.compact {
    padding: 9rem 2rem 4rem;
}

.page-hero.compact h1 {
    font-size: 2.5rem;
}

/* ===== Section Shared ===== */
.section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 1.02rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

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

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

/* ===== Prose Content ===== */
.prose h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.prose h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.prose p {
    font-size: 1.02rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ===== Stats Row ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.stats-row-2 {
    max-width: 640px;
    margin: 0 auto;
}

.stats-row-3 {
    max-width: 960px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-item .stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-item .stat-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== Track Record Cards ===== */
.track-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.track-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.track-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.track-card:hover::before {
    opacity: 1;
}

.track-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.track-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-light);
}

.track-card-icon svg {
    width: 24px;
    height: 24px;
}

.track-card-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.3;
}

.track-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold);
    background-color: var(--gold-muted);
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
}

.track-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 0;
}

.track-card-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.track-card-stat .stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

.track-card-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== Focus Area Cards ===== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.focus-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.focus-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.focus-card .focus-icon {
    width: 56px;
    height: 56px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--navy);
}

.focus-card .focus-icon svg {
    width: 26px;
    height: 26px;
}

.focus-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.focus-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* Small focus grid (homepage teaser) */
.focus-grid-sm {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.focus-item-sm {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.focus-item-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.focus-item-sm .icon {
    width: 52px;
    height: 52px;
    background-color: var(--cream);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

.focus-item-sm .icon svg {
    width: 24px;
    height: 24px;
}

.focus-item-sm h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.2px;
}

.focus-item-sm p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

.cta-banner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* ===== Team Section ===== */
.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.team-member:last-of-type {
    margin-bottom: 0;
}

.team-member-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--cream-dark);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.team-member-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.3px;
    margin-bottom: 1.25rem;
}

.team-member-highlights {
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.team-member-highlights li {
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.team-member-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--gold);
}

/* ===== Values Grid ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
}

.value-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border);
}

.contact-info-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy);
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.contact-item-text p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-item-text a {
    color: var(--gold);
    transition: color var(--transition);
}

.contact-item-text a:hover {
    color: var(--navy);
}

.contact-message-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-message-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-message-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.contact-message-card p:last-child {
    margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--navy-dark);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.35s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .team-member {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .page-hero {
        padding: 8rem 1.5rem 3.5rem;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .page-hero.compact {
        padding: 7.5rem 1.5rem 3rem;
    }

    .page-hero.compact h1 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .track-grid {
        grid-template-columns: 1fr;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-member-photo {
        max-width: 240px;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
        border-radius: var(--radius-md);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 7rem 1.25rem 3rem;
    }

    .page-hero h1 {
        font-size: 1.85rem;
    }

    .focus-grid-sm {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 0.85rem 1.25rem;
    }
}
