/*
Theme Name: Jim Croft Campaign Theme
Theme URI: https://example.com/
Author: OpenAI
Description: A WordPress conversion of the Jim Croft campaign static website. Designed for editable WordPress pages and Beaver Builder page content.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: jim-croft
*/


:root {
  --navy: #08213f;
  --navy-dark: #06172b;
  --red: #c8222f;
  --red-dark: #9f1721;
  --cream: #f7f1e7;
  --gold: #d7a441;
  --ink: #1d1d1d;
  --muted: #5b6470;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-size: 14px;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 6px solid var(--gold);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: clamp(260px, 34vw, 540px);
  max-width: 100%;
  height: auto;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .05em;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,23,43,.94) 0%, rgba(8,33,63,.86) 45%, rgba(8,33,63,.28) 100%),
    radial-gradient(circle at 80% 20%, rgba(215,164,65,.25), transparent 32%),
    linear-gradient(135deg, #24415f, #0b2544);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.045) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.045) 25%, transparent 25%);
  background-size: 42px 42px;
  opacity: .35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 76px 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .92;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero p {
  max-width: 650px;
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 0 0 28px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 22px;
  border-radius: 3px;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.hero-card {
  background: rgba(255,255,255,.94);
  color: var(--navy);
  border: 5px solid var(--gold);
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
  padding: 22px;
  transform: rotate(1deg);
}

.photo-placeholder {
  min-height: 310px;
  border: 3px dashed rgba(8,33,63,.35);
  background:
    linear-gradient(135deg, rgba(8,33,63,.08), rgba(200,34,47,.08)),
    #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 20px;
}

.hero-card .photo-placeholder {
  min-height: 360px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content-card {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(8,33,63,.12);
  border-top: 8px solid var(--red);
  padding: clamp(26px, 4vw, 46px);
}

.two-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.lede {
  font-size: 20px;
  color: #303846;
  font-weight: 700;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.issue {
  background: var(--navy);
  color: var(--white);
  padding: 24px 22px;
  border-left: 7px solid var(--gold);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issue strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 38px 24px;
}

.banner h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.banner p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(6,23,43,.94), rgba(8,33,63,.72)),
    linear-gradient(135deg, #26445f, #0b2544);
  color: var(--white);
  padding: 76px 24px;
  border-bottom: 6px solid var(--gold);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  margin: 0;
}

.page-hero p {
  max-width: 820px;
  font-size: 22px;
  margin: 18px 0 0;
}

.callout {
  background: var(--cream);
  border-left: 8px solid var(--gold);
  padding: 22px 26px;
  font-weight: 700;
  color: var(--navy);
}

ul.clean {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

ul.clean li {
  margin: 0 0 12px;
  padding-left: 28px;
  position: relative;
  font-weight: 700;
}

ul.clean li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--red);
}

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .header-inner,
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

  .nav {
    justify-content: center;
    margin-top: 18px;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    transform: none;
  }

  .issue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

  .logo {
    justify-content: center;
  }

  .logo img {
    width: min(88vw, 440px);
    margin: 0 auto;
  }
}


.form-placeholder {
  min-height: 320px;
  border: 3px dashed rgba(8,33,63,.35);
  background:
    linear-gradient(135deg, rgba(8,33,63,.06), rgba(200,34,47,.06)),
    #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 24px;
  margin: 24px 0;
}

.contact-box {
  background: var(--cream);
  border-top: 6px solid var(--red);
  padding: 22px 26px;
  margin: 20px 0 24px;
  box-shadow: 0 8px 20px rgba(8,33,63,.08);
}

.contact-box p {
  margin: 0 0 14px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.secure-note {
  background: var(--navy);
  color: var(--white);
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  margin-top: 8px;
  border-left: 6px solid var(--gold);
}


.footer-disclaimer {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 12px 20px;
  border: 3px solid var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}


.issue-icon {
  width: 58px;
  height: 58px;
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  margin: 0 auto 4px;
}

.issue p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.45;
}

.donate-banner {
  background: var(--red);
}


.topbar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 26px rgba(8,33,63,.16);
}

.hero-card .site-photo {
  min-height: 360px;
}

.issue {
  align-items: center;
  text-align: center;
}

.issue-icon {
  width: 58px;
  height: 58px;
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  margin: 0 auto 4px;
}



.donation-embed {
  margin-top: 22px;
}

.donation-embed iframe {
  width: 100%;
  min-height: 760px;
  border: 3px solid rgba(8,33,63,.16);
  background: var(--white);
}






.issue-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.issue-icon svg path,
.issue-icon svg circle,
.issue-icon svg rect {
  fill: none;
  stroke: currentColor;
}


/* Navigation update */
.nav a,
nav a,
.navigation a,
.header-nav a {
    font-size: 125% !important;
    padding: 0.75rem 1.25rem !important;
}

.nav a.donate,
nav a.donate,
.navigation a.donate,
.header-nav a.donate,
a[href*="donate"] {
    background: #4cb958 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 700 !important;
}


/* Photo display update: show full image on every device/browser */
.site-photo,
.hero-card .site-photo,
.content-card .site-photo,
.two-col .site-photo,
img.site-photo {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: var(--cream);
}

.hero-card,
.content-card,
.two-col {
  overflow: visible !important;
}

.photo-frame {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.photo-frame .site-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 850px) {
  .site-photo,
  .hero-card .site-photo,
  .content-card .site-photo,
  .two-col .site-photo,
  img.site-photo {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}



/* WordPress / Beaver Builder compatibility */
html, body {
  width: 100%;
}

.wp-site-blocks,
.site {
  overflow-x: hidden;
}

.wp-content-area {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px;
}

.wp-content-area > *:first-child {
  margin-top: 0;
}

.custom-logo {
  display: block;
  width: clamp(260px, 34vw, 540px);
  max-width: 100%;
  height: auto;
}

.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--gold);
}

/* Make Donate stand out in the top navigation */
.nav a[href*="donate"],
.nav .menu-item a[href*="donate"] {
  background: #4cb958;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 16px;
}

/* Increase top navigation link size */
.nav a {
  font-size: 17.5px;
}

/* Beaver Builder full-width layouts should not be boxed by the theme. */
.fl-builder .wp-content-area,
.fl-builder-content {
  max-width: none;
  padding: 0;
}

@media (max-width: 850px) {
  .nav a {
    font-size: 16px;
  }
}
