:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --background: 40 33% 97%;
  --foreground: 111 40% 49%;
  --card: 40 33% 97%;
  --card-foreground: 102 43% 48%;
  --popover: 40 33% 97%;
  --popover-foreground: 152 25% 23%;
  --primary: 152 25% 23%;
  --primary-foreground: 40 33% 97%;
  --secondary: 40 20% 92%;
  --secondary-foreground: 152 25% 23%;
  --muted: 40 20% 92%;
  --muted-foreground: 215 14% 34%;
  --accent: 39 83% 49%;
  --accent-foreground: 40 33% 97%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 40 15% 85%;
  --input: 40 15% 85%;
  --ring: 152 25% 23%;
  --radius: 0.5rem;
}

* {
  border-color: hsl(var(--border));
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

#site-nav.nav-scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.h2h-input,
.h2h-textarea,
.h2h-select {
  display: flex;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.h2h-input {
  height: 2.5rem;
}

.h2h-textarea {
  min-height: 8rem;
  resize: vertical;
}

.h2h-input:focus,
.h2h-textarea:focus,
.h2h-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
}

.h2h-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Testimonials */
.testimonial-slide {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.testimonial-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.testimonial-slide.exit-left {
  transform: translateX(-40px);
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary-foreground) / 0.2);
  transition: all 0.3s;
}

.testimonial-dot.is-active {
  width: 1.5rem;
  height: 0.5rem;
  background: hsl(var(--accent));
}

.testimonial-dot:hover:not(.is-active) {
  background: hsl(var(--primary-foreground) / 0.4);
}

.pillar-card-image {
  transition: transform 0.7s ease;
}

.pillar-card:hover .pillar-card-image {
  transform: scale(1.1);
}

/* Blog listing */
.blog-card-hidden {
  display: none !important;
}

.blog-category-btn.is-active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

/* Article shell (from src/index.css) */
.article-shell .blog-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-shell .blog-header-section {
  border-radius: 24px;
  border: 1px solid #e7eddc;
  background: linear-gradient(to bottom right, #f8fcf2, white, #fffaf2);
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

@media (min-width: 640px) {
  .article-shell .blog-header-section {
    padding: 2rem;
  }
}

.article-shell .blog-header-section h1,
.article-shell .blog-header-section .subtitle {
  color: #173123;
}

.article-shell .blog-header-section h1 {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.article-shell .blog-header-section .subtitle {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: hsl(var(--muted-foreground));
}

.article-shell .blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.article-shell .blog-meta span {
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.8);
  padding: 0.375rem 0.75rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.article-shell .blog-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 2rem;
  color: #36423b;
}

.article-shell .blog-body p {
  font-size: 1.02rem;
  line-height: 2rem;
  color: #36423b;
}

.article-shell .blog-body h2 {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #173123;
}

.article-shell .blog-body h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #173123;
}

.article-shell .blog-body ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 2rem;
}

.article-shell .blog-body ul.determinants-list li {
  font-size: 1rem;
  line-height: 2rem;
}

.article-shell .definition-box,
.article-shell .stat-grid,
.article-shell .action-cards,
.article-shell .disorder-grid,
.article-shell .definition-compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .article-shell .definition-box,
  .article-shell .stat-grid,
  .article-shell .action-cards,
  .article-shell .disorder-grid,
  .article-shell .definition-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.article-shell .definition,
.article-shell .compare-item,
.article-shell .stat-item,
.article-shell .action-card,
.article-shell .disorder-card,
.article-shell .highlight-box,
.article-shell .support-box,
.article-shell .conclusion-box {
  border-radius: 20px;
  border: 1px solid #e7eddc;
  background: #fbfdf7;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.article-shell .highlight-box strong,
.article-shell .support-box h3,
.article-shell .conclusion-box h2 {
  color: #173123;
}

.article-shell .stat-number {
  margin-bottom: 0.5rem;
  display: block;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  color: #4caf50;
}

.article-shell .action-icon,
.article-shell .disorder-icon {
  margin-bottom: 0.75rem;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eef7e7;
  font-size: 1.25rem;
}

.article-shell .provider-name {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #173123;
}

.article-shell .message {
  margin-top: 0.5rem;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.article-shell .determinants-list {
  border-radius: 20px;
  border: 1px solid #e7eddc;
  background: #fbfdf7;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

@media (min-width: 768px) {
  .article-shell .determinants-list.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

.contact-form-hidden {
  display: none;
}

.contact-success-hidden {
  display: none;
}
