/* =====================================================================
   Homepage — design system v2 (2026-11-23)
   Bold navy/cobalt hero with noken mesh texture and tifa bands; light,
   structured content sections; three high-contrast government cards.
   Tokens come from ds.css. See docs/07-ui-ux-design-system.md.
   ===================================================================== */

.homepage { color: var(--c-ink); background: #fff; }
.homepage .section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.homepage .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); flex-wrap: wrap; }
.homepage .section-head h2 { margin: 0; }
.homepage .section-lede { margin: var(--space-2) 0 0; color: var(--c-muted); max-width: 60ch; }
.homepage .section-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: var(--fs-body); font-weight: 650; color: var(--c-cobalt-600); text-decoration: none; }
.homepage .section-more:hover { text-decoration: underline; color: var(--c-cobalt-800); }
.homepage .arrow { flex: none; transition: transform var(--ease); }
.homepage a:hover > .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.homepage .hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(2.5rem, 5.5vw, 4.5rem) 0 calc(clamp(2.5rem, 5.5vw, 4.5rem) + 16px);
  background: linear-gradient(102deg, var(--c-navy-900) 0 57%, var(--c-ochre-400) 57% 58%, var(--c-cobalt-600) 58% 100%);
  border: 0;
}
.homepage .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--motif-noken) repeat 0 0 / 48px 48px; opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}
.homepage .hero::after { content: ""; position: absolute; inset: auto 0 0; height: 16px; background: var(--motif-tifa) repeat-x left center / 48px 16px; pointer-events: none; }
.homepage .hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.homepage .hero-copy { min-width: 0; padding: 0; }
.homepage .hero-kicker { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--c-ochre-400); margin-bottom: var(--space-4); }
.homepage .hero-kicker::before { content: ""; width: 32px; height: 10px; background: var(--motif-tifa) repeat-x left center / 30px 10px; flex: none; }
.homepage .hero h1 { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.03em; color: #fff; margin: 0 0 var(--space-4); }
.homepage .hero h1 em { font-style: normal; color: var(--c-ochre-400); display: block; }
.homepage .hero-lede { font-size: var(--fs-lead); color: #d6e2f2; max-width: 48ch; margin: 0 0 var(--space-5); }

.homepage .hero-search { display: block; max-width: 620px; }
.homepage .hero-search label { display: block; font-size: var(--fs-small); font-weight: 650; color: #fff; margin-bottom: var(--space-2); }
.homepage .search-row { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 10px 30px #0006; }
.homepage .search-row input[type="search"] { flex: 1; min-width: 0; min-height: 52px; border: 0; padding: 0 .9rem; font-size: var(--fs-body); color: var(--c-ink); background: transparent; border-radius: var(--radius); }
.homepage .search-row input::placeholder { color: #64748b; }
.homepage .search-row .btn { min-height: 52px; padding-inline: 1.4rem; }

.homepage .hero-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-5); max-width: 620px; font-size: inherit; }
.homepage .quick-tile {
  display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: .85rem 1rem;
  border-radius: var(--radius-lg); font-weight: 650; font-size: var(--fs-body); line-height: 1.3; text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.homepage .quick-tile > span { flex: 1; min-width: 0; width: auto; color: inherit; }
.homepage .quick-tile > svg:first-child { flex: none; }
.homepage .quick-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px #fff; }
.homepage .quick-tile.tone-0 { background: var(--c-ochre-400); color: var(--c-navy-900); }
.homepage .quick-tile.tone-1 { background: var(--c-teal-800); color: #fff; }
.homepage .quick-tile.tone-2 { background: var(--c-terra-800); color: #fff; }
.homepage .quick-tile.tone-3 { background: #fff; color: var(--c-navy-900); }
.homepage .quick-tile.tone-3 > svg:first-child { color: var(--c-cobalt-600); }
.homepage .quick-tile:hover { color: inherit; }
.homepage .quick-tile.tone-1:hover, .homepage .quick-tile.tone-2:hover { color: #fff; }

.homepage .hero-feature {
  position: relative; display: block; min-height: 0; transform: none; overflow: hidden;
  background: #fff; color: var(--c-ink); border-radius: var(--radius-lg); box-shadow: 0 24px 48px #0b1f3a59;
}
.homepage .hero-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; z-index: 1; background: var(--motif-tifa) repeat-x left center / 36px 12px; }
.homepage .hero-feature > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.homepage .hero-feature:hover > img { transform: scale(1.02); }
.homepage .hero-feature-caption { position: relative; padding: var(--space-5); background: #fff; }
.homepage .feature-label { display: inline-block; background: var(--c-terra-800); color: #fff; font-size: var(--fs-label); font-weight: 700; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 4px; }
.homepage .hero-feature h2 { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -.01em; margin: var(--space-3) 0; color: var(--c-navy-900); }
.homepage .hero-feature h2 a { color: var(--c-navy-900); text-decoration: none; }
.homepage .hero-feature h2 a:hover { color: var(--c-cobalt-600); text-decoration: underline; }
.homepage .hero-feature time { font-size: var(--fs-small); color: var(--c-muted); }

/* ---------- Announcement strip ---------- */
.homepage .announcement-strip { background: var(--c-sand-50); color: var(--c-ink); border-bottom: 1px solid #ecd9ad; }
.homepage .announcement-strip .container { display: flex; align-items: center; gap: var(--space-3) var(--space-5); flex-wrap: wrap; min-height: 72px; padding-block: var(--space-3); }
.homepage .strip-label { display: inline-flex; align-items: center; gap: .4rem; background: var(--c-terra-800); color: #fff; font-size: var(--fs-small); font-weight: 700; padding: .4rem .75rem; border-radius: 4px; }
.homepage .announcement-strip .strip-title { color: var(--c-navy-900); font-weight: 650; font-size: var(--fs-body); }
.homepage .announcement-strip time { color: var(--c-muted); font-size: var(--fs-small); }
.homepage .announcement-strip .strip-more { margin-left: auto; color: var(--c-cobalt-600); font-weight: 650; font-size: var(--fs-small); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Leadership ---------- */
.homepage .leadership-section { background: var(--c-gray-50); color: var(--c-ink); padding-top: clamp(3rem, 6vw, 4.5rem); }
.homepage .leadership-section h2 { color: var(--c-navy-900); }
.homepage .leadership-section a { color: var(--c-navy-900); }
.homepage .leadership-section .section-more { color: var(--c-cobalt-600); }
.homepage .leadership-grid { gap: var(--space-5); align-items: stretch; }
.homepage .leader-portrait { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; transition: transform var(--ease), box-shadow var(--ease); }
.homepage .leader-portrait:hover { transform: translateY(-3px); box-shadow: 0 2px 4px #0b1f3a1f, 0 16px 32px #0b1f3a24; }
.homepage .leadership-section .portrait-frame { flex: none; aspect-ratio: 4 / 5; max-height: none; border: 0; }
.homepage .portrait-caption { position: relative; flex: 1; padding: calc(12px + var(--space-4)) var(--space-5) var(--space-5); border: 0; }
.homepage .portrait-caption::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: var(--motif-tifa) repeat-x left center / 36px 12px; }
.homepage .portrait-caption .eyebrow { color: var(--c-amber-800); margin: 0 0 var(--space-2); }
.homepage .portrait-caption h3 { font-size: var(--fs-card); line-height: 1.4; margin: 0; letter-spacing: 0; }
.homepage .leadership-empty { border-left: 6px solid var(--c-ochre-400); background: #fff; padding: var(--space-5); }
.homepage .leadership-empty h3 { font-size: var(--fs-h3); margin-top: 0; }

/* ---------- Services ---------- */
.homepage .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--space-4); }
.homepage .service-link {
  --tone: var(--c-cobalt-600);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); height: 100%;
  padding: var(--space-5); background: #fff; color: var(--c-navy-900); text-decoration: none;
  border: 1px solid var(--c-line); border-top: 6px solid var(--tone); border-radius: var(--radius-lg);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.homepage .service-tone-1 { --tone: var(--c-terra-800); background: #fff; }
.homepage .service-tone-2 { --tone: var(--c-teal-800); background: #fff; }
.homepage .service-link:hover { transform: translateY(-3px); border-color: var(--tone); box-shadow: var(--shadow-card); color: var(--c-navy-900); }
.homepage .service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--tone); color: #fff; flex: none; }
.homepage .service-link strong { font-size: var(--fs-card); line-height: 1.4; font-weight: 650; overflow-wrap: break-word; }
.homepage .service-ext { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-size: var(--fs-small); font-weight: 650; color: var(--tone); }
.homepage .service-link:hover .service-ext { text-decoration: underline; }

/* ---------- News ---------- */
.homepage .news-section { background: var(--c-gray-50); }
.homepage .editorial-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--space-5); align-items: stretch; }
.homepage .editorial-news .news-item { display: flex; flex-direction: column; gap: 0; padding: 0; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.homepage .editorial-news .news-item .news-image-link { display: block; flex: none; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.homepage .editorial-news .news-item .news-thumb { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.homepage .news-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); }
.homepage .news-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: var(--fs-small); color: var(--c-muted); line-height: 1.5; }
.homepage .news-meta > span:first-child { color: var(--c-cobalt-600); font-weight: 700; }
.homepage .editorial-news .news-title { font-size: var(--fs-card); line-height: 1.4; letter-spacing: 0; font-weight: 650; margin: 0; }
.homepage .news-title a { color: var(--c-navy-900); text-decoration: none; }
.homepage .news-title a:hover { color: var(--c-cobalt-600); text-decoration: underline; }

/* ---------- Government cards (bold) ---------- */
.homepage .gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.homepage .gov-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: calc(16px + var(--space-5)) var(--space-5) var(--space-5); border-radius: var(--radius-lg); color: #e8eef7; }
.homepage .gov-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; background: var(--motif-tifa) repeat-x left center / 48px 16px; }
.homepage .gov-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--motif-noken) repeat 0 0 / 48px 48px; opacity: .12;
  -webkit-mask-image: linear-gradient(200deg, #000 0, transparent 55%); mask-image: linear-gradient(200deg, #000 0, transparent 55%);
}
.homepage .gov-card.tone-navy { background: var(--c-navy-900); }
.homepage .gov-card.tone-teal { background: var(--c-teal-800); }
.homepage .gov-card.tone-terra { background: var(--c-terra-800); }
.homepage .gov-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: #ffffff1f; color: var(--c-ochre-400); margin-bottom: var(--space-4); }
.homepage .gov-card h3 { color: #fff; font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.homepage .gov-card p { color: #e8eef7; margin: 0 0 var(--space-5); }
.homepage .gov-links { list-style: none; margin: auto 0 0; padding: 0; display: block; }
.homepage .gov-links li { border-top: 1px solid #ffffff38; }
.homepage .gov-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: .6rem 0; color: #fff; font-weight: 600; font-size: var(--fs-body); text-decoration: none; border: 0; }
.homepage .gov-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.homepage .gov-links a .arrow { color: var(--c-ochre-400); }

/* ---------- Reports & contact ---------- */
.homepage .reports-section { background: #fff; padding-top: 0; }
.homepage .reports-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.homepage .report-list { display: grid; margin-bottom: var(--space-5); }
.homepage .report-link { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) 0; border-bottom: 1px solid var(--c-line); min-height: 0; }
.homepage .report-link:first-child { border-top: 1px solid var(--c-line); }
.homepage .report-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--c-sky-50); color: var(--c-cobalt-600); flex: none; }
.homepage .report-link time { font-size: var(--fs-small); color: var(--c-muted); }
.homepage .report-link h3 { font-size: var(--fs-card); line-height: 1.4; margin: .2rem 0 0; font-weight: 650; }
.homepage .report-link h3 a { color: var(--c-navy-900); text-decoration: none; }
.homepage .report-link h3 a:hover { color: var(--c-cobalt-600); text-decoration: underline; }
.homepage .contact-panel { position: relative; overflow: hidden; background: var(--c-sand-50); border: 1px solid #ecd9ad; border-radius: var(--radius-lg); padding: calc(16px + var(--space-5)) var(--space-5) var(--space-5); }
.homepage .contact-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; background: var(--motif-tifa) repeat-x left center / 48px 16px; }
.homepage .contact-panel h2 { font-size: var(--fs-h2); margin: 0 0 var(--space-4); }
.homepage .contact-panel address { font-style: normal; font-weight: 600; color: var(--c-ink); margin-bottom: var(--space-3); }
.homepage .contact-panel p { color: var(--c-muted); }

/* ---------- Responsive ---------- */
@media (min-width: 1200px) { .homepage .editorial-news { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .homepage .hero { background: var(--c-navy-900); }
  .homepage .hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70%); mask-image: linear-gradient(180deg, transparent 0, #000 70%); }
  .homepage .hero-grid { grid-template-columns: 1fr; }
  .homepage .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage .gov-grid, .homepage .reports-layout { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .homepage .section-head { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .homepage .service-grid, .homepage .editorial-news { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .homepage .service-link { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: var(--space-4); row-gap: var(--space-2); }
  .homepage .service-icon { grid-row: span 2; }
  .homepage .service-ext { margin-top: 0; }
  .homepage .announcement-strip .strip-more { margin-left: 0; }
  .homepage .announcement-strip .strip-title { flex-basis: 100%; }
}
@media (max-width: 419px) {
  .homepage .quick-tile { flex-direction: column; align-items: flex-start; gap: var(--space-2); min-height: 96px; font-size: .9375rem; }
  .homepage .quick-tile .arrow { display: none; }
  .homepage .search-row .btn { padding-inline: .9rem; }
  .homepage .gov-card, .homepage .contact-panel { padding-inline: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .homepage .quick-tile, .homepage .service-link, .homepage .leader-portrait, .homepage .hero-feature > img, .homepage .arrow { transition: none; }
  .homepage .quick-tile:hover, .homepage .service-link:hover, .homepage .leader-portrait:hover, .homepage .hero-feature:hover > img, .homepage a:hover > .arrow { transform: none; }
}
