/* =====================================================================
   ACUMEDGROUP — Supplementary stylesheet
   Ported from the Healing Skin theme (hs-*) as am-*. Things theme.json
   can't express: custom components, nav, hover states, dark sections.
   ===================================================================== */

:root {
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --am-ink: var(--wp--preset--color--ink, #0E0C0A);
  --am-bone: var(--wp--preset--color--bone, #FAF8F3);
  --am-gold: var(--wp--preset--color--bronze, #C9A961);
  --am-gold-deep: var(--wp--preset--color--bronze-deep, #7A5F3D);
  --am-gold-tint: var(--wp--preset--color--bronze-tint, #F1E9D6);
  --am-cin: var(--wp--preset--color--cinnabar, #B3432A);
  --am-cin-deep: var(--wp--preset--color--cinnabar-deep, #8C3320);
  --am-line: var(--wp--preset--color--gray-200, #E0DACF);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
h1, h2, .has-display-font-family { font-variation-settings: "opsz" 144; }
h3, h4 { font-variation-settings: "opsz" 72; }
h1, h2, h3 { text-wrap: balance; }

/* Italic emphasis word inside display headings */
h1 em, h2 em, h3 em, .has-display-font-family em {
  font-style: italic;
  font-weight: 300;
  color: var(--am-gold-deep);
}
.am-on-dark h1 em, .am-on-dark h2 em, .am-on-dark h3 em { color: var(--am-gold); }

/* =====================================================================
   EYEBROW — small uppercase label above headings
   ===================================================================== */
.am-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--am-gold-deep);
}
.am-on-dark .am-eyebrow { color: var(--am-gold); }
.am-eyebrow--with-rule { display: flex; align-items: center; gap: 12px; }
.am-eyebrow--with-rule::after {
  content: ''; flex: 1; height: 1px; max-width: 80px;
  background: var(--wp--preset--color--gray-300);
}
.am-on-dark .am-eyebrow--with-rule::after { background: rgba(201,169,97,0.45); }

/* Short gold rule under centered section titles */
.am-rule {
  width: 36px; height: 1px; border: 0;
  background: var(--am-gold);
  margin: 24px auto 0;
}

/* =====================================================================
   SECTION SPACING HELPERS
   ===================================================================== */
.am-section { padding: var(--wp--preset--spacing--100) var(--wp--preset--spacing--80); }
.am-section--tight { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); }
.am-section__head { max-width: 820px; margin: 0 auto var(--wp--preset--spacing--80); text-align: center; }
.am-section__head p.am-lede { font-size: 19px; line-height: 1.55; color: var(--wp--preset--color--gray-500); margin: 0; }
.am-wrap { max-width: 1200px; margin: 0 auto; }
.am-wrap--wide { max-width: 1440px; margin: 0 auto; }

/* Dark sections */
.am-on-dark {
  background: var(--am-ink);
  color: var(--wp--preset--color--bone);
}
.am-on-dark p { color: var(--wp--preset--color--gray-300); }
.am-on-dark a:not(.wp-block-button__link):not(.am-btn) { color: var(--wp--preset--color--bone); }
.am-on-dark .wp-block-button__link {
  background: var(--am-gold); color: var(--am-ink); border-color: var(--am-gold);
}
.am-on-dark .wp-block-button__link:hover { background: var(--wp--preset--color--bone); border-color: var(--wp--preset--color--bone); color: var(--am-ink); }
.am-on-dark .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--bone); border-color: rgba(250,248,243,0.4);
}
.am-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--bone); background: transparent; }

/* =====================================================================
   HERO — dark, 50/50 copy + photo
   ===================================================================== */
.am-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 560px;
}
.am-hero__copy {
  padding: clamp(56px, 8vw, 120px) clamp(24px, 5vw, 80px) clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.am-hero__copy h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  font-weight: 300;
  margin: 0 0 var(--wp--preset--spacing--60);
}
.am-hero__lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 0 var(--wp--preset--spacing--70);
}
.am-hero__photo {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
}
.am-hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--am-ink) 0%, rgba(14,12,10,0) 32%);
}
.am-hero__proof {
  margin-top: var(--wp--preset--spacing--70);
  padding-top: var(--wp--preset--spacing--50);
  border-top: 1px solid rgba(250,248,243,0.12);
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--wp--preset--color--gray-300);
}
.am-hero__proof strong { color: var(--wp--preset--color--bone); font-weight: 600; }
@media (max-width: 900px) {
  .am-hero { grid-template-columns: 1fr; }
  .am-hero__photo { min-height: 320px; order: -1; }
  .am-hero__photo::after { background: linear-gradient(0deg, var(--am-ink) 0%, rgba(14,12,10,0) 45%); }
}

/* =====================================================================
   TREATMENT CARD + GRID (hairline-divided)
   ===================================================================== */
.am-treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}
.am-treatment-grid--3 { grid-template-columns: repeat(3, 1fr); }
.am-treatment-card {
  background: var(--wp--preset--color--white);
  padding: 0 28px 28px;
  display: flex; flex-direction: column;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.3s var(--ease);
}
.am-treatment-card:hover { background: var(--am-bone); }
.am-treatment-card__image {
  aspect-ratio: 4/3;
  margin: 0 -28px 28px;
  background: var(--wp--preset--color--gray-100);
  background-size: cover; background-position: center;
}
.am-treatment-card__image--tone {
  background-color: var(--am-ink);
  background-image: radial-gradient(120% 90% at 20% 90%, rgba(179,67,42,0.55) 0%, rgba(179,67,42,0) 60%),
                    radial-gradient(90% 70% at 85% 10%, rgba(201,169,97,0.25) 0%, rgba(201,169,97,0) 60%);
  display: flex; align-items: flex-end; padding: 20px 24px;
}
.am-treatment-card__image--tone span {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic; font-weight: 300;
  font-size: 22px; color: var(--am-gold);
}
.am-treatment-card__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--am-gold-deep); margin-bottom: 12px;
}
.am-treatment-card__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 26px; line-height: 1.15; font-weight: 400;
  color: var(--am-ink); margin: 0 0 10px; letter-spacing: -0.005em;
}
.am-treatment-card__desc {
  font-size: 14.5px; line-height: 1.6;
  color: var(--wp--preset--color--gray-700);
  margin-bottom: 24px; flex: 1;
}
.am-treatment-card__meta {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--wp--preset--color--gray-500);
  padding-top: 14px; border-top: 1px solid var(--wp--preset--color--gray-100);
  display: flex; justify-content: space-between; align-items: center;
}
.am-treatment-card__arrow {
  font-family: var(--wp--preset--font-family--display);
  font-size: 18px; font-style: italic; color: var(--am-cin);
  transition: transform 0.3s var(--ease-out);
}
.am-treatment-card:hover .am-treatment-card__arrow { transform: translateX(6px); }
@media (max-width: 1100px) { .am-treatment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .am-treatment-grid, .am-treatment-grid--3 { grid-template-columns: 1fr; } }

/* =====================================================================
   CONDITIONS — list grid (search-intent entry points)
   ===================================================================== */
.am-conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}
.am-condition {
  background: var(--wp--preset--color--white);
  padding: 36px 32px 32px;
  text-decoration: none !important; color: inherit !important;
  transition: background 0.3s var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.am-condition:hover { background: var(--am-gold-tint); }
.am-condition__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 24px; font-weight: 400; line-height: 1.2; margin: 0;
}
.am-condition__list {
  font-size: 14.5px; line-height: 1.6; color: var(--wp--preset--color--gray-700); margin: 0;
}
.am-condition__link {
  margin-top: auto; padding-top: 14px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--am-cin);
}
@media (max-width: 900px) { .am-conditions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .am-conditions { grid-template-columns: 1fr; } }

/* =====================================================================
   MODALITY MATRIX — table from the Clinical Wellness deck
   ===================================================================== */
.am-matrix-wrap { overflow-x: auto; }
.am-matrix {
  width: 100%; border-collapse: collapse;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--am-line);
  font-size: 15px;
}
.am-matrix th, .am-matrix td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wp--preset--color--gray-100); }
.am-matrix thead th {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--am-gold-deep); border-bottom: 1px solid var(--am-gold);
}
.am-matrix tbody th {
  font-family: var(--wp--preset--font-family--display);
  font-size: 21px; font-weight: 400; color: var(--am-ink); white-space: nowrap;
}
.am-matrix tbody tr:last-child th, .am-matrix tbody tr:last-child td { border-bottom: 0; }

/* =====================================================================
   FOUNDER / CLINICIAN BLOCK
   ===================================================================== */
.am-founder { display: grid; grid-template-columns: 42% 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.am-founder__photo { aspect-ratio: 3/4; background-size: cover; background-position: center 15%; }
.am-founder-quote {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic; font-size: 26px; line-height: 1.4; font-weight: 300;
  color: var(--am-ink); margin: 0 0 28px; padding-left: 24px;
  border-left: 1px solid var(--am-gold);
}
@media (max-width: 900px) { .am-founder { grid-template-columns: 1fr; } .am-founder__photo { aspect-ratio: 4/3; } }

/* =====================================================================
   STEPS — "your first visit" (a real sequence, so it is numbered)
   ===================================================================== */
.am-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--am-line); border: 1px solid var(--am-line); counter-reset: step; }
.am-step { background: var(--wp--preset--color--white); padding: 32px 24px 28px; }
.am-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-style: italic; font-weight: 300; font-size: 34px; line-height: 1;
  color: var(--am-cin); margin-bottom: 18px;
}
.am-step h3 { font-size: 21px; font-weight: 400; margin: 0 0 8px; }
.am-step p { font-size: 14.5px; line-height: 1.6; color: var(--wp--preset--color--gray-700); margin: 0; }
@media (max-width: 1000px) { .am-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .am-steps { grid-template-columns: 1fr; } }

/* =====================================================================
   VETERANS PANEL — cinnabar-tinted, one per site
   ===================================================================== */
.am-veterans {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--wp--preset--color--cinnabar-tint);
  border-top: 1px solid rgba(179,67,42,0.25); border-bottom: 1px solid rgba(179,67,42,0.25);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px);
}
.am-veterans .am-eyebrow { color: var(--am-cin-deep); }
.am-veterans h2 { margin: 12px 0 18px; }
.am-veterans h2 em { color: var(--am-cin-deep); }
.am-veterans ul { margin: 0 0 24px; padding-left: 18px; color: var(--wp--preset--color--gray-700); line-height: 1.7; }
.am-veterans__photo { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.am-veterans .wp-block-button__link { background: var(--am-cin); border-color: var(--am-cin); }
.am-veterans .wp-block-button__link:hover { background: var(--am-cin-deep); border-color: var(--am-cin-deep); }
@media (max-width: 900px) { .am-veterans { grid-template-columns: 1fr; } }

/* =====================================================================
   EVIDENCE ROW (kept from HS for the about page)
   ===================================================================== */
.am-evidence-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--am-line); border: 1px solid var(--am-line); }
.am-evidence-stat { padding: 56px 24px; background: var(--wp--preset--color--white); text-align: center; }
.am-evidence-number { font-family: var(--wp--preset--font-family--display); font-size: 64px; line-height: 1; font-weight: 300; letter-spacing: -0.025em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.am-evidence-number em { font-style: italic; color: var(--am-gold-deep); }
.am-evidence-label { font-size: 14px; line-height: 1.5; color: var(--wp--preset--color--gray-500); max-width: 220px; margin: 0 auto; }
@media (max-width: 980px) { .am-evidence-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .am-evidence-row { grid-template-columns: 1fr; } .am-evidence-number { font-size: 52px; } }

/* =====================================================================
   PULL QUOTE
   ===================================================================== */
.am-pullquote { max-width: 820px; margin: 0 auto; text-align: center; }
.am-pullquote__mark { font-family: var(--wp--preset--font-family--display); font-size: 72px; line-height: 0.8; color: var(--am-gold); margin-bottom: 12px; font-style: italic; }
.am-pullquote__text { font-family: var(--wp--preset--font-family--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 300; font-style: italic; color: var(--am-ink); margin: 0 0 28px; }
.am-pullquote__author { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--gray-500); }

/* =====================================================================
   FAQ — native <details>
   ===================================================================== */
.am-faq { max-width: 820px; margin: 0 auto; }
.am-faq__item { border-bottom: 1px solid var(--am-line); }
.am-faq__item:first-child { border-top: 1px solid var(--am-line); }
.am-faq__q { font-family: var(--wp--preset--font-family--display); font-size: 22px; line-height: 1.35; font-weight: 400; cursor: pointer; list-style: none; padding: 28px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.am-faq__q::-webkit-details-marker { display: none; }
.am-faq__sym { font-family: var(--wp--preset--font-family--display); font-size: 28px; font-weight: 300; font-style: italic; color: var(--am-cin); transition: transform 0.3s var(--ease-out); flex-shrink: 0; }
.am-faq__item[open] .am-faq__sym { transform: rotate(45deg); }
.am-faq__a { padding: 0 96px 40px 0; font-size: 17px; line-height: 1.7; color: var(--wp--preset--color--gray-700); max-width: 65ch; }
@media (max-width: 980px) { .am-faq__q { font-size: 19px; padding: 22px 0; } .am-faq__a { padding-right: 24px; } }

/* =====================================================================
   ECOSYSTEM STRIP — the four Rusnak brands
   ===================================================================== */
.am-ecosystem { padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 80px); background: var(--wp--preset--color--gray-50); border-top: 1px solid rgba(201,169,97,0.35); }
.am-ecosystem__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.am-ecosystem__head h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 14px; }
.am-ecosystem__head p { font-size: 16px; color: var(--wp--preset--color--gray-500); margin: 0; }
.am-ecosystem__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.am-ecosystem__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px; background: var(--wp--preset--color--white);
  border: 1px solid var(--am-line); text-decoration: none !important; color: inherit !important;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.am-ecosystem__card:hover { border-color: var(--am-gold); transform: translateY(-2px); }
.am-ecosystem__card.is-current { border-color: var(--am-gold); background: var(--am-gold-tint); }
.am-ecosystem__step { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--am-gold-deep); }
.am-ecosystem__name { font-family: var(--wp--preset--font-family--display); font-size: 24px; font-weight: 400; line-height: 1.15; }
.am-ecosystem__desc { font-size: 14px; line-height: 1.5; color: var(--wp--preset--color--gray-500); }
@media (max-width: 900px) { .am-ecosystem__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .am-ecosystem__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   CTA PANEL — dark, one per page
   ===================================================================== */
.am-cta { text-align: center; padding: clamp(72px, 10vw, 150px) clamp(24px, 5vw, 80px); }
.am-cta h2 { font-size: clamp(38px, 5vw, 68px); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; color: var(--wp--preset--color--bone); margin: 0 0 20px; }
.am-cta p { font-size: 19px; max-width: 46ch; margin: 0 auto 40px; }
.am-cta .wp-block-buttons { justify-content: center; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.wp-block-button__link { transition: all 0.3s var(--ease-out); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.wp-block-button__link::after { content: '→'; display: inline-block; transition: transform 0.3s var(--ease-out); }
.wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--am-ink); }
.wp-block-button.is-style-outline .wp-block-button__link::after { content: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--am-ink); color: var(--wp--preset--color--white); }
.wp-block-button.is-style-cinnabar .wp-block-button__link { background: var(--am-cin); border-color: var(--am-cin); color: #fff; }
.wp-block-button.is-style-cinnabar .wp-block-button__link:hover { background: var(--am-cin-deep); border-color: var(--am-cin-deep); }

/* Links inside content get a gold underline */
.entry-content a:not(.wp-block-button__link):not([class*="am-"]) {
  border-bottom: 1px solid var(--am-gold); padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.entry-content a:not(.wp-block-button__link):not([class*="am-"]):hover { border-color: var(--am-ink); }

/* =====================================================================
   HEADER + NAVIGATION (custom HTML, mirrors the live Healing Skin header)
   ===================================================================== */
.am-header { width: 100%; background: var(--am-bone); position: relative; z-index: 100; border-bottom: 1px solid var(--wp--preset--color--gray-100); }
.am-header__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(16px, 3vw, 56px);
}
.am-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.am-nav--left { justify-self: start; }
.am-nav--right { justify-self: end; }
.am-nav__link { color: var(--am-ink); text-decoration: none; padding: 8px 0; position: relative; transition: color 180ms ease; white-space: nowrap; }
.am-nav__link:hover { color: var(--am-gold-deep); }
.am-nav__btn {
  background: var(--am-ink); color: #fff !important;
  padding: 12px 20px; text-decoration: none;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  transition: background 180ms ease; white-space: nowrap;
}
.am-nav__btn:hover { background: var(--am-cin); }
.am-nav__group { position: relative; }
.am-nav__group > .am-nav__link::after { content: " +"; color: var(--am-gold); font-family: var(--wp--preset--font-family--display); font-style: italic; display: inline-block; margin-left: 2px; }
.am-nav__dropdown {
  position: absolute; top: 100%; left: -16px; min-width: 260px;
  background: #fff; padding: 12px 0; box-shadow: 0 10px 40px rgba(14,12,10,0.08); border: 1px solid var(--wp--preset--color--gray-100);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 110;
}
.am-nav__group::before { content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 14px; }
.am-nav__group:hover .am-nav__dropdown, .am-nav__group:focus-within .am-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.am-nav__sub { display: block; padding: 10px 22px; color: var(--am-ink); text-decoration: none; font-size: 13.5px; font-weight: 400; transition: color 180ms ease, background 180ms ease; }
.am-nav__sub:hover { color: var(--am-gold-deep); background: var(--am-gold-tint); }
.am-nav__sub--all { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(14,12,10,0.08); font-style: italic; color: var(--am-gold-deep); }

/* Wordmark (text logo until the artwork lands) */
.am-logo { display: flex; flex-direction: column; align-items: center; justify-self: center; text-decoration: none !important; color: var(--am-ink) !important; line-height: 1; }
.am-logo__name { font-family: var(--wp--preset--font-family--display); font-size: 27px; font-weight: 400; letter-spacing: 0.01em; font-variation-settings: "opsz" 72; }
.am-logo__name em { font-style: italic; font-weight: 300; color: var(--am-gold-deep); }
.am-logo__sub { margin-top: 6px; font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; color: var(--am-gold-deep); }
.am-logo__img { display: block; height: auto; width: auto; max-height: 72px; max-width: 320px; object-fit: contain; }

/* Hamburger + mobile overlay */
.am-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; width: 40px; height: 40px; justify-self: end; }
.am-burger__line { display: block; width: 22px; height: 1.5px; background: var(--am-ink); margin: 5px auto; transition: transform 240ms ease, opacity 180ms ease; }
.am-burger.is-open .am-burger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.am-burger.is-open .am-burger__line:nth-child(2) { opacity: 0; }
.am-burger.is-open .am-burger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.am-mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--am-bone); z-index: 99;
  flex-direction: column; padding: 96px clamp(24px, 6vw, 48px) 48px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 240ms ease;
}
.am-mobile-nav.is-open { opacity: 1; visibility: visible; }
.am-mobile-nav__link { font-family: var(--wp--preset--font-family--display); font-size: 30px; font-weight: 300; color: var(--am-ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--am-line); }
.am-mobile-nav__sub { font-size: 15px; color: var(--wp--preset--color--gray-700); text-decoration: none; padding: 8px 0 8px 18px; }
.am-mobile-nav__btn { margin-top: 24px; background: var(--am-ink); color: #fff !important; padding: 16px 22px; text-align: center; text-decoration: none; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.am-mobile-nav__contact { margin-top: 32px; font-size: 14px; line-height: 1.7; color: var(--wp--preset--color--gray-500); }
.am-mobile-nav__contact a { color: var(--am-ink); text-decoration: none; }
body.am-nav-open { overflow: hidden; }
@media (max-width: 980px) {
  .am-header__inner { grid-template-columns: auto 1fr auto; }
  .am-nav { display: none; }
  .am-logo { justify-self: start; }
  .am-burger { display: block; }
  .am-mobile-nav { display: flex; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.am-footer { background: var(--am-bone); border-top: 1px solid var(--am-line); padding: var(--wp--preset--spacing--90) clamp(24px, 5vw, 80px) var(--wp--preset--spacing--60); }
.am-footer__inner { max-width: 1440px; margin: 0 auto; }
.am-footer-main { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.am-footer-brand__tag { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 17px; color: var(--wp--preset--color--gray-500); margin: 14px 0 22px; }
.am-footer-brand__addr { font-size: 14px; line-height: 1.75; color: var(--wp--preset--color--gray-700); margin: 0; }
.am-footer-brand__addr a { color: var(--wp--preset--color--gray-700); text-decoration: none; }
.am-footer-brand__addr a:hover { color: var(--am-gold-deep); }
.am-footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 24px; align-items: start; }
.am-fcol { min-width: 0; }
.am-fcol__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--am-ink); margin: 0 0 14px; line-height: 1.4; }
.am-fcol__links { display: flex; flex-direction: column; gap: 9px; }
.am-fcol__links a { font-size: 14px; color: var(--wp--preset--color--gray-700); text-decoration: none; line-height: 1.4; transition: color 160ms ease; }
.am-fcol__links a:hover { color: var(--am-gold-deep); }
.am-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: var(--wp--preset--spacing--70); padding-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--am-line); font-size: 12.5px; color: var(--wp--preset--color--gray-500); }
.am-footer-bottom a { color: var(--wp--preset--color--gray-500); text-decoration: none; margin-right: 18px; }
.am-footer-bottom a:hover { color: var(--am-ink); }
.am-footer-bottom small { font-size: 12px; max-width: 70ch; line-height: 1.5; }
@media (max-width: 1100px) { .am-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .am-footer-main { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px)  { .am-footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   TREATMENT PAGE TEMPLATE
   ===================================================================== */
.am-page-hero { padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px) clamp(36px, 5vw, 64px); max-width: 1440px; margin: 0 auto; }
.am-page-hero h1 { max-width: 16ch; }
.am-page-hero .am-page-hero__lede { font-size: 19px; color: var(--wp--preset--color--gray-500); max-width: 56ch; margin: 20px 0 0; }
.am-content-narrow { max-width: 760px; margin: 0 auto; }

/* =====================================================================
   MOBILE FIXES (carried over from the live Healing Skin header)
   ===================================================================== */
figure.wp-caption { width: auto !important; max-width: 100% !important; }
figure.wp-caption img, .wp-block-image img { max-width: 100%; height: auto; }
main iframe, article iframe { max-width: 100%; }
main iframe[src*="youtube"] { aspect-ratio: 16/9; height: auto; }
h1, h2, h1 em, h2 em { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .wp-block-table, figure.wp-block-table { display: block; overflow-x: auto; max-width: 100%; }
  main section.wp-block-group, .entry-content > .wp-block-group { padding-left: var(--wp--preset--spacing--50) !important; padding-right: var(--wp--preset--spacing--50) !important; }
  main p a, main li a { overflow-wrap: anywhere; }
  .wp-block-button__link, .am-nav__btn, .am-mobile-nav__btn { overflow-wrap: normal !important; word-break: keep-all !important; letter-spacing: 0.12em !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Two treatment photos side by side inside the 820 px content column (0.1.8) */
.am-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.am-photo-pair img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; background: var(--wp--preset--color--gray-100); }
@media (max-width: 560px) { .am-photo-pair { gap: 10px; } .am-photo-pair img { aspect-ratio: 3/4; } }
