/* ================================================
   OCC Site — Shared Styles (layout-styles.css)
   ================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0F3A5E;
  --navy-deep: #0A2A45;
  --gold: #D98C0A;
  --gold-deep: #B5730A;
  --cream: #FBEDD4;
  --cream-line: #F0D9A8;
  --paper: #FFFFFF;
  --stone: #F6F4EF;
  --ink: #1A2027;
  --ink-soft: #4A5568;
  --line: #E4E0D8;
  --focus: #1E6FD9;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Layout containers ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
section.alt { background: var(--stone); }

.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head .kicker {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-head h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-head p { margin-top: 12px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #E39A1F; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-secondary:hover { border-color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: #CFE0EE;
  font-size: 13.5px;
  font-weight: 600;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.utility-bar .lang-note { color: #9FB6C9; font-weight: 500; }
.utility-bar .lang-note b { color: #CFE0EE; font-weight: 700; }

/* ---------- Site header ---------- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { line-height: 1.15; }
.brand-text .eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-text .name {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.brand-text .subtitle {
  color: #B9C7D3;
  font-size: 11.5px;
  font-weight: 600;
}

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  color: #D7E3EC;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
nav.main-nav a:hover { color: #fff; }

.header-call {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.header-call svg { width: 16px; height: 16px; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #D7E3EC;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:hover { color: #fff; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: #B9C7D3;
  padding: 48px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 17px; }
footer .col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
footer .col ul { list-style: none; }
footer .col li { margin-bottom: 10px; }
footer .col a { text-decoration: none; color: #B9C7D3; }
footer .col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13px;
  color: #7E93A5;
  flex-wrap: wrap;
  gap: 10px;
}

/* ================================================
   Homepage
   ================================================ */

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero .lede {
  margin-top: 18px;
  font-size: 18px;
  color: #CFE0EE;
  max-width: 46ch;
  line-height: 1.55;
}
.cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: #9FB6C9;
}

/* Trust card in hero */
.trust-card {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 26px 26px 8px;
}
.trust-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.trust-stat .num { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; }
.trust-stat .label { font-size: 14px; color: #CFE0EE; font-weight: 600; max-width: 20ch; }
.trust-list { list-style: none; margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.trust-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #D7E3EC;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-list li:last-child { border-bottom: none; }
.trust-list svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--gold); }

/* ---------- Eligibility ---------- */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.eligibility-grid h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.eligibility-grid p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.eligibility-grid .more-detail { margin-top: 14px; }
.eligibility-grid .more-detail summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.eligibility-grid .more-detail summary::-webkit-details-marker { display: none; }
.eligibility-grid .more-detail summary svg { width: 14px; height: 14px; transition: transform 0.15s; }
.eligibility-grid .more-detail[open] summary svg { transform: rotate(90deg); }
.eligibility-grid .more-detail .detail-body {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}

.process-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
  background: #fff;
}
.process-box .not-eligible-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Reasons checklist ---------- */
.reasons-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.reasons-list { list-style: none; }
.reasons-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.5;
}
.reasons-list li:first-child { padding-top: 0; }
.reasons-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-deep); margin-top: 2px; }

.cta-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 32px 30px;
}
.cta-panel h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.cta-panel p { color: #CFE0EE; font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.cta-panel .btn-primary { width: 100%; justify-content: center; }
.cta-panel .btn-secondary { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- Accessibility ---------- */
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.access-card { padding: 4px 0; }
.access-card .icon-wrap {
  width: 46px; height: 46px;
  background: var(--cream);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.access-card .icon-wrap svg { width: 24px; height: 24px; color: var(--gold-deep); }
.access-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.access-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.access-card strong { color: var(--ink); }

/* ---------- Credibility strip ---------- */
.credibility {
  background: var(--navy-deep);
  color: #fff;
  padding: 48px 0;
}
.credibility .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.credibility h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.credibility p { color: #CFE0EE; font-size: 15.5px; line-height: 1.65; }
.credibility .press-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #9FB6C9;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.press-list { display: flex; flex-direction: column; gap: 10px; }
.press-list li {
  font-size: 14.5px;
  color: #D7E3EC;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.press-list li:last-child { border-bottom: none; }
.press-list b { color: #fff; }
.press-list a { text-decoration: underline; text-underline-offset: 2px; }
.press-list a:hover { color: var(--gold); }

/* ================================================
   Submission Portals (routing widget)
   ================================================ */
.occ-routing { background: var(--stone); padding: 64px 0; }
.occ-routing .occ-head { max-width: 60ch; margin: 0 auto 40px; text-align: center; }
.occ-routing .occ-head h2 {
  font-size: 28px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 10px;
}
.occ-routing .occ-head p { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.occ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.occ-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 26px; display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.occ-icon {
  width: 100px; height: 100px; background: var(--cream); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; overflow: hidden; flex-shrink: 0;
}
.occ-icon img { max-width: 74px; max-height: 74px; object-fit: contain; display: block; }
.occ-card h3 {
  font-size: 17.5px; font-weight: 700; color: var(--navy); margin: 0 0 4px; line-height: 1.3;
}
.occ-card .occ-sub { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.occ-card p {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 10px 0 22px; flex-grow: 1;
}
.occ-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14.5px; padding: 12px 20px;
  border-radius: 8px; text-decoration: none;
  background: var(--gold); color: var(--navy-deep); white-space: nowrap;
}
.occ-btn:hover { background: #E39A1F; }
.occ-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ================================================
   Annual Reports
   ================================================ */
.occ-rpt-section { margin-bottom: 48px; }
.occ-rpt-section-title {
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.occ-rpt-year { margin-bottom: 24px; }
.occ-rpt-year-label {
  font-size: 14px; font-weight: 700; color: var(--gold-deep);
  text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px;
}

.occ-rpt-list {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}
.occ-rpt-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.occ-rpt-row:last-child { border-bottom: none; }

.occ-rpt-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.occ-rpt-icon svg { width: 18px; height: 18px; color: var(--gold-deep); }

.occ-rpt-info { flex-grow: 1; min-width: 0; }
.occ-rpt-title { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.occ-rpt-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.occ-rpt-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-weight: 800; font-size: 13.5px; padding: 12px 16px;
  border-radius: 8px; text-decoration: none;
  background: var(--gold); color: var(--navy-deep); white-space: nowrap;
}
.occ-rpt-btn:hover { background: #E39A1F; }
.occ-rpt-btn svg { width: 14px; height: 14px; }

/* ================================================
   Ombudsperson Appointment (downloads)
   ================================================ */
.occ-dl-list {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}
.occ-dl-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.occ-dl-row:last-child { border-bottom: none; }

.occ-dl-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.occ-dl-icon svg { width: 20px; height: 20px; color: var(--gold-deep); }

.occ-dl-info { flex-grow: 1; min-width: 0; }
.occ-dl-title { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.occ-dl-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.occ-dl-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 800; font-size: 14px; padding: 12px 18px;
  border-radius: 8px; text-decoration: none;
  background: var(--gold); color: var(--navy-deep); white-space: nowrap;
}
.occ-dl-btn:hover { background: #E39A1F; }
.occ-dl-btn svg { width: 15px; height: 15px; }

/* ================================================
   OCC Flyer Downloads
   ================================================ */
.occ-fly { background: var(--stone); padding: 56px 0; }
.occ-fly .occ-fly-head p { font-size: 15.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.occ-fly-list {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}
.occ-fly-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.occ-fly-row:last-child { border-bottom: none; }

.occ-fly-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.occ-fly-icon svg { width: 20px; height: 20px; color: var(--gold-deep); }

.occ-fly-info { flex-grow: 1; min-width: 0; }
.occ-fly-title { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.occ-fly-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.occ-fly-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 800; font-size: 14px; padding: 12px 18px;
  border-radius: 8px; text-decoration: none;
  background: var(--gold); color: var(--navy-deep); white-space: nowrap;
}
.occ-fly-btn:hover { background: #E39A1F; }
.occ-fly-btn svg { width: 15px; height: 15px; }

/* ================================================
   PACT/RAD Resources
   ================================================ */
.occ-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.occ-res-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 26px; display: flex; flex-direction: column;
}
.occ-res-icon {
  width: 46px; height: 46px; background: var(--cream); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.occ-res-icon svg { width: 22px; height: 22px; color: var(--gold-deep); }
.occ-res-card h3 {
  font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; line-height: 1.35;
}
.occ-res-card p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 20px; flex-grow: 1;
}
.occ-res-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 800; font-size: 14.5px; padding: 11px 18px;
  border-radius: 8px; text-decoration: none;
  background: var(--gold); color: var(--navy-deep); white-space: nowrap;
}
.occ-res-btn:hover { background: #E39A1F; }
.occ-res-btn svg { width: 15px; height: 15px; }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 900px) {
  /* Header/footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 28px 20px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
  }
  nav.main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  /* Homepage */
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 34px; max-width: none; }
  .eligibility-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .reasons-layout { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; gap: 24px; }
  .credibility .wrap { grid-template-columns: 1fr; }
  /* Subpages */
  .occ-grid { grid-template-columns: 1fr; }
  .occ-res-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  section { padding: 48px 0; }
  .header-call span.full { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .utility-bar .wrap { font-size: 12.5px; }
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: 28px; }
  .occ-rpt-row { flex-wrap: wrap; }
  .occ-rpt-btn { width: 100%; justify-content: center; margin-top: 6px; }
  .occ-dl-row { flex-wrap: wrap; }
  .occ-dl-btn { width: 100%; justify-content: center; margin-top: 6px; }
  .occ-fly-row { flex-wrap: wrap; }
  .occ-fly-btn { width: 100%; justify-content: center; margin-top: 6px; }
}

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