/* =====================================================
   PsychiatryEMRs.com Design System
   Calm, clinical yet warm. Designed for psychiatrists.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,300..1000;1,6..12,300..1000&display=swap');

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-deep: #1e293b;
  --navy-mid: #334155;
  --navy-soft: #475569;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --sage: #86a789;
  --sage-light: #a7c4aa;
  --sage-pale: #e8f0e9;
  --lavender: #c4b5fd;
  --lavender-light: #ddd6fe;
  --lavender-pale: #ede9fe;
  --warm-white: #fafafa;
  --cloud: #f0f4f8;
  --cloud-deep: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-rose: #f472b6;
  --accent-sky: #7dd3fc;
  --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.06), 0 1px 2px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 41, 59, 0.08), 0 2px 4px rgba(30, 41, 59, 0.04);
  --shadow-lg: 0 10px 30px rgba(30, 41, 59, 0.1), 0 4px 8px rgba(30, 41, 59, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--warm-white);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c1.2 0 2.2.8 2.4 2l.6 3.5c.3 2 1.8 3.5 3.8 3.8l3.5.6c1.2.2 2 1.2 2 2.4s-.8 2.2-2 2.4l-3.5.6c-2 .3-3.5 1.8-3.8 3.8l-.6 3.5c-.2 1.2-1.2 2-2.4 2s-2.2-.8-2.4-2l-.6-3.5c-.3-2-1.8-3.5-3.8-3.8l-3.5-.6c-1.2-.2-2-1.2-2-2.4s.8-2.2 2-2.4l3.5-.6c2-.3 3.5-1.8 3.8-3.8l.6-3.5c.2-1.2 1.2-2 2.4-2z' fill='%23e2e8f0' fill-opacity='0.25'/%3E%3C/svg%3E");
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--navy-deep);
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

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

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 4rem 0;
}

.section--dark {
  background-color: var(--navy-deep);
  color: var(--cloud);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--warm-white);
}

.section--dark p {
  color: var(--slate-light);
}

.section--cloud {
  background-color: var(--cloud);
}

.section--sage {
  background-color: var(--sage-pale);
}

/* ----- Header & Navigation ----- */
.site-header {
  background-color: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 64px;
}

.site-logo {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--warm-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover {
  color: var(--lavender-light);
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--sage), var(--lavender));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-light);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--warm-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--warm-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ----- Hero Sections ----- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #2d3a4f 50%, var(--navy-mid) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(134, 167, 137, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--warm-white);
  font-size: 3rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.hero .subtitle {
  color: var(--slate-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-page {
  padding: 3.5rem 0 3rem;
}

.hero-page h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--sage);
  color: white;
  border-color: var(--sage);
}

.btn--primary:hover {
  background-color: #739b76;
  border-color: #739b76;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--warm-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--warm-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--sage);
  border-color: var(--sage);
}

.btn--outline:hover {
  background-color: var(--sage);
  color: white;
}

.btn--small {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn--large {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- Cards ----- */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: all var(--transition-base);
  border: 1px solid var(--cloud-deep);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--featured {
  border: 2px solid var(--sage);
  position: relative;
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--lavender));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ----- Review Cards ----- */
.review-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.review-card__rank {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--sage);
  min-width: 2rem;
}

.review-card__name {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.review-card__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-style: italic;
}

.review-card__pros {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.review-card__pros li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.review-card__pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
}

.review-card__score {
  text-align: center;
  min-width: 80px;
}

.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: white;
  margin: 0 auto 0.35rem;
}

.score-circle--excellent {
  background: linear-gradient(135deg, var(--sage), #6b9a6e);
}

.score-circle--great {
  background: linear-gradient(135deg, #5ea3a3, #4a8f8f);
}

.score-circle--good {
  background: linear-gradient(135deg, var(--lavender), #a78bfa);
}

.score-circle--average {
  background: linear-gradient(135deg, var(--slate-light), var(--slate));
}

.score-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- Score Bars ----- */
.score-bar-group {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.score-bar {
  display: grid;
  grid-template-columns: 150px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
}

.score-bar__label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.score-bar__track {
  height: 10px;
  background-color: var(--cloud);
  border-radius: 5px;
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--sage), var(--sage-light));
  transition: width var(--transition-slow);
}

.score-bar__value {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--gold {
  background-color: #fef3c7;
  color: #92400e;
}

.badge--sage {
  background-color: var(--sage-pale);
  color: #3d5e40;
}

.badge--lavender {
  background-color: var(--lavender-pale);
  color: #5b21b6;
}

.badge--sky {
  background-color: #e0f2fe;
  color: #075985;
}

.badge--rose {
  background-color: #fce7f3;
  color: #9d174d;
}

/* ----- Guide Cards ----- */
.guide-card {
  display: block;
  padding: 2rem;
}

.guide-card__category {
  margin-bottom: 0.75rem;
}

.guide-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.guide-card:hover .guide-card__title {
  color: var(--sage);
}

.guide-card__meta {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.guide-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Grid Layouts ----- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ----- Workflow Comparison Table ----- */
.workflow-step {
  margin-bottom: 2.5rem;
}

.workflow-step__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--navy-deep);
}

.workflow-step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cloud-deep);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table thead th {
  background-color: var(--navy-deep);
  color: var(--warm-white);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--cloud-deep);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--cloud);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table .emr-name {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
}

.comparison-table .emr-name--featured {
  color: var(--sage);
}

.efficiency-tag {
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.efficiency-tag--excellent {
  background-color: var(--sage-pale);
  color: #3d5e40;
}

.efficiency-tag--good {
  background-color: #e0f2fe;
  color: #075985;
}

.efficiency-tag--adequate {
  background-color: #fef3c7;
  color: #92400e;
}

.efficiency-tag--below {
  background-color: #fce7f3;
  color: #9d174d;
}

/* ----- Article / Guide Detail ----- */
.article-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cloud-deep);
}

.article-content h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-meta span {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Review Detail Page ----- */
.review-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.review-hero__info {
  flex: 1;
}

.review-hero__score-wrap {
  text-align: center;
}

.review-hero__score {
  width: 100px;
  height: 100px;
  font-size: 2rem;
}

.review-detail-section {
  margin-bottom: 2.5rem;
}

.review-detail-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-detail-section h2 .section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.icon-bg-sage { background-color: var(--sage-pale); color: #3d5e40; }
.icon-bg-lavender { background-color: var(--lavender-pale); color: #5b21b6; }
.icon-bg-sky { background-color: #e0f2fe; color: #075985; }
.icon-bg-gold { background-color: #fef3c7; color: #92400e; }
.icon-bg-rose { background-color: #fce7f3; color: #9d174d; }

/* ----- Pros & Cons ----- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros-list, .cons-list {
  list-style: none;
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.pros-list {
  background-color: var(--sage-pale);
}

.cons-list {
  background-color: #fef2f2;
}

.pros-list h4, .cons-list h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.pros-list h4 { color: #3d5e40; }
.cons-list h4 { color: #991b1b; }

.pros-list li, .cons-list li {
  font-size: 0.9rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
}

.pros-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  color: #3d5e40;
}

.cons-list li::before {
  content: '\2212';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  color: #991b1b;
}

/* ----- CTA Section ----- */
.cta-box {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--warm-white);
  margin: 2rem 0;
}

.cta-box h3 {
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--slate-light);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ----- Footer ----- */
.site-footer {
  background-color: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  color: var(--slate-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-brand .site-logo {
  margin-bottom: 1rem;
}

.footer-col h5 {
  color: var(--warm-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--slate-light);
  padding: 0.3rem 0;
}

.footer-col a:hover {
  color: var(--warm-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-bottom a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-bottom a:hover {
  color: var(--slate-light);
}

/* ----- Stat Grid ----- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-item__number {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sage-light);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item__label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ----- Section Headers ----- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ----- About Page ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--cloud-deep);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
}

/* ----- Legal Pages ----- */
.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--navy-deep);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .mobile-toggle {
    display: block;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-card__score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }

  .score-circle {
    margin: 0;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .score-bar {
    grid-template-columns: 120px 1fr 35px;
  }

  .review-hero {
    flex-direction: column;
    text-align: center;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-page h1 { font-size: 1.5rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .score-bar { grid-template-columns: 100px 1fr 30px; }
  .score-bar__label { font-size: 0.75rem; }
  .article-content p { font-size: 0.95rem; }
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
