/*
Theme Name:        VDA Appeals (Staging)
Theme URI:         https://staging.vetclaimappeals.com/
Description:       Clean, accessible, mobile-first classic theme for the Veterans Disability Aid rebuild. Appeals only. No page-builder dependency and no tracking code. All copy is PLACEHOLDER until approved by Alan A. Watt.
Author:            VDA Web Developer
Version:           0.2.11
Requires at least: 6.4
Tested up to:      6.8
Requires PHP:      8.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       vda-appeals
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--vda-navy: #12284c;
	--vda-navy-dark: #0b1a33;
	--vda-red: #a3142b;          /* 7.1:1 on white */
	--vda-gold: #f2c14e;
	--vda-text: #1d1d1f;
	--vda-muted: #4a4f57;        /* 8:1 on white */
	--vda-bg: #ffffff;
	--vda-bg-alt: #f3f5f9;
	--vda-border: #c9d0dc;
	--vda-focus: #ffbf47;
	--vda-placeholder-bg: #fff6d6;
	--vda-placeholder-border: #b38600;
	--vda-radius: 6px;
	--vda-max: 72rem;
	--vda-measure: 42rem;
	--vda-space: clamp(1rem, 2.5vw, 1.5rem);
	--vda-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Base (mobile first)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--vda-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--vda-text);
	background: var(--vda-bg);
	padding-bottom: 4.5rem; /* room for sticky mobile call bar */
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--vda-navy); text-underline-offset: .15em; }
a:hover { color: var(--vda-red); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--vda-navy-dark); margin: 1.5em 0 .5em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-top: .5em; }
h2 { font-size: clamp(1.375rem, 3.5vw, 1.875rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid var(--vda-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--vda-navy-dark);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */
.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:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: .5rem; left: .5rem; z-index: 1000; padding: .75rem 1rem;
	background: var(--vda-bg); color: var(--vda-navy-dark); font-weight: 700;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--vda-max); margin: 0 auto; padding: 0 var(--vda-space); }
.site-main { padding: var(--vda-space) 0 calc(var(--vda-space) * 2); }
.entry-content > * { max-width: var(--vda-measure); }
.entry-content > .alignwide, .entry-content > .vda-grid { max-width: none; }
.vda-grid { display: grid; gap: var(--vda-space); grid-template-columns: 1fr; }
.vda-card {
	border: 1px solid var(--vda-border); border-radius: var(--vda-radius);
	padding: var(--vda-space); background: var(--vda-bg);
}
.vda-card h3 { margin-top: 0; }
.vda-section { padding: calc(var(--vda-space) * 1.5) 0; }
.vda-section--alt { background: var(--vda-bg-alt); }

@media (min-width: 48em) {
	body { padding-bottom: 0; }
	.vda-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.vda-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   5. Header and navigation
   ========================================================================== */
.staging-banner {
	background: var(--vda-red); color: #fff; text-align: center;
	font-size: .875rem; font-weight: 700; padding: .35rem var(--vda-space);
}
.site-header { background: var(--vda-navy); color: #fff; }
.site-header a { color: #fff; }
.site-header__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: .75rem; padding-top: .75rem; padding-bottom: .75rem;
}
.site-branding { font-weight: 800; font-size: 1.125rem; text-decoration: none; }
.site-branding .custom-logo { max-height: 56px; width: auto; }
/* Header call button: shown on phones too (team decision, Nov 16, 2026). The .button rule
   below also sets inline-flex; this rule makes that intentional instead of an override.
   0.2.10: inline SVG icon sits to the left of 1-800-921-0310; keep the number on one line. */
.header-phone { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; flex-shrink: 0; }
.vda-phone__icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	display: block;
}

.menu-toggle {
	min-height: 44px; min-width: 44px; padding: .5rem .9rem;
	background: transparent; color: #fff; border: 2px solid #fff; border-radius: var(--vda-radius);
	font: inherit; font-weight: 700; cursor: pointer;
}
.no-js .menu-toggle { display: none; }
.primary-nav { flex-basis: 100%; }
.js .primary-nav[data-open="false"] { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: block; padding: .75rem .25rem; min-height: 44px;
	border-top: 1px solid rgba(255,255,255,.2); text-decoration: none; font-weight: 600;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { text-decoration: underline; }
.primary-nav .sub-menu a { padding-left: 1.25rem; font-weight: 400; }

@media (min-width: 62em) {
	.menu-toggle { display: none; }
	.js .primary-nav[data-open="false"], .primary-nav { display: block; flex-basis: auto; }
	.primary-nav > ul { display: flex; gap: 1.25rem; }
	.primary-nav a { border-top: 0; padding: .5rem 0; }
	.primary-nav .sub-menu { display: none; }
}

/* ==========================================================================
   6. Buttons and click-to-call
   ========================================================================== */
.button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .65rem 1.25rem; border-radius: var(--vda-radius);
	background: var(--vda-red); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.button:hover { background: var(--vda-navy-dark); color: #fff; }
.button--ghost { background: transparent; border-color: currentColor; color: inherit; }
.header-phone.button { background: var(--vda-gold); color: var(--vda-navy-dark); }
@media (max-width: 29.99em) {
	.header-phone.button { padding-left: .7rem; padding-right: .7rem; }
}

.mobile-call-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
	display: flex; gap: .5rem; padding: .5rem; background: var(--vda-navy-dark);
	box-shadow: 0 -2px 8px rgba(0,0,0,.25);
}
.mobile-call-bar .button { flex: 1; }
@media (min-width: 48em) { .mobile-call-bar { display: none; } }

/* ==========================================================================
   7. Placeholder and compliance notes
   ========================================================================== */
.vda-placeholder {
	background: var(--vda-placeholder-bg); outline: 2px dashed var(--vda-placeholder-border);
	padding: .1em .3em; border-radius: 3px;
}
div.vda-placeholder, p.vda-placeholder { display: block; padding: .75rem 1rem; margin: 0 0 1em; }
.vda-placeholder__label { font-weight: 800; letter-spacing: .03em; }
.vda-notice {
	border-left: 6px solid var(--vda-navy); background: var(--vda-bg-alt);
	padding: 1rem 1.25rem; margin: 1.25rem 0; max-width: var(--vda-measure);
}
.vda-notice--warning { border-left-color: var(--vda-red); }
/* Trust page (/verify-va-accreditation/): bordered disclosure under the H1, accreditation box. */
.vda-disclosure { border: 2px solid var(--vda-navy); border-left-width: 6px; }
.vda-disclosure p { margin: 0; }
.vda-accred-box { margin: 1.25rem 0; max-width: var(--vda-measure); }
.vda-accred-box .button { margin: .25rem 0; }
.vda-accred-number { margin-bottom: 0; }
.vda-reviewed-by { color: var(--vda-muted, inherit); }

/* ==========================================================================
   8. Checklist
   ========================================================================== */
.vda-checklist fieldset { border: 1px solid var(--vda-border); border-radius: var(--vda-radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.vda-checklist legend { font-weight: 700; padding: 0 .35rem; }
.vda-checklist label { display: flex; gap: .65rem; align-items: flex-start; padding: .4rem 0; min-height: 44px; cursor: pointer; }
.vda-checklist input[type="checkbox"] { width: 1.35rem; height: 1.35rem; margin-top: .15rem; flex: none; accent-color: var(--vda-navy); }

/* ==========================================================================
   9. Testimonials
   ========================================================================== */
.vda-testimonial { margin: 0; }
.vda-testimonial blockquote { margin: 0 0 .5rem; font-size: 1.125rem; }
.vda-testimonial figcaption { color: var(--vda-muted); font-size: .95rem; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--vda-navy-dark); color: #e9edf5; padding: calc(var(--vda-space) * 2) 0 var(--vda-space); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.125rem; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0 0 .4rem; }
.site-footer address { font-style: normal; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.2); margin-top: var(--vda-space); padding-top: var(--vda-space); font-size: .875rem; }
.site-footer .vda-placeholder { color: var(--vda-text); }
/* NOVA membership badge (footer). Logo sits on a white tile; the image itself is never recolored. */
.nova-badge { display: flex; align-items: center; gap: 1rem; margin-top: var(--vda-space); border-top: 1px solid rgba(255,255,255,.2); padding-top: var(--vda-space); }
.nova-badge__logo { display: inline-block; flex: 0 0 auto; background: #fff; border-radius: 6px; padding: 6px; line-height: 0; }
.nova-badge__logo img { display: block; width: 100px; height: auto; }
.nova-badge__text { margin: 0; font-size: .9rem; }
@media (max-width: 480px) { .nova-badge { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   11. Print (checklist and legal pages print cleanly)
   ========================================================================== */
@media print {
	.staging-banner, .site-header nav, .menu-toggle, .mobile-call-bar, .site-footer nav, .skip-link { display: none !important; }
	body { padding: 0; font-size: 12pt; color: #000; }
	a { color: #000; }
	.vda-placeholder { outline: 1px dashed #000; background: none; }
}


/* Pizza analogy images (page 36 How VA Combines Ratings; reused from live /uploads/2024/03/) */
.entry-content img[src*="pizza"] {
  display: block;
  max-width: min(320px, 100%);
  width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 8px;
}

/* ==========================================================================
   Cookie banner and footer Cookie settings button (theme 0.2.4, Nov 19, 2026)
   Fixed bar at the bottom. JS lifts it above the mobile call bar (z-index 900) and adds
   page padding while it is open, so it never hides the footer or the call bar.
   ========================================================================== */
.vda-consent {
	position: fixed; left: 0; right: 0; bottom: 4rem; z-index: 950;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
	max-height: 60vh; overflow-y: auto;
	padding: .75rem var(--vda-space);
	background: var(--vda-navy-dark); color: #fff; font-size: .95rem; line-height: 1.45;
	border-top: 3px solid var(--vda-gold); box-shadow: 0 -2px 10px rgba(0,0,0,.3);
}
.vda-consent[hidden] { display: none; }
.vda-consent__text { margin: 0; flex: 1 1 18rem; max-width: 60rem; }
.vda-consent__text a { color: #fff; font-weight: 700; }
.vda-consent__actions { display: flex; flex: 0 0 auto; gap: .5rem; flex-wrap: wrap; }
.vda-consent__btn { cursor: pointer; font: inherit; font-weight: 700; min-width: 7rem; }
.vda-consent__btn--accept { background: var(--vda-gold); color: var(--vda-navy-dark); border-color: var(--vda-gold); }
.vda-consent__btn--accept:hover { background: #fff; color: var(--vda-navy-dark); }
.vda-consent .button--ghost { color: #fff; border-color: #fff; }
.vda-consent .button--ghost:hover { background: #fff; color: var(--vda-navy-dark); }
@media (max-width: 30em) {
	.vda-consent__actions { width: 100%; }
	.vda-consent__btn { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 48em) { .vda-consent { bottom: 0; } }
html.vda-consent-open body { padding-bottom: calc(4.5rem + var(--vda-consent-h, 0px)); }
@media (min-width: 48em) { html.vda-consent-open body { padding-bottom: var(--vda-consent-h, 0px); } }

.site-footer .vda-cookie-settings {
	background: none; border: 0; padding: .25rem 0; margin: 0; min-height: 1.75rem;
	font: inherit; color: #fff; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; text-align: left;
}
.site-footer .vda-cookie-settings:hover { color: var(--vda-gold); }
@media print { .vda-consent, .vda-cookie-settings { display: none !important; } }

/* ==========================================================================
   12. Request Help Today lead form (0.2.9). Sitewide band above the footer and
   after the Contact page content. Ninja Forms markup, restyled to the theme.
   ========================================================================== */
/* 0.2.11: band uses the same boxed card as Contact (box moved onto __inner). */
.vda-lead--band { background: none; border-top: 0; padding: calc(var(--vda-space) * 2) 0; }
.vda-lead--contact { margin-top: calc(var(--vda-space) * 2); padding: var(--vda-space); background: var(--vda-bg-alt); border-top: 4px solid var(--vda-navy); border-radius: var(--vda-radius); }
.vda-lead__inner { max-width: var(--vda-measure); }
.vda-lead--band .vda-lead__inner { margin: 0; padding: var(--vda-space); background: var(--vda-bg-alt); border-top: 4px solid var(--vda-navy); border-radius: var(--vda-radius); }
.vda-lead__title { color: var(--vda-navy); margin: 0 0 .75rem; font-size: clamp(1.5rem, 3vw, 1.875rem); text-transform: uppercase; letter-spacing: .01em; }
.vda-lead__intro { margin: 0 0 1rem; color: var(--vda-muted); }
.vda-lead .nf-form-fields-required { font-size: .875rem; color: var(--vda-muted); margin-bottom: .75rem; }
.vda-lead .nf-field-container { margin-bottom: 1rem; }
.vda-lead .nf-field-label label, .vda-lead .nf-field-label .nf-label-span { color: var(--vda-navy); font-weight: 600; font-size: .95rem; }
.vda-lead .ninja-forms-req-symbol, .vda-lead .nf-error-msg, .vda-lead .nf-error .nf-error-msg { color: var(--vda-red); }
.vda-lead input[type="text"], .vda-lead input[type="email"], .vda-lead input[type="tel"], .vda-lead select, .vda-lead textarea {
	width: 100%; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: .55rem .7rem; font: inherit; font-size: 1rem;
	color: var(--vda-text); background: #fff; border: 1px solid var(--vda-border); border-radius: var(--vda-radius);
}
.vda-lead textarea { min-height: 8rem; }
.vda-lead input:focus, .vda-lead select:focus, .vda-lead textarea:focus { outline: 3px solid var(--vda-focus); outline-offset: 1px; border-color: var(--vda-navy); }
.vda-lead .nf-error input, .vda-lead .nf-error select, .vda-lead .nf-error textarea { border-color: var(--vda-red); }
.vda-lead .checkbox-wrap .nf-field-element input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; }
.vda-lead .label-right .checkbox-wrap .nf-field-element { width: 1.75rem; }
.vda-lead .label-right .checkbox-wrap .nf-field-label { flex: 1 1 0; width: auto; padding-left: .25rem; align-items: flex-start; }
.vda-lead .checkbox-wrap .nf-field-label label { font-weight: 400; color: var(--vda-text); font-size: .9rem; line-height: 1.45; }
.vda-lead input[type="submit"], .vda-lead input[type="button"].ninja-forms-field {
	display: inline-block; min-height: 44px; padding: .7rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer;
	color: #fff; background: var(--vda-red); border: 2px solid var(--vda-red); border-radius: var(--vda-radius);
}
.vda-lead input[type="submit"]:hover { background: var(--vda-navy-dark); border-color: var(--vda-navy-dark); }
.vda-lead input[type="submit"]:focus { outline: 3px solid var(--vda-focus); outline-offset: 2px; }
.vda-lead .nf-response-msg { padding: 1rem; background: #fff; border-left: 4px solid var(--vda-navy); }
@media print { .vda-lead { display: none !important; } }
