/* Citizens for Fraternity — design tokens & layout */

:root {
  --color-bg: #f6f4f0;
  --color-surface: #fffcf7;
  --color-ink: #1a2332;
  --color-ink-muted: #4a5568;
  --color-border: #e2ddd4;
  --color-accent: #1e4d5c;
  --color-accent-hover: #163a46;
  --color-teal: #2d6a7a;
  --color-gold: #c9a227;
  --color-gold-soft: rgba(201, 162, 39, 0.15);
  --color-warn-bg: #fff4e5;
  --color-warn-border: #e8c48a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 35, 50, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max-w: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin: 0 0 1rem;
}

h2,
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}

h3,
.h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
  line-height: 1.7;
}

.small {
  font-size: 0.9rem;
}

.muted {
  color: var(--color-ink-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 1rem;
}

.logo:hover {
  color: var(--color-accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--color-accent), var(--color-teal));
  box-shadow: var(--shadow-sm);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  opacity: 0.85;
}

.logo-text {
  max-width: 200px;
  line-height: 1.2;
}

.logo-footer .logo-text {
  max-width: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-cta {
    flex-direction: column;
  }

  .nav-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-accent);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-gold-soft);
  color: var(--color-ink);
}

.btn-light {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--color-bg);
  color: var(--color-accent-hover);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, var(--color-gold-soft), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(30, 77, 92, 0.08), transparent 50%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}

.hero-quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-ink);
  line-height: 1.45;
}

.hero-quote p {
  margin: 0;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hero-stats li {
  display: grid;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.hero-stats li:first-child {
  padding-top: 0;
  border-top: none;
}

.hero-stats strong {
  font-size: 0.95rem;
  color: var(--color-accent);
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(30, 77, 92, 0.04), transparent);
}

.section-dark {
  background: linear-gradient(160deg, #1a3d4a 0%, #1e4d5c 45%, #163540 100%);
  color: #e8eef0;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-title {
  color: #fff;
}

.section-dark p {
  color: rgba(232, 238, 240, 0.88);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.center-text {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Split / about */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.split-card .h3 {
  color: var(--color-accent);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-elevated {
  background: rgba(255, 252, 247, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.card-elevated h3 {
  color: #fff;
  margin-top: 0.25rem;
}

.card-icon {
  font-size: 1rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* Features */
.feature-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.feature:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  min-width: 2.5rem;
}

.feature h3 {
  margin-bottom: 0.35rem;
}

.feature p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.steps li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  padding-top: 3rem;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-ink-muted);
}

/* Two column */
.two-col-section {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.two-col-reverse {
  grid-template-columns: 340px 1fr;
}

@media (max-width: 880px) {
  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
  }

  .two-col-reverse .aside-card {
    order: -1;
  }
}

.aside-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.aside-accent {
  background: linear-gradient(145deg, rgba(30, 77, 92, 0.06), var(--color-gold-soft));
  border-color: rgba(30, 77, 92, 0.12);
}

.aside-card .h3 {
  color: var(--color-accent);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.25rem 0;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--color-ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold-soft);
}

.bullet-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--color-ink-muted);
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.note-warn {
  background: var(--color-warn-bg);
  border: 1px solid var(--color-warn-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--color-ink);
}

/* CTA band */
.section-cta {
  background: linear-gradient(120deg, var(--color-accent) 0%, #256878 50%, #1a3d4a 100%);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-cta h2 {
  color: #fff;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  font-style: normal;
}

@media (max-width: 600px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

.contact-block .h3 {
  margin-bottom: 0.5rem;
}

.contact-block a {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #141c24;
  color: #b8c0c9;
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand .logo:hover {
  color: #fff;
  opacity: 0.9;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.disclaimer .h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca8b3;
  max-width: 720px;
}

.copyright {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #7a8794;
}
