/* FANAAR Policy Center — matches the main site's brand (colors, font, card/button treatment). */

@font-face {
  font-family: "Avant Garde";
  src: url("../../fonts/ITC Avant Garde Gothic Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avant Garde";
  src: url("../../fonts/ITC Avant Garde Gothic Book Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f7f0e7;
  --brown: #6e3414;
  --orange: #d9662b;
  --magenta: #b45b86;
  --teal: #2f7c7a;
  --ink: #6e3414;
  --ink-soft: rgba(110, 52, 20, 0.7);
  --ink-faint: rgba(110, 52, 20, 0.5);
  --line: rgba(110, 52, 20, 0.15);
  --card-bg: rgba(255, 255, 255, 0.55);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Avant Garde", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */

.site-nav {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--brown);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--brown);
}
.nav-cta {
  background: var(--orange);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.nav-cta:hover {
  background: var(--brown);
}
.crumb {
  font-size: 13px;
  color: var(--ink-faint);
}
.crumb a {
  text-decoration: none;
  color: var(--ink-soft);
}
.crumb a:hover {
  color: var(--brown);
}
.crumb .sep {
  margin: 0 8px;
}
.crumb .current {
  color: var(--brown);
  font-weight: 700;
}

/* ---------- Policy Center hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  text-align: center;
}
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero--plain {
  text-align: left;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.hero--plain .dek {
  margin: 0;
  max-width: 520px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--brown);
}
.dek {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 12px;
}
.hero-lede {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-meta-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stat b {
  font-size: 24px;
  color: var(--brown);
}
.hero-stat span {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Category / policy card grid ---------- */

.category-block {
  margin: 56px 0;
}
.category-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.category-head h2 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--brown);
}
.cat-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.policy-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(110, 52, 20, 0.25);
}
.policy-card .num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.policy-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--brown);
}
.policy-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.policy-card .card-meta {
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.policy-card .arrow {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Directory ---------- */

.directory {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.directory h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 20px;
}
.dir-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.dir-grid a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.dir-grid a:hover {
  color: var(--brown);
}

/* ---------- CTA ---------- */

.center-cta {
  text-align: center;
  padding: 56px 0;
}
.btn {
  display: inline-block;
  background: var(--brown);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background: var(--orange);
}

/* ---------- Individual policy page hero ---------- */

.policy-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.back-to-center {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  transition: color 0.2s ease;
}
.back-to-center:hover {
  color: var(--brown);
}
.policy-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  color: var(--brown);
  margin: 0 0 12px;
}
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chip {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Individual policy page body ---------- */

.policy-body-wrap {
  padding: 48px 0 80px;
}
.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.side-toc {
  position: sticky;
  top: 24px;
}
.side-toc h6 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.side-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-toc a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.side-toc a:hover {
  color: var(--brown);
}

.policy-content h2 {
  font-size: 24px;
  color: var(--brown);
  margin: 40px 0 16px;
}
.policy-content section:first-child h2 {
  margin-top: 0;
}
.policy-content h3 {
  font-size: 17px;
  color: var(--brown);
  margin: 28px 0 12px;
}
.policy-content p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.policy-content strong {
  color: var(--brown);
}
.policy-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-content a:hover {
  color: var(--brown);
}
.policy-content ul {
  color: var(--ink-soft);
  padding-left: 20px;
  margin: 0 0 16px;
}
.policy-content li {
  margin-bottom: 8px;
}
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}
.policy-content th,
.policy-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.policy-content th {
  color: var(--brown);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.policy-content td {
  color: var(--ink-soft);
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 8px;
}
.contact-card h2 {
  margin-top: 0 !important;
}

.policy-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.policy-nav a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 45%;
}
.policy-nav .next {
  text-align: right;
  align-items: flex-end;
  margin-left: auto;
}
.policy-nav .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.policy-nav .ttl {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
}

.related-block {
  margin-top: 48px;
}
.related-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-card {
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--brown);
  transition: background-color 0.2s ease;
}
.related-card:hover {
  background: rgba(217, 102, 43, 0.15);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand {
  color: var(--cream);
}
.footer-blurb {
  font-size: 13px;
  color: rgba(247, 240, 231, 0.7);
  line-height: 1.7;
  margin: 14px 0 0;
}
.footer-blurb a {
  color: rgba(247, 240, 231, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(247, 240, 231, 0.55);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(247, 240, 231, 0.85);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 240, 231, 0.15);
  font-size: 12px;
  color: rgba(247, 240, 231, 0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .side-toc {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta-row {
    gap: 24px;
  }
  .policy-nav {
    flex-direction: column;
  }
  .policy-nav a,
  .policy-nav .next {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-nav .wrap {
    justify-content: flex-start;
  }
}
