/*
Theme Name: Voice America 2026 Bold
Theme URI: https://voiceamerica.us/
Author: SonicTel (built by Grok Bot)
Description: Bolder modern refresh of Voice America 2026. Same SEO contracts as the conservative 1.0.2 theme (titles, Yoast meta, one H1, JSON-LD, permalinks, sidebar widgets).
Version: 1.0.3
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: voiceamerica-2026-bold
*/

:root {
  --va-red: #c4121c;
  --va-red-dark: #9a0e16;
  --va-red-soft: #f8e8e9;
  --va-ink: #12151c;
  --va-ink-soft: #1b2030;
  --va-paper: #f4f1ec;
  --va-card: #fff;
  --va-muted: #5c6370;
  --va-line: #e4dfd7;
  --va-max: 1120px;
  --va-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --va-display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --va-header-h: 64px;
  --va-radius: 14px;
  --va-shadow: 0 10px 30px rgba(18, 21, 28, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  background: var(--va-paper);
  color: var(--va-ink);
  font: 17px/1.65 var(--va-font);
}
img, video, iframe, embed, object { max-width: 100%; height: auto; }
a { color: var(--va-red-dark); }
a:hover, a:focus { color: var(--va-red); }
:focus-visible { outline: 3px solid #e0a500; outline-offset: 2px; }
.visually-hidden, .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--va-max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100001; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--va-line);
  box-shadow: 0 1px 0 rgba(196, 18, 28, 0.35);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--va-header-h);
}
.site-brand {
  margin: 0;
  font: 700 1.05rem/1.1 var(--va-display);
  letter-spacing: -0.02em;
  flex: 1 1 auto;
  min-width: 0;
}
.site-brand a {
  color: var(--va-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}
.site-brand a:hover, .site-brand a:focus { color: var(--va-red); }
.site-brand .brand-rest { font-weight: 650; color: var(--va-muted); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--va-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.header-phone:hover, .header-phone:focus { background: var(--va-red-dark); color: #fff !important; }
.header-phone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.site-nav { border-top: 1px solid var(--va-line); background: #fff; }
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--va-line);
  background: #fff;
  color: var(--va-ink);
  border-radius: 8px;
  padding: 8px 12px;
  font: 650 0.9rem/1 var(--va-font);
  cursor: pointer;
}
.menu, .site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}
.menu li { margin: 0; }
.menu a {
  display: block;
  padding: 10px 12px;
  color: var(--va-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a:focus,
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current_page_ancestor > a {
  color: var(--va-red);
  border-bottom-color: var(--va-red);
}

/* Desktop flyouts. ILC Folding sets inline display/height on page-list <ul>s;
   !important + height:auto keeps the menu under theme control (same as 1.0.2). */
@media (min-width: 900px) {
  .site-nav .menu { display: flex !important; height: auto !important; }
  .site-nav .menu > li { position: relative; }
  .site-nav .children {
    display: none !important;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--va-line);
    border-radius: 10px;
    box-shadow: var(--va-shadow);
    padding: 8px 0;
    z-index: 50;
    height: auto !important;
    overflow: visible;
  }
  .site-nav .children li { position: relative; }
  .site-nav .children .children {
    left: 100%;
    top: 0;
  }
  .site-nav li:hover > .children,
  .site-nav li:focus-within > .children { display: block !important; }
  .site-nav .children a { font-weight: 600; padding: 8px 16px; border-bottom: 0; white-space: nowrap; }
}

/* No-JS phones: the full menu stays visible. JS adds .js, then we hide it
   behind the Menu button (1.0.2 pattern). Do not hide #primary-menu without .js. */
@media (max-width: 899px) {
  .header-bar { min-height: 56px; }
  .site-brand { font-size: 0.98rem; }
  .header-phone { padding: 7px 10px; font-size: 0.85rem; }
  .site-nav .wrap { flex-wrap: wrap; }
  /* No-JS: don't pin a menu taller than the screen over the page. */
  html:not(.js) .site-header { position: static; }
  html.js .site-nav .nav-toggle { display: inline-flex; margin: 8px 0; }
  .site-nav .menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 8px;
  }
  html.js .site-nav .menu { display: none !important; }
  html.js .site-nav.is-open .menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    height: auto !important;
    max-height: calc(100svh - 11rem);
    overflow-y: auto;
    width: 100%;
    padding-bottom: 8px;
  }
  .site-nav .children {
    display: block !important;
    height: auto !important;
    position: static;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding-left: 14px;
    border: 0;
  }
  .menu a { padding: 12px 4px; border-bottom-color: var(--va-line); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 18, 28, 0.35), transparent 55%),
    linear-gradient(180deg, #1a1012 0%, var(--va-ink) 55%, #0e1118 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero .wrap { max-width: 980px; }
.hero-kicker {
  margin: 0 0 12px;
  color: #f3c7ca;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nowrap { white-space: nowrap; }
.hero-title {
  margin: 0 0 16px;
  font: 800 clamp(2rem, 5vw, 3.4rem)/1.08 var(--va-display);
  letter-spacing: -0.03em;
}
.hero-sub {
  margin: 0 0 28px;
  max-width: 38rem;
  color: #d7dbe3;
  font-size: 1.15rem;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-call { background: var(--va-red); color: #fff !important; }
.btn-call:hover, .btn-call:focus { background: #fff; color: var(--va-ink) !important; }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover, .btn-ghost:focus { background: #fff; color: var(--va-ink) !important; border-color: #fff; }

/* ---------- Sections ---------- */
.band { padding: 56px 0; }
.band-title {
  margin: 0 0 8px;
  font: 750 1.65rem/1.2 var(--va-display);
  letter-spacing: -0.02em;
}
.band-lead { margin: 0 0 28px; color: var(--va-muted); max-width: 40rem; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  background: var(--va-card);
  border: 1px solid var(--va-line);
  border-radius: var(--va-radius);
  padding: 22px 20px 20px;
  box-shadow: var(--va-shadow);
}
.service-card h2 {
  margin: 0 0 8px;
  font: 700 1.05rem/1.3 var(--va-display);
}
.service-card p { margin: 0; color: var(--va-muted); font-size: 0.95rem; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--va-red-soft);
  color: var(--va-red);
  margin-bottom: 14px;
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.logo-band { background: #fff; border-top: 1px solid var(--va-line); border-bottom: 1px solid var(--va-line); padding: 32px 0; }
.logo-band .band-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--va-muted); font-weight: 700; margin-bottom: 20px; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 28px 36px;
}
.logo-row img { max-height: 72px; width: auto; max-width: 220px; object-fit: contain; }

.quote-band { background: var(--va-ink); color: #fff; }
.quote-band blockquote { margin: 0; max-width: 48rem; }
.quote-band p {
  margin: 0 0 18px;
  font: 600 clamp(1.2rem, 2.4vw, 1.6rem)/1.45 var(--va-display);
  letter-spacing: -0.02em;
}
.quote-band footer { color: #c9ced8; font-size: 0.95rem; }

/* ---------- Content + sidebar ---------- */
.site-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 48px 20px 64px;
  width: 100%;
  max-width: var(--va-max);
  margin: 0 auto;
}
.front-legacy { padding-top: 8px; }
.front-legacy .legacy-label {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--va-muted);
}
.content { min-width: 0; max-width: 100%; overflow-x: auto; }
.entry-title, .page-title {
  margin: 0 0 16px;
  font: 750 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--va-display);
  letter-spacing: -0.02em;
}
.entry, .entry-content { min-width: 0; }
.entry-content { overflow-wrap: break-word; }
.entry-content h1, .entry-content h2, .entry-content .va26-h1, .entry-content h3 {
  font-family: var(--va-display);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.entry-content table { max-width: 100% !important; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 4px 6px; vertical-align: top; word-break: normal; overflow-wrap: break-word; }
.entry-content [style*="width"] { max-width: 100% !important; }
.entry-content img[width] { height: auto; }
.entry-content ul { padding-left: 1.3em; }
.entry-content .alignleft, .alignleft { float: left; margin: 0 1em .5em 0; }
.entry-content .alignright, .alignright { float: right; margin: 0 0 .5em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.edit-link { font-size: 0.85rem; }
.entry-meta { color: var(--va-muted); font-size: 0.92rem; }
.paging { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0; }

/* Forms (Contact Form 7, search, comments) — restored from 1.0.2 */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], textarea, select {
  width: 100%; max-width: 520px; padding: 10px 12px;
  border: 1px solid #b9b9b9; border-radius: 4px; font: inherit;
}
input[type=submit], button[type=submit], .wpcf7-submit {
  background: var(--va-red); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 22px; font: 600 1rem var(--va-font); cursor: pointer;
}
input[type=submit]:hover, .wpcf7-submit:hover { background: var(--va-red-dark); }

.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sidebar .widget, .widget {
  background: var(--va-card);
  border: 1px solid var(--va-line);
  border-radius: var(--va-radius);
  padding: 18px;
  box-shadow: var(--va-shadow);
}
.widget-title { margin: 0 0 12px; font: 700 1.05rem/1.3 var(--va-display); }
.widget img { max-width: 100%; height: auto; }
.widget ul { padding-left: 1.1em; }

@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .site-body { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}

/* Constrain legacy inline widths/fonts on small screens (1.0.2 rules, not stacked cells) */
@media (max-width: 599px) {
  .entry-content table, .entry-content tbody, .entry-content tr { width: 100% !important; }
  .entry-content table[width], .entry-content table[style*="width"] { width: 100% !important; }
  .entry-content table { table-layout: fixed; }
  .entry-content td, .entry-content th { white-space: normal !important; }
  .entry-content td[width], .entry-content td[style*="width"] { width: auto !important; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 1em; display: block; }
  .entry-content font[size], .entry-content span[style*="font-size"] { font-size: inherit !important; }
}
@media (max-width: 899px) {
  .entry-content table,
  .entry-content img { max-width: 100% !important; }
  .hero { padding: 40px 0 48px; }
  .band { padding: 40px 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--va-ink);
  color: #c9ced8;
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer h2 {
  margin: 0 0 8px;
  color: #fff;
  font: 700 0.95rem/1.3 var(--va-display);
}
.site-footer p, .site-footer li { margin: 0 0 6px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus { color: #f3c7ca; }
.site-footer .footer-phone {
  display: inline-block;
  color: #fff;
  font-weight: 750;
  font-size: 1.2rem;
  text-decoration: none;
  margin: 4px 0 8px;
}
.footer-legal {
  border-top: 1px solid #2a3142;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #8b93a3;
}
.rss-link { float: right; margin-left: 12px; }
.rss-link img { width: 24px; height: 24px; opacity: 0.8; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
