/*
Theme Name: Glover Campaign
Theme URI: https://denzelglover.com
Description: Denzel Glover for Portsmouth School Board — child theme of Twenty Twenty-Four. Replaces site header and footer globally. Built by Mobile Photo Lab.
Author: Mobile Photo Lab
Author URI: https://mobilephotolab.com
Template: twentytwentyfour
Version: 1.3.0
Text Domain: glover-campaign
*/

/* BRAND TOKENS */
:root {
    --gc-teal: #1F5B6E; --gc-teal-deep: #164452; --gc-teal-darker: #0F323D; --gc-teal-hero: #356D7E;
    --gc-gold: #E4A93C; --gc-gold-soft: #F0C876; --gc-gold-deep: #C48E22;
    --gc-ink: #1A1F24; --gc-cream: #F6F1E6; --gc-cream-deep: #EDE4D0; --gc-coral: #E87A5D; --gc-white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gc-cream); color: var(--gc-ink); line-height: 1.6;
    -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gc-gold); color: var(--gc-ink); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6, .wp-block-heading {
    font-family: 'Fraunces', Georgia, serif; color: var(--gc-ink);
    letter-spacing: -0.02em; line-height: 1.1;
}
a { color: var(--gc-teal); transition: color 0.2s ease; }
a:hover { color: var(--gc-gold-deep); }

.wp-site-blocks { padding: 0 !important; }
.has-global-padding > .alignfull { margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-template-part { margin: 0 !important; padding: 0 !important; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 100%; }

/* ANNOUNCEMENT BAR */
.gc-topbar {
    background: var(--gc-ink); color: var(--gc-cream);
    text-align: center; padding: 10px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4;
}
.gc-topbar .gc-tagline {
    color: var(--gc-gold); font-family: 'Fraunces', serif;
    font-style: italic; font-weight: 500; font-size: 15px;
}

/* HEADER / NAVIGATION */
.gc-header {
    background: rgba(246, 241, 230, 0.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 0 40px; display: flex; justify-content: space-between; align-items: center;
    height: 64px; border-bottom: 1px solid rgba(26, 31, 36, 0.08);
    position: sticky; top: 0; z-index: 9999;
}

/* Admin bar offset for logged-in users */
body.admin-bar .gc-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .gc-header { top: 46px; }
}
body.admin-bar .gc-mobile-nav { top: 96px; }
@media screen and (max-width: 782px) {
    body.admin-bar .gc-mobile-nav { top: 110px; }
}

.gc-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.gc-header.is-scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    background: rgba(246, 241, 230, 0.98);
}

.gc-logo {
    font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px;
    color: var(--gc-teal); letter-spacing: -0.03em; text-decoration: none;
    display: flex; align-items: baseline; gap: 1px; flex-shrink: 0;
}
.gc-logo em { font-style: italic; font-weight: 500; color: var(--gc-gold-deep); font-size: 16px; margin-right: 2px; }

.gc-nav-list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.gc-nav-list li { margin: 0; }
.gc-nav-list a {
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gc-ink); text-decoration: none; padding: 4px 0;
    transition: color 0.2s; position: relative;
}
.gc-nav-list a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--gc-gold);
    transform: scaleX(0); transition: transform 0.25s ease; transform-origin: center;
}
.gc-nav-list a:hover { color: var(--gc-teal); }
.gc-nav-list a:hover::after { transform: scaleX(1); }

.gc-nav-cta {
    background: var(--gc-gold); color: var(--gc-ink);
    padding: 10px 22px; font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
    text-transform: uppercase; text-decoration: none; border-radius: 3px;
    transition: all 0.25s ease; border: none;
}
.gc-nav-cta:hover {
    background: var(--gc-gold-deep); color: var(--gc-ink);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(228, 169, 60, 0.35);
}
.gc-nav-cta::after { display: none !important; }

/* HAMBURGER */
.gc-hamburger {
    display: none; width: 44px; height: 44px; background: none; border: none;
    cursor: pointer; padding: 10px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    -webkit-tap-highlight-color: transparent;
}
.gc-hamburger span {
    display: block; width: 22px; height: 2.5px; background: var(--gc-ink);
    border-radius: 2px; transition: all 0.3s ease; transform-origin: center;
}
.gc-hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.gc-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gc-hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* MOBILE DRAWER */
.gc-mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--gc-cream); z-index: 9998; padding: 32px 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.35s ease;
}
.gc-mobile-nav.is-open { transform: translateX(0); }
.gc-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.gc-mobile-nav li { border-bottom: 1px solid rgba(26, 31, 36, 0.08); }
.gc-mobile-nav a {
    display: block; padding: 18px 0; font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 700; color: var(--gc-ink);
    text-decoration: none; letter-spacing: -0.01em; transition: color 0.2s;
}
.gc-mobile-nav a:hover { color: var(--gc-teal); }
.gc-mobile-nav .gc-mobile-cta {
    display: block; background: var(--gc-gold); color: var(--gc-ink); text-align: center;
    padding: 18px 24px; font-family: 'Figtree', sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
    text-decoration: none; border-radius: 4px; margin-top: 24px;
}
.gc-mobile-social {
    display: flex; gap: 16px; justify-content: center;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(26, 31, 36, 0.08);
}
.gc-mobile-social a {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gc-teal); color: var(--gc-cream);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px; text-decoration: none; padding: 0; border: none;
}

/* FOOTER */
.gc-footer { background: var(--gc-ink); color: var(--gc-cream); position: relative; padding: 0; }
.gc-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--gc-gold);
}
.gc-footer-main {
    max-width: 1280px; margin: 0 auto; padding: 56px 40px 40px;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
}
.gc-footer-brand {
    font-family: 'Fraunces', serif; font-weight: 900; font-size: 24px;
    color: var(--gc-cream); letter-spacing: -0.02em; margin-bottom: 12px;
}
.gc-footer-brand em { font-style: italic; color: var(--gc-gold); font-weight: 500; }
.gc-footer-tagline {
    font-family: 'Fraunces', serif; font-style: italic; font-size: 15px;
    color: var(--gc-gold-soft); margin-bottom: 20px;
}
.gc-footer-social { display: flex; gap: 12px; }
.gc-footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(246, 241, 230, 0.1); color: var(--gc-cream);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px; text-decoration: none; transition: all 0.25s;
}
.gc-footer-social a:hover { background: var(--gc-gold); color: var(--gc-ink); }

.gc-footer h4 {
    font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gc-gold); margin-bottom: 16px;
}
.gc-footer-links { list-style: none; margin: 0; padding: 0; }
.gc-footer-links li { margin-bottom: 10px; }
.gc-footer-links a {
    color: rgba(246, 241, 230, 0.7); text-decoration: none;
    font-size: 14px; transition: color 0.2s;
}
.gc-footer-links a:hover { color: var(--gc-gold); }

.gc-footer-contact p {
    color: rgba(246, 241, 230, 0.65); font-size: 14px;
    margin-bottom: 8px; line-height: 1.5;
}
.gc-footer-contact a { color: var(--gc-gold-soft); }
.gc-footer-contact a:hover { color: var(--gc-gold); }

.gc-footer-bottom {
    border-top: 1px solid rgba(246, 241, 230, 0.1);
    padding: 20px 40px; text-align: center;
}
.gc-footer-legal {
    font-size: 10px; color: rgba(246, 241, 230, 0.35);
    letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7;
}

/* HERO */
.gc-hero {
    background: linear-gradient(135deg, var(--gc-teal-darker) 0%, var(--gc-teal-deep) 40%, var(--gc-teal) 80%, var(--gc-teal-hero) 100%);
    color: var(--gc-cream); min-height: 82vh; position: relative; overflow: hidden;
    display: flex; align-items: center; padding: 72px 40px;
}
.gc-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 72% 45%, rgba(228, 169, 60, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(31, 91, 110, 0.35) 0%, transparent 40%);
    pointer-events: none;
}
.gc-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 6px; background: var(--gc-gold); z-index: 10;
}
.gc-hero-inner {
    position: relative; z-index: 2; max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; width: 100%;
}
.gc-hero-kicker {
    font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--gc-gold); font-weight: 800; margin-bottom: 22px;
    display: flex; align-items: center; gap: 14px;
}
.gc-hero-kicker::before { content: ''; width: 36px; height: 2px; background: var(--gc-gold); }
.gc-hero-vote {
    font-family: 'Figtree', sans-serif; font-weight: 900; font-size: 20px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gc-white); margin-bottom: 4px;
}
.gc-hero h1 { font-family: 'Fraunces', serif; line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 14px; color: var(--gc-white); }
.gc-hero-first { display: block; font-style: italic; font-weight: 500; color: var(--gc-gold-soft); font-size: clamp(44px, 6vw, 68px); margin-bottom: -6px; }
.gc-hero-last { display: block; font-weight: 900; font-size: clamp(68px, 10vw, 112px); }
.gc-hero-office {
    font-weight: 800; font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase;
    margin-bottom: 28px; padding-bottom: 28px;
    border-bottom: 2.5px solid var(--gc-gold); display: inline-block;
}
.gc-hero-tagline {
    font-family: 'Fraunces', serif; font-size: clamp(24px, 3vw, 34px); font-weight: 600;
    line-height: 1.15; margin-bottom: 10px; letter-spacing: -0.01em;
}
.gc-hero-tagline em { font-style: italic; font-weight: 400; color: var(--gc-gold-soft); }
.gc-hero-sub {
    font-size: 16px; color: rgba(246, 241, 230, 0.82);
    max-width: 460px; margin-bottom: 36px; line-height: 1.6;
}
.gc-hero-photo img {
    width: 100%; max-width: 420px;
    border: 3px solid var(--gc-gold); border-radius: 6px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}
.gc-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* BUTTONS */
.gc-btn-primary {
    display: inline-block; background: var(--gc-gold); color: var(--gc-ink);
    padding: 16px 32px; font-size: 12px; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
    border-radius: 3px; border: none; cursor: pointer;
    transition: all 0.3s ease; font-family: 'Figtree', sans-serif;
}
.gc-btn-primary:hover { background: var(--gc-gold-deep); color: var(--gc-ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(228, 169, 60, 0.3); }
.gc-btn-secondary {
    display: inline-block; background: transparent; color: var(--gc-cream);
    padding: 16px 32px; font-size: 12px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
    border: 2px solid rgba(246, 241, 230, 0.3); border-radius: 3px; transition: all 0.3s ease;
}
.gc-btn-secondary:hover { border-color: var(--gc-gold); color: var(--gc-gold); background: rgba(228, 169, 60, 0.08); }

/* PROMISE STRIP */
.gc-promises { background: var(--gc-ink); color: var(--gc-cream); padding: 56px 40px; }
.gc-promises-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gc-promise-card {
    text-align: center; padding: 28px 20px; border-radius: 6px;
    background: rgba(246, 241, 230, 0.04);
    border: 1px solid rgba(246, 241, 230, 0.08); transition: all 0.3s;
}
.gc-promise-card:hover { background: rgba(228, 169, 60, 0.07); border-color: rgba(228, 169, 60, 0.25); transform: translateY(-4px); }
.gc-promise-icon {
    width: 52px; height: 52px; background: var(--gc-teal); border-radius: 50%;
    margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    color: var(--gc-gold); font-size: 22px; border: 2px solid rgba(228, 169, 60, 0.35);
}
.gc-promise-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; color: var(--gc-cream); margin-bottom: 8px; }
.gc-promise-desc { font-size: 13.5px; color: rgba(246, 241, 230, 0.6); line-height: 1.5; }

/* ABOUT */
.gc-about { padding: 100px 40px; background: var(--gc-cream); }
.gc-about-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.gc-about-photo img { width: 100%; border-radius: 6px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1); border-bottom: 4px solid var(--gc-gold); }
.gc-about-kicker {
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gc-teal); font-weight: 800; margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
}
.gc-about-kicker::before { content: ''; width: 32px; height: 2px; background: var(--gc-gold); }
.gc-about h2 em { font-style: italic; color: var(--gc-teal); font-weight: 400; }
.gc-about-body p { font-size: 16px; color: rgba(26, 31, 36, 0.75); line-height: 1.65; margin-bottom: 18px; }
.gc-signature { font-family: 'Caveat', cursive; font-size: 30px; font-weight: 600; color: var(--gc-teal); margin-top: 24px; }

/* SIGNUP */
.gc-signup {
    background: linear-gradient(135deg, var(--gc-teal-darker) 0%, var(--gc-teal-deep) 50%, var(--gc-teal) 100%);
    color: var(--gc-cream); padding: 100px 40px; text-align: center;
    position: relative; overflow: hidden;
}
.gc-signup::before {
    content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 169, 60, 0.12) 0%, transparent 50%); pointer-events: none;
}
.gc-signup::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gc-gold); }
.gc-signup h2 em { font-style: italic; color: var(--gc-gold-soft); font-weight: 400; }

/* SOCIAL STRIP */
.gc-social-strip {
    background: var(--gc-cream-deep); padding: 40px; text-align: center;
    border-top: 1px solid rgba(26, 31, 36, 0.08); border-bottom: 1px solid rgba(26, 31, 36, 0.08);
}
.gc-social-strip a {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    color: var(--gc-teal); font-weight: 700; font-size: 13px;
    margin: 0 18px; transition: color 0.2s;
}
.gc-social-strip a:hover { color: var(--gc-gold-deep); }
.gc-social-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gc-teal); color: var(--gc-cream);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px; transition: background 0.2s;
}
.gc-social-strip a:hover .gc-social-icon { background: var(--gc-gold-deep); }

/* RESPONSIVE — TABLET */
@media (max-width: 960px) {
    .gc-header { padding: 0 20px; }
    .gc-nav-list { display: none; }
    .gc-hamburger { display: flex; }
    .gc-mobile-nav { display: block; }

    .gc-hero { padding: 48px 24px; min-height: 70vh; }
    .gc-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .gc-hero-kicker { justify-content: center; }
    .gc-hero-office { margin: 0 auto 24px; }
    .gc-hero-sub { margin: 0 auto 32px; }
    .gc-hero-ctas { justify-content: center; }
    .gc-hero-photo { order: -1; text-align: center; }
    .gc-hero-photo img { max-width: 280px; margin: 0 auto; }

    .gc-about { padding: 64px 24px; }
    .gc-about-inner { grid-template-columns: 1fr; gap: 36px; }

    .gc-promises { padding: 48px 24px; }
    .gc-promises-inner { grid-template-columns: 1fr; gap: 16px; }

    .gc-signup { padding: 64px 24px; }

    .gc-footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; text-align: center; }
    .gc-footer-social { justify-content: center; }
    .gc-footer-links { text-align: center; }
}

/* RESPONSIVE — PHONE */
@media (max-width: 600px) {
    .gc-topbar { font-size: 11px; padding: 8px 16px; }
    .gc-topbar .gc-tagline { font-size: 13px; }

    .gc-hero { min-height: auto; padding: 36px 16px 48px; }
    .gc-hero-first { font-size: 36px !important; }
    .gc-hero-last { font-size: 52px !important; }
    .gc-hero-vote { font-size: 16px; }
    .gc-hero-tagline { font-size: 20px !important; }
    .gc-hero-sub { font-size: 14px; }
    .gc-hero-office { font-size: 11px; padding-bottom: 20px; margin-bottom: 20px; }
    .gc-hero-photo img { max-width: 220px; }
    .gc-hero-ctas { flex-direction: column; width: 100%; }
    .gc-btn-primary, .gc-btn-secondary { width: 100%; text-align: center; padding: 14px 20px; }

    .gc-promise-card { padding: 20px 16px; }
    .gc-promise-title { font-size: 16px; }

    .gc-about h2 { font-size: 28px; }
    .gc-about-body p { font-size: 15px; }
    .gc-signature { font-size: 24px; }

    .gc-social-strip { padding: 24px 16px; }
    .gc-social-strip a { margin: 6px 10px; font-size: 12px; }

    .gc-footer-bottom { padding: 16px 20px; }

    .gc-mobile-nav a { font-size: 20px; padding: 16px 0; }
}

@media (hover: none) {
    .gc-promise-card:hover { transform: none; }
    .gc-btn-primary:hover { transform: none; box-shadow: none; }
    .gc-nav-cta:hover { transform: none; box-shadow: none; }
}

@supports (height: 100dvh) {
    .gc-mobile-nav { height: calc(100dvh - 64px); }
}
