/* Treatments page */

.treatments-hero {
  padding: 80px 24px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
}
.treatments-hero__inner { max-width: var(--max-w); margin: 0 auto; }
.treatments-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
  max-width: 640px;
}
.treatments-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 520px;
}

/* Featured treatments (Implants + Veneers) */
.treatments-featured { padding: 72px 24px; }
.treatments-featured__inner { max-width: var(--max-w); margin: 0 auto; }
.treatments-featured__header { margin-bottom: 40px; }
.treatments-featured__header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.treatments-featured__header p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.65; max-width: 520px; }
.treatments-featured__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.featured-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.featured-card--highlight { border-color: rgba(232,93,42,0.3); }
.featured-card__img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.featured-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.featured-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.featured-card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; }
.featured-card p { font-size: 0.875rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.featured-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.featured-card__price-note { font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }
.featured-card__actions { display: flex; gap: 10px; }

/* Cosmetic treatments */
.treatments-cosmetic { padding: 72px 24px; background: var(--bg-alt); }
.treatments-cosmetic__inner { max-width: var(--max-w); margin: 0 auto; }
.treatments-section-header { margin-bottom: 40px; }
.treatments-section-header h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.treatments-section-header p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.65; max-width: 520px; }

.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.treatment-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.treatment-card__img { line-height: 0; }
.treatment-card__img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.treatment-card h3 { padding: 16px 20px 6px; }
.treatment-card p { padding: 0 20px; }
.treatment-card a { padding: 0 20px 18px; }
.treatment-card h3 { font-size: 0.9375rem; font-weight: 700; }
.treatment-card p { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.6; flex: 1; }
.treatment-card a { font-size: 0.8125rem; font-weight: 600; color: var(--orange); text-decoration: none; }
.treatment-card a:hover { text-decoration: underline; }

/* General dentistry */
.treatments-general { padding: 72px 24px; }
.treatments-general__inner { max-width: var(--max-w); margin: 0 auto; }
.treatments-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.treatments-list-item {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.treatments-list-item:nth-child(3n) { border-right: none; }
.treatments-list-item:nth-last-child(-n+3) { border-bottom: none; }
.treatments-list-item svg { color: var(--orange); flex-shrink: 0; }
.treatments-list-item span { font-size: 0.9rem; font-weight: 500; }

/* CTA */
.treatments-cta { padding: 72px 24px; background: var(--bg-dark); text-align: center; }
.treatments-cta__inner { max-width: 520px; margin: 0 auto; }
.treatments-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.treatments-cta p { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 32px; }
.treatments-cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.treatments-cta .btn--outline { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }
.treatments-cta .btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); text-decoration: none; }

/* Dark mode */
[data-theme="dark"] .featured-card,
[data-theme="dark"] .treatment-card,
[data-theme="dark"] .treatments-list-item { background: var(--bg-alt); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .featured-card,
  html:not([data-theme="light"]):not([data-theme="dark"]) .treatment-card,
  html:not([data-theme="light"]):not([data-theme="dark"]) .treatments-list-item { background: var(--bg-alt); border-color: var(--line); }
}

/* Responsive */
@media (max-width: 900px) {
  .treatments-featured__grid { grid-template-columns: 1fr; }
  .treatments-grid { grid-template-columns: 1fr 1fr; }
  .treatments-list { grid-template-columns: 1fr 1fr; }
  .treatments-list-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .treatments-list-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .treatments-grid { grid-template-columns: 1fr; }
  .treatments-list { grid-template-columns: 1fr; }
  .treatments-list-item:nth-child(2n) { border-right: none; }
  .treatments-list-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .treatments-list-item:last-child { border-bottom: none; }
  .featured-card__actions { flex-direction: column; }
  .treatments-cta__buttons { flex-direction: column; align-items: center; }
}
