/*
Theme Name: Rota Clara Network
Theme URI: https://rotaclara.com.br
Author: MACUCO Media
Author URI: https://macuco.digital
Description: Hub editorial automotivo da MACUCO Media. Rede de conteúdo GEO/AEO com 5 verticais especializadas (Motor & Tomada, AssinaCar, Garagem & Cuidado, Cabine Premium, Clássico & Asfalto). Tema autossuficiente com auto-instalação completa.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rotaclara
Tags: editorial, automotive, geo, aeo, macuco-media
*/

/* ═══════════════════════════════════════════════════════════════
   ROTA CLARA NETWORK — Design System: Warm Editorial Precision
   Typography: Playfair Display (serif) + Source Sans 3 (body)
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  color-scheme: light;
  /* Warm Editorial Palette */
  --rc-background: #faf8f4;
  --rc-foreground: #2c2418;
  --rc-card: #fdfcf9;
  --rc-card-foreground: #2c2418;
  --rc-primary: #1a7a52;
  --rc-primary-foreground: #ffffff;
  --rc-secondary: #f0ece6;
  --rc-secondary-foreground: #3d3225;
  --rc-muted: #efeae4;
  --rc-muted-foreground: #6b5e4d;
  --rc-accent: #c4a44d;
  --rc-accent-foreground: #2c2418;
  --rc-destructive: #c43d2e;
  --rc-border: #ddd9d2;
  --rc-ring: #1a7a52;
  --rc-radius: 0.625rem;
}

/* Crepúsculo - Twilight mode */
body.twilight {
  color-scheme: dark;
  --rc-background: #2a3044;
  --rc-foreground: #e8e4de;
  --rc-card: #303648;
  --rc-card-foreground: #e8e4de;
  --rc-primary: #2db87a;
  --rc-primary-foreground: #1a2030;
  --rc-secondary: #353b50;
  --rc-secondary-foreground: #ddd8d0;
  --rc-muted: #353b4e;
  --rc-muted-foreground: #a8a090;
  --rc-accent: #b89940;
  --rc-accent-foreground: #1a2030;
  --rc-border: #424860;
  --rc-ring: #2db87a;
}

/* Noite - Dark mode */
body.dark {
  color-scheme: dark;
  --rc-background: #141820;
  --rc-foreground: #f0ede8;
  --rc-card: #1a1f28;
  --rc-card-foreground: #f0ede8;
  --rc-primary: #3dcc8a;
  --rc-primary-foreground: #0e1218;
  --rc-secondary: #1e2430;
  --rc-secondary-foreground: #e5e0d8;
  --rc-muted: #222830;
  --rc-muted-foreground: #9a9488;
  --rc-accent: #c4a44d;
  --rc-accent-foreground: #0e1218;
  --rc-border: #2e3440;
  --rc-ring: #3dcc8a;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--rc-border);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--rc-background);
  color: var(--rc-foreground);
  font-family: 'Source Sans 3', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--rc-foreground);
}

a {
  color: var(--rc-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--rc-accent);
}

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

/* ─── Layout ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rc-background);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--rc-border);
}
body.twilight .site-header.scrolled,
body.dark .site-header.scrolled {
  background: rgba(20, 24, 32, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--rc-foreground);
}
.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rc-primary-foreground);
  font-weight: 700;
  font-size: 0.875rem;
}
.site-logo .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .main-nav { display: flex; }
}
.main-nav a {
  color: var(--rc-muted-foreground);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--rc-foreground);
}

/* ─── Theme Dimmer ─── */
.theme-dimmer {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--rc-secondary);
  border-radius: 9999px;
  padding: 4px;
  border: 1px solid var(--rc-border);
}
.theme-dimmer button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--rc-muted-foreground);
}
.theme-dimmer button:hover {
  color: var(--rc-foreground);
}
.theme-dimmer button.active {
  background: var(--rc-primary);
  color: var(--rc-primary-foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.theme-dimmer button .label {
  display: none;
}
@media (min-width: 640px) {
  .theme-dimmer button .label { display: inline; }
}

/* ─── Reading Progress Bar ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 2px;
  background: transparent;
}
.reading-progress .bar {
  height: 100%;
  background: var(--rc-primary);
  transition: width 0.15s ease-out;
  width: 0%;
}

/* ─── Hero Section ─── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg .overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(250,248,244,0.95), rgba(250,248,244,0.75), transparent);
}
body.twilight .hero-bg .overlay-lr {
  background: linear-gradient(to right, rgba(42,48,68,0.95), rgba(42,48,68,0.75), transparent);
}
body.dark .hero-bg .overlay-lr {
  background: linear-gradient(to right, rgba(20,24,32,0.95), rgba(20,24,32,0.75), transparent);
}
.hero-bg .overlay-bt {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(250,248,244,0.4), transparent);
}
body.twilight .hero-bg .overlay-bt,
body.dark .hero-bg .overlay-bt {
  background: linear-gradient(to top, rgba(20,24,32,0.4), transparent);
}
.hero-content {
  position: relative;
  padding: 5rem 0 7rem;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(26,122,82,0.1);
  border: 1px solid rgba(26,122,82,0.2);
  color: var(--rc-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}
.hero-title-accent {
  font-size: 2.5rem;
  font-style: italic;
  margin: 0 0 2rem;
  background: linear-gradient(to right, var(--rc-primary), var(--rc-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (min-width: 768px) {
  .hero-title, .hero-title-accent { font-size: 3.25rem; }
}
@media (min-width: 1024px) {
  .hero-title, .hero-title-accent { font-size: 3.5rem; }
}
.hero-description {
  font-size: 1.125rem;
  color: var(--rc-muted-foreground);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-description strong {
  color: var(--rc-foreground);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--rc-primary);
  color: var(--rc-primary-foreground);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background: rgba(26,122,82,0.9);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  color: var(--rc-primary-foreground);
}
.btn-outline {
  background: transparent;
  color: var(--rc-foreground);
  border: 1px solid rgba(44,36,24,0.2);
}
.btn-outline:hover {
  background: var(--rc-secondary);
}

/* ─── Transparency Banner ─── */
.transparency-banner {
  background: var(--rc-secondary);
  border-top: 1px solid var(--rc-border);
  border-bottom: 1px solid var(--rc-border);
  padding: 1rem 0;
}
.transparency-banner .inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.transparency-banner img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26,122,82,0.3);
}
.transparency-banner .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-primary);
}
.transparency-banner .text {
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
}
.transparency-banner .text a {
  color: var(--rc-primary);
}

/* ─── Persona Carousel ─── */
.persona-carousel {
  padding: 3rem 0;
}
.persona-carousel .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.persona-carousel .header p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rc-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.persona-carousel .header a {
  font-size: 0.875rem;
  color: var(--rc-primary);
  font-weight: 500;
}
.persona-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.persona-list::-webkit-scrollbar { display: none; }
.persona-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  text-decoration: none;
  color: var(--rc-foreground);
}
.persona-item .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(26,122,82,0.3);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: border-color 0.2s;
}
.persona-item:hover .avatar {
  border-color: var(--rc-primary);
}
.persona-item .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.persona-item.editor .avatar {
  border-color: var(--rc-primary);
  box-shadow: 0 0 0 3px rgba(26,122,82,0.2), 0 4px 6px -1px rgba(0,0,0,0.1);
}
.persona-item .name {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.persona-item .role {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-primary);
}
.persona-item.editor .role {
  font-weight: 700;
}

/* ─── Editorial Card ─── */
.editorial-card {
  background: var(--rc-card);
  color: var(--rc-card-foreground);
  border-radius: 0.75rem;
  border: 1px solid var(--rc-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
  overflow: hidden;
}
.editorial-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

/* ─── Verticals Grid ─── */
.verticals-section {
  padding: 4rem 0;
}
.verticals-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.verticals-section .section-header h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}
@media (min-width: 768px) {
  .verticals-section .section-header h2 { font-size: 2.5rem; }
}
.verticals-section .section-header p {
  color: var(--rc-muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}
.verticals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .verticals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .verticals-grid { grid-template-columns: repeat(3, 1fr); }
}
.vertical-card {
  text-decoration: none;
  color: var(--rc-foreground);
}
.vertical-card .image-wrap {
  position: relative;
  height: 176px;
  overflow: hidden;
}
.vertical-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.vertical-card:hover .image-wrap img {
  transform: scale(1.05);
}
.vertical-card .image-wrap .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.vertical-card .image-wrap h3 {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}
.vertical-card .card-body {
  padding: 1.25rem;
}
.vertical-card .card-body .tagline {
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.vertical-card .card-body .persona-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.vertical-card .card-body .persona-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rc-border);
}
.vertical-card .card-body .persona-info .name {
  font-size: 0.75rem;
  font-weight: 600;
}
.vertical-card .card-body .persona-info .role {
  font-size: 0.625rem;
  color: var(--rc-muted-foreground);
}

/* ─── Featured Articles ─── */
.featured-section {
  padding: 3rem 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: 3fr 2fr; }
}
.featured-main a {
  display: block;
  text-decoration: none;
  color: var(--rc-foreground);
}
.featured-main .image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 1rem;
}
.featured-main .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-main a:hover .image-wrap img {
  transform: scale(1.05);
}
.featured-main .image-wrap .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
}
.featured-main .image-wrap .meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}
.featured-main .image-wrap .meta h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0.5rem 0 0;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .featured-main .image-wrap .meta h2 { font-size: 1.875rem; }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Source Sans 3', sans-serif;
}
.badge-category {
  background: rgba(26,122,82,0.9);
  color: #fff;
}
.badge-r0 { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-r1 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-r2 { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-r3 { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Article Page ─── */
.article-header {
  padding: 3rem 0 2rem;
  max-width: 768px;
  margin: 0 auto;
}
.article-header .breadcrumb {
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
  margin-bottom: 1.5rem;
}
.article-header .breadcrumb a {
  color: var(--rc-primary);
}
.article-header h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}
@media (min-width: 768px) {
  .article-header h1 { font-size: 2.5rem; }
}
.article-header .subtitle {
  font-size: 1.25rem;
  color: var(--rc-muted-foreground);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rc-border);
}

/* Direct Answer Box */
.direct-answer {
  background: var(--rc-secondary);
  border-left: 4px solid var(--rc-primary);
  border-radius: 0 var(--rc-radius) var(--rc-radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}
.direct-answer .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-primary);
  margin-bottom: 0.5rem;
}
.direct-answer p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
}

/* Summary Points */
.summary-points {
  max-width: 768px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--rc-card);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
}
.summary-points h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--rc-primary);
}
.summary-points ol {
  margin: 0;
  padding-left: 1.5rem;
}
.summary-points li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Article Body Prose */
.article-body {
  max-width: 768px;
  margin: 0 auto;
  padding: 2rem 0;
}
.article-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.article-body h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.article-body p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.article-body blockquote {
  border-left: 4px solid var(--rc-primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--rc-muted-foreground);
  margin: 1.5rem 0;
}
.article-body a {
  color: var(--rc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Safety Note */
.safety-note {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--rc-radius);
  padding: 1.25rem;
  margin: 2rem auto;
  max-width: 768px;
}
body.twilight .safety-note,
body.dark .safety-note {
  background: rgba(254,243,199,0.1);
  border-color: rgba(253,230,138,0.3);
}
.safety-note .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 0.25rem;
}
.safety-note p {
  font-size: 0.875rem;
  margin: 0;
  color: #78350f;
}

/* ─── FAQ Accordion ─── */
.faq-section {
  max-width: 768px;
  margin: 3rem auto;
  padding-top: 2rem;
  border-top: 1px solid var(--rc-border);
}
.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--rc-border);
}
.faq-item summary {
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--rc-primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item .answer {
  padding: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--rc-muted-foreground);
}

/* ─── Newsletter CTA ─── */
.newsletter-cta {
  margin: 4rem 0;
  background: linear-gradient(135deg, rgba(26,122,82,0.05), rgba(196,164,77,0.05), rgba(26,122,82,0.05));
  border: 1px solid rgba(26,122,82,0.15);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .newsletter-cta { padding: 3rem; }
}
.newsletter-cta h2 {
  font-size: 1.5rem;
  margin: 1rem 0 0.75rem;
}
@media (min-width: 768px) {
  .newsletter-cta h2 { font-size: 1.875rem; }
}
.newsletter-cta p {
  color: var(--rc-muted-foreground);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--rc-background);
  border: 1px solid var(--rc-border);
  font-size: 0.875rem;
  color: var(--rc-foreground);
  outline: none;
}
.newsletter-form input:focus {
  box-shadow: 0 0 0 2px rgba(26,122,82,0.3);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--rc-border);
  background: var(--rc-secondary);
  margin-top: 5rem;
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand .description {
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
  line-height: 1.6;
  max-width: 24rem;
  margin-top: 1rem;
}
.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-muted-foreground);
  margin: 0 0 1rem;
  font-family: 'Source Sans 3', sans-serif;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.625rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--rc-foreground);
  opacity: 0.8;
}
.footer-links a:hover {
  color: var(--rc-primary);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid var(--rc-border);
  margin-top: 2.5rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--rc-muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.footer-bottom img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(26,122,82,0.2);
  display: inline-block;
}

/* ─── Institutional Pages ─── */
.institutional-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.institutional-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
  margin-bottom: 2rem;
}
.institutional-page .back-link:hover {
  color: var(--rc-foreground);
}
.institutional-page .page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.institutional-page .page-title .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26,122,82,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rc-primary);
}
.institutional-page h1 {
  font-size: 1.875rem;
  margin: 0;
}
@media (min-width: 768px) {
  .institutional-page h1 { font-size: 2.25rem; }
}
.institutional-page .prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.institutional-page .prose h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}
.institutional-page .prose p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.institutional-page .prose img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  max-width: 200px;
}
.institutional-page .prose blockquote {
  border-left: 4px solid var(--rc-primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--rc-muted-foreground);
}
.institutional-page .prose ul, .institutional-page .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.institutional-page .prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.institutional-page .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.institutional-page .prose th,
.institutional-page .prose td {
  padding: 0.75rem;
  border: 1px solid var(--rc-border);
  text-align: left;
}
.institutional-page .prose th {
  background: var(--rc-secondary);
  font-weight: 600;
}

/* Editor disclosure footer on institutional pages */
.editor-disclosure {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.editor-disclosure img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26,122,82,0.3);
}
.editor-disclosure p {
  font-size: 0.75rem;
  color: var(--rc-muted-foreground);
  text-align: center;
}

/* ─── Glossary Page ─── */
.glossary-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.glossary-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rc-border);
}
.glossary-item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.glossary-item .definition {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rc-muted-foreground);
}

/* ─── Mobile Navigation ─── */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(250,248,244,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rc-border);
  padding: 0.625rem 0;
}
body.twilight .mobile-nav {
  background: rgba(42,48,68,0.95);
}
body.dark .mobile-nav {
  background: rgba(20,24,32,0.95);
}
@media (min-width: 768px) {
  .mobile-nav { display: none; }
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--rc-muted-foreground);
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--rc-primary);
}
.mobile-nav svg {
  width: 20px;
  height: 20px;
}

/* ─── Floating Contact Button ─── */
.floating-contact {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rc-primary);
  color: var(--rc-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  text-decoration: none;
}
@media (min-width: 768px) {
  .floating-contact { bottom: 1.5rem; }
}
.floating-contact:hover {
  transform: scale(1.1);
  color: var(--rc-primary-foreground);
}

/* ─── 404 Page ─── */
.page-404 {
  text-align: center;
  padding: 6rem 1rem;
}
.page-404 h1 {
  font-size: 4rem;
  color: var(--rc-primary);
}
.page-404 p {
  color: var(--rc-muted-foreground);
  margin: 1rem 0 2rem;
}

/* ─── Vertical Landing Page ─── */
.vertical-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
}
.vertical-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vertical-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}
.vertical-hero .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}
.vertical-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}
.vertical-hero .tagline {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
}

/* ─── AI+H Factor Banner ─── */
.aih-banner {
  padding: 2rem 0;
}
.aih-banner .inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(26,122,82,0.2);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}
.aih-banner .inner:hover {
  border-color: rgba(26,122,82,0.4);
}
.aih-banner .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26,122,82,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rc-primary);
}
.aih-banner .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-primary);
  margin-bottom: 0.25rem;
}
.aih-banner .text {
  font-size: 0.875rem;
  color: var(--rc-muted-foreground);
  line-height: 1.6;
}
.aih-banner .link {
  font-size: 0.75rem;
  color: var(--rc-primary);
  font-weight: 500;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ─── Utility Classes ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
