/*
Theme Name: MIUSA Public Gateway
Theme URI: https://a.miusa.one/
Author: Made in USA / Verity One
Description: Lightweight, accessible public-service theme for the MIUSA information gateway.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: miusa-public
*/

:root {
  --navy: #071b33;
  --blue: #0a4d8c;
  --blue-2: #1269ad;
  --red: #b9232e;
  --gold: #d9a441;
  --ink: #17243a;
  --muted: #536176;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --line: #d8e0e9;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(7, 27, 51, .1);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.miusa-wrap { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 9999; padding: .8rem 1rem; background: white; color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.notice { background: var(--navy); color: white; font-size: .93rem; }
.notice .miusa-wrap { display: flex; justify-content: center; gap: .6rem; padding: .55rem 0; text-align: center; }
.notice a { color: #fff; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 78px; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(145deg, var(--blue), var(--navy)); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); font-size: .78rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: .65rem .72rem; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 650; border-radius: 8px; }
.primary-nav a:hover { background: var(--wash); color: var(--blue); }
.utility-actions { display: flex; gap: .45rem; }
.button, .wp-element-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1rem; border: 2px solid transparent; border-radius: 10px; background: var(--blue); color: white; text-decoration: none; font-weight: 750; line-height: 1.2; }
.button:hover, .wp-element-button:hover { background: var(--navy); color: white; }
.button.secondary { background: white; color: var(--blue); border-color: var(--blue); }
.button.ghost { background: transparent; color: white; border-color: rgba(255,255,255,.7); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; background: white; padding: .65rem .8rem; font-weight: 700; }
.hero { overflow: hidden; color: white; background: radial-gradient(circle at 80% 10%, rgba(18,105,173,.7), transparent 38%), linear-gradient(135deg, #06172b, #0a3764); }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 4rem; padding: 6rem 0; }
.eyebrow { margin: 0 0 .8rem; color: #9fd1ff; font-size: .82rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0; color: white; font-size: clamp(2.8rem, 6vw, 5.8rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
.hero .lede { max-width: 720px; color: #dbeafd; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.trust-panel { padding: 1.6rem; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.08); box-shadow: var(--shadow); }
.trust-panel h2 { margin-top: 0; color: white; font-size: 1.25rem; }
.trust-panel ol { margin: 0; padding-left: 1.3rem; }
.trust-panel li { padding: .45rem 0; color: #e5f1ff; }
.section { padding: 5.5rem 0; }
.section.wash { background: var(--wash); }
.section.dark { color: white; background: var(--navy); }
.section.dark h2, .section.dark h3 { color: white; }
.section-head { max-width: 780px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: #c8d7e8; }
.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; padding: 1.6rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(7,27,51,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #abc5dd; }
.card h3 { margin-top: .25rem; }
.card p { color: var(--muted); }
.card a.stretched::after { position: absolute; inset: 0; content: ""; }
.card-tag { color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.steps { counter-reset: steps; }
.step { padding-left: 4.5rem; }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 1.3rem; top: 1.4rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: white; background: var(--red); font-weight: 850; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.proof-list { display: grid; gap: .8rem; }
.proof-item { padding: 1rem 1.1rem; border-left: 4px solid var(--gold); background: rgba(255,255,255,.07); border-radius: 0 10px 10px 0; }
.legal { padding: 1.25rem 1.4rem; border: 1px solid #e9ca89; border-left: 5px solid var(--gold); border-radius: 10px; background: #fff9ec; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; }
.news-card time { color: var(--muted); font-size: .85rem; }
.news-card .source { margin-top: auto; padding-top: 1rem; font-weight: 700; }
.cta { border-radius: 26px; background: linear-gradient(135deg, var(--red), #7e1722); color: white; padding: 3rem; }
.cta h2 { margin-top: 0; color: white; }
.site-footer { padding: 4rem 0 2rem; color: #cbd7e5; background: #041224; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2, .site-footer h3 { color: white; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #dceaff; }
.copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; }
.page-main { min-height: 60vh; }
.page-hero { padding: 4rem 0 2rem; background: var(--wash); }
.page-hero h1 { color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.5rem); }
.content { max-width: 820px; padding: 3.5rem 0 5rem; }
.content > * + * { margin-top: 1.2rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 1rem; background: white; border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .utility-actions { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 4.5rem 0; }
  .grid.three, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .hero-grid { gap: 2rem; }
  .grid.three, .grid.two, .news-grid, .proof-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .cta { padding: 2rem 1.3rem; }
}

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