/* ============================================================
   HOME PAGE STYLES
   ============================================================ */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--green-950);
}

/* Cinematic background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .18;
  filter: saturate(0.6);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 60% 40%, rgba(15,92,53,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 60%, rgba(4,28,16,.6) 0%, transparent 80%),
    linear-gradient(160deg, rgba(4,28,16,.98) 0%, rgba(8,61,34,.85) 40%, rgba(15,92,53,.5) 100%);
}
.hero-iris {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 55vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(79,191,129,.08) 0%,
    rgba(34,139,82,.05) 40%,
    transparent 70%
  );
  border: 1px solid rgba(79,191,129,.08);
  animation: float 8s ease-in-out infinite;
}
.hero-iris::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(79,191,129,.06);
}
.hero-iris::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid rgba(79,191,129,.04);
}

/* Lens flare */
.hero-flare {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,199,192,.06) 0%, transparent 70%);
  top: -200px;
  right: 10%;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "text photo"
    "copy photo";
  gap: 0 4rem;
  align-items: center;
  width: 100%;
  padding: 8rem 2rem 5rem;
  max-width: var(--container);
  margin-inline: auto;
}
.hero-text { grid-area: text; align-self: end; }
.hero-copy { grid-area: copy; align-self: start; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--green-300);
}
.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.65);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
}
.hero-trust-item .number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--green-300);
  line-height: 1;
}
.hero-trust-item .label {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.hero-trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
}

/* Doctor photo column */
.hero-photo-col {
  grid-area: photo;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}
.hero-photo-frame {
  position: relative;
  width: min(440px, 100%);
}
.hero-photo-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 90%;
  background: linear-gradient(180deg, transparent 0%, rgba(34,139,82,.15) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid rgba(79,191,129,.12);
  backdrop-filter: blur(2px);
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  object-fit: cover;
  object-position: center top;
  height: min(600px, 70vh);
  filter: brightness(1.02) contrast(1.05);
}
.hero-badge {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  z-index: 2;
  padding: 1rem 1.25rem;
  min-width: 160px;
}
.hero-badge .badge-label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .2rem;
  text-shadow: 0 2px 8px rgba(4,28,16,.95), 0 0 18px rgba(4,28,16,.85);
}
.hero-badge .badge-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(4,28,16,.95), 0 0 22px rgba(4,28,16,.9), 0 0 2px rgba(4,28,16,1);
}
.hero-rating-badge {
  position: absolute;
  bottom: 3rem;
  left: -2rem;
  z-index: 2;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-rating-badge .stars {
  display: flex;
  gap: 2px;
}
.hero-rating-badge .stars svg {
  width: 12px; height: 12px;
  color: #f59e0b;
  fill: #f59e0b;
}
.hero-rating-badge .rating-info .score {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(4,28,16,.95), 0 0 22px rgba(4,28,16,.9), 0 0 2px rgba(4,28,16,1);
}
.hero-rating-badge .rating-info .reviews {
  font-size: .65rem;
  color: #fff;
  margin-top: .15rem;
  text-shadow: 0 2px 8px rgba(4,28,16,.95), 0 0 18px rgba(4,28,16,.85);
}

/* ---- TRUST STRIP ---- */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--stone-100);
  padding: 1.5rem 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--stone-700);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
}

/* ---- ABOUT PREVIEW ---- */
.about-preview {
  background: var(--warm-white);
}
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-preview-images {
  position: relative;
}
.about-main-img {
  width: 85%;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}
.about-accent-img {
  position: absolute;
  right: 0;
  bottom: -2rem;
  width: 45%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--warm-white);
}
.about-preview-text .credentials {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 500;
}
.credential-tag svg { width: 12px; height: 12px; }

/* ---- SPECIALTIES BENTO ---- */
.specialties-section {
  background: var(--green-950);
  position: relative;
  overflow: hidden;
}
.specialties-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(34,139,82,.12) 0%, transparent 70%);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.bento-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: all .4s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,191,129,.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.bento-item:hover { 
  border-color: rgba(79,191,129,.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.bento-item:hover::before { opacity: 1; }

/* Featured item - Reabilitação visual */
.bento-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(15,92,53,.6) 0%, rgba(8,61,34,.8) 100%);
  border-color: rgba(79,191,129,.2);
  justify-content: flex-end;
  min-height: 280px;
}
.bento-item.featured .bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
  filter: saturate(.6);
  border-radius: var(--radius-lg);
}
.bento-item.featured .bento-content { position: relative; z-index: 1; }
.bento-item.tall {
  grid-row: span 2;
  min-height: 260px;
}
.bento-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #103f2a;
  background: linear-gradient(135deg, #b9f3d4, #50d6b4);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,199,192,.18);
}
.bento-icon svg {
  color: currentColor;
  stroke-width: 1.9;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .4rem;
}
.bento-item.featured .bento-title { font-size: 1.6rem; }
.bento-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-300);
  background: rgba(79,191,129,.12);
  padding: .35rem .8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(79,191,129,.2);
  margin-bottom: 1rem;
  width: fit-content;
}
.bento-arrow {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  transition: all .3s;
}
.bento-item:hover .bento-arrow {
  background: var(--green-600);
  transform: translateX(3px);
}
.bento-arrow svg { width: 12px; height: 12px; color: #fff; }

/* ---- VISUAL REHAB HIGHLIGHT ---- */
.rehab-highlight {
  background: linear-gradient(165deg, var(--green-900), var(--green-800));
  position: relative;
  overflow: hidden;
}
.rehab-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,191,129,.15) 0%, transparent 70%);
}
.rehab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.rehab-points {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.rehab-points li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.rehab-points li:last-child { border-bottom: none; }
.rehab-points .check {
  width: 18px;
  height: 18px;
  background: rgba(79,191,129,.15);
  border-radius: 50%;
  border: 1px solid rgba(79,191,129,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.rehab-points .check svg { width: 10px; height: 10px; color: var(--green-300); }
.rehab-image-col { position: relative; }
.rehab-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-xl);
}
.rehab-float-card {
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  padding: 1.25rem 1.5rem;
  max-width: 200px;
}
.rehab-float-card .float-title {
  font-family: var(--font-display);
  font-size: .95rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
}
.rehab-float-card .float-sub {
  font-size: .72rem;
  color: var(--green-300);
  margin-top: .2rem;
}

/* ---- REVIEWS ---- */
.reviews-section {
  background: var(--cream);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all .4s var(--ease-out);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.review-stars svg {
  width: 14px;
  height: 14px;
  color: #f59e0b;
  fill: #f59e0b;
}
.review-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--stone-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.review-author {
  font-size: .8rem;
  font-weight: 600;
  color: var(--stone-900);
}
.review-platform {
  font-size: .7rem;
  color: var(--stone-500);
  margin-top: .15rem;
}
.reviews-cta-row {
  text-align: center;
  margin-top: 2.5rem;
}
.doctoralia-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--green-600);
  font-weight: 500;
  transition: color .3s;
}
.doctoralia-link:hover { color: var(--green-800); }
.doctoralia-link img { height: 20px; width: auto; }

/* ---- CONVENIOS ---- */
.convenios-section { background: var(--warm-white); }
.convenios-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}
.convenio-tag {
  padding: .55rem 1.2rem;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 500;
  transition: all .3s;
}
.convenio-tag:hover {
  background: var(--green-100);
  transform: translateY(-1px);
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 50%, var(--green-500) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 2rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
}
.cta-banner-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  background: #fff;
  color: var(--green-700);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--green-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ---- LOCATION ---- */
.location-section { background: var(--cream); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.location-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--stone-900);
  margin-bottom: 1.5rem;
}
.location-detail {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--stone-100);
}
.location-detail:last-child { border-bottom: none; }
.location-detail svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.location-detail .detail-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone-500);
  display: block;
}
.location-detail .detail-value {
  font-size: .9rem;
  color: var(--stone-900);
  margin-top: .1rem;
}
.location-detail a.detail-value {
  color: var(--green-600);
}
.location-detail a.detail-value:hover { text-decoration: underline; }
.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- BLOG PREVIEW ---- */
.blog-preview { background: var(--warm-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ---- RESPONSIVE HOME ---- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.featured { grid-column: span 2; }
  .bento-item.tall { grid-row: auto; }
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "photo"
      "copy";
    gap: 3rem;
    padding-top: 6rem;
  }
  .hero-photo-col { justify-content: center; }
  .hero-photo { height: min(400px, 50vh); }
  .hero-badge { left: 0; }
  .rehab-grid { grid-template-columns: 1fr; gap: 3rem; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .about-preview-grid { grid-template-columns: 1fr; gap: 3rem; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .reviews-real-grid { grid-template-columns: 1fr !important; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.featured { grid-column: auto; grid-row: auto; min-height: 240px; }
  .hero {
    min-height: auto;
  }
  .hero-content {
    gap: 1.25rem;
    padding: 5.75rem 1.25rem 2.5rem;
  }
  .hero-eyebrow {
    font-size: .62rem;
    margin-bottom: .9rem;
  }
  .hero-headline {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    margin-bottom: 0;
  }
  .hero-sub {
    margin-bottom: 1.6rem;
  }
  .hero-ctas {
    gap: .8rem;
  }
  .hero-trust {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }
  .hero-photo-frame {
    width: min(420px, 100%);
    height: clamp(360px, 112vw, 430px);
  }
  .hero-photo {
    height: 100%;
  }
  .hero-badge {
    top: auto;
    left: auto;
    right: .75rem;
    bottom: 1.1rem;
    width: calc(52% - 1.15rem);
    min-width: 0;
    padding: .78rem .9rem;
    background: rgba(8, 46, 29, .48);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 16px 34px rgba(4,28,16,.3);
  }
  .hero-badge .badge-label {
    font-size: .58rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 20px rgba(4,28,16,.9);
  }
  .hero-badge .badge-text {
    font-size: .94rem;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.95), 0 0 24px rgba(4,28,16,.95), 0 0 2px rgba(0,0,0,1);
  }
  .hero-rating-badge {
    left: .75rem;
    bottom: 1.1rem;
    width: calc(48% - 1.15rem);
    padding: .78rem .85rem;
    gap: .5rem;
  }
  .hero-rating-badge .stars {
    flex-shrink: 0;
  }
  .hero-rating-badge .stars svg {
    width: 11px;
    height: 11px;
  }
  .hero-rating-badge .rating-info .score {
    font-size: 1rem;
  }
  .hero-rating-badge .rating-info .reviews {
    font-size: .62rem;
  }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { gap: 1.5rem; }
  .rehab-float-card { right: 0; position: relative; top: auto; margin-top: 1rem; }
}
