/*
Theme Name:   Jude George for Board of Health
Theme URI:    https://judgeorge.com
Description:  Campaign website for Judith George, Pembroke Board of Health candidate.
Author:       Flashman Consulting
Author URI:   https://eflashman.org
Version:      1.0.0
Tags:         campaign, political, one-page, custom
*/

/* ── TOKENS ─────────────────────────────────────── */
:root {
    --navy:       #1A2F5E;
    --navy-dark:  #111e3d;
    --navy-light: #e8ecf5;
    --red:        #C0392B;
    --red-dark:   #962d22;
    --white:      #ffffff;
    --off-white:  #f8f8f8;
    --border:     #e4e4e4;
    --text:       #111111;
    --text-mid:   #4a4a4a;
    --text-light: #888888;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.3px; }
p { color: var(--text-mid); line-height: 1.82; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; width: 90%; margin: 0 auto; }
section { padding: 88px 0; }

/* ── SECTION LABELS ──────────────────────────────── */
.section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.02rem;
    color: var(--text-mid);
    max-width: 580px;
    line-height: 1.78;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover { background: var(--red-dark); opacity: 1; transform: translateY(-1px); color: var(--white); }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 13px 32px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--white); opacity: 1; color: var(--white); }

.btn-navy {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: background 0.2s, transform 0.15s;
}
.btn-navy:hover { background: var(--navy-dark); opacity: 1; transform: translateY(-1px); color: var(--white); }

/* ── NAV ─────────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.nav-brand { display: flex; flex-direction: column; text-decoration: none; }
.nav-name  { color: var(--white); font-size: 1rem; font-weight: 800; letter-spacing: 0.2px; }
.nav-race  { color: rgba(255,255,255,0.55); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; margin-top: 1px; }

#site-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

#site-navigation ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
#site-navigation ul li a:hover { color: var(--white); background: rgba(255,255,255,0.1); opacity: 1; }

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    margin-left: 8px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* ── HERO ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #243d7a 100%);
    padding: 156px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--red);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192,57,43,0.18);
    border: 1px solid rgba(192,57,43,0.45);
    color: #f5a89e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 3px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.hero h1 span { color: #f5a89e; }

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin: 18px 0 36px;
    line-height: 1.75;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
    width: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    border: 3px solid rgba(255,255,255,0.15);
}
.hero-photo img { width: 100%; height: 380px; object-fit: cover; object-position: center top; display: block; }

/* ── STAT BAR ────────────────────────────────────── */
.stat-bar { background: var(--red); }

.stat-bar-inner { display: flex; justify-content: center; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 48px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-item i { font-size: 1.4rem; color: rgba(255,255,255,0.8); }
.stat-value { font-size: 0.92rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ── ABOUT ───────────────────────────────────────── */
#about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.about-photo-box { position: relative; }
.about-photo-box::before {
    content: '';
    position: absolute;
    top: 18px; left: -18px; right: 18px; bottom: -18px;
    background: var(--navy-light);
    border-radius: 6px;
    z-index: -1;
}

.about-photo-real { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.13); }
.about-photo-real img { width: 100%; height: 460px; object-fit: cover; object-position: center top; display: block; }

.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.about-content p { font-size: 0.97rem; margin-bottom: 18px; }

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-light);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 3px;
    margin: 4px 4px 4px 0;
}
.about-tag i { color: var(--red); font-size: 0.75rem; }

/* ── LOCAL ROOTS ─────────────────────────────────── */
#roots { background: var(--off-white); padding: 88px 0; }

.roots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.roots-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.roots-content p { font-size: 0.97rem; }

.pond-photo { border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.13); }
.pond-photo img { width: 100%; height: 360px; object-fit: cover; object-position: center; display: block; }
.pond-caption {
    background: var(--navy);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pond-caption i { color: rgba(255,255,255,0.5); font-size: 1.1rem; flex-shrink: 0; }
.pond-caption-title { color: #fff; font-size: 0.88rem; font-weight: 700; line-height: 1.2; }
.pond-caption-sub   { color: rgba(255,255,255,0.55); font-size: 0.75rem; margin-top: 2px; }

/* ── PLATFORM ────────────────────────────────────── */
#platform { background: var(--white); }
.platform-header { margin-bottom: 56px; }

.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.platform-card { border-top: 4px solid var(--navy); padding-top: 28px; transition: border-top-color 0.2s; }
.platform-card:hover { border-top-color: var(--red); }

.platform-number { font-size: 3rem; font-weight: 900; color: var(--navy-light); line-height: 1; margin-bottom: 8px; letter-spacing: -2px; }
.platform-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.platform-card p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }

/* ── BACKGROUND ──────────────────────────────────── */
#background { background: var(--navy); padding: 88px 0; }

.background-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.background-text .section-label { color: #f5a89e; }
.background-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 20px; }
.background-text p  { color: rgba(255,255,255,0.7); font-size: 0.97rem; margin-bottom: 18px; }

.credential-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 18px 20px;
}
.credential-item i { color: #f5a89e; font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.credential-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.credential-item p  { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ── QUOTE ───────────────────────────────────────── */
.quote-band { background: var(--off-white); border-left: 6px solid var(--red); padding: 56px 0; }
.quote-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-text  { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 20px; font-style: italic; }
.quote-attr  { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); }

/* ── CONTACT ─────────────────────────────────────── */
#contact { background: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.contact-info p  { font-size: 0.97rem; margin-bottom: 28px; }

.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link-item { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; font-weight: 500; color: var(--text-mid); }
.contact-link-item i {
    width: 38px; height: 38px;
    background: var(--navy-light);
    color: var(--navy);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}

/* Contact Form 7 styling */
.wpcf7-form { display: flex; flex-direction: column; gap: 18px; }

.wpcf7-form p { margin: 0; }

.wpcf7-form label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    padding: 11px 14px;
    transition: border-color 0.2s;
    outline: none;
    background: var(--white);
    width: 100%;
    resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--navy); }

.wpcf7-form textarea { min-height: 120px; }

.wpcf7-form input[type="submit"] {
    background: var(--red);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    width: auto;
}
.wpcf7-form input[type="submit"]:hover { background: var(--red-dark); }

/* ── FOOTER ──────────────────────────────────────── */
#site-footer { background: var(--navy-dark); padding: 44px 0 20px; }

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.footer-name { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.footer-race { font-size: 0.72rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.footer-nav { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; padding: 0; margin: 0; }
.footer-nav a { color: rgba(255,255,255,0.5); font-size: 0.82rem; font-weight: 500; }
.footer-nav a:hover { color: var(--white); opacity: 1; }

.footer-bottom { text-align: center; font-size: 0.73rem; color: rgba(255,255,255,0.25); letter-spacing: 0.3px; }
.footer-bottom span { color: rgba(255,255,255,0.45); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    section { padding: 64px 0; }
    .hero-inner       { grid-template-columns: 1fr; }
    .hero-photo       { display: none; }
    .about-grid       { grid-template-columns: 1fr; gap: 40px; }
    .roots-grid       { grid-template-columns: 1fr; gap: 40px; }
    .background-inner { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid     { grid-template-columns: 1fr; gap: 40px; }
    .platform-grid    { grid-template-columns: 1fr; gap: 28px; }
    .stat-bar-inner   { flex-direction: column; }
    .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 18px 24px; }
    .stat-item:last-child { border-bottom: none; }
    #site-navigation  { display: none; }
    .footer-inner     { flex-direction: column; gap: 24px; }
}

@media (max-width: 600px) {
    .container { width: 92%; }
    .hero { padding: 120px 0 72px; }
}
