/* Aesthetics page-specific styling. Keep this file independent for easy editing. */

/* Prevent long text and grid children from forcing horizontal overflow */
body[data-page="aesthetics"] main,
body[data-page="aesthetics"] main * {
  min-width: 0;
}

/* ==========================================================================
   Aesthetics Hero Section
   ========================================================================== */
body[data-page="aesthetics"] .hero-aesthetics {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 6rem);
  background: linear-gradient(135deg, #fff 0%, #fbfaf7 56%, #f4efe4 100%);
  border-bottom: 1px solid var(--line);
}

body[data-page="aesthetics"] .hero-aesthetics .hero-copy {
  max-width: 820px;
}

body[data-page="aesthetics"] .hero-aesthetics h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}

body[data-page="aesthetics"] .hero-aesthetics .hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  max-width: 680px;
  color: var(--muted);
}

body[data-page="aesthetics"] .hero-aesthetics .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

body[data-page="aesthetics"] .hero-aesthetics .hero-orb {
  position: absolute;
  border: 1px solid rgba(181, 138, 43, .18);
  border-radius: 50%;
  pointer-events: none;
}

body[data-page="aesthetics"] .hero-aesthetics .orb-one {
  width: clamp(260px, 38vw, 460px);
  height: clamp(260px, 38vw, 460px);
  right: -100px;
  top: -80px;
}

body[data-page="aesthetics"] .hero-aesthetics .orb-two {
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  right: 120px;
  bottom: -100px;
}

/* ==========================================================================
   Treatment Grid & Cards (Aesthetics Directory)
   ========================================================================== */
body[data-page="aesthetics"] .treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

body[data-page="aesthetics"] .treatment-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow-wrap: anywhere;
}

body[data-page="aesthetics"] .treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(181, 138, 43, .4);
}

body[data-page="aesthetics"] .treatment-card .treatment-index {
  font-size: .75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .12em;
  margin-bottom: 12px;
  display: inline-block;
}

body[data-page="aesthetics"] .treatment-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--navy);
}

body[data-page="aesthetics"] .treatment-card > p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

body[data-page="aesthetics"] .expand-btn {
  align-self: flex-start;
  border: 1px solid rgba(181, 138, 43, .35);
  background: var(--cream);
  color: var(--gold);
  font-weight: 700;
  font-size: .78rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  margin-top: auto;
}

body[data-page="aesthetics"] .expand-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

body[data-page="aesthetics"] .treatment-list {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

body[data-page="aesthetics"] .treatment-card.expanded .treatment-list {
  display: flex;
}

body[data-page="aesthetics"] .treatment-list span {
  font-size: .74rem;
  line-height: 1.35;
  padding: 6px 12px;
  background: var(--soft);
  border: 1px solid rgba(22, 40, 63, .06);
  border-radius: 999px;
  color: var(--navy);
  display: inline-block;
}

/* ==========================================================================
   Disclaimer & Note Card
   ========================================================================== */
body[data-page="aesthetics"] .disclaimer-card {
  max-width: 950px;
  margin-inline: auto;
  border: 1px solid rgba(181, 138, 43, .35);
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(24, 33, 43, .03);
}

body[data-page="aesthetics"] .disclaimer-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

body[data-page="aesthetics"] .disclaimer-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Evidence Grid
   ========================================================================== */
body[data-page="aesthetics"] .evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body[data-page="aesthetics"] .evidence-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

body[data-page="aesthetics"] .evidence-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(24, 33, 43, .08);
}

body[data-page="aesthetics"] .image-open {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: #f3f1eb;
  cursor: zoom-in;
  display: block;
}

body[data-page="aesthetics"] .image-open img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

body[data-page="aesthetics"] .evidence-card figcaption {
  padding: 14px 16px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page="aesthetics"] .evidence-card figcaption span {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: .7rem;
  margin-top: 4px;
}

/* ==========================================================================
   Responsive Breakpoints for Aesthetics Page
   ========================================================================== */

/* ── 1100px: Medium Desktops / Large Tablets ── */
@media (max-width: 1100px) {
  body[data-page="aesthetics"] .evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ── 900px: Tablets ── */
@media (max-width: 900px) {
  body[data-page="aesthetics"] .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body[data-page="aesthetics"] .hero-aesthetics {
    padding: 2.8rem 0 4.5rem;
  }

  body[data-page="aesthetics"] .hero-aesthetics h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  }

  body[data-page="aesthetics"] .hero-orb.orb-one {
    right: -150px;
    opacity: .6;
  }

  body[data-page="aesthetics"] .hero-orb.orb-two {
    right: 40px;
    opacity: .6;
  }
}

/* ── 680px: Tablet Portrait / Large Phones ── */
@media (max-width: 680px) {
  body[data-page="aesthetics"] .hero-aesthetics {
    padding: 2rem 0 3.5rem;
  }

  body[data-page="aesthetics"] .hero-aesthetics h1 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  body[data-page="aesthetics"] .hero-lead {
    font-size: .95rem;
  }

  body[data-page="aesthetics"] .treatment-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }

  body[data-page="aesthetics"] .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body[data-page="aesthetics"] .image-open img {
    height: clamp(140px, 35vw, 190px);
  }

  body[data-page="aesthetics"] .treatment-card {
    padding: 22px 20px;
  }

  body[data-page="aesthetics"] .section-head {
    margin-bottom: 30px;
  }
}

/* ── 480px: Standard Mobile Phones ── */
@media (max-width: 480px) {
  body[data-page="aesthetics"] .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body[data-page="aesthetics"] .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  body[data-page="aesthetics"] .hero-aesthetics h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.6rem);
    line-height: 1.1;
  }

  body[data-page="aesthetics"] .treatment-card {
    padding: 20px 16px;
  }

  body[data-page="aesthetics"] .treatment-card h3 {
    font-size: 1.25rem;
  }

  body[data-page="aesthetics"] .treatment-list span {
    font-size: .72rem;
    padding: 5px 10px;
  }

  body[data-page="aesthetics"] .disclaimer-card {
    padding: 20px 16px;
  }

  body[data-page="aesthetics"] .disclaimer-card h2 {
    font-size: 1.5rem;
  }

  body[data-page="aesthetics"] .disclaimer-card p {
    font-size: .88rem;
  }

  body[data-page="aesthetics"] .evidence-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }

  body[data-page="aesthetics"] .image-open img {
    height: 200px;
  }
}

/* ── 340px: Ultra Compact Phones (e.g., Galaxy Fold) ── */
@media (max-width: 340px) {
  body[data-page="aesthetics"] .hero-aesthetics h1 {
    font-size: 1.75rem;
  }

  body[data-page="aesthetics"] .hero-lead {
    font-size: .88rem;
  }

  body[data-page="aesthetics"] .treatment-card {
    padding: 16px 14px;
  }

  body[data-page="aesthetics"] .treatment-card h3 {
    font-size: 1.15rem;
  }

  body[data-page="aesthetics"] .expand-btn {
    font-size: .72rem;
    padding: 6px 12px;
  }
}
