/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:          #0f0d0c;
  --bg-card:     #191614;
  --bg-subtle:   #221e1b;
  --border:      #2e2926;
  --text:        #f0ebe0;
  --text-muted:  #8a8078;
  --orange:      #e05c2a;
  --orange-dim:  #7a3015;
  --teal:        #2d9a78;
  --teal-dim:    #1a5444;
  --danger:      #c0392b;
  --font-display:'Fraunces', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      8px;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: #f07040; }

.text-muted { color: var(--text-muted) !important; }

/* ─── Utility ───────────────────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  background: rgba(15, 13, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--orange); }

.navbar-toggler {
  border-color: var(--border);
  padding: 0.35rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240,235,224,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--text) !important; }

.btn-nav {
  background: var(--orange);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover {
  background: #f07040;
  transform: translateY(-1px);
}

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(224,92,42,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 15% 80%, rgba(45,154,120,0.08) 0%, transparent 55%),
    var(--bg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(224,92,42,0.12);
  border: 1px solid rgba(224,92,42,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-headline .underline-accent {
  position: relative;
  display: inline-block;
  color: var(--orange);
}
.hero-headline .underline-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(224,92,42,0.3);
}
.btn-primary-custom:hover {
  background: #f07040;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(224,92,42,0.4);
  color: #fff;
}

.btn-ghost-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost-custom:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 520px;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224,92,42,0.2) 0%, rgba(15,13,12,0.3) 100%);
}

.hero-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(15,13,12,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  z-index: 2;
  min-width: 160px;
}
.hero-badge .stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--orange);
  line-height: 1;
}
.hero-badge .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-scroll i { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ─── Section Shared ────────────────────────────────────── */
section { padding: 5rem 0; }

.section-header {
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 1rem;
}

/* ─── Why It Matters ────────────────────────────────────── */
#why {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-card .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-card .unit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange);
  vertical-align: super;
}
.stat-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

.why-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.why-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.pull-quote {
  border-left: 3px solid var(--orange);
  padding: 1rem 1.5rem;
  background: rgba(224,92,42,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text) !important;
  margin: 0;
  line-height: 1.6;
}

/* ─── Stories ───────────────────────────────────────────── */
#stories { background: var(--bg); }

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.story-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  opacity: 0;
  transition: opacity var(--transition);
}
.story-card:hover {
  border-color: rgba(224,92,42,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.story-card:hover::before { opacity: 1; }

.story-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}
.story-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

.story-card .author-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}
.story-card .author-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.story-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 1rem 0 0.5rem;
  line-height: 1.3;
}
.story-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 1rem;
}
.tag.tag-orange {
  background: rgba(224,92,42,0.1);
  border-color: rgba(224,92,42,0.25);
  color: var(--orange);
}
.tag.tag-teal {
  background: rgba(45,154,120,0.1);
  border-color: rgba(45,154,120,0.25);
  color: var(--teal);
}

/* ─── RateMDs ───────────────────────────────────────────── */
#ratemds {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.ratemds-card {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(224,92,42,0.08) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.ratemds-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
}

.ratemds-card h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.ratemds-card > .row > .col-md-7 > p,
.ratemds-card > .row > div > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.featured-doctor {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.featured-doctor:hover {
  border-color: rgba(224,92,42,0.4);
  transform: translateY(-2px);
}

.doc-avatar {
  width: 56px;
  height: 56px;
  background: rgba(224,92,42,0.1);
  border: 1px solid rgba(224,92,42,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--orange);
  flex-shrink: 0;
}

.doc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.featured-blurb {
  font-size: 0.85rem !important;
  color: var(--text-muted);
  line-height: 1.6 !important;
  margin: 0 0 1.1rem 0 !important;
}

.btn-ratemds {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.7rem 1.1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(224,92,42,0.22);
}
.btn-ratemds:hover {
  background: #f07040;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(224,92,42,0.32);
  color: #fff;
}

/* ─── CPSO ──────────────────────────────────────────────── */
#cpso {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cpso-card {
  background: linear-gradient(135deg, rgba(45,154,120,0.08) 0%, rgba(224,92,42,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.cpso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
}

.cpso-icon {
  width: 64px;
  height: 64px;
  background: rgba(45,154,120,0.12);
  border: 1px solid rgba(45,154,120,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
  flex-shrink: 0;
}

.cpso-card h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.cpso-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.cpso-card .label { color: var(--teal); }

.btn-cpso {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--teal);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(45,154,120,0.25);
}
.btn-cpso:hover {
  background: #38b48d;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,154,120,0.35);
  color: #fff;
}

.cpso-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

/* Ontario law reference card — secondary block under CPSO */
.law-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}
.law-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--text-muted);
  opacity: 0.5;
}
.law-card:hover { border-color: rgba(138,128,120,0.5); }

.law-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.law-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.law-card h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.law-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.btn-law {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-law:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ─── Share Your Story ──────────────────────────────────── */
#share {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-wrap {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  border-color: rgba(224,92,42,0.5);
  box-shadow: 0 0 0 3px rgba(224,92,42,0.12);
  color: var(--text);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-card); }

.form-check-input {
  background-color: var(--bg-card);
  border-color: var(--border);
}
.form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}
.form-check-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(224,92,42,0.25);
}
.btn-submit:hover {
  background: #f07040;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(224,92,42,0.35);
}

.success-state {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
.success-state .checkmark {
  width: 64px;
  height: 64px;
  background: rgba(45,154,120,0.15);
  border: 1px solid rgba(45,154,120,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal);
  margin: 0 auto 1.25rem;
}
.success-state h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.success-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── About ─────────────────────────────────────────────── */
#about {
  background: var(--bg);
  text-align: center;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-icon {
  width: 72px;
  height: 72px;
  background: rgba(224,92,42,0.1);
  border: 1px solid rgba(224,92,42,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
  margin: 0 auto 1.75rem;
}

.about-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.about-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: left;
}
.value-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.value-item i {
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.value-item h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.value-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.footer-brand span { color: var(--orange); }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── View counter ──────────────────────────────────────── */
.view-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 1.75rem;
  padding: 0.7rem 1.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
/* center the pill */
.footer-bottom { text-align: center; }
.footer-bottom .row { text-align: initial; }

.view-counter i {
  color: var(--orange);
  font-size: 1.05rem;
}
.view-counter .vc-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}
.view-counter .vc-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* live pulse dot */
.view-counter .vc-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45,154,120,0.6);
  animation: vc-pulse 2s infinite;
}
@keyframes vc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,154,120,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(45,154,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,154,120,0); }
}

.disclaimer {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.disclaimer i { color: var(--danger); margin-right: 0.3rem; }

/* ─── Newsletter (footer) ───────────────────────────────── */
.newsletter-blurb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.newsletter-form .form-control {
  background: var(--bg-subtle);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}
.newsletter-form .form-control.is-invalid {
  border-color: rgba(192,57,43,0.55);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.newsletter-error {
  font-size: 0.72rem;
  color: var(--danger);
  margin-top: 0.45rem;
  min-height: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.newsletter-error.visible { opacity: 1; }

.newsletter-success {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(45,154,120,0.1);
  border: 1px solid rgba(45,154,120,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
  animation: newsletter-pop 0.35s ease;
}
.newsletter-success.visible { display: flex; }
.newsletter-success i {
  color: var(--teal);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.newsletter-success strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.1rem;
}
.newsletter-success span {
  color: var(--text-muted);
  word-break: break-all;
}

@keyframes newsletter-pop {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Mobile Overrides ──────────────────────────────────── */
@media (max-width: 767.98px) {
  section { padding: 3.5rem 0; }

  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }

  .form-wrap { padding: 1.5rem; }

  .ratemds-card { padding: 1.75rem 1.5rem; }

  .cpso-card { padding: 1.75rem 1.5rem; }
  .cpso-meta { margin-left: 0; margin-top: 0.75rem; display: flex; }

  .law-card { padding: 1.5rem; }

  .values-grid { grid-template-columns: 1fr; }

  .hero-scroll { display: none; }

  .hero-img-wrap { max-height: 280px; aspect-ratio: 16/9; margin-top: 2.5rem; }
}
