/**
 * Autisme Rwanda website styles
 * Aligned with brand tokens (see brand.css)
 */
@import url("./brand.b5c09716e634.css");

:root {
  --ink: var(--ar-dark);
  --primary: var(--ar-blue);
  --accent: var(--ar-green);
  --sand: var(--ar-surface);
  --line: var(--ar-line);
  --shadow: var(--ar-shadow);
}

* {
  scroll-behavior: smooth;
}

body,
body.bg-white {
  font-family: var(--ar-font-sans);
  color: #475569;
  background: #ffffff;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ar-font-heading);
  color: var(--ar-dark);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

main p,
.prose p {
  line-height: 1.7;
}

.section-surface-green,
.section-surface-blue,
.section-surface-sky {
  background: #ffffff;
}

.site-pattern-section::before {
  opacity: 0.12;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(62, 89, 168, 0.08);
  color: var(--ar-blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--ar-blue), var(--ar-light-blue));
  color: #fff;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 28px rgba(62, 89, 168, 0.28);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(62, 89, 168, 0.34);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  color: var(--ar-ink);
  font-weight: 600;
  background: #fff;
  transition: border 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: rgba(62, 89, 168, 0.4);
  color: var(--ar-blue);
  transform: translateY(-1px);
}

.section-title {
  font-family: var(--ar-font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ar-blue);
  font-weight: 700;
}

.section-heading {
  font-family: var(--ar-font-heading);
  color: var(--ar-dark);
}

.hero-pattern {
  background: linear-gradient(135deg, #ffffff 0%, #f2f5fb 100%);
  border: 1px solid var(--line);
}

.site-pattern-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-pattern-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../images/pattern.3ba694665a2a.svg");
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: 0.38;
}

.section-surface-blue {
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 172, 228, 0.14), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #f7fbff 48%, #edf8f2 100%);
}

.section-surface-sky {
  background:
    radial-gradient(circle at 88% 16%, rgba(0, 172, 228, 0.16), transparent 28%),
    linear-gradient(135deg, #f1f9ff 0%, #eef6ff 52%, #f4fbf6 100%);
}

.section-surface-green {
  background:
    radial-gradient(circle at 14% 12%, rgba(35, 171, 75, 0.14), transparent 28%),
    linear-gradient(135deg, #f0faf4 0%, #f8fbff 50%, #eef5ff 100%);
}

.section-surface-screening {
  background:
    radial-gradient(circle at 16% 20%, rgba(62, 89, 168, 0.14), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(35, 171, 75, 0.12), transparent 26%),
    linear-gradient(135deg, #edf4ff 0%, #f5fbff 48%, #eefaf3 100%);
}

.section-surface-warm {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 245, 0, 0.1), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(62, 89, 168, 0.1), transparent 28%),
    linear-gradient(135deg, #fbfdff 0%, #f2f8ff 54%, #f3fbf5 100%);
}

.divider {
  height: 4px;
  width: 56px;
  background: linear-gradient(90deg, var(--ar-blue), var(--ar-sky));
  border-radius: 999px;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(35, 171, 75, 0.1);
  color: #166534;
  font-weight: 700;
  font-size: 0.75rem;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Header nav underline flourish */
header nav a {
  position: relative;
  transition: color 0.2s ease;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ar-blue), var(--ar-sky), var(--ar-green));
  transition: width 0.2s ease;
}

header nav a:hover::after,
header nav a.text-refac-blue::after,
header nav a.active::after {
  width: 100%;
}

/* Inputs */
input,
select,
textarea {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(62, 89, 168, 0.16);
  outline: none;
  border-color: rgba(62, 89, 168, 0.4);
}

/* Consistent max content width on wide screens */
.site-content-width {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .site-content-width {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-content-width {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Smooth section spacing on public pages */
.site-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .site-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}
