/*
 * HGI - Aesthetics Page
 * 23-aesthetics.css
 */


/* ─────────────────────────────────────────
   INTRO (two-column: text left, CTAs right)
───────────────────────────────────────── */

.aes-intro__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}

.aes-intro__text {
  text-align: left;
}

.aes-intro__body {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
}

.aes-intro__body p + p {
  margin-top: var(--space-4);
}

.aes-intro__body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.aes-intro__body h3:first-child {
  margin-top: 0;
}

.aes-intro__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-12);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.aes-intro__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    transform  var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.aes-intro__cta-btn--primary {
  color: var(--color-text-inverse);
  background: var(--color-action);
  border: none;
}

.aes-intro__cta-btn--primary:hover {
  background: var(--color-action-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.aes-intro__cta-btn--ghost {
  color: var(--color-text-primary);
  background: none;
  border: 1px solid var(--color-border-strong);
}

.aes-intro__cta-btn--ghost:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-action);
}


/* ─────────────────────────────────────────
   TREATMENTS SECTION
───────────────────────────────────────── */

.aes-treatments {
  padding-top: var(--space-8);
}

.aes-treatments__eyebrow {
  margin-bottom: var(--space-8);
}


/* ─────────────────────────────────────────
   FEATURED CARD (Neurotoxins)
   Full-width horizontal. Image left, content right.
───────────────────────────────────────── */

.aes-featured {
  display: flex;
  background: #FFFFFF;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: var(--space-8);
  transition:
    box-shadow   400ms var(--ease-out),
    border-color 400ms var(--ease-out),
    transform    400ms var(--ease-out);
}

.aes-featured:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 4px 16px rgba(22, 37, 11, 0.06);
  transform: translateY(-2px);
}

.aes-featured__image {
  width: 48%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.aes-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out);
}

.aes-featured:hover .aes-featured__image img {
  transform: scale(1.04);
}

.aes-featured__placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-action-light) 100%);
}

.aes-featured__body {
  width: 52%;
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.aes-featured__badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
    color: var(--color-action);
  background: rgba(34, 67, 2, 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.aes-featured__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.aes-featured__desc {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  max-width: 52ch;
}

.aes-featured__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-action);
  margin-top: var(--space-2);
  transition: gap var(--duration-base) var(--ease-out);
}

.aes-featured:hover .aes-featured__link {
  gap: var(--space-3);
}

.aes-featured__link svg {
  transition: transform var(--duration-base) var(--ease-bounce);
}

.aes-featured:hover .aes-featured__link svg {
  transform: translateX(3px);
}


/* ─────────────────────────────────────────
   TREATMENT GRID (3-col, tapered rows)
───────────────────────────────────────── */

.aes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.aes-card {
  background: #FFFFFF;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow   400ms var(--ease-out),
    border-color 400ms var(--ease-out),
    transform    400ms var(--ease-out);
}

.aes-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 4px 16px rgba(22, 37, 11, 0.06);
  transform: translateY(-2px);
}

.aes-card__image {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

/* Row 1: taller images */
.aes-card--row1 .aes-card__image {
  height: 240px;
}

/* Row 2: shorter images */
.aes-card--row2 .aes-card__image {
  height: 200px;
}

.aes-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 700ms var(--ease-out);
}

.aes-card:hover .aes-card__image img {
  transform: scale(1.04);
}

.aes-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-action-light) 100%);
}

.aes-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.aes-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.aes-card__desc {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  flex: 1;
}

.aes-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-action);
  margin-top: var(--space-2);
  transition: gap var(--duration-base) var(--ease-out);
}

.aes-card:hover .aes-card__link {
  gap: var(--space-3);
}

.aes-card__link svg {
  transition: transform var(--duration-base) var(--ease-bounce);
}

.aes-card:hover .aes-card__link svg {
  transform: translateX(3px);
}


/* ─────────────────────────────────────────
   WHY HGI
   Left-aligned content, watermark right,
   parallax background image, dark overlay.
   1.5x vertical padding for breathing room.
───────────────────────────────────────── */

.aes-why {
  position: relative;
  overflow: hidden;
  padding: var(--space-32) 0;
}

/* Parallax background image */
.aes-why__parallax {
  position: absolute;
  inset: -20% 0;
  background-image: var(--aes-why-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

/* Colour overlay (20% opacity, image shows through at 80%) */
.aes-why__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 37, 11, 0.60);
  z-index: 1;
}

/* Fallback: if no parallax image, solid background */
.aes-why:not([style*="--aes-why-bg"]) .aes-why__parallax {
  display: none;
}

.aes-why:not([style*="--aes-why-bg"]) .aes-why__overlay {
  background: var(--color-action);
}

/* Watermark: positioned right, vertically centred */
.aes-why__watermark {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  color: rgba(247, 249, 250, 0.04);
  pointer-events: none;
  z-index: 2;
}

.aes-why__container {
  position: relative;
  z-index: 3;
}

/* Content: left-aligned, narrow column */
.aes-why__content {
  max-width: 580px;
}

.aes-why__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(247, 249, 250, 0.50);
  display: block;
  margin-bottom: var(--space-4);
}

.aes-why__heading {
  font-family: var(--font-heading);
  font-size: var(--text-section);
  font-weight: var(--weight-medium);
  color: var(--color-text-inverse);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
}

.aes-why__text {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(247, 249, 250, 0.90);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.aes-why__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  background: var(--color-bg-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-top: var(--space-6);
  transition:
    background var(--duration-fast) var(--ease-out),
    transform  var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.aes-why__btn:hover {
  background: var(--color-action-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 249, 250, 0.15);
}

.aes-why__btn svg {
  transition: transform var(--duration-base) var(--ease-bounce);
}

.aes-why__btn:hover svg {
  transform: translateX(3px);
}


/* ─────────────────────────────────────────
   CROSS-LINKS (horizontal row, gold dividers)
   No cards. Text + dividers only.
───────────────────────────────────────── */

.aes-crosslinks {
  text-align: center;
}

.aes-crosslinks__intro {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  max-width: 56ch;
  margin: var(--space-4) auto var(--space-12);
}

.aes-crosslinks__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.aes-crosslinks__item {
  flex: 1;
  text-decoration: none;
  text-align: left;
  padding: var(--space-5) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.aes-crosslinks__item:hover {
  opacity: 0.70;
}

.aes-crosslinks__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.aes-crosslinks__desc {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.aes-crosslinks__arrow {
  color: var(--color-action);
  margin-top: var(--space-2);
  transition: transform var(--duration-base) var(--ease-bounce);
  display: inline-block;
}

.aes-crosslinks__item:hover .aes-crosslinks__arrow {
  transform: translateX(4px);
}

.aes-crosslinks__divider {
  width: 1px;
  background: rgba(34, 67, 2, 0.30);
  opacity: 0.30;
  flex-shrink: 0;
  align-self: stretch;
}


/* ─────────────────────────────────────────
   FAQ (warm bloom background)
───────────────────────────────────────── */

.aes-faq {
  background: var(--color-bg-alt);
}


/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 1024px) {
  .aes-intro__grid {
    grid-template-columns: 1fr 320px;
    gap: var(--space-10);
  }

  .aes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* On 2-col, all cards same height */
  .aes-card--row1 .aes-card__image,
  .aes-card--row2 .aes-card__image {
    height: 220px;
  }

  .aes-featured__body {
    padding: var(--space-8);
  }

  .aes-why__watermark {
    width: 300px;
    height: 300px;
    right: -60px;
  }
}

@media (max-width: 768px) {
  .aes-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .aes-intro__ctas {
    padding-top: 0;
    position: static;
    flex-direction: column;
  }

  .aes-featured {
    flex-direction: column;
  }

  .aes-featured__image {
    width: 100%;
    height: 260px;
  }

  .aes-featured__body {
    width: 100%;
    padding: var(--space-6);
  }

  .aes-featured__title {
    font-size: var(--text-xl);
  }

  .aes-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .aes-card--row1 .aes-card__image,
  .aes-card--row2 .aes-card__image {
    height: 200px;
  }

  .aes-why {
    padding: var(--space-20) 0;
  }

  .aes-why__watermark {
    width: 200px;
    height: 200px;
    right: -30px;
    opacity: 0.5;
  }

  .aes-why__parallax {
    background-attachment: scroll;
  }

  .aes-crosslinks__row {
    flex-direction: column;
    gap: 0;
  }

  .aes-crosslinks__divider {
    width: 100%;
    height: 1px;
  }

  .aes-crosslinks__item {
    padding: var(--space-5) 0;
  }
}

/* ─────────────────────────────────────────
   QUESTION PANELS
   The card image area now holds a symptom
   question instead of a photograph. The
   existing height rules on .aes-card__image
   still apply, so the grid stays even.
───────────────────────────────────────── */

.aes-card__image--question,
.aes-featured__image--question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
    padding: var(--space-6);
  background: var(--color-panel-deep);
  overflow: hidden;
}

/* The condition photograph, faint, behind the question */
.aes-card__question-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out),
              transform 700ms var(--ease-out);
}

.aes-card:hover .aes-card__question-bg,
.aes-featured:hover .aes-featured__image--question .aes-card__question-bg {
  opacity: 0.24;
  transform: scale(1.04);
}

.aes-card__question,
.aes-featured__question {
  position: relative;
  z-index: 1;
}

.aes-card__question,
.aes-featured__question {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--color-text-inverse);
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

.aes-card__question {
  font-size: var(--text-xl);
  max-width: 20ch;
}

.aes-featured__image--question {
  min-height: 340px;
  padding: var(--space-10);
}

.aes-featured__question {
  font-size: var(--text-2xl);
  max-width: 16ch;
}

/* The description carried flex:1 and is gone, so the
   title takes it or Learn more floats up the card. */
.aes-card__title {
  flex: 1;
}

/* Equal heights read better than the tapered rows now
   that these are text panels rather than photographs. */
.aes-card--row1 .aes-card__image--question,
.aes-card--row2 .aes-card__image--question {
  height: 200px;
}

@media (max-width: 1024px) {
  .aes-card--row1 .aes-card__image--question,
  .aes-card--row2 .aes-card__image--question {
    height: 190px;
  }

  .aes-card__question {
    font-size: var(--text-lg);
  }
}

@media (max-width: 768px) {
  .aes-card--row1 .aes-card__image--question,
  .aes-card--row2 .aes-card__image--question {
    height: 170px;
  }

  .aes-featured__image--question {
    min-height: 0;
    height: 220px;
    padding: var(--space-6);
  }

  .aes-featured__question {
    font-size: var(--text-xl);
  }
}

/* ── Intro Key Facts card ──
   Reuses .svc-trust-box from 11-page-service.css, which is already
   enqueued for this template. White rather than the tinted service-page
   version, so it reads as a panel against the section background. */

.svc-trust-box.aes-intro__facts {
  background: var(--color-bg-white);
}

.aes-intro__facts .eyebrow {
  margin-bottom: var(--space-2);
}

.aes-intro__facts-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 0.5px solid var(--color-border);
}

@media (max-width: 768px) {
  .aes-intro__facts {
    position: static;
  }
}

/* ─────────────────────────────────────────
   OTHER CONDITIONS / PROCEDURES
   Plain list below the card grid.
───────────────────────────────────────── */

.aes-other {
  padding-top: 0;
}

.aes-other__body {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
}

.aes-other__body p + p,
.aes-other__body ul + p {
  margin-top: var(--space-4);
}

.aes-other__body ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-top: var(--space-4);
}

.aes-other__body li + li {
  margin-top: var(--space-2);
}

.aes-other__body li::marker {
  color: var(--color-action);
}

.aes-other__body a {
  color: var(--color-action);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aes-other__body a:hover {
  text-decoration: none;
}