/*
Theme Name: VoteCal - Ward 10 Campaign
Theme URI: https://votecal.ca
Author: Campaign Theme Team
Author URI: https://votecal.ca
Description: Modern, 100% responsive, high-performance WordPress theme for political campaigns and community leaders. Features frontend live-editing with customizer support, image block logos, and structured platform pillars.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: votecal
Tags: custom-logo, custom-menu, featured-images, flexible-header, full-width-template, responsive-layout, theme-options, translation-ready, block-patterns, block-styles
*/

/* ============================================================
   Cal DiFalco for Ward 10 — Design Tokens
   ============================================================ */
:root {
  --blue: #1F1AFD;
  --blue-dark: #14109E;
  --blue-tint: #F2F1FF;
  --blue-tint-2: #E6E4FF;
  --gold: #FFD700;
  --gold-dark: #C9A900;
  --white: #FFFFFF;
  --ink: #12121C;
  --ink-soft: #52546A;
  --ink-faint: #8688A0;
  --line: #E4E3F2;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-w: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(.22,.68,0,1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.screen-reader-text:focus {
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.4);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 10px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 10px;
  width: auto;
  z-index: 100000;
}

/* Layout Wrappers */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   Checkmark mark — recurring brand motif
   ============================================================ */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.mark svg {
  display: block;
  width: 55%;
  height: 55%;
  stroke: currentColor;
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
  position: relative;
  z-index: 100;
  transition: box-shadow .3s var(--ease), background .3s var(--ease), transform .35s var(--ease);
}

/* 1. Transparent Header (Hero Section on Homepage) */
.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* 2. Sticky Header (Slides Down on Scroll) */
.site-header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .3s ease, box-shadow .35s ease;
}
.site-header--sticky.is-scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 8px 30px rgba(18, 18, 28, 0.08);
}

/* 3. Standard Header (For Interior Pages) */
.site-header--standard {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header--standard.is-scrolled {
  box-shadow: 0 6px 24px rgba(18, 18, 28, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo Image Block */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .2s ease;
  flex-shrink: 0;
}
.brand:hover {
  opacity: 0.92;
}

.brand-logo-img,
.custom-logo {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-logo-img--transparent {
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Fallback brand if no image is present */
.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand-text-wrap .mark {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 9px;
  color: var(--white);
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  list-style: none;
  margin: 0;
}
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: color .2s ease, background .2s ease;
  text-decoration: none;
}
.main-nav a:hover {
  color: var(--ink);
  background: var(--blue-tint);
}
.main-nav a.is-active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--blue);
  font-weight: 600;
}

/* Light / Transparent Nav Variant */
.main-nav--light a {
  color: rgba(255, 255, 255, 0.92);
}
.main-nav--light a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}
.main-nav--light a.is-active,
.main-nav--light .current-menu-item > a,
.main-nav--light .current_page_item > a {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.14);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header Action Buttons - Perfectly Consistent Sizing & Padding */
.header-actions .btn,
.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 100px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,215,0,0.35);
  color: var(--ink);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31,26,253,0.28);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-white:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
  line-height: 1;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}
.nav-toggle.is-open span {
  background: transparent !important;
}
.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--ink);
}
.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--ink);
}

/* Light Nav Toggle for Transparent Header */
.nav-toggle--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.nav-toggle--light span,
.nav-toggle--light span::before,
.nav-toggle--light span::after {
  background: #ffffff;
}
.nav-toggle--light.is-open span::before,
.nav-toggle--light.is-open span::after {
  background: #ffffff;
}

/* ============================================================
   Full-Width Hero Section (Candidate Background)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.hero--candidate-bg {
  width: 100%;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
  padding-top: clamp(120px, 15vw, 175px);
  padding-bottom: clamp(64px, 9vw, 110px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 12, 36, 0.96) 0%, rgba(8, 12, 36, 0.88) 36%, rgba(8, 12, 36, 0.40) 56%, rgba(8, 12, 36, 0) 70%);
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.hero-eyebrow .mark {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: line-up .9s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) span { animation-delay: .05s; }
.hero h1 .line:nth-child(2) span { animation-delay: .18s; }
.hero h1 .line:nth-child(3) span,
.hero h1 .line .highlight-gold {
  animation-delay: .31s;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(255, 215, 0, 0.25);
}
@keyframes line-up {
  to { transform: translateY(0); }
}

.hero-lede {
  margin-top: 24px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.62;
  max-width: 48ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards;
  animation-delay: .55s;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards;
  animation-delay: .68s;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  margin-top: 46px;
  display: flex;
  gap: clamp(14px, 3vw, 24px);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards;
  animation-delay: .8s;
}
.hero-stat {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(8, 12, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: #ffffff;
  line-height: 1.1;
}
.hero-stat span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin-top: 3px;
}

/* ============================================================
   Section Scaffolding
   ============================================================ */
.section {
  padding: clamp(64px, 9vw, 110px) 0;
}
.section-tight {
  padding: clamp(40px, 6vw, 64px) 0;
}
.section-blue {
  background: var(--blue);
  color: var(--white);
}
.section-tint {
  background: var(--blue-tint);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 52px);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 20ch;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 42ch;
  font-size: 1.02rem;
}
.section-blue .section-head p {
  color: rgba(255,255,255,0.78);
}

/* ============================================================
   Priority Cards
   ============================================================ */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(var(--pri-cols, 3), 1fr);
  gap: 20px;
}
.priority-grid.priority-grid-cols-1 {
  grid-template-columns: 1fr;
}
.priority-grid.priority-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.priority-grid.priority-grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.priority-grid.priority-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.priority-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
.priority-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.priority-card:hover {
  box-shadow: 0 20px 44px rgba(18,18,28,0.08);
  border-color: var(--blue-tint-2);
  transform: translateY(-4px);
}
.priority-card .mark {
  width: 44px;
  height: 44px;
  background: var(--blue-tint);
  border-radius: 12px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.priority-card .mark svg {
  width: 24px;
  height: 24px;
  display: block;
}
.priority-card .mark.card-custom-svg svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.priority-card .mark.card-custom-img img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.priority-card h3 {
  font-size: 1.18rem;
}
.priority-card p,
.priority-card-desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}
.priority-card-desc p {
  margin-bottom: 8px;
}
.priority-card-desc p:last-child {
  margin-bottom: 0;
}
.priority-card .card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.priority-card .card-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Quote / Intro Block
   ============================================================ */
.intro-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.intro-block img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.intro-copy p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.intro-copy p + p {
  margin-top: 18px;
}
.intro-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 22px;
}

/* ============================================================
   CTA Band
   ============================================================ */
.cta-band {
  background: var(--blue);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.14;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  max-width: 18ch;
  color: var(--white);
}
.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding: clamp(48px, 7vw, 76px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 6vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer Image Logo Block */
.footer-brand {
  margin-bottom: 14px;
}
.footer-logo-link,
.footer-brand .custom-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity .2s ease;
}
.footer-logo-link:hover,
.footer-brand .custom-logo-link:hover {
  opacity: 0.9;
}
.footer-logo-img,
.footer-brand .custom-logo {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-brand-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-brand-fallback .mark {
  width: 30px;
  height: 30px;
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
}

.footer-bio-text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 12px;
  max-width: 32ch;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color .2s ease;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--gold);
}

/* Footer Contact List with Icons */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.footer-contact-icon .mark {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.14);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a {
  color: inherit;
  transition: color .2s ease;
}
.footer-bottom a:hover {
  color: var(--gold);
}
.footer-phone-tag a {
  color: var(--gold);
  font-weight: 500;
}

/* ============================================================
   Page Hero (Interior Pages)
   ============================================================ */
.page-hero {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(40px, 6vw, 60px);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.page-hero--left .page-hero-header-block {
  text-align: left;
  margin: 0;
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.page-kicker .mark {
  width: 20px;
  height: 20px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.15;
}
.page-hero p {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.page-hero-media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--blue-tint);
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   Prose / Long-form Content
   ============================================================ */
.prose {
  max-width: 68ch;
}
.prose p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.68;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 36px 0 14px;
  color: var(--ink);
}
.prose ul, .prose ol {
  margin: 0 0 20px 24px;
  color: var(--ink-soft);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; font-size: 1.02rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.two-col.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.two-col.reverse .col-media {
  order: -1;
}
.col-media img {
  border-radius: 22px;
  width: 100%;
}
.sticky-media {
  position: sticky;
  top: 110px;
}

.checklist {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.checklist .mark {
  width: 24px;
  height: 24px;
  background: var(--blue-tint);
  border-radius: 7px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--blue);
}

/* ============================================================
   Platform Priority Sections
   ============================================================ */
.priority-full {
  padding: clamp(48px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}
.priority-full-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.priority-full-head .mark {
  width: 56px;
  height: 56px;
  background: var(--blue);
  border-radius: 16px;
  flex-shrink: 0;
  color: var(--white);
}
.priority-full-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.priority-full-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.priority-full-body img {
  border-radius: 20px;
  width: 100%;
}
.priority-full-body .prose p {
  font-size: 1rem;
}

.platform-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.platform-toc a {
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
  text-decoration: none;
}
.platform-toc a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-tint);
}

/* ============================================================
   Forms & Cards
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 70px rgba(18,18,28,0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .req {
  color: var(--blue);
}
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--blue-tint);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  outline: none;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.info-card {
  background: var(--blue);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 36px);
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--white);
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.96rem;
}
.info-row:first-of-type {
  border-top: none;
}
.info-row .mark {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.14);
  border-radius: 9px;
  flex-shrink: 0;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-row .mark svg {
  width: 18px;
  height: 18px;
  display: block;
}
.info-row a {
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s ease, text-decoration-color .2s ease;
}
.info-row a:hover {
  text-decoration: underline;
  opacity: 0.92;
}

/* ============================================================
   Standard Page / WordPress Gutenberg Styles
   ============================================================ */
.entry-content {
  margin-top: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.entry-content p {
  margin-bottom: 24px;
}
.entry-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 16px;
  color: var(--ink);
}
.entry-content h3 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--ink);
}
.entry-content h4 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--ink);
}
.entry-content ul, .entry-content ol {
  margin: 0 0 24px 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  font-style: italic;
}
.entry-content img {
  border-radius: 16px;
  margin: 24px 0;
}

/* Alignments */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
  margin: 0 24px 20px 0;
}
.alignright {
  float: right;
  margin: 0 0 20px 24px;
}
.alignwide {
  max-width: 1280px;
  width: 100%;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Post Navigation & Pagination */
.pagination, .posts-navigation, .post-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 48px 0;
}
.pagination .page-numbers,
.nav-links a {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all .2s ease;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.nav-links a:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Article Cards for Blog/Archive */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18,18,28,0.08);
}
.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-tint);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card-meta {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.post-card-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Utility */
.eyebrow-line {
  width: 46px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin-bottom: 18px;
}
.text-center {
  text-align: center;
}
.mt-lg {
  margin-top: 56px;
}
.hidden {
  display: none !important;
}

/* ============================================================
   100% Responsive Breakpoints
   ============================================================ */
.votecal-alert {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 22px;
}
.votecal-alert-success {
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  color: var(--blue);
  font-weight: 600;
}
.votecal-alert-error {
  background: #FFF0F0;
  border: 1px solid #FFD0D0;
  color: #D32F2F;
  font-weight: 600;
}
.form-submit-btn {
  position: relative;
  transition: all .2s ease;
}
.form-submit-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
}

@media (max-width: 1024px) {
  .priority-grid,
  .priority-grid.priority-grid-cols-3,
  .priority-grid.priority-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col,
  .two-col.reverse,
  .intro-block,
  .priority-full-body,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .two-col.reverse .col-media {
    order: 0;
  }
  .sticky-media {
    position: static;
  }
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero--candidate-bg {
    background-position: 84% 6%;
    min-height: 84vh;
    min-height: 84dvh;
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 12, 36, 0) 0%, rgba(8, 12, 36, 0) 24%, rgba(8, 12, 36, 0.45) 42%, rgba(8, 12, 36, 0.92) 64%, rgba(8, 12, 36, 0.98) 100%);
  }
  .hero-eyebrow {
    font-size: 0.82rem;
    padding: 6px 14px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 7.5vw, 2.9rem);
    line-height: 1.12;
  }
  .hero-lede {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-top: 14px;
    max-width: 100%;
  }
  .hero-ctas {
    margin-top: 24px;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .hero-ctas .btn {
    flex: 1 1 140px;
    padding: 12px 18px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 28px;
    width: 100%;
  }
  .hero-stat {
    padding: 10px 6px;
    text-align: center;
    border-radius: 12px;
    background: rgba(8, 12, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .hero-stat b {
    font-size: clamp(1.2rem, 4vw, 1.45rem);
    line-height: 1.1;
  }
  .hero-stat span {
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 2px;
  }
  .main-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 24px 50px rgba(18,18,28,0.14);
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all .22s var(--ease);
    z-index: 999;
  }
  .main-nav.is-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 13px 16px;
    border-radius: 10px;
    color: var(--ink-soft) !important;
  }
  .main-nav a:hover {
    color: var(--ink) !important;
    background: var(--blue-tint) !important;
  }
  .main-nav a.is-active,
  .main-nav .current-menu-item > a {
    color: var(--blue) !important;
    background: var(--blue-tint) !important;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-outline,
  .header-actions .btn-ghost-white {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-col--links,
  .footer-col--contact {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
  }
  .footer-links a {
    display: inline-block;
    padding: 6px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero--candidate-bg {
    background-position: 86% 5%;
    min-height: 82vh;
    min-height: 82dvh;
    padding-top: 96px;
    padding-bottom: 48px;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 12, 36, 0) 0%, rgba(8, 12, 36, 0) 20%, rgba(8, 12, 36, 0.50) 38%, rgba(8, 12, 36, 0.94) 60%, rgba(8, 12, 36, 0.99) 100%);
  }
  .hero h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.5rem);
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
    padding: 13px 20px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .hero-stat {
    padding: 8px 4px;
  }
  .hero-stat b {
    font-size: 1.15rem;
  }
  .hero-stat span {
    font-size: 0.68rem;
  }
  .priority-grid,
  .priority-grid.priority-grid-cols-2,
  .priority-grid.priority-grid-cols-3,
  .priority-grid.priority-grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band h2 {
    max-width: 100%;
  }
  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============================================================
   Elementor & Elementor Pro Integration
   ============================================================ */
.elementor-fullwidth-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.elementor-canvas-body {
  background: var(--white);
}
.elementor-canvas-content {
  width: 100%;
  min-height: 100vh;
}
body.elementor-page {
  overflow-x: hidden;
}
.elementor-editor-active .site-header {
  position: relative !important;
}

/* Elementor Pro Forms Integration */
.elementor-form .elementor-field-group {
  margin-bottom: 18px;
}
.elementor-form .elementor-field-group label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.elementor-form .elementor-field-textual {
  padding: 13px 16px !important;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background-color: var(--blue-tint) !important;
  font-family: var(--font-body) !important;
  font-size: 0.98rem !important;
  color: var(--ink) !important;
  transition: border-color .2s ease, background .2s ease;
}
.elementor-form .elementor-field-textual:focus {
  border-color: var(--blue) !important;
  background-color: var(--white) !important;
  outline: none !important;
}
.elementor-form .elementor-button {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 100px;
  padding: 14px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.elementor-form .elementor-button:hover {
  transform: translateY(-2px);
}
.elementor-message-success {
  background-color: var(--blue-tint) !important;
  color: var(--blue) !important;
  border-radius: 12px !important;
  border: 1px solid var(--blue-tint-2) !important;
  font-weight: 600 !important;
  padding: 14px 18px !important;
}


