/*
Theme Name: Dermaffair
Theme URI: https://dermaffair.com.au
Author: Creative Lift
Author URI: https://creativelift.com.au
Description: Bespoke single-page theme for Dermaffair — skin clinic in Hurstville, Sydney.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dermaffair
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
@media (hover: hover) and (pointer: fine) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
button, a { font: inherit; cursor: pointer; color: inherit; text-decoration: none; }
button { border: none; background: none; }
::selection { background: var(--clay); color: var(--bone); }

:root {
  --bone:   #F4EFE6;
  --paper:  #FFFFFF;
  --ink:    #141210;
  --shadow: #2B2622;
  --soft:   #6E665D;
  --mute:   #B0A99E;
  --clay:   #B8553A;
  --clay-d: #8E3F2A;
  --line:   rgba(20,18,16,0.10);
  --line-2: rgba(20,18,16,0.05);

  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --max:  1360px;
  --pad:  clamp(20px, 4vw, 56px);
}

/* Utility ------------------------------------------------------- */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px; background: var(--clay);
}

/* Top bar ------------------------------------------------------- */
.bar {
  background: var(--ink);
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 9px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bar a { border-bottom: 1px solid rgba(244,239,230,0.4); padding-bottom: 1px; }
.bar a:hover { border-color: var(--clay); color: var(--clay); }

/* Nav ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,239,230,0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__brand img { width: clamp(140px, 14vw, 180px); height: auto; }
.nav__menu {
  display: flex;
  gap: 32px;
  justify-self: center;
}
.nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--shadow);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(.7,0,.2,1);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: flex;
  gap: 10px;
  justify-self: end;
  align-items: center;
}
.nav__phone {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--shadow);
}

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0;
  background: var(--ink);
  color: var(--bone);
  transition: background 0.3s, color 0.3s, transform 0.3s;
  white-space: nowrap;
}
.btn::after { content: "→"; font-size: 14px; transition: transform 0.4s cubic-bezier(.6,0,.2,1); }
.btn:hover { background: var(--clay); }
.btn:hover::after { transform: translateX(4px); }
.btn--clay { background: var(--clay); color: var(--bone); }
.btn--clay:hover { background: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--light {
  background: var(--bone);
  color: var(--ink);
}
.btn--light:hover { background: var(--clay); color: var(--bone); }
.btn--ghost-light {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(244,239,230,0.5);
}
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* HERO ---------------------------------------------------------- */
.hero {
  position: relative;
  height: clamp(620px, 92vh, 920px);
  min-height: 620px;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  color: var(--bone);
}
.hero__img {
  position: absolute;
  inset: calc(-5vw - 60px);
  z-index: 0;
  will-change: transform;
}
.hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78) contrast(1.05);
  transform: translate3d(0, 0, 0) scale(0.92);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__img img { transition: none; transform: scale(0.92); }
}
.hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.1) 35%, rgba(20,18,16,0.7) 100%),
    linear-gradient(90deg, rgba(20,18,16,0.4) 0%, rgba(20,18,16,0) 60%);
  z-index: 2;
}
.hero__shader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #141210;
}
@media (prefers-reduced-motion: reduce) {
  .hero__shader { display: none !important; }
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--pad) clamp(40px, 6vw, 96px) clamp(12px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.hero__content a,
.hero__content .btn { pointer-events: auto; }
.hero__top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 24px;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(244,239,230,0.35);
  background: rgba(20,18,16,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.hero__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,85,58,0.6); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px rgba(184,85,58,0); opacity: 0.6; }
}
.hero__caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.7);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__main {
  max-width: 760px;
}
.hero__main .hero__chip { margin-bottom: clamp(20px, 2.4vw, 32px); }
.hero__h1 {
  font-size: clamp(50px, 7vw, 116px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 200;
  color: var(--bone);
}
.hero__h1 strong { font-weight: 600; }
.hero__sub {
  margin-top: clamp(20px, 2.5vw, 28px);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244,239,230,0.78);
  font-weight: 400;
}
.hero__cta {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-top: clamp(20px, 2.4vw, 40px);
}
.hero__scroll {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.7);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::before {
  content: "";
  width: 28px; height: 1px; background: rgba(244,239,230,0.5);
}
.hero__creds {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.85);
}
.hero__creds span { display: inline-flex; align-items: center; gap: 8px; }
.hero__creds span::before { content: "✓"; color: var(--clay); font-size: 13px; }

/* Trust strip --------------------------------------------------- */
.trust {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.trust__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  flex-shrink: 0;
}
.trust__brands {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  align-items: center;
}
.trust__brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--shadow);
  opacity: 0.7;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.trust__brand:hover { opacity: 1; }
.trust__brand sup { font-size: 0.55em; vertical-align: top; margin-left: 1px; opacity: 0.6; }

/* Section base -------------------------------------------------- */
section { position: relative; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) var(--pad);
}
.head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(56px, 7vw, 88px);
  align-items: end;
}
.head__r .eyebrow { margin-bottom: 18px; }
.head h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: 780px;
}
.head h2 strong { font-weight: 600; }
.head h2 em { font-style: italic; font-weight: 300; color: var(--clay); }
.head__r p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--soft);
  max-width: 460px;
  margin-top: 16px;
}

/* Categories (treatment taxonomy) ------------------------------- */
.cat { background: var(--bone); }

.cat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 6vw, 88px) clamp(40px, 5vw, 88px);
  border-top: 1px solid var(--ink);
  padding-top: clamp(48px, 5vw, 72px);
}

.cat__col {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
}

.cat__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #5d4037;
  margin-bottom: clamp(8px, 1vw, 12px);
}
.cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease-out;
}
.cat__media img.loaded,
.cat__media img[complete] { opacity: 1; }
.cat__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0) 40%, rgba(20,18,16,0.55) 100%);
  pointer-events: none;
}
@media (hover: hover) {
  .cat__col:hover .cat__media img { transform: scale(1.05); }
}
.cat__media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--bone);
  color: var(--ink);
  padding: 7px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cat__media .label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cat__media .label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--clay);
}

.cat__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: clamp(18px, 2vw, 24px);
  border-bottom: 1px solid var(--ink);
}
.cat__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--clay);
}
.cat__name {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--ink);
}
.cat__desc {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.6;
  max-width: 460px;
}
.cat__items {
  list-style: none;
  margin-top: 4px;
}
.cat__items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 16px;
  color: var(--ink);
  transition: padding-left 0.3s, color 0.3s;
}
.cat__items li:last-child { border-bottom: none; }
.cat__items li:hover { padding-left: 8px; color: var(--clay); }
.cat__items .price {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--soft);
  white-space: nowrap;
}

.cat__cta {
  align-self: flex-start;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s, gap 0.3s, border-color 0.3s;
}
.cat__cta::after { content: "→"; font-size: 14px; transition: transform 0.4s cubic-bezier(.6,0,.2,1); }
.cat__cta:hover { color: var(--clay); border-color: var(--clay); }
.cat__cta:hover::after { transform: translateX(6px); }

/* Reviews ------------------------------------------------------- */
.reviews {
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid var(--ink);
}
.reviews .wrap { padding-top: clamp(80px, 8vw, 112px); padding-bottom: clamp(80px, 8vw, 112px); }
.reviews__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: clamp(40px, 4vw, 56px);
}
.reviews__head .eyebrow { color: var(--clay); margin-bottom: 24px; }
.reviews__head .eyebrow::before { background: var(--clay); }
.reviews__head h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  max-width: 540px;
}
.reviews__head h2 strong { font-weight: 600; }
.reviews__head p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244,239,230,0.7);
  max-width: 420px;
}

.reviews__widget {
  border-top: 1px solid rgba(244,239,230,0.18);
  padding-top: clamp(28px, 3vw, 40px);
}

.reviews__summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid rgba(244,239,230,0.18);
  border-bottom: 1px solid rgba(244,239,230,0.18);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.reviews__rating {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 2.5vw, 32px);
}
.reviews__num {
  font-size: clamp(48px, 4.6vw, 72px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: var(--bone);
}
.reviews__rating-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 6px;
}
.reviews__stars {
  color: var(--clay);
  font-size: 18px;
  letter-spacing: 4px;
  line-height: 1;
}
.reviews__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.7);
}
.reviews__cta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bone);
  transition: color 0.3s, gap 0.3s, border-color 0.3s;
}
.reviews__cta::after { content: "→"; font-size: 14px; transition: transform 0.4s cubic-bezier(.6,0,.2,1); }
.reviews__cta:hover { color: var(--clay); border-color: var(--clay); }
.reviews__cta:hover::after { transform: translateX(6px); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.review {
  border: 1px solid rgba(244,239,230,0.12);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.review:hover { border-color: rgba(244,239,230,0.28); transform: translateY(-3px); }
.review__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review__stars {
  color: var(--clay);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
}
.review__date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
}
.review__body {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(244,239,230,0.85);
  flex: 1;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(244,239,230,0.12);
}
.review__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(184,85,58,0.18);
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.review__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.review__via {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  margin-top: 3px;
}

/* Featured treatment ------------------------------------------- */
.feat {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.feat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}
.feat__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
@media (hover: hover) {
  .feat__media:hover img { transform: scale(1.04); }
}
.feat__media .stamp {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--bone);
  color: var(--ink);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feat__body { display: flex; flex-direction: column; gap: 28px; }
.feat__body .eyebrow { color: var(--clay); }
.feat__title {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.feat__title strong { font-weight: 600; }
.feat__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--shadow);
  max-width: 540px;
}

.feat__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.feat__spec {
  padding: 22px 28px 28px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.feat__spec:nth-child(2n) { border-right: none; padding-right: 0; }
.feat__spec:nth-last-child(-n+2) { border-bottom: none; }
.feat__spec .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}
.feat__spec .v {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.feat__spec .v small { font-weight: 400; color: var(--soft); margin-left: 2px; }

.feat__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Featured carousel ------------------------------------------- */
.feat__carousel { position: relative; }
.feat__slides { position: relative; overflow: hidden; }
.feat__track {
  display: flex;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.2, 1);
  will-change: transform;
}
.feat__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.feat__nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 4vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.feat__nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  font-family: var(--mono);
}
.feat__nav-btn:hover { background: var(--ink); color: var(--bone); }
.feat__nav-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.feat__dots { display: flex; gap: 8px; align-items: center; justify-self: center; }
.feat__dot {
  width: 32px;
  height: 3px;
  background: var(--mute);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.4s, width 0.4s;
}
.feat__dot.is-active { background: var(--clay); width: 56px; }
.feat__dot:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.feat__counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--soft);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .feat__track { transition: none; }
}

/* Approach ------------------------------------------------------ */
.approach { background: var(--bone); border-top: 1px solid var(--line); }
.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.approach__lead {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 400;
  max-width: 460px;
}
.approach__lead strong { font-weight: 600; }
.approach__lead em { font-style: italic; color: var(--clay); font-weight: 400; }

.approach__steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.approach__step {
  padding: clamp(24px, 2.5vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
}
.approach__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--clay);
  padding-top: 6px;
}
.approach__step h4 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.approach__step h4 strong { font-weight: 600; }
.approach__step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--shadow);
  margin-top: 6px;
  max-width: 520px;
}
.approach__time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}

/* Practitioners ------------------------------------------------- */
.team { background: var(--paper); border-top: 1px solid var(--line); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.team__card {
  display: flex;
  flex-direction: column;
}
.team__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bone);
  margin-bottom: 18px;
}
.team__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); filter: grayscale(0.1); }
@media (hover: hover) {
  .team__card:hover .team__img img { transform: scale(1.04); filter: grayscale(0); }
}
.team__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.team__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 4px;
}
.team__creds {
  font-size: 14px;
  color: var(--soft);
  margin-top: 12px;
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Visit --------------------------------------------------------- */
.visit { background: var(--ink); color: var(--bone); border-top: 1px solid var(--ink); }
.visit__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 96px);
}
.visit .head h2 { color: var(--bone); max-width: 560px; }
.visit .head h2 em { color: var(--clay); }
.visit .head__r p { color: rgba(244,239,230,0.72); }
.visit .head__l .eyebrow { color: var(--clay); }
.visit .head__l .eyebrow::before { background: var(--clay); }

.visit__panel {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(244,239,230,0.18);
}
.visit__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(244,239,230,0.18);
  align-items: start;
}
.visit__row .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  padding-top: 4px;
}
.visit__row .v { font-size: 16px; line-height: 1.55; }
.visit__row .v.lg { font-size: 19px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.visit__row .v a:hover { color: var(--clay); }
.visit__hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; font-size: 14.5px; }
.visit__hours .day { color: rgba(244,239,230,0.65); }

.visit__map {
  position: relative;
  background: var(--shadow);
  overflow: hidden;
  min-height: 460px;
}
.visit__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

/* Booking band -------------------------------------------------- */
.book {
  background: var(--clay);
  color: var(--bone);
  border-top: 1px solid var(--clay);
}
.book .wrap { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }
.book__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.book h3 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  max-width: 760px;
}
.book h3 strong { font-weight: 600; }
.book__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.book__cta .btn--light { background: var(--bone); color: var(--ink); }
.book__cta .btn--light:hover { background: var(--ink); color: var(--bone); }
.book__cta .btn--ghost-light:hover { background: var(--bone); color: var(--clay); border-color: var(--bone); }

/* Footer -------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(64px, 6vw, 96px) var(--pad) 28px;
  border-top: 1px solid var(--ink);
}
.foot__inner { max-width: var(--max); margin: 0 auto; }
.foot__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,239,230,0.18);
}
.foot__brand img { width: clamp(180px, 18vw, 240px); margin-bottom: 22px; }
.foot__brand p {
  font-size: 14.5px;
  color: rgba(244,239,230,0.7);
  max-width: 380px;
  line-height: 1.55;
}
.foot__col h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
  font-weight: 400;
}
.foot__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot__col a { font-size: 15px; color: rgba(244,239,230,0.85); transition: color 0.3s; }
.foot__col a:hover { color: var(--clay); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.6);
  flex-wrap: wrap;
  gap: 16px;
}

/* Mobile menu --------------------------------------------------- */
.nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 92;
  transition: background 0.3s, border-color 0.3s;
}
.nav__hamburger span,
.nav__hamburger span::before,
.nav__hamburger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s cubic-bezier(.6,0,.2,1), opacity 0.2s, background-color 0.3s, top 0.35s;
}
.nav__hamburger span::before,
.nav__hamburger span::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -9px;
}
.nav__hamburger span::before { top: calc(50% - 6px); }
.nav__hamburger span::after  { top: calc(50% + 6px); }
.nav__hamburger.is-open { background: var(--ink); border-color: var(--ink); }
.nav__hamburger.is-open span { background: transparent; }
.nav__hamburger.is-open span::before {
  background: var(--bone);
  top: 50%;
  transform: rotate(45deg);
}
.nav__hamburger.is-open span::after {
  background: var(--bone);
  top: 50%;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bone);
  display: flex;
  flex-direction: column;
  padding: clamp(96px, 18vw, 130px) var(--pad) clamp(28px, 6vw, 48px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s cubic-bezier(.2,.7,.2,1),
              transform 0.45s cubic-bezier(.2,.7,.2,1),
              visibility 0s 0.45s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(.2,.7,.2,1),
              transform 0.45s cubic-bezier(.2,.7,.2,1),
              visibility 0s;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(32px, 6vw, 48px);
}
.mobile-menu__nav a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 18px;
  padding: clamp(20px, 4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding-left 0.35s cubic-bezier(.6,0,.2,1), color 0.3s;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a:active { padding-left: 8px; color: var(--clay); }
.mobile-menu__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--clay);
}
.mobile-menu__label {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu__cta .btn {
  width: 100%;
  padding: 18px 22px;
  font-size: 14px;
  justify-content: space-between;
}
.mobile-menu__foot {
  margin-top: clamp(28px, 5vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
}
.mobile-menu__foot a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.3s;
}
.mobile-menu__foot a:hover { color: var(--clay); }
body.menu-open { overflow: hidden; }
body.menu-open .nav { z-index: 95; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
body.menu-open .nav__inner { padding-top: clamp(40px, 9vw, 60px); padding-bottom: clamp(28px, 6vw, 44px); }

/* Contact modal ------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,18,16,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: modalFade 0.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.modal__panel {
  position: relative;
  background: var(--bone);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  animation: modalIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
@keyframes modalFade { to { opacity: 1; } }
@keyframes modalIn   { to { opacity: 1; transform: translateY(0) scale(1); } }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  font-family: var(--mono);
}
.modal__close:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.modal__header { margin-bottom: clamp(24px, 3vw, 32px); }
.modal__header .eyebrow { margin-bottom: 14px; }
.modal__title {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 300;
  margin-bottom: 12px;
}
.modal__title strong { font-weight: 600; }
.modal__lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--soft);
  max-width: 420px;
}
.modal__form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.form__optional {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--mute);
  font-size: 10.5px;
}
.form__row input,
.form__row textarea {
  font: inherit;
  font-size: 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  color: var(--ink);
  font-family: var(--sans);
  resize: vertical;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-bottom-color: var(--clay);
}
.form__row textarea { min-height: 100px; line-height: 1.5; }
.form__cta { margin-top: 8px; }
.form__cta .btn { width: 100%; }
.form__success {
  padding: 16px 18px;
  background: rgba(184,85,58,0.08);
  border-left: 3px solid var(--clay);
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--shadow);
}
body.modal-open { overflow: hidden; }

/* Contact Form 7 inside the modal ------------------------------- */
/* Styled to match the site's hand-built form. Selectors target CF7's own
   control classes (.wpcf7-text, .wpcf7-submit, …) so they apply no matter
   how the form template in WP admin is written. */
.modal__form .wpcf7 { width: 100%; }
.modal__form form.wpcf7-form { display: flex; flex-direction: column; gap: 20px; }
.modal__form .wpcf7-form p { margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* Labels — mono, uppercase, muted. */
.modal__form .wpcf7-form label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 400;
}
.modal__form .wpcf7-form-control-wrap { display: block; width: 100%; }
.modal__form .wpcf7-form br { display: none; }

/* Text fields — underline style. Both the CF7 control classes and a generic
   fallback are listed so this wins over the browser default and CF7's CSS. */
.modal__form .wpcf7-form-control.wpcf7-text,
.modal__form .wpcf7-form-control.wpcf7-email,
.modal__form .wpcf7-form-control.wpcf7-tel,
.modal__form .wpcf7-form-control.wpcf7-number,
.modal__form .wpcf7-form-control.wpcf7-date,
.modal__form .wpcf7-form-control.wpcf7-select,
.modal__form .wpcf7-form-control.wpcf7-textarea,
.modal__form .wpcf7-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.modal__form .wpcf7-form select,
.modal__form .wpcf7-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  padding: 8px 0;
  margin: 0;
  width: 100%;
  color: var(--ink);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s;
}
.modal__form .wpcf7-form input:focus,
.modal__form .wpcf7-form select:focus,
.modal__form .wpcf7-form textarea:focus {
  outline: none;
  border-bottom-color: var(--clay);
  box-shadow: none;
}
.modal__form .wpcf7-form textarea { min-height: 110px; }

/* Submit button — full-width clay button, matching .btn--clay. */
.modal__form .wpcf7-submit,
.modal__form .wpcf7-form input[type="submit"],
.modal__form .wpcf7-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 15px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 0;
  background: var(--clay);
  color: var(--bone);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.3s, color 0.3s;
}
.modal__form .wpcf7-submit:hover,
.modal__form .wpcf7-form input[type="submit"]:hover,
.modal__form .wpcf7-form button[type="submit"]:hover { background: var(--ink); color: var(--bone); }

/* AJAX spinner + response / validation messages. */
.modal__form .wpcf7-spinner { margin: 12px auto 0; }
.modal__form .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  border: none;
  border-left: 3px solid var(--clay);
  background: rgba(184,85,58,0.08);
  color: var(--shadow);
}
.modal__form .wpcf7-not-valid-tip {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--clay-d);
}
.modal__form .wpcf7-form input.wpcf7-not-valid,
.modal__form .wpcf7-form textarea.wpcf7-not-valid { border-bottom-color: var(--clay-d); }

/* Reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive ---------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__menu { gap: 22px; }
  .cat__grid { grid-template-columns: 1fr; gap: 56px; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .feat__grid { grid-template-columns: 1fr; }
  .approach__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { min-height: 380px; }
  .head { grid-template-columns: 1fr; }
  .reviews__head { grid-template-columns: 1fr; gap: 24px; }
  .reviews__summary { flex-direction: column; align-items: flex-start; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .bar { display: none; }
  .nav__menu { display: none; }
  .nav__phone { display: none; }
  .nav__cta-desktop { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__brand img { width: clamp(160px, 50vw, 220px); }
  .nav__inner { grid-template-columns: 1fr auto; padding-top: 28px; padding-bottom: 28px; }
  .hero { height: clamp(480px, 72svh, 660px); min-height: 480px; }
  .hero__caption { display: none; }
  .hero__creds { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__bottom { grid-template-columns: 1fr; margin-bottom: clamp(40px, 8vw, 72px); }
  .trust__row { gap: 20px; flex-direction: column; justify-content: center; text-align: center; }
  .trust__brands { justify-content: center; gap: 20px 28px; }
  .trust__brand { font-size: 14px; }
  .cat__items li { font-size: 15px; }
  .approach__step { grid-template-columns: 1fr; }
  .approach__time { justify-self: start; }
  .team__grid { grid-template-columns: 1fr; }
  .feat__specs { grid-template-columns: 1fr; }
  .feat__spec { border-right: none; padding-right: 0; }
  .feat__spec:nth-child(2n) { border-right: none; }
  .visit__row { grid-template-columns: 1fr; gap: 6px; }
  .book__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .feat__nav { grid-template-columns: auto 1fr auto; }
  .feat__counter { display: none; }

  /* Mobile perf — lighter reveals, drop GPU-heavy effects */
  .reveal { transform: translateY(28px); transition-duration: 0.7s, 0.7s; }
  .hero__shader { display: block; }
  .hero__img picture { display: none; }
  .hero__h1 { font-size: clamp(64px, 14vw, 96px); }
  .hero__scroll { display: none; }
  /* No image-zoom on tap for mobile, regardless of hover-capability detection. */
  .cat__col:hover .cat__media img,
  .feat__media:hover img,
  .team__card:hover .team__img img { transform: none !important; }
  .cat__media img,
  .feat__media img,
  .team__img img { transition: none !important; }
  .hero__img::after {
    background:
      linear-gradient(180deg, rgba(20,18,16,0.25) 0%, rgba(20,18,16,0.05) 35%, rgba(20,18,16,0.55) 100%),
      linear-gradient(90deg, rgba(20,18,16,0.2) 0%, rgba(20,18,16,0) 60%);
  }
  .hero__chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,18,16,0.45); }
  .hero__img, .hero__img img { will-change: auto; }
  .feat__media img { transition: none; }
}
