/* Bora Doutor: rules used only on the sobre page(s). Loaded after base.css. */

/* About page ("Sobre nós", template-cholo-sobre.php). Every selector is
   prefixed about- so nothing on the landing, pricing or blog pages changes.
   Desktop: full-bleed banner (doctor on the right), copy + pills on the left,
   stat cards top-right, scroll ring bottom-right. Under 768px the hero stacks:
   the portrait crop on top, the copy on a deep-blue panel below. */
.about-hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 72px 0 56px;
  background: #8FB3CB; /* the banner's own blue, shown while it loads */
}
.about-hero-media { display: block; position: absolute; inset: 0; z-index: 0; }
.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(16, 40, 64, 0.6) 0%, rgba(16, 40, 64, 0.34) 40%, rgba(16, 40, 64, 0) 66%);
}
.about-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 56px 32px;
}
.about-hero-content { max-width: 600px; padding-top: 24px; }
.about-hero h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}
.about-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48ch;
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Floating cards: rating on top, two stats side by side */
.about-hero-cards {
  justify-self: end;
  align-self: start;
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-rating, .about-stat {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 40, 64, 0.14);
}
.about-rating { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.about-rating p { margin: 0; font-size: 0.92rem; font-weight: 500; color: var(--color-dark); }
.about-avatars { display: flex; flex-shrink: 0; }
.about-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--color-primary-strong);
  background: #E0F3FC;
}
.about-avatars span:first-child { margin-left: 0; }
.about-avatars span:nth-child(2) { background: #DCE8FF; color: var(--color-brand-deep); }
.about-avatars span:nth-child(3) { background: #FFE8D6; color: #B45309; }
.about-avatars span:nth-child(4) { background: #E4F7EA; color: #15803D; }
.about-stars { display: flex; gap: 2px; color: #F5A623; margin-bottom: 2px; }
.about-stars svg { width: 14px; height: 14px; }
.about-stat { padding: 22px 22px 20px; }
.about-stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--color-primary-strong);
  margin: 0 0 6px;
}
.about-stat-label { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; font-weight: 300; line-height: 1.4; }

/* Feature pills, bottom-left */
.about-pills { align-self: end; display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.about-pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: #fff;
  border-radius: 10px;
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(16, 40, 64, 0.12);
}
.about-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 209, 255, 0.1);
  color: var(--color-primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-pill-icon svg { width: 17px; height: 17px; }

/* Sobre nós */
.about-intro { padding: var(--section-y) 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 10 / 11; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about-intro-content { padding-top: 4px; }
.about-title { font-size: 34px; line-height: 44px; max-width: 26ch; margin-bottom: 24px; }
.about-intro-actions { margin-bottom: 40px; }
/* Both photos in one column: the big one set tall, the small one under it with
   its caption. Before this the big photo sat alone against a text column twice
   its height and the page had a hole in it. */
.about-media { display: flex; flex-direction: column; gap: 24px; }
.about-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 10 / 11; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about-photo-small { margin: 0; }
.about-photo-small img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.about-photo-small figcaption { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.55; font-weight: 300; }
/* The index rows carry the shared component; this page only sets its ground. */
.about-links { border-color: var(--color-rule); }
.about-links span { color: var(--color-text-muted); }

@media (max-width: 1024px) {
  .about-hero { min-height: 0; padding: 56px 0 48px; }
  /* minmax(0, …) rather than a bare 1fr — see WARNINGS.md. `1fr` has an
     implicit min-width:auto, so the track cannot shrink below its content's
     min-content and the page scrolls sideways instead. This bit
     /emagrecimento/ for real on a 360px phone. */
  .about-hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 36px; }
  .about-hero h1 { font-size: 44px; line-height: 52px; }
  .about-hero-content { max-width: 640px; padding-top: 0; }
  .about-hero-cards { justify-self: start; width: 100%; max-width: 560px; }
  .about-hero-overlay { background: linear-gradient(90deg, rgba(16, 40, 64, 0.68) 0%, rgba(16, 40, 64, 0.46) 55%, rgba(16, 40, 64, 0.22) 100%); }
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 16 / 10; }
  .about-title { max-width: none; }
}
@media (max-width: 767px) {
  /* Stacked hero: image block on top, copy on a deep-blue panel */
  .about-hero { display: block; padding: 0; background: #1C3F5E; }
  /* width: 100% stops aspect-ratio + max-height narrowing the box: without it the
     photo stopped at 448px from 449 to 767px, beside a strip of empty panel.
     Fixed 14 Sep 2026, same as the homepage hero's .hero-media. */
  .about-hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; max-height: 560px; }
  .about-hero-media img { object-position: 50% 30%; }
  .about-hero-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36%;
    background: linear-gradient(180deg, rgba(28, 63, 94, 0) 0%, #1C3F5E 100%);
  }
  .about-hero-overlay { display: none; }
  .about-hero-inner { padding-top: 8px; padding-bottom: 40px; gap: 28px; }
  .about-hero h1 { font-size: 32px; line-height: 40px; text-shadow: none; }
  .about-hero-subtitle { text-shadow: none; }
  .about-hero-cards { gap: 12px; }
  .about-stat { padding: 16px; }
  .about-stat-number { font-size: 1.6rem; }
  .about-pills li { font-size: 0.88rem; padding: 8px 14px 8px 8px; }
  .about-title { font-size: 26px; line-height: 34px; }
  .about-intro-actions { margin-bottom: 40px; }
  .about-photo { aspect-ratio: 4 / 3; }
}
