/* Chercharge legal & support portal — GitHub Pages */

:root {
  --ivory: #f7f3ea;
  --ivory-deep: #efe8d8;
  --cream: #faf7f0;
  --emerald: #0f3d2e;
  --emerald-mid: #1a5c45;
  --emerald-soft: #2a6b52;
  --gold: #c4a35a;
  --gold-dark: #9a7b3c;
  --muted: #5c6b63;
  --ink: #1a2420;
  --card: #fffcf6;
  --border: rgba(196, 163, 90, 0.35);
  --shadow: 0 8px 28px rgba(15, 61, 46, 0.08);
  --max: 720px;
  --header-max: 960px;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(15, 61, 46, 0.06), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--ivory) 45%, var(--ivory-deep) 100%);
}

.sans {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

a {
  color: var(--emerald-mid);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-dark);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--emerald);
  line-height: 1.2;
}

.brand-tag {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--emerald);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* Main */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

main.home {
  max-width: var(--header-max);
}

/* Hero / home */

.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.hero .subtitle {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--gold-dark);
}

.hero .lede {
  margin: 0 auto;
  max-width: 34rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--muted);
}

.portal-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .portal-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.portal-card:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-2px);
}

.portal-card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--emerald);
}

.portal-card p {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.portal-card .card-cta {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.35rem;
}

.home-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.home-note p {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
}

.home-note a {
  font-weight: 600;
}

/* Legal document pages */

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header .eyebrow {
  margin: 0 0 0.4rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--emerald);
  line-height: 1.2;
}

.page-meta {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--emerald);
  line-height: 1.3;
}

.legal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--emerald-mid);
}

.legal-body p,
.legal-body li {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
}

.legal-body p {
  margin: 0 0 0.9rem;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body li::marker {
  color: var(--gold-dark);
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  background: rgba(15, 61, 46, 0.05);
  border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout.urgent {
  background: rgba(154, 123, 60, 0.1);
  border-left-color: var(--gold-dark);
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.topic-list li {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.topic-list strong {
  display: block;
  color: var(--emerald);
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}

.contact-block {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-block h2 {
  margin-top: 0;
}

.contact-block .company {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald);
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(15, 61, 46, 0.04);
}

.footer-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald);
}

.footer-inner p {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-nav a {
  text-decoration: none;
  color: var(--emerald-mid);
}

.footer-nav a:hover {
  color: var(--gold-dark);
}

.footer-copy {
  margin-top: 0.75rem !important;
  font-size: 0.8rem !important;
}
