/*
Theme Name:  Sean Keegan — Pembroke Select Board
Author:      Flashman Consulting
Description: Official website for Sean Keegan, Pembroke Select Board Member.
Version:     1.0
License:     GNU General Public License v2 or later
Text Domain: sean-keegan
*/

/* ── TOKENS ─────────────────────────────────────── */
:root {
    --sidebar:      #1A3A8F;
    --sidebar-dark: #102270;
    --blue:         #BF0A30;
    --blue-dark:    #8B0020;
    --blue-light:   #FCEEF1;
    --heading:      #111827;
    --body:         #4A4A50;
    --muted:        #8A8A90;
    --border:       #E3E5EA;
    --page-bg:      #EEF1F8;
    --card:         #FFFFFF;
    --white:        #FFFFFF;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--page-bg);
    color: var(--heading);
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 36px 24px 28px;
    z-index: 50;
    overflow-y: auto;
}
.sidebar-photo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.18);
    margin-bottom: 16px;
    flex-shrink: 0;
}
.sidebar-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.sidebar-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 4px;
}
.sidebar-title {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #E8A0AC;
    margin-bottom: 4px;
    line-height: 1.4;
}
.sidebar-loc {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 28px;
}
.sidebar-loc i { color: #E8A0AC; opacity: 0.9; margin-right: 4px; }
.sidebar-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin-bottom: 20px;
}
.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s, background 0.2s;
}
.sidebar-nav a i {
    width: 15px;
    text-align: center;
    font-size: 0.72rem;
}
.sidebar-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.09);
}
.sidebar-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
}
.sidebar-contact-row i {
    width: 13px;
    text-align: center;
    color: #E8A0AC;
    font-size: 0.68rem;
}
.sidebar-contact-row a { color: rgba(255,255,255,0.38); transition: color 0.2s; }
.sidebar-contact-row a:hover { color: rgba(255,255,255,0.8); }

/* ── MOBILE NAV ──────────────────────────────────── */
.mobile-nav {
    display: none;
    background: var(--sidebar);
    padding: 0 20px;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.mobile-nav-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--white);
}
.mobile-nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
}
.mobile-nav-links a {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* ── LAYOUT ──────────────────────────────────────── */
.content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 32px 36px;
}
.content-inner { max-width: 820px; }

/* ── CARDS ───────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 32px 36px;
    margin-bottom: 16px;
}
.card-label {
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}
.card h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--heading);
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 400;
}
.card h2 em { font-style: italic; color: var(--blue); }
.card p {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--body);
    line-height: 1.8;
    margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }

/* ── PROFILE CARD ────────────────────────────────── */
.profile-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.profile-photo {
    flex-shrink: 0;
    width: 170px;
}
.profile-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    border-top: 4px solid var(--blue);
}
.profile-rank {
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}
.profile-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--heading);
    line-height: 1.05;
    margin-bottom: 6px;
    font-weight: 400;
}
.profile-subtitle {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--body);
    margin-bottom: 22px;
    line-height: 1.6;
}
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.profile-badge {
    font-weight: 700;
    font-size: 0.67rem;
    color: var(--sidebar);
    background: var(--blue-light);
    border: 1px solid rgba(191,10,48,0.2);
    padding: 5px 11px;
    border-radius: 2px;
}

/* ── CREDENTIALS ──────────────────────────────────── */
.cred-list {
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.cred-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.cred-item:last-child { border-bottom: none; }
.cred-icon {
    width: 32px; height: 32px;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.cred-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--heading);
    margin-bottom: 2px;
}
.cred-detail {
    font-weight: 300;
    font-size: 0.82rem;
    color: var(--body);
    line-height: 1.55;
}

/* ── PRIORITIES ───────────────────────────────────── */
.priority-list {
    border-left: 3px solid var(--blue);
    display: flex;
    flex-direction: column;
}
.priority-row {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.priority-row:last-child { border-bottom: none; }
.priority-n {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--blue);
    opacity: 0.35;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}
.priority-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--heading);
    margin-bottom: 3px;
}
.priority-desc {
    font-weight: 300;
    font-size: 0.84rem;
    color: var(--body);
    line-height: 1.65;
}

/* ── COMMUNITY PHOTOS ────────────────────────────── */
.community-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.community-photos img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ── COMMUNITY TILES ─────────────────────────────── */
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.community-tile {
    border: 1px solid var(--border);
    background: var(--page-bg);
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.community-tile i {
    color: var(--blue);
    font-size: 0.88rem;
    width: 17px;
    text-align: center;
    flex-shrink: 0;
}
.community-tile-label {
    font-weight: 700;
    font-size: 0.77rem;
    color: var(--heading);
    line-height: 1.3;
}
.community-tile-sub {
    font-weight: 300;
    font-size: 0.72rem;
    color: var(--muted);
}

/* ── CONTACT ──────────────────────────────────────── */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.87rem;
    color: var(--body);
}
.contact-item-icon {
    width: 28px; height: 28px;
    background: var(--blue-light);
    border: 1px solid rgba(191,10,48,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.7rem;
    flex-shrink: 0;
}
.contact-item a { color: var(--body); transition: color 0.2s; }
.contact-item a:hover { color: var(--blue); }

/* ── FOOTER CARD ─────────────────────────────────── */
.footer-card {
    background: var(--sidebar-dark);
    border: none;
    padding: 18px 36px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-name {
    font-family: 'DM Serif Display', serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
}
.footer-copy {
    font-size: 0.67rem;
    color: rgba(255,255,255,0.18);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .mobile-nav { display: flex; }
    .content { margin-left: 0; padding: 16px; }
    .profile-inner { flex-direction: column; }
    .profile-photo { width: 130px; }
    .footer-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 580px) {
    .card { padding: 20px; }
    .community-grid { grid-template-columns: 1fr; }
    .community-photos { grid-template-columns: 1fr 1fr; }
}
