/* PacificaOne Consulting - shared styles for team pages
   Matches the house tokens from index.html (dark navy + cyan). */

:root {
    --primary: #0891B2;
    --primary-dark: #0E7490;
    --primary-light: #22D3EE;
    --accent: #06B6D4;
    --navy: #0F172A;
    --navy-light: #1E293B;
    --slate: #334155;
    --slate-light: #64748B;
    --gray: #94A3B8;
    --light: #E2E8F0;
    --white: #F8FAFC;
    --glow: rgba(8, 145, 178, 0.4);
    /* per-person accent, overridden inline on profile pages */
    --pa: #0891B2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--navy);
    color: var(--light);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}
a { color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Navigation (shared) */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(8, 145, 178, 0.2);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge { width: 40px; height: 40px; flex-shrink: 0; }
.logo-stack { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text { font-weight: 700; font-size: 1.35rem; color: var(--white); letter-spacing: -0.5px; }
.logo-sub { font-size: 0.66rem; font-weight: 600; color: var(--primary-light); text-transform: uppercase; letter-spacing: 3px; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
    color: var(--gray); text-decoration: none; font-weight: 500;
    font-size: 0.93rem; padding: 9px 16px; border-radius: 8px; transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(8, 145, 178, 0.15); }
.nav-links a.nav-ext i { font-size: 0.7rem; margin-left: 4px; opacity: 0.7; }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }
.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

/* Page hero (compact) */
.page-hero {
    padding: 150px 40px 50px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(8, 145, 178, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 55%);
    z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary-light);
    font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--primary); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.page-hero p { color: var(--gray); font-size: 1.12rem; max-width: 680px; margin: 0 auto; }

/* Team index */
.team-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 40px 80px; }
.dept-group { margin-bottom: 54px; scroll-margin-top: 100px; }
.dept-title {
    display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
    font-size: 1.5rem; font-weight: 700; color: var(--white);
}
.dept-title::after { content: ''; flex: 1; height: 1px; background: rgba(8, 145, 178, 0.2); }
.dept-title .count { font-size: 0.85rem; font-weight: 500; color: var(--slate-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.team-card {
    display: flex; gap: 18px; align-items: center;
    background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(8, 145, 178, 0.15);
    border-top: 3px solid var(--pa); border-radius: 16px; padding: 22px;
    text-decoration: none; transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--pa); box-shadow: 0 16px 34px rgba(0,0,0,0.3); }
.tc-avatar, .tc-ph {
    width: 92px; height: 92px; border-radius: 14px; flex-shrink: 0; object-fit: cover;
    border: 1px solid rgba(8, 145, 178, 0.25);
}
.tc-ph {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; font-weight: 700; color: var(--white);
    background: linear-gradient(135deg, var(--pa) 0%, rgba(15,23,42,0.6) 130%);
}
.tc-info { min-width: 0; }
.tc-name { font-size: 1.15rem; font-weight: 600; color: var(--white); }
.tc-role { font-size: 0.9rem; color: var(--pa); font-weight: 500; margin-bottom: 6px; }
.tc-essence { font-size: 0.9rem; color: var(--gray); font-style: italic; line-height: 1.45; }

/* Profile page */
.profile { max-width: 860px; margin: 0 auto; padding: 130px 40px 70px; }
.back-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary-light);
    text-decoration: none; font-weight: 500; font-size: 0.95rem; margin-bottom: 32px;
}
.back-link:hover { text-decoration: underline; }
.profile-head { display: flex; gap: 34px; align-items: center; margin-bottom: 36px; flex-wrap: wrap; }
.avatar-img, .avatar-ph {
    width: 190px; height: 190px; border-radius: 22px; flex-shrink: 0; object-fit: cover;
    border: 1px solid rgba(8, 145, 178, 0.3); box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.avatar-ph {
    display: flex; align-items: center; justify-content: center;
    font-size: 3.6rem; font-weight: 700; color: var(--white);
    background: linear-gradient(135deg, var(--pa) 0%, rgba(15,23,42,0.7) 130%);
}
.profile-intro { min-width: 0; }
.dept-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
    color: var(--pa); background: color-mix(in srgb, var(--pa) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--pa) 35%, transparent);
    padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.profile-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--white); line-height: 1.1; }
.profile-intro .role { font-size: 1.2rem; color: var(--pa); font-weight: 500; margin: 6px 0 12px; }
.profile-intro .hometown { color: var(--gray); font-size: 0.98rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.profile-intro .hometown i { color: var(--pa); }
.profile-intro .email { color: var(--primary-light); text-decoration: none; font-size: 0.98rem; font-weight: 500; }
.profile-intro .email:hover { text-decoration: underline; }
.profile-body { border-top: 1px solid rgba(8, 145, 178, 0.15); padding-top: 30px; }
.profile-body .essence {
    font-size: 1.35rem; color: var(--white); font-style: italic; font-weight: 300;
    line-height: 1.5; margin-bottom: 24px;
    border-left: 3px solid var(--pa); padding-left: 20px;
}
.profile-body p { color: var(--gray); margin-bottom: 20px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.profile-links a {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(8, 145, 178, 0.1); border: 1px solid rgba(8, 145, 178, 0.25);
    padding: 12px 20px; border-radius: 10px; color: var(--light);
    text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.3s ease;
}
.profile-links a:hover { background: rgba(8, 145, 178, 0.2); border-color: var(--pa); transform: translateY(-2px); }
.profile-links a i { color: var(--pa); }

/* Footer (shared) */
footer { background: var(--navy); border-top: 1px solid rgba(8, 145, 178, 0.1); padding: 40px; text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-badge { width: 30px; height: 30px; }
.footer-logo span { font-weight: 600; color: var(--light); font-size: 1.05rem; }
.footer-links { margin-bottom: 12px; }
.footer-links a { color: var(--primary-light); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
footer p { color: var(--slate-light); font-size: 0.88rem; }

/* Responsive */
@media (max-width: 900px) {
    nav { padding: 14px 20px; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); flex-direction: column; align-items: stretch;
        padding: 16px; border-top: 1px solid rgba(8, 145, 178, 0.2);
    }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .page-hero { padding: 120px 22px 40px; }
    .team-wrap { padding: 24px 22px 60px; }
    .profile { padding: 110px 22px 50px; }
    .profile-head { gap: 24px; }
    .avatar-img, .avatar-ph { width: 150px; height: 150px; }
}
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .profile-head { flex-direction: column; text-align: center; align-items: center; }
    .profile-intro .hometown { justify-content: center; }
}
