/*
Theme Name: Beltran for Congress
Theme URI: https://beltranforcongress.com
Author: Guidant Polling and Strategy
Description: Mike Beltran for Congress - FL-14
Version: 1.0
*/

:root {
  --red: #C8102E;
  --navy: #0A1F44;
  --white: #FFFFFF;
  --light-gray: #F4F5F7;
  --mid-gray: #6B7280;
  --dark: #111827;
  --gold: #C9A84C;
  --footer-bg: #060E1F;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; color: var(--dark); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* TOPBAR */
.topbar { background: var(--red); color: var(--white); text-align: center; padding: 10px 20px; font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.topbar a { color: var(--white); text-decoration: underline; }
.topbar img.emoji { display: none !important; width: 0 !important; height: 0 !important; }

/* NAV */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); border-bottom: 3px solid var(--red); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 52px; width: auto; mix-blend-mode: screen; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-family: 'Oswald', sans-serif; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.main-nav a:hover { color: var(--white); }
.nav-donate { background: var(--red) !important; color: var(--white) !important; padding: 10px 22px; font-weight: 600 !important; }
.nav-donate:hover { background: #a50d24 !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* HERO TWO COLUMN */
.hero-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; background: var(--navy); }
.hero-left { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; }
.hero-name { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero-h1 { font-family: 'Oswald', sans-serif; font-size: clamp(36px, 4vw, 58px); font-weight: 700; color: var(--white); text-transform: uppercase; line-height: 1.05; letter-spacing: 0.02em; margin-bottom: 36px; }
.hero-h1-red { color: var(--red); display: block; }
.hero-right { position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* HERO FORM BOX */
.hero-form-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); padding: 28px 28px 20px; }
.hero-form-title { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; text-align: center; }
.hf-legal { font-size: 10px; color: rgba(255,255,255,0.35); line-height: 1.6; margin-top: 12px; text-align: center; }
.hf-legal a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* DONATE */
.donate-section { background: var(--light-gray); padding: 72px 24px; text-align: center; }
.section-label { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section-title { font-family: 'Oswald', sans-serif; font-size: clamp(26px, 4vw, 42px); font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 16px; }
.section-body { font-size: 17px; color: var(--mid-gray); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.donate-amounts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.donate-btn { background: var(--white); border: 2px solid var(--navy); color: var(--navy); font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; padding: 14px 28px; transition: all 0.2s; text-decoration: none; display: inline-block; }
.donate-btn:hover { background: var(--navy); color: var(--white); }
.donate-btn.featured { background: var(--red); border-color: var(--red); color: var(--white); }
.donate-btn.featured:hover { background: #a50d24; }

/* ABOUT */
.about-section { padding: 96px 24px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap img { width: 100%; height: 560px; object-fit: cover; object-position: top center; }
.about-text .section-title { text-align: left; font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.about-text p { font-size: 16px; line-height: 1.85; color: #374151; margin-bottom: 18px; }

/* ABOUT CHECKMARKS */
.about-checks { list-style: none; padding: 0; margin: 0 0 24px 0; }
.about-checks li { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #E5E7EB; }
.about-checks li:first-child { border-top: 1px solid #E5E7EB; }
.check-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 700; flex-shrink: 0; border-radius: 50%; }

/* PLATFORM */
.platform-section { padding: 96px 24px; background: var(--white); }
.platform-inner { max-width: 900px; margin: 0 auto; }
.platform-header { text-align: center; margin-bottom: 56px; }
.issue-block { border-top: 3px solid var(--red); padding: 32px 0; }
.issue-block + .issue-block { border-top: 1px solid #E5E7EB; }
.issue-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.issue-icon { width: 40px; height: 40px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.issue-block h3 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; }
.issue-block p { font-size: 16px; color: #4B5563; line-height: 1.75; }

/* ENDORSEMENTS */
.endorsements-section { background: var(--light-gray); padding: 96px 24px; }
.endorsements-inner { max-width: 1100px; margin: 0 auto; }
.endorsements-header { text-align: center; margin-bottom: 48px; }
.endorsement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.endorsement-card { background: var(--white); padding: 16px 18px; border-left: 3px solid var(--red); }
.endorsement-name { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.endorsement-title { font-size: 12px; color: var(--mid-gray); line-height: 1.4; }

/* NEWS */
.news-section { padding: 96px 24px; background: var(--white); }
.news-inner { max-width: 1200px; margin: 0 auto; }
.news-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border-top: 3px solid var(--red); padding-top: 20px; }
.news-date { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 10px; }
.news-card h3 { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; color: var(--navy); text-transform: uppercase; margin-bottom: 10px; line-height: 1.3; }
.news-card h3 a:hover { color: var(--red); }
.news-card p { font-size: 14px; color: #6B7280; line-height: 1.65; margin-bottom: 14px; }
.news-link { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); display: inline-block; }

/* JOIN SECTION */
.join-section { background: var(--navy); padding: 96px 24px; text-align: center; }
.join-section .section-label { color: var(--gold); }
.join-section .section-title { color: var(--white); margin-bottom: 12px; }
.join-form { max-width: 600px; margin: 0 auto; }
.join-disclaimer { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 16px; line-height: 1.65; }

/* PAGE HERO */
.page-hero { background: var(--navy); padding: 80px 24px; position: relative; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--red); }
.page-hero-eyebrow { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.page-hero-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--gold); display: block; }
.page-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(32px, 5vw, 56px); font-weight: 700; color: var(--white); text-transform: uppercase; line-height: 1.05; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.75); margin-top: 14px; font-style: italic; max-width: 560px; line-height: 1.6; }

/* PAGE CONTENT */
.page-content { max-width: 900px; margin: 0 auto; padding: 72px 24px; }
.page-content h2 { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); text-transform: uppercase; margin: 40px 0 16px; padding-top: 32px; border-top: 1px solid #E5E7EB; }
.page-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.page-content p { font-size: 16px; line-height: 1.85; color: #374151; margin-bottom: 20px; }

/* BUTTONS */
.btn-primary { background: var(--red); color: var(--white); font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 32px; display: inline-block; transition: background 0.2s; }
.btn-primary:hover { background: #a50d24; }
.btn-navy { background: var(--navy); color: var(--white); font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 32px; display: inline-block; transition: background 0.2s; }
.btn-navy:hover { background: #071530; }

/* FOOTER */
.site-footer { background: var(--footer-bg); padding: 48px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-logo img { height: 48px; width: auto; mix-blend-mode: screen; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--red); color: var(--white); background: var(--red); }
.footer-divider { width: 100%; border: none; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-paid-for { border: 1px solid rgba(255,255,255,0.22); padding: 10px 32px; }
.footer-paid-for p { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); text-align: center; }
.footer-copyright { font-size: 11px; color: rgba(255,255,255,0.25); text-align: center; line-height: 1.7; }

/* CF7 FORM STYLING - HERO */
.hero-form-box .wpcf7-form input[type="text"],
.hero-form-box .wpcf7-form input[type="email"],
.hero-form-box .wpcf7-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #111827;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  display: block;
}
.hero-form-box .wpcf7-form input[type="text"]::placeholder,
.hero-form-box .wpcf7-form input[type="email"]::placeholder,
.hero-form-box .wpcf7-form input[type="tel"]::placeholder { color: #6B7280; }
.hero-form-box .wpcf7-form input:focus { border-color: #C8102E; }
.hero-form-box .wpcf7-form .wpcf7-acceptance { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.hero-form-box .wpcf7-form .wpcf7-acceptance input[type="checkbox"] { width: 15px; height: 15px; accent-color: #C8102E; flex-shrink: 0; }
.hero-form-box .wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label { font-size: 13px; color: rgba(255,255,255,0.85); }
.hero-form-box .wpcf7-form input[type="submit"] { width: 100%; background: #C8102E; color: #FFFFFF; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; padding: 15px; border: none; cursor: pointer; display: block; margin-top: 4px; }
.hero-form-box .wpcf7-form input[type="submit"]:hover { background: #a50d24; }
.hero-form-box .wpcf7-form .wpcf7-response-output { color: rgba(255,255,255,0.8); padding: 10px 0; margin-top: 10px; font-size: 13px; text-align: center; border: none; }

/* CF7 FORM STYLING - JOIN PAGE */
.join-section .wpcf7-form input[type="text"],
.join-section .wpcf7-form input[type="email"],
.join-section .wpcf7-form input[type="tel"],
.join-section .wpcf7-form select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  color: #FFFFFF;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  display: block;
}
.join-section .wpcf7-form input[type="text"]::placeholder,
.join-section .wpcf7-form input[type="email"]::placeholder,
.join-section .wpcf7-form input[type="tel"]::placeholder { color: rgba(255,255,255,0.45); }
.join-section .wpcf7-form input:focus,
.join-section .wpcf7-form select:focus { border-bottom-color: #C9A84C; }
.join-section .wpcf7-form select option { background: #0A1F44; color: #FFFFFF; }
.join-section .wpcf7-form input[type="submit"] { width: 100%; background: #C8102E; color: #FFFFFF; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; padding: 16px; border: none; cursor: pointer; display: block; margin-top: 4px; }
.join-section .wpcf7-form input[type="submit"]:hover { background: #a50d24; }
.join-section .wpcf7-form .wpcf7-response-output { color: rgba(255,255,255,0.8); padding: 12px 0; margin-top: 12px; font-size: 13px; text-align: center; border: none; }

/* CF7 TWO COLUMN - first/last name side by side */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Use float approach for two columns - more reliable than grid */
.wpcf7-form .wpcf7-form-control-wrap[data-name="first-name"] {
  float: left;
  width: calc(50% - 5px);
  margin-right: 10px;
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="last-name"] {
  float: left;
  width: calc(50% - 5px);
}

/* Clear float after last name */
.wpcf7-form .wpcf7-form-control-wrap[data-name="your-email"],
.wpcf7-form .wpcf7-form-control-wrap[data-name="your-phone"],
.wpcf7-form .wpcf7-form-control-wrap[data-name="your-zip"],
.wpcf7-form .wpcf7-form-control-wrap[data-name="how-to-help"],
.wpcf7-form .wpcf7-acceptance,
.wpcf7-form input[type="submit"],
.wpcf7-form p,
.wpcf7-form .wpcf7-response-output {
  clear: both;
  display: block;
  width: 100%;
}

/* Make inputs fill their container */
.wpcf7-form .wpcf7-form-control-wrap[data-name="first-name"] input,
.wpcf7-form .wpcf7-form-control-wrap[data-name="last-name"] input {
  width: 100% !important;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-section { display: flex; flex-direction: column; }
  .hero-right { order: -1; height: 300px; width: 100%; }
  .hero-left { order: 1; padding: 32px 20px 40px; }
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap img { height: 400px; }
  .endorsement-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .wpcf7-form .wpcf7-form-control-wrap[data-name="first-name"],
  .wpcf7-form .wpcf7-form-control-wrap[data-name="last-name"] {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  /* Mobile nav */
  .hamburger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 3px solid var(--red);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-donate {
    margin: 8px 16px 12px;
    text-align: center;
    padding: 12px 22px !important;
  }
  .site-header { position: relative; }
}
@media (max-width: 600px) {
  .endorsement-grid { grid-template-columns: 1fr; }
}
/* Fix name field alignment */
.wpcf7-form .wpcf7-form-control-wrap[data-name="first-name"],
.wpcf7-form .wpcf7-form-control-wrap[data-name="last-name"] {
  vertical-align: top !important;
  margin-bottom: 10px !important;
  line-height: 0 !important;
}
/* Force Last Name to top */
.wpcf7-form .wpcf7-form-control-wrap[data-name="last-name"] {
  margin-top: -19px !important;
}
/* Remove red border line under nav on interior pages */
.page-hero::after {
  display: none;
}
/* Center p tags inside centered page heroes */
.page-hero[style*="text-align: center"] p {
  margin-left: auto;
  margin-right: auto;
}
/* Remove red nav border on interior pages */
.page-id-7 .site-header,
.page-id-9 .site-header,
.page-id-11 .site-header,
.page-id-13 .site-header,
.page-id-15 .site-header {
  border-bottom: none;
}
/* Fix platform page text color */
.platform-section p,
.platform-section h3 {
  color: var(--dark) !important;
}

/* Join page - white background for form section */
.join-section {
  background: var(--white) !important;
}

/* Join page - fix text colors on white background */
.join-section .section-label {
  color: var(--red) !important;
}
.join-section .section-title {
  color: var(--navy) !important;
}
.join-section .wpcf7-form input[type="text"],
.join-section .wpcf7-form input[type="email"],
.join-section .wpcf7-form input[type="tel"],
.join-section .wpcf7-form select {
  background: var(--light-gray) !important;
  border-bottom: 1.5px solid #D1D5DB !important;
  color: var(--dark) !important;
}
.join-section .wpcf7-form input[type="text"]::placeholder,
.join-section .wpcf7-form input[type="email"]::placeholder,
.join-section .wpcf7-form input[type="tel"]::placeholder {
  color: var(--mid-gray) !important;
}
.join-section .wpcf7-form select option {
  background: var(--white) !important;
  color: var(--dark) !important;
}
.join-disclaimer {
  color: var(--mid-gray) !important;
}
/* Fix platform hero bottom padding and centering */
.page-id-9 .page-hero {
  padding-bottom: 72px;
  text-align: center;
}
.page-id-9 .page-hero-eyebrow {
  display: none;
}
.page-id-9 .page-hero p {
  margin-left: auto;
  margin-right: auto;
}

/* Global CTA section */
.global-cta {
  background: var(--navy);
  padding: 64px 24px;
  text-align: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* Footer - dark navy instead of black */
.site-footer {
  background: #0A1F44 !important;
}
/* Mobile form field spacing */
@media (max-width: 600px) {
  .wpcf7-form .wpcf7-form-control-wrap {
    margin-bottom: 6px !important;
  }
  
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"] {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 600px) {
  .wpcf7-form .wpcf7-form-control-wrap[data-name="first-name"],
  .wpcf7-form .wpcf7-form-control-wrap[data-name="last-name"] {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }
}