/* layout.css — Untapped Benefits, untb-prefixed classes.
 * Loaded alongside base.css and brand.css on every page. */

/* ─── Hero (index page) ─── */
.untbHero {
  background: linear-gradient(rgba(20,75,132,0.87), rgba(20,75,132,0.87)), url('/assets/usdollars.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.untbHeroBand {
  display: flex;
  align-items: stretch;
  min-height: 460px;
}
.untbHeroText {
  flex: 1 1 480px;
  padding: 4rem 3rem 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.untbEyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4db4ff;
  margin-bottom: 1rem;
  display: block;
}
.untbHeroText h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.untbHeroSub {
  font-size: 1.05rem;
  color: #a8d8ff;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 440px;
}
.untbHeroCtas { display: flex; gap: 1rem; flex-wrap: wrap; }
.untbBtnPrimary {
  display: inline-block;
  background: #0088ff;
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.untbBtnPrimary:hover { background: #0068c9; }
.untbBtnGhost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.25);
  color: #a8d8ff;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.untbBtnGhost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* Decorative panel (right side of hero) — "unlock" badge, no photography needed */
.untbHeroPanel {
  flex: 0 0 400px;
  background: #0088ff;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3rem 3rem 5rem;
}
.untbBadgeWrap {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}
.untbBadge {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: block;
}

/* ─── Info band (government-affiliation disclosure) ─── */
.untbInfoBand {
  background: #eaf5ff;
  border-bottom: 1px solid #cce7ff;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}
.untbInfoBand svg { flex-shrink: 0; }
.untbInfoBand span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #144b84;
}

/* ─── Feature rows ─── */
.untbFeatureSection {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.untbFeatureSection > h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #144b84;
  margin: 0 0 3rem;
  text-align: center;
}
.untbFeatureRow {
  display: flex;
  align-items: stretch;
  gap: 3rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #cce7ff;
}
.untbFeatureRow:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.untbFeatureRowReverse { flex-direction: row-reverse; }
.untbFeatPhoto {
  flex: 0 0 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20,75,132,0.14);
  min-height: 220px;
}
.untbFeatPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.untbFeatText { flex: 1; }
.untbFeatText h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #144b84;
  margin: 0 0 0.6rem;
}
.untbFeatText p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}

/* ─── How it works — vertical steps ─── */
.untbStepsSection {
  background: #f4f7fa;
  padding: 4rem 2.5rem;
  border-top: 1px solid #cce7ff;
  border-bottom: 1px solid #cce7ff;
}
.untbStepsInner {
  max-width: 760px;
  margin: 0 auto;
}
.untbStepsInner > h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #144b84;
  margin: 0 0 3rem;
  text-align: center;
}
.untbStepsList {
  position: relative;
  padding-left: 2rem;
}
.untbStepsList::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #cce7ff;
}
.untbStepItem {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.untbStepItem:last-child { margin-bottom: 0; }
.untbStepMarker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0088ff;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.untbStepContent { padding-top: 0.5rem; }
.untbStepContent h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #144b84;
  margin: 0 0 0.35rem;
}
.untbStepContent p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ─── Page hero (inner pages) ─── */
.untbPageHero {
  background: #144b84;
  color: #fff;
  padding: 3rem 2.5rem 2.5rem;
}
.untbPageHero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
  max-width: 1100px;
}
.untbPageHero p {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0.6rem 0 0;
  max-width: 560px;
  line-height: 1.6;
  color: #a8d8ff;
}

/* ─── Inline anchor nav (legal pages) ─── */
.untbAnchorNav {
  background: #fff;
  border-bottom: 1px solid #cce7ff;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.untbAnchorNav span {
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  margin-right: 0.25rem;
}
.untbAnchorNav a {
  color: #6b7280;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.untbAnchorNav a:hover { border-color: #0088ff; color: #0088ff; }

/* ─── Legal content ─── */
.untbLegalContent {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.untbLegalContent h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #144b84;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #cce7ff;
}
.untbLegalContent h2:first-child { margin-top: 0; border-top: none; }
.untbLegalContent p, .untbLegalContent li {
  font-size: 0.925rem;
  color: #374151;
  line-height: 1.8;
  margin: 0 0 0.85rem;
}
.untbLegalContent ul, .untbLegalContent ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}
.untbLegalContent a { color: #0088ff; }

/* ─── General content area ─── */
.untbContent {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.untbContent h1 { font-size: 1.8rem; font-weight: 800; color: #144b84; margin: 0 0 1rem; }
.untbContent h2 { font-size: 1.2rem; font-weight: 700; color: #144b84; margin: 2rem 0 0.6rem; }
.untbContent p, .untbContent li { font-size: 0.925rem; color: #374151; line-height: 1.8; margin: 0 0 0.85rem; }
.untbContent ul, .untbContent ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.untbContent a { color: #0088ff; }

/* ─── Highlight cards (about, contact) ─── */
.untbHighlightCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.untbHighlightCard {
  background: #fff;
  border: 1px solid #a8d8ff;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}
.untbHighlightCard .icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.untbHighlightCard h3 { font-size: 1rem; font-weight: 700; color: #144b84; margin: 0 0 0.35rem; }
.untbHighlightCard p { font-size: 0.85rem; color: #6b7280; margin: 0; }

/* ─── Footer (3-column) ─── */
.untbSiteFooter {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 3rem 2.5rem 1.5rem;
}
.untbFooterGrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.untbFooterBrand .untbFooterLogo {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 0.9rem;
}
.untbFooterBrand .untbFooterLogo img {
  display: block;
  height: 32px;
  width: auto;
}
.untbFooterBrand .untbTagline {
  font-size: 0.82rem;
  color: #7ec8ff;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.untbFooterBrand .untbDisclosure {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.6;
  border-left: 3px solid #0088ff;
  padding-left: 0.75rem;
}
.untbFooterCol h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1rem;
}
.untbFooterCol ul { list-style: none; margin: 0; padding: 0; }
.untbFooterCol ul li { margin-bottom: 0.55rem; }
.untbFooterCol ul li a {
  color: #7ec8ff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.untbFooterCol ul li a:hover { color: #a8d8ff; }
.untbFooterContact p {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.untbFooterContact a { color: #7ec8ff; text-decoration: none; }
.untbFooterContact a:hover { text-decoration: underline; }
.untbFooterBottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.untbFooterBottom p { font-size: 0.78rem; color: #94a3b8; margin: 0 0 0.3rem; }
.untbFooterBottom a { color: #cbd5e1; text-decoration: none; }
.untbFooterBottom a:hover { color: #a8d8ff; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .untbHeroBand { flex-direction: column; }
  .untbHeroPanel {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    flex: 0 0 240px;
    padding: 2rem;
    justify-content: center;
  }
  .untbHeroText { padding: 2.5rem 1.5rem 2rem; }
  .untbHeroText h1 { font-size: 2rem; }
  .untbFeatureRow { flex-direction: column !important; gap: 1.5rem; }
  .untbFeatPhoto { flex-basis: auto; width: 100%; height: 220px; min-height: 0; }
  .untbFooterGrid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 580px) {
  .untbInfoBand { padding: 0.9rem 1.25rem; text-align: left; }
  .untbHeroText h1 { font-size: 1.7rem; }
  .untbFooterGrid { grid-template-columns: 1fr; gap: 1.75rem; }
  .untbSiteFooter { padding: 2.5rem 1.25rem 1.25rem; }
  .untbFeatureSection { padding: 2.5rem 1.25rem; }
  .untbStepsSection { padding: 2.5rem 1.25rem; }
  .untbAnchorNav { padding: 0.85rem 1.25rem; }
}
