:root {
  --taupe: #AF9483;
  --taupe-deep: #6F5546;
  --taupe-deep-hover: #5C4639;
  --espresso: #4A3A31;
  --ink: #3A2D26;
  --muted: #5E4D43;
  --cream: #FAF6F2;
  --cream-card: #F3ECE6;
  --taupe-tint: #EADFD6;
  --line: #DDD0C6;
  --plum: var(--taupe-deep);
  --plum-hover: var(--taupe-deep-hover);
  --rose: var(--taupe);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--taupe-deep);
  outline-offset: 3px;
}

/* Accessibility skip link (Task A7: never takes visual space unless focused) */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 15px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: var(--plum);
  font-weight: 600;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Announcement Bar */
.announcement {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 9px 16px;
  background: var(--espresso);
  color: var(--cream);
}
.announcement span {
  margin-left: 20px;
  opacity: 0.85;
}

/* Header & Navigation (Sticky) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6%;
  background: rgba(250, 246, 242, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  gap: 20px;
  transition: padding 0.2s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.footer-logo {
  height: auto;
  width: 190px;
  max-width: 210px;
  display: block;
  margin-bottom: 14px;
}

.clinic-card-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
}

.closing-mark {
  height: 44px;
  width: auto;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}

.motif-mark {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.motif-mark-inline {
  height: 15px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  margin: 0 6px;
}

.approach-motif {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
}

.brandmark {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--taupe-deep);
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-top: 4px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

nav a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--plum);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .button,
.hero-actions .button,
.hero-actions .text-link {
  white-space: nowrap;
}

.header-contact-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--plum);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.icon-button:hover {
  background: var(--taupe-tint);
  border-color: var(--taupe);
  transform: translateY(-1px);
}

.icon-button.whatsapp {
  color: #1f7a46;
}
.icon-button.whatsapp:hover {
  background: #eaf5ee;
  border-color: #a3d9b8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--plum);
  background: var(--plum);
  padding: 13px 22px;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--plum-hover);
  transform: translateY(-1px);
}

.button span {
  font-size: 16px;
}

.header-book {
  padding: 9px 18px;
  font-size: 13px;
  gap: 12px;
}

.menu-toggle {
  display: none;
}

/* Typography Headings */
h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-family: var(--sans);
  font-weight: 500;
}

h1 {
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 24px 0 20px;
}

h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
}

/* Blurred words scroll reveal animation (inspired by Render Clinic) */
.blurred-words-heading {
  display: block;
}

.blurred-words-heading br {
  display: block;
  content: "";
}

.js .blurred-words-heading .word-outer {
  display: inline-block;
  overflow: visible;
  vertical-align: top;
}

.js .blurred-words-heading .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(14px);
  -webkit-filter: blur(14px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--w, 0) * 70ms);
}

.js .blurred-words-heading.is-visible .word-inner {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
  -webkit-filter: blur(0px);
}

/* Task D4: Eyebrow label transitions in before heading */
.js .eyebrow {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js .eyebrow.is-visible,
.js .section-heading:has(.is-visible) .eyebrow,
.js .hero-copy:has(.is-visible) .eyebrow,
.js .faq-intro:has(.is-visible) .eyebrow {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .blurred-words-heading .word-inner,
  .js .eyebrow {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    transition: none !important;
  }
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--taupe-deep);
}

p {
  line-height: 1.75;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--taupe);
  margin-right: 8px;
  vertical-align: middle;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  border-bottom: 1px solid var(--taupe);
  padding: 6px 0;
  background: none;
  color: var(--taupe-deep);
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover {
  color: var(--taupe-deep-hover);
  border-color: var(--taupe-deep-hover);
}

.section {
  padding: 85px 6%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-heading > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 440px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  min-height: auto;
}

.hero-copy {
  padding: 70px 7% 50px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-description {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

.hero-break {
  display: inline;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

.hero-note p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

.little-flower {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--taupe);
  line-height: 1;
}

.hero-art {
  position: relative;
  overflow: hidden;
  background: var(--taupe-tint);
  aspect-ratio: 3 / 2;
  min-height: 0;
  height: auto;
  width: 100%;
  align-self: center;
}

.hero-art > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.92) saturate(0.85);
}

.hero-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(40, 30, 25, 0.55));
}

.image-label {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 1;
}

.orbit-stamp {
  position: absolute;
  right: 24px;
  top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  width: 105px;
  height: 105px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  z-index: 1;
  transform: rotate(12deg);
  gap: 2px;
  text-align: center;
}

.orbit-stamp span {
  font-family: var(--serif);
  font-size: 34px;
}

.image-caption {
  position: absolute;
  bottom: 28px;
  left: 32px;
  color: #fff;
  z-index: 1;
}

.image-caption span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}

.image-caption p {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.15;
  margin: 12px 0 0;
}

/* Phone cards drift track (Task H7) */
.drift-track {
  display: contents;
}

.drift-track > [aria-hidden="true"] {
  display: none;
}

/* Care Strip */
.care-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 5%;
  background: var(--taupe-tint);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
}

.care-strip-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.care-strip-track [aria-hidden="true"] {
  display: none;
}

.care-strip i {
  font-size: 20px;
  color: var(--taupe);
  font-style: normal;
  display: inline-flex;
  align-items: center;
}

/* Concern Tabs & Grid */
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  padding: 16px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  min-width: 150px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tabs button span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabs button:hover {
  color: var(--taupe-deep);
}

.tabs button:hover span,
.tabs button[aria-selected="true"] span {
  transform: translate(2px, -2px);
}

.tabs button[aria-selected="true"] {
  border-color: var(--taupe-deep);
  color: var(--taupe-deep);
  font-weight: 700;
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.concern-grid.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

/* 3 columns for 6 skin cards (no orphan row!) */
.concern-grid[data-category="skin"] {
  grid-template-columns: repeat(3, 1fr);
}

.concern-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  animation: cardReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.concern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(58, 45, 38, 0.1);
  border-color: rgba(58, 45, 38, 0.15);
}

/* Three taupe-family tints for concern cards */
.concern-card:nth-child(3n+1) { background: #F3ECE6; }
.concern-card:nth-child(3n+2) { background: #EADFD6; }
.concern-card:nth-child(3n+3) { background: #E4D8CC; }

.concern-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 14px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.concern-card:hover .concern-photo {
  transform: scale(1.03);
}

.concern-card .number {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.concern-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}

.concern-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.concern-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.concern-card .card-bottom span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.concern-card:hover .card-bottom span[aria-hidden="true"] {
  transform: translate(3px, -3px);
}

.subtle {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .concern-card {
    animation: none !important;
    transition: none !important;
  }
  .concern-photo {
    transition: none !important;
  }
  .concern-grid {
    transition: none !important;
  }
}

/* Approach Section */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  background: var(--cream-card);
  padding-top: 75px;
  padding-bottom: 75px;
  align-items: center;
}

.approach-visual {
  position: relative;
  background: var(--taupe);
  color: var(--ink);
  min-height: 440px;
  border-radius: 180px 180px 4px 4px;
  padding: 48px 36px 30px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.approach-visual > p {
  font-family: var(--sans);
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0;
}

.big-flower {
  font-family: var(--serif);
  font-size: 130px;
  line-height: 1;
  color: var(--taupe-deep);
  display: block;
  margin: 10px auto;
}

.visual-footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  margin-top: 16px;
  color: var(--ink);
}

.approach-copy {
  padding-top: 10px;
}

.approach-copy > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.75;
}

.steps > div {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.steps > div > span {
  font-size: 12px;
  font-weight: 700;
  padding-top: 3px;
  color: var(--taupe-deep);
}

.steps p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

/* Treatments Section */
.treatments {
  background: var(--taupe-tint);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.treatment-grid article {
  background: var(--cream);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.treatment-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 45, 38, 0.06);
}

.treatment-card-photo,
.treatment-grid article img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 12px;
}

.treatment-grid article > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 2px;
}

.treatment-grid h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}

.treatment-grid p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 18px;
}

.treatment-grid .text-link {
  margin-top: auto;
}

/* Clinic / Doctor Section */
.clinic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8%;
  align-items: center;
}

.clinic h2 {
  font-size: 42px;
  margin-bottom: 8px;
}

.doctor-credentials {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 20px;
}

.clinic > div > p:not(.eyebrow):not(.doctor-credentials) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.clinic-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  text-align: center;
  padding: 36px 28px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.doctor-illustration-wrap {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 16px;
}

.doctor-illustration {
  width: 100%;
  height: auto;
  max-height: 250px;
  display: block;
  margin: 0 auto;
}

.doctor-card-info {
  width: 100%;
  text-align: center;
}

.doctor-card-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--plum);
  margin: 0 0 4px;
  font-weight: 600;
}

.doctor-card-degrees {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.doctor-card-role {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 14px;
}

.doctor-illustration-caption {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.clinic-card > .brandmark {
  font-size: 64px;
}

.clinic-card h3 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 10px 0 4px;
}

.clinic-card .clinic-details {
  border-top: 1px solid var(--line);
  margin: 24px 0 20px;
  padding-top: 20px;
  text-align: left;
}

.clinic-details p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.clinic-details span {
  display: block;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

/* FAQ Section */
.faq {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8%;
  padding-top: 80px;
}

.faq-intro p.faq-subtext {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 24px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

summary span {
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 16px 20px 0 0;
}

/* Closing CTA */
.closing {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--taupe-deep);
  color: #fff;
  padding: 75px 6%;
}

.closing h2 {
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.18;
}

.closing h2 em {
  color: var(--cream);
}

.closing .eyebrow {
  color: var(--taupe-tint);
}

.light {
  background: var(--cream);
  color: var(--taupe-deep);
  border-color: var(--cream);
}
.light:hover {
  background: var(--taupe-tint);
}

.closing-note {
  font-size: 13px;
  opacity: 0.85;
  margin: 20px 0 0;
}

.closing-flower {
  position: absolute;
  left: -60px;
  top: 0;
  font-family: var(--serif);
  font-size: 380px;
  line-height: 1;
  color: var(--taupe);
  opacity: 0.15;
  transform: rotate(-10deg);
  pointer-events: none;
}

/* Site Footer (Task A1: two rows, compact layout ≤ 560px) */
.site-footer {
  display: block;
  background: var(--espresso);
  color: var(--cream);
  padding: 34px 6% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.95fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.footer-about .brand-logo.footer-logo {
  height: auto;
  width: 190px;
  max-width: 210px;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250, 246, 242, 0.88);
  margin: 6px 0;
}

.footer-about .footer-creds {
  margin: 4px 0 10px;
}

.footer-contacts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-about .footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  justify-content: flex-start;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid rgba(221, 208, 198, 0.25);
  background: rgba(250, 246, 242, 0.12);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.contact-pill:hover {
  background: rgba(250, 246, 242, 0.22);
  transform: translateY(-1px);
}

.contact-pill.whatsapp {
  color: #a3d9b8;
}
.contact-pill.whatsapp:hover {
  background: rgba(250, 246, 242, 0.22);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-column h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.footer-column a {
  font-size: 13px;
  color: rgba(250, 246, 242, 0.9);
  line-height: 1.6;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-column p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 246, 242, 0.88);
  margin: 0 0 6px;
}

.footer-map-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: underline;
  margin-bottom: 6px;
}

.site-footer .text-link {
  color: var(--cream);
  border-bottom: 1px solid var(--taupe);
}

.site-footer .text-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-map-embed {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 6px;
  border: 1px solid rgba(221, 208, 198, 0.25);
}

.footer-map-embed iframe {
  height: 135px !important;
  display: block;
}

.footer-pending {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(250, 246, 242, 0.85);
  margin-bottom: 4px;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(221, 208, 198, 0.25);
  padding-top: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(250, 246, 242, 0.85);
}

.footer-bottom small {
  margin-right: auto;
  font-size: 12px;
}

.footer-bottom button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.site-footer .footer-medical {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(250, 246, 242, 0.85);
  max-width: 900px;
  margin: 10px 0 0;
}

/* Floating contact buttons on mobile */
.floating-contact {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 20px;
  z-index: 99;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  color: #fff;
  transition: transform 0.2s;
}

.floating-btn:active {
  transform: scale(0.95);
}

.floating-btn.call {
  background: var(--espresso);
  color: var(--cream);
}

.floating-btn.whatsapp {
  background: #25d366;
}

/* Modal Dialogs */
dialog {
  width: min(520px, 92vw);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  max-height: 90vh;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(40, 30, 25, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

dialog h2 {
  font-size: 34px;
  margin: 6px 0 12px;
}

dialog p {
  font-size: 14px;
}

dialog .dialog-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--ink);
  padding: 4px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  font-size: 14px;
}

#enquiry-result {
  margin-top: 20px;
  padding: 20px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: 4px;
}

#enquiry-text {
  white-space: pre-line;
  font-size: 13px;
}

/* Topic / Detail Pages */
.detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 50px;
}

.breadcrumbs {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.detail-summary {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 18px 0 24px;
}

.detail-hero figure {
  margin: 0;
}

.detail-hero figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.detail-hero figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.detail-body section {
  margin-bottom: 48px;
}

.detail-body h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.detail-body p, .detail-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.detail-body ul {
  padding-left: 20px;
  margin: 16px 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.related-card:hover {
  background: var(--taupe-tint);
  transform: translateY(-2px);
}

.editorial-note {
  border-left: 3px solid var(--taupe);
  padding: 14px 20px;
  background: var(--taupe-tint);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: var(--muted);
}
.editorial-note p {
  font-size: 13px;
  margin: 6px 0;
}

.detail-aside {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--cream-card);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 6px;
}

.detail-aside h3 {
  font-size: 24px;
  margin: 8px 0 12px;
}

.detail-aside p {
  font-size: 14px;
  line-height: 1.65;
}

.detail-aside .button {
  width: 100%;
  margin: 18px 0 10px;
}

/* Responsive Breakpoints */
@media (min-width: 1600px) {
  body {
    max-width: 1600px;
    margin: auto;
  }
}

@media (max-width: 1100px) {
  /* Task C1 / H8: Header below 1100px with styled menu toggle */
  header {
    padding: 8px 5%;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  header .brand-logo {
    height: 46px;
    max-width: 180px;
  }
  header .brand {
    order: 1;
  }
  header nav {
    display: none;
    order: 10;
    width: 100%;
    padding: 16px 0 8px;
    flex-direction: column;
    gap: 16px;
  }
  header nav.open {
    display: flex;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 2;
    margin-left: auto;
  }
  .header-contact-icons {
    display: flex;
  }
  .header-book {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--plum);
    font-size: 24px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    order: 3;
    margin-left: 2px;
  }

  /* Task B2: Tablet stack hero like phone (full width 3:2 aspect-ratio, no vase cropping) */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 40px 6% 30px;
  }
  .hero-art {
    min-height: auto;
    aspect-ratio: 3 / 2;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .hero-art > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Task C3 / H5: Care strip marquee at tablet/mobile */
  .care-strip {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
  }
  .care-strip-track {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    width: auto;
    max-width: none;
    animation: careStripMarquee 35s linear infinite;
    white-space: nowrap;
  }
  .care-strip-track [aria-hidden="true"] {
    display: inline-flex;
  }
  .care-strip-track span {
    white-space: nowrap;
  }

  .concern-grid,
  .concern-grid[data-category="skin"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .clinic {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Task A2: Tablet footer 2x2 grid ≤ 800px */
  .site-footer {
    padding: 26px 5% 18px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
  }
  .footer-map-embed iframe {
    height: 135px !important;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@keyframes careStripMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}


/* --- Transitions & Micro-Interactions (renderclinic.com style, Tasks C1-C5) --- */
.js .reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
  will-change: opacity, transform;
}

.js .reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-image {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js .reveal-image.is-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Hero entrance sequence (Task C5: under 1.2s total) */
.js .hero-copy .eyebrow {
  animation: heroItemFade 0.5s ease 0.1s backwards;
}
.js .hero-copy h1 .word-inner {
  animation: heroItemFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.15s + var(--word-i, 0) * 0.08s) backwards;
}
.js .hero-description {
  animation: heroItemFade 0.6s ease 0.45s backwards;
}
.js .hero-actions {
  animation: heroItemFade 0.6s ease 0.6s backwards;
}
.js .hero-note {
  animation: heroItemFade 0.6s ease 0.75s backwards;
}
.js .hero-art img {
  animation: heroImgScale 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

@keyframes heroItemFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImgScale {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

/* Button & Link Hover Nudges (Task C4) */
.button span, .text-link span, .card-action span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover span, .text-link:hover span, .card-action:hover span {
  transform: translate(3px, -3px);
}
.text-link {
  position: relative;
  text-decoration: none;
}
.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Doctor bio toggle (Task A4) */
.bio-toggle-btn {
  display: none;
}

/* --- Reviews Section (Tasks D1-D4) --- */
.reviews {
  background: var(--taupe-tint);
  border-top: 1px solid var(--line);
}

.reviews-placeholder-note {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
  font-style: italic;
}

.reviews-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.reviews-pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--taupe-deep);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reviews-pause-btn:hover {
  background: var(--taupe-tint);
  transform: translateY(-1px);
}

/* Continuous right-to-left marquee (Task E1-E5) */
.reviews-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0 24px;
  margin: 16px 0 10px;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.reviews-marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: reviewsMarquee 45s linear infinite;
  will-change: transform;
}

.reviews-marquee-wrapper:hover .reviews-marquee-track,
.reviews-marquee-track:focus-within,
.reviews-marquee-track.is-paused,
.reviews-marquee-track.is-touch-paused {
  animation-play-state: paused;
}

@keyframes reviewsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 11px));
  }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--cream-card);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(58, 45, 38, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(58, 45, 38, 0.08);
}

.review-card.is-placeholder {
  border-left: 3px solid var(--taupe);
}

.sample-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--taupe-deep);
  background: var(--taupe-tint);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
  align-self: flex-start;
  text-transform: uppercase;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--taupe-tint);
  color: var(--taupe-deep);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-meta {
  flex-grow: 1;
}

.review-author {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.review-source {
  font-size: 12px;
  color: var(--muted);
}

.review-stars {
  color: var(--taupe-deep);
  font-size: 15px;
  letter-spacing: 1px;
}

.review-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-footer-action {
  text-align: center;
  margin-top: 14px;
}

/* --- Gallery Preview on Home Page (Task E4) --- */
.gallery-preview {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.gallery-preview-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.gallery-preview-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--cream-card);
  box-shadow: 0 4px 12px rgba(58, 45, 38, 0.05);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-preview-item:hover img {
  transform: scale(1.06);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 30, 25, 0.85) 0%, rgba(40, 30, 25, 0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-preview-item:hover .preview-overlay {
  opacity: 1;
}

.preview-category {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
}

.preview-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-preview-action {
  text-align: center;
}

/* --- Gallery Page Layout (gallery.html, Tasks E1-E3) --- */
.gallery-hero {
  padding-top: 50px;
  padding-bottom: 70px;
}

.gallery-hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.gallery-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0;
}

.gallery-caption-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: var(--taupe-tint);
  color: var(--taupe-deep);
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 8px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-filter-btn:hover {
  border-color: var(--taupe-deep);
  color: var(--taupe-deep);
}

.gallery-filter-btn.is-active {
  background: var(--taupe-deep);
  color: #fff;
  border-color: var(--taupe-deep);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-card {
  background: var(--cream-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(58, 45, 38, 0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(58, 45, 38, 0.1);
}

.gallery-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--taupe-tint);
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.05);
}

.gallery-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(40, 30, 25, 0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.gallery-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-info h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.gallery-card-info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.gallery-card-info .card-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Lightbox Modal */
.lightbox-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 900px;
  width: 92%;
  border-radius: 8px;
  overflow: hidden;
}

.lightbox-modal::backdrop {
  background: rgba(40, 30, 25, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-dialog-inner {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close-btn:hover {
  background: #000;
}

.lightbox-media-wrapper {
  position: relative;
  background: #111;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav-btn:hover {
  background: rgba(0,0,0,0.85);
}

.lightbox-nav-btn.prev { left: 16px; }
.lightbox-nav-btn.next { right: 16px; }

.lightbox-caption {
  padding: 24px;
  background: #fff;
}

.lightbox-cat-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--plum);
  display: inline-block;
  margin-bottom: 6px;
}

.lightbox-heading {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}

.lightbox-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

.lightbox-disclaimer {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Footer Bottom Row & Social Icons (Tasks F1, F2) */
.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(221, 208, 198, 0.25);
  background: rgba(250, 246, 242, 0.12);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  position: relative;
}

.social-icon:hover {
  background: rgba(250, 246, 242, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.social-icon.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.social-icon.is-disabled:hover {
  transform: none;
  color: var(--cream);
}

.social-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--espresso);
  color: var(--cream);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 10;
}

/* Desktop Footer Accordion styles */
.footer-accordion .accordion-trigger {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--cream);
  cursor: default;
}
.footer-accordion .accordion-icon {
  display: none;
}
.footer-accordion .accordion-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-accordion .accordion-content a {
  font-size: 13px;
  color: rgba(250, 246, 242, 0.9);
  line-height: 1.7;
}

.footer-clinic-name {
  font-size: 13px;
  color: rgba(250, 246, 242, 0.88);
  margin-top: 8px;
}

.footer-hours {
  font-size: 13px;
  color: rgba(250, 246, 242, 0.88);
}


@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .announcement {
    font-size: 11px;
    padding: 8px 12px;
  }
  .announcement span {
    display: none;
  }
  header {
    padding: 8px 5%;
    flex-wrap: wrap;
    align-items: center;
    min-height: 52px;
  }
  .brand {
    font-size: 19px;
  }
  header .brand-logo,
  .brand-logo {
    height: 40px;
    max-width: 155px;
  }
  .header-actions {
    display: none; /* Keep header to one compact row ≤72px on mobile; hero CTA & floating Call/WhatsApp cover booking */
  }
  .menu-toggle {
    display: block;
    background: none;
    border: 0;
    color: var(--plum);
    font-size: 24px;
    padding: 4px;
    line-height: 1;
    margin-left: auto;
  }
  nav {
    display: none;
    order: 10;
    width: 100%;
    padding: 16px 0 8px;
    flex-direction: column;
    gap: 14px;
  }
  nav.open {
    display: flex;
  }

  /* Task A5: Hero ≤ 900px with image visible */
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 24px 6% 18px;
  }
  .hero h1 {
    font-size: clamp(32px, 8.5vw, 40px);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 12px 0 10px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero-art {
    min-height: 220px;
    height: 220px;
  }
  .hero-art .image-caption {
    display: none;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-actions .button {
    padding: 12px 18px;
    font-size: 14px;
  }
  .hero-note {
    margin-top: 14px;
    gap: 8px;
  }
  .care-strip {
    font-size: 12px;
    padding: 14px 4%;
  }
  .care-strip span:nth-of-type(n+3),
  .care-strip i:nth-of-type(n+2) {
    display: none;
  }

  /* Section Padding Compression */
  .section {
    padding: 44px 5% 36px;
  }
  .section-heading {
    display: block;
    margin-bottom: 24px;
  }
  .section-heading > p {
    font-size: 14px;
    margin-top: 8px;
  }

  /* Continuous CSS Keyframe Drift Track (Task H7) */
  .drift-track {
    display: flex;
    gap: 14px;
    padding-right: 14px;
    width: max-content;
    will-change: transform;
    animation: phoneDrift var(--drift-duration, 50s) linear infinite;
  }

  .drift-track > [aria-hidden="true"] {
    display: flex;
  }

  .gallery-preview-strip .drift-track {
    gap: 12px;
    padding-right: 12px;
  }

  .drift-track:hover,
  .drift-track:focus-within,
  .drift-track.is-touch-paused {
    animation-play-state: paused !important;
  }

  @keyframes phoneDrift {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Task A1 / H7: Concerns row ≤ 700px */
  .concerns.section {
    padding: 36px 5% 24px;
  }
  .concern-grid,
  .concern-grid[data-category="skin"] {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 4px 0 14px;
    margin: 0;
    grid-template-columns: none;
  }
  .concern-card {
    width: 270px;
    flex: 0 0 270px;
    padding: 14px;
    height: auto;
  }
  .concern-photo {
    height: 125px;
    margin-bottom: 8px;
  }
  .concern-card h3 {
    font-size: 17px;
    margin: 3px 0 5px;
  }
  .concern-description {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .concern-card .card-bottom {
    padding-top: 6px;
    font-size: 11.5px;
  }

  /* Task A2 / H7: Treatments row ≤ 700px */
  .treatments.section {
    padding: 36px 5% 24px;
  }
  .treatment-grid {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 4px 0 14px;
    margin: 0;
    grid-template-columns: none;
  }
  .treatment-grid article {
    width: 270px;
    flex: 0 0 270px;
    padding: 14px;
    height: auto;
  }
  .treatment-card-photo {
    height: 125px;
    margin-bottom: 8px;
  }
  .treatment-grid article h3 {
    font-size: 17px;
    margin: 3px 0 5px;
  }
  .treatment-grid article p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .treatment-grid article .text-link {
    font-size: 11.5px;
  }

  /* Task A3: Approach hide arch panel ≤ 650px */
  .approach {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 5%;
  }
  .approach-visual {
    display: none !important;
  }
  .approach-copy {
    max-width: 100%;
  }
  .approach-copy h2 {
    font-size: 25px;
    margin-bottom: 6px;
  }
  .steps {
    gap: 10px;
    margin: 12px 0;
  }
  .steps > div {
    gap: 10px;
  }
  .steps strong {
    display: block;
    font-size: 14px;
    margin-bottom: 1px;
  }
  .steps p {
    font-size: 12.5px;
    line-height: 1.4;
  }

  /* Task A4: Meet the doctor bio toggle + compact clinic card ≤ 900px */
  .clinic {
    grid-template-columns: 1fr;
    padding: 26px 5%;
    gap: 14px;
  }
  .clinic h2 {
    font-size: 25px;
    margin-bottom: 4px;
  }
  .doctor-credentials {
    font-size: 12.5px;
    margin-bottom: 8px;
  }
  .clinic p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .clinic-bio-extra {
    display: none;
  }
  .clinic-bio.is-expanded .clinic-bio-extra {
    display: block;
  }
  .bio-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--plum);
    font-weight: 600;
    font-size: 12.5px;
    padding: 2px 0 6px;
    cursor: pointer;
    text-decoration: underline;
  }
  .clinic-card {
    padding: 18px 16px;
  }
  .doctor-illustration-wrap {
    max-width: 200px;
    margin: 0 auto 10px;
  }
  .doctor-illustration {
    max-height: 190px;
  }
  .doctor-card-name {
    font-size: 20px;
  }
  .doctor-card-degrees {
    font-size: 12.5px;
  }
  .doctor-card-role {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .doctor-illustration-caption {
    font-size: 10px;
    padding-top: 8px;
  }

  /* Reviews on Mobile */
  .reviews.section {
    padding: 26px 5% 18px;
  }
  .reviews-slider-wrapper {
    margin: 14px 0 10px;
  }
  .review-card {
    flex: 0 0 84%;
    max-width: 290px;
    padding: 14px;
  }
  .review-quote {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .reviews-slider-wrapper .slider-arrow {
    display: none; /* Task D2: dots on phone */
  }

  /* Gallery Preview on Mobile (Task E4 / H7) */
  .gallery-preview.section {
    padding: 22px 5% 16px;
  }
  .gallery-preview-strip {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 8px 0;
    padding: 0 0 6px;
  }
  .gallery-preview-item {
    width: 180px;
    flex: 0 0 180px;
    height: 115px;
  }
  .gallery-preview-footer {
    margin-top: 4px;
  }

  /* Gallery Page on Mobile (Task E2) */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-card-info {
    padding: 10px;
  }
  .gallery-card-info h3 {
    font-size: 14px;
  }
  .gallery-card-info p {
    font-size: 11.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }

  /* FAQ */
  .faq {
    padding: 26px 5% 18px;
    gap: 16px;
  }

  /* Closing */
  .closing {
    padding: 26px 6%;
  }
  .closing h2 {
    font-size: 25px;
  }

  /* Task A3: Phone footer with full-width accordions, left-aligned social, and 95px bottom clearance */
  .site-footer {
    padding: 22px 5% 95px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer-about .brand-logo,
  .footer-about .brand-logo.footer-logo,
  .footer-logo {
    width: 140px;
    max-width: 160px;
    height: auto;
    margin-bottom: 6px;
  }
  .footer-about p {
    margin: 2px 0;
    font-size: 11.5px;
    line-height: 1.35;
  }
  .footer-contacts {
    margin-top: 6px;
  }
  .footer-accordion {
    width: 100%;
  }
  .footer-accordion .accordion-trigger {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 9px 0;
    border-bottom: 1px solid rgba(221, 208, 198, 0.25);
    margin: 0;
    font-size: 13.5px;
    color: var(--cream);
    font-weight: 600;
  }
  .footer-accordion .accordion-icon {
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    color: var(--taupe);
    margin-left: auto;
  }
  .footer-accordion .accordion-content {
    display: none;
    padding: 6px 0 8px;
    flex-direction: column;
    gap: 6px;
  }
  .footer-accordion.is-open .accordion-content {
    display: flex;
  }
  .footer-accordion .accordion-content a {
    font-size: 12.5px;
    color: rgba(250, 246, 242, 0.9);
    padding: 2px 0;
  }
  .site-footer .footer-column.footer-contact {
    margin-top: 4px;
  }
  .site-footer .footer-column.footer-contact h3 {
    font-size: 13.5px;
    margin-bottom: 2px;
  }
  .site-footer .footer-column.footer-contact p {
    font-size: 11.5px;
    line-height: 1.35;
    margin: 2px 0;
  }
  .footer-map-embed {
    margin: 4px 0;
  }
  .footer-map-embed iframe {
    height: 140px !important;
  }
  .footer-pending {
    font-size: 11px;
    margin: 2px 0 !important;
  }
  .footer-about .footer-social,
  .footer-social {
    margin: 10px 0 4px;
    justify-content: flex-start;
  }
  .footer-bottom {
    margin-top: 10px;
    padding-top: 8px;
  }
  /* Task A8: Topic pages compression ≤ 3,500px */
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 5%;
  }
  .detail-hero {
    order: 1;
    gap: 16px;
    padding: 24px 5% 16px;
  }
  .detail-hero figure img {
    max-height: 200px;
    object-fit: cover;
  }
  .detail-aside {
    order: 2;
    padding: 16px 14px;
    margin-bottom: 4px;
  }
  .detail-aside h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .detail-aside p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .detail-body {
    order: 3;
  }
  .detail-body section {
    margin-bottom: 22px;
  }
  .detail-body h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .detail-body p, .detail-body li {
    font-size: 13px;
    line-height: 1.45;
  }
  .related-links {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -5%;
    padding: 4px 5% 14px;
    grid-template-columns: none;
    scrollbar-width: none;
  }
  .related-links::-webkit-scrollbar {
    display: none;
  }
  .related-card {
    flex: 0 0 75%;
    max-width: 270px;
    scroll-snap-align: start;
    padding: 16px;
  }

  .floating-contact {
    display: flex;
  }
}


@media (prefers-reduced-motion: reduce) {
  .js .blurred-words-heading .word-inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    transition: none !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  /* Task H7f: reduced-motion fallback to normal swipe row */
  .drift-track {
    animation: none !important;
  }
  .drift-track > [aria-hidden="true"] {
    display: none !important;
  }
  .concern-grid,
  .treatment-grid,
  .gallery-preview-strip {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .concern-card,
  .treatment-grid article,
  .gallery-preview-item {
    scroll-snap-align: start;
  }
}
