/* =========================================================
   Bob Casey for Senate — Theme Styles
   Palette: Navy + White + Pennsylvania Orange
   ========================================================= */

:root {
    --color-navy:        #0b1831;
    --color-navy-light:  #132c45;
    --color-navy-dark:   #06101f;
    --color-orange:      #ee4624;
    --color-orange-dark: #c93914;
    --color-white:       #ffffff;
    --color-cream:       #f7f5f1;
    --color-gray-100:    #f0f2f4;
    --color-gray-300:    #c6cad1;
    --color-gray-500:    #6b7280;
    --color-gray-700:    #2c3441;
    --color-text:        #0b1831;
    --color-text-muted:  #4a5360;

    --font-display: "Oswald", "Pragmatica", "Helvetica Neue", Arial, sans-serif;
    --font-body:    "Inter", "Halyard Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --container:    1200px;
    --container-sm: 880px;

    --radius-sm: 4px;
    --radius-md: 6px;

    --shadow-md: 0 8px 24px rgba(11, 24, 49, 0.12);
    --shadow-lg: 0 20px 40px rgba(11, 24, 49, 0.18);

    --transition: 200ms ease;
}

/* -----------  Reset / Base ----------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-orange-dark); text-decoration: underline; text-underline-offset: 2px; transition: color var(--transition); }
a:hover, a:focus { color: var(--color-navy); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-navy);
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.06em; }

p { margin: 0 0 1em; }

button { font: inherit; cursor: pointer; }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important; word-wrap: normal !important;
}

.skip-link {
    position: absolute; top: -100px; left: 0; padding: 1rem;
    background: var(--color-orange); color: #fff; z-index: 9999;
}
.skip-link:focus { top: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* -----------  Header ----------- */

.site-header {
    background: var(--color-navy);
    color: var(--color-white);
    position: sticky; top: 0; z-index: 100;
}

.site-header__bar { padding: 1rem 0; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    color: var(--color-white);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}
.site-logo__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 3px solid var(--color-orange);
    padding-bottom: 4px;
}
.site-logo__tag {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}
.site-logo__keystone { color: var(--color-orange); transform: scaleY(1.3); }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}

.primary-nav__list a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
    border-bottom-color: var(--color-orange);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    width: 44px; height: 44px;
}
.nav-toggle__bar {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-white);
    margin: 5px auto;
    transition: transform var(--transition), opacity var(--transition);
}

/* -----------  Buttons ----------- */

.btn {
    display: inline-block;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.6rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    border: 2px solid transparent;
}

.btn--cta, .btn--donate {
    background: var(--color-orange);
    color: var(--color-white);
}
.btn--cta:hover, .btn--donate:hover {
    background: var(--color-orange-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn--secondary {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.btn--secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn--amount {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    min-width: 80px;
    text-align: center;
}
.btn--amount:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
}

/* -----------  Hero (Homepage) ----------- */

.hero {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 3rem 0 4rem;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(238,70,36,0.08), transparent 50%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.hero__photo img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    filter: saturate(1.05);
}

/* -----------  Signup form ----------- */

.signup__heading {
    color: var(--color-white);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1.25rem;
    line-height: 1.05;
}

.signup__form { display: flex; flex-direction: column; gap: 0.75rem; }

.signup__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.signup__field input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--color-navy);
    background: var(--color-white);
}
.signup__field input::placeholder { color: var(--color-gray-500); }
.signup__field input:focus {
    outline: 3px solid var(--color-orange);
    outline-offset: 2px;
}

.signup__honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.signup__disclaimer {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
    margin-top: 0.5rem;
}
.signup__disclaimer a { color: var(--color-white); }

.signup__submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

/* When signup appears on a light background */
.section--signup .signup__heading { color: var(--color-navy); }
.section--signup .signup__disclaimer { color: var(--color-text-muted); }
.section--signup .signup__disclaimer a { color: var(--color-orange-dark); }
.section--signup .signup__field input { background: var(--color-white); border: 1px solid var(--color-gray-300); }

/* -----------  Sections (generic) ----------- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--issues, .section--get-involved { background: var(--color-cream); }
.section--latest { background: var(--color-white); }
.section--intro .section__body { max-width: var(--container-sm); margin: 0 auto; font-size: 1.1rem; }
.section--intro { text-align: center; }

.section__eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section__heading { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.5rem; }
.section__heading--center { text-align: center; }

.section__cta { margin-top: 2.5rem; text-align: center; }

/* -----------  Issues grid ----------- */

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.issues-grid--full { gap: 1.75rem; }

.issue-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--color-orange);
}
.issue-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.issue-card--placeholder { background: var(--color-gray-100); border-top-color: var(--color-gray-300); }

.issue-card__media img { width: 100%; height: 200px; object-fit: cover; }

.issue-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.issue-card__title { margin: 0; font-size: 1.25rem; }
.issue-card__excerpt { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }
.issue-card__cta {
    margin-top: auto;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--color-orange-dark);
    font-weight: 700;
}

/* -----------  Action cards ----------- */

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.action-card {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 2.5rem 1.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    transition: background var(--transition);
}
.action-card:hover { background: var(--color-navy-light); color: var(--color-white); }
.action-card__label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.action-card__cta {
    display: inline-block;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.65rem 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
}

/* -----------  News list ----------- */

.news-list { display: grid; gap: 2rem; }
.news-list--compact { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray-300);
}
.news-list--compact .news-item {
    border-bottom: 0;
    background: var(--color-cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-orange);
}

.news-item__type {
    display: inline-block;
    background: var(--color-orange);
    color: var(--color-white);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.news-item__title { font-size: 1.3rem; margin: 0 0 0.5rem; }
.news-item__title a { color: var(--color-navy); text-decoration: none; }
.news-item__title a:hover { color: var(--color-orange-dark); }

.news-item__date {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-item__excerpt { color: var(--color-text-muted); margin: 0 0 0.5rem; }

.news-item__link {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--color-orange-dark);
    text-decoration: none;
}

/* -----------  Page hero (generic) ----------- */

.page-hero {
    background: var(--color-navy);
    color: var(--color-white);
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.page-hero--centered { text-align: center; }
.page-hero__title { color: var(--color-white); margin: 0 0 0.5rem; }
.page-hero__title--news { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.page-hero__lede { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 720px; margin: 1rem auto 0; }
.page-hero .section__eyebrow { color: var(--color-orange); }

/* -----------  Page content (generic) ----------- */

.page-content,
.press-release__content,
.meet-bob__content,
.issue-single__content {
    max-width: var(--container-sm);
    margin: 2.5rem auto;
    font-size: 1.075rem;
}
.page-content h2, .press-release__content h2, .meet-bob__content h2, .issue-single__content h2 { margin-top: 2.5rem; }

/* -----------  Meet Bob ----------- */

.meet-bob__hero { background: var(--color-navy); color: var(--color-white); padding: clamp(3rem, 6vw, 5rem) 0; }
.meet-bob__hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.meet-bob__title { color: var(--color-white); margin-bottom: 1rem; }
.meet-bob__lede { font-size: 1.25rem; color: rgba(255,255,255,0.9); line-height: 1.45; }
.meet-bob__hero-photo img { border-radius: var(--radius-md); }

.meet-bob__body { padding: 2rem 0; }

/* -----------  Issue single ----------- */

.issue-single__body {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) 1fr;
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
}

.issue-single__sidebar {
    background: var(--color-cream);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-orange);
    position: sticky;
    top: 100px;
}
.issue-single__sidebar-title {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.issue-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-navy);
    text-decoration: none;
    font-size: 0.95rem;
}
.issue-list a:hover { background: var(--color-white); color: var(--color-orange-dark); }
.issue-list__item.is-current a {
    background: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
}

/* -----------  Press Release / Single Post ----------- */

.press-release__footer {
    border-top: 1px solid var(--color-gray-300);
    padding-top: 1.5rem;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.press-release__meta { color: var(--color-text-muted); margin: 0; }

/* -----------  Pagination ----------- */

.pagination {
    margin-top: 3rem;
    text-align: center;
}
.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination a, .pagination .current {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    background: var(--color-cream);
    color: var(--color-navy);
    font-family: var(--font-display);
}
.pagination .current { background: var(--color-navy); color: var(--color-white); }
.pagination a:hover { background: var(--color-orange); color: var(--color-white); }

/* -----------  CTA Band (Donate footer) ----------- */

.cta-band {
    background: var(--color-orange);
    color: var(--color-white);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    text-align: center;
}
.cta-band__title { color: var(--color-white); margin-bottom: 0.5rem; }
.cta-band__text { font-size: 1.1rem; max-width: 680px; margin: 0 auto 2rem; }
.cta-band__amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.cta-band .btn--amount { border-color: var(--color-white); color: var(--color-white); }
.cta-band .btn--amount:hover { background: var(--color-navy); border-color: var(--color-navy); }
.cta-band .btn--amount-other { background: var(--color-white); color: var(--color-orange); border-color: var(--color-white); }
.cta-band .btn--amount-other:hover { background: var(--color-navy); color: var(--color-white); }

/* -----------  Footer ----------- */

.site-footer {
    background: var(--color-navy-dark);
    color: var(--color-white);
    padding: 3rem 0 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.site-footer__brand .site-logo__name {
    font-size: 1.4rem;
    color: var(--color-white);
    display: inline-block;
    border-bottom: 3px solid var(--color-orange);
}
.site-footer__official { color: rgba(255,255,255,0.7); margin-top: 0.75rem; font-size: 0.9rem; }

.site-footer__heading {
    color: var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.site-footer__menu, .social-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    gap: 0.5rem;
}
.site-footer__menu a, .social-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
}
.site-footer__menu a:hover, .social-menu a:hover { color: var(--color-orange); }

.site-footer__address address {
    font-style: normal;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer__legal {
    background: #050b16;
    padding: 1.25rem 0;
}
.site-footer__legal-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.site-footer__legal-inner p { margin: 0; }
.site-footer__links a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer__links a:hover { color: var(--color-orange); }

/* -----------  Responsive ----------- */

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-navy-light);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    .primary-nav.is-open { max-height: 600px; }
    .primary-nav__list { flex-direction: column; gap: 0.25rem; }
    .primary-nav__list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .primary-nav .btn--donate { display: block; text-align: center; }

    .hero__inner,
    .meet-bob__hero-inner,
    .issue-single__body {
        grid-template-columns: 1fr;
    }
    .hero__photo { order: 2; }
    .issue-single__sidebar { position: static; }

    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .site-footer__inner { grid-template-columns: 1fr; }
    .signup__row--split { grid-template-columns: 1fr; }
    .cta-band__amounts .btn--amount { flex: 1 0 calc(33.333% - 0.5rem); }
}
