/* ================================================
   tratamento-base.css
   Shared stylesheet for Dr. Rodrigo Gribosi treatment pages
   Brand: Navy #0B1A3A | Gold #BFA85F | Paper #FBFAF6
   ================================================ */

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

:root {
  --navy:        #0B1A3A;
  --navy-800:    #162347;
  --navy-700:    #1E3060;
  --gold:        #BFA85F;
  --gold-400:    #D4BE7A;
  --gold-200:    #EDE0B6;
  --paper:       #FBFAF6;
  --paper-dark:  #F3F1E9;
  --text:        #1A1F2E;
  --muted:       #5A6070;
  --border:      #DDD8C8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius:      6px;
  --radius-lg:   12px;
  --transition:  0.22s ease;

  --max-w:       1160px;
  --gap:         clamp(2rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
}

/* ── Container ──────────────────────────────────── */
.t-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.t-container-narrow {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Navigation ─────────────────────────────────── */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.t-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.t-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.t-mark {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.t-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.t-wordmark b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.t-wordmark small {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.t-back {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.t-back:hover { color: var(--navy); }

.t-btn-cta {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.t-btn-cta:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────── */
.t-hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.t-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.t-hero-content { max-width: 520px; }

.t-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.t-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.t-hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}

.t-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #C8D2E8;
  margin-bottom: 1.75rem;
}

/* ── Chips ──────────────────────────────────────── */
.t-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.t-chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(191, 168, 95, 0.18);
  border: 1px solid rgba(191, 168, 95, 0.4);
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 100px;
  font-family: var(--font-body);
}

.t-chip-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}

/* ── Hero photo ─────────────────────────────────── */
.t-hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Photo placeholder ──────────────────────────── */
.t-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8e4d8 0%, #d8d4c6 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 1.5rem;
  border: 2px dashed var(--border);
}

.t-photo-placeholder small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  opacity: 0.7;
  font-family: var(--font-mono);
}

.t-hero .t-photo-placeholder {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
}

.t-photo-sm {
  aspect-ratio: 3 / 4;
  max-height: 420px;
  width: 100%;
}

/* ── Content area ───────────────────────────────── */
.t-content { padding-top: 0; }

/* ── Sections ───────────────────────────────────── */
.t-section {
  padding: var(--gap) 0;
}

.t-section-alt {
  background: var(--paper-dark);
  padding: var(--gap) 0;
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* For sections inside .t-content that need alt bg */
.t-content > .t-section-alt {
  margin-inline: 0;
  padding-inline: 0;
}
.t-content > .t-section-alt > .t-container-narrow {
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.t-section-dark {
  background: var(--navy);
  padding: var(--gap) 0;
  margin-inline: 0;
}

/* ── Section grid (2-col text + photo) ─────────── */
.t-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Text block ─────────────────────────────────── */
.t-text-block { display: flex; flex-direction: column; gap: 1rem; }

.t-section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-text-block h2,
.t-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

.t-section-dark h2 { color: #fff; }

.t-text-block p,
.t-section p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Highlight box ──────────────────────────────── */
.t-highlight-box {
  padding: 1rem 1.25rem;
  background: var(--paper-dark);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.t-highlight-box strong { color: var(--navy); }

/* ── Symptoms grid ──────────────────────────────── */
.t-symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.t-symptom {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.t-symptom p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ── Treatments (dark section cards) ───────────── */
.t-treatments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.t-treatment-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition);
}

.t-treatment-card:hover {
  border-color: rgba(191, 168, 95, 0.35);
}

.t-treatment-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.t-treatment-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
}

.t-treatment-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #A8B4CC;
  flex: 1;
}

.t-treatment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.t-treatment-tags span {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(191, 168, 95, 0.12);
  border: 1px solid rgba(191, 168, 95, 0.25);
  color: var(--gold-400);
  border-radius: 100px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── CTA Section ────────────────────────────────── */
.t-cta-section {
  background: var(--gold);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.t-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.t-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.t-cta-section p {
  font-size: 0.97rem;
  color: rgba(11, 26, 58, 0.75);
  max-width: 44ch;
}

.t-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  flex-shrink: 0;
}

.t-btn-primary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.t-btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.t-btn-ghost {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1.5px solid rgba(11, 26, 58, 0.35);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.t-btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(11, 26, 58, 0.06);
}

/* ── Footer ─────────────────────────────────────── */
.t-footer {
  background: var(--navy);
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.t-footer .t-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.t-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.t-footer a:hover { color: var(--gold-400); }

/* ── Section heading (standalone, non-grid) ─────── */
.t-section-header {
  margin-bottom: 2rem;
}

.t-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin-top: 0.5rem;
}

/* ── Step / procedure list ──────────────────────── */
.t-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.t-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.t-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-step-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.t-step-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Info grid (2-col key/value cards) ──────────── */
.t-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.t-info-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.t-info-card dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.t-info-card dd {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Illustration (SVG placeholder) ────────────── */
.t-illustration {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 32px rgba(11, 26, 58, 0.28);
}

.t-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.t-illustration-sm {
  max-height: 380px;
}

.t-illustration-sm svg {
  max-height: 380px;
  object-fit: cover;
}

/* Illustration inside hero photo gets slightly more shadow */
.t-hero-photo .t-illustration {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ── Next treatment navigation ──────────────────── */
.t-next-treatment {
  background: var(--navy);
  border-top: 1px solid rgba(191, 168, 95, 0.15);
  padding: 1.5rem 0;
}

.t-next-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.t-next-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.t-next-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: 1;
  padding: 0.5rem 0;
  transition: gap var(--transition);
}

.t-next-link:hover {
  gap: 1rem;
}

.t-next-link:hover .t-next-arrow {
  transform: translateX(4px);
}

.t-next-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.t-next-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.t-next-link:hover .t-next-title {
  color: var(--gold-400);
}

.t-next-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.6;
  transition: transform var(--transition), opacity var(--transition);
  margin-left: auto;
}

.t-next-link:hover .t-next-arrow {
  opacity: 1;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .t-hero-inner {
    grid-template-columns: 1fr;
  }

  .t-hero-photo {
    display: none;
  }

  .t-section-grid {
    grid-template-columns: 1fr;
  }

  /* On mobile, reverse photo+text order when photo comes first */
  .t-section-grid > .t-photo-placeholder:first-child,
  .t-section-grid > .t-illustration:first-child {
    order: 2;
  }
  .t-section-grid > .t-text-block {
    order: 1;
  }

  .t-next-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .t-next-label { display: none; }

  .t-next-title { font-size: 1rem; }

  .t-nav-inner {
    gap: 0.75rem;
  }

  .t-wordmark small { display: none; }

  .t-treatments {
    grid-template-columns: 1fr;
  }

  .t-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .t-cta-actions {
    align-items: center;
  }

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

@media (max-width: 480px) {
  .t-back { display: none; }
  .t-symptoms-grid { grid-template-columns: 1fr; }
}
