/**
 * All About Teeth — page styles (nav, cards, detail, contact).
 * Shell frame vars live in aat-shell.css.
 */
:root {
  --glass: rgba(250, 248, 244, 0.72);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
  --media-cream: #f5f3ef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-media,
  .hero-copy,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .track {
    transform: none !important;
  }
  .viewport {
    overflow-x: auto !important;
  }
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(12, 31, 46, 0.08);
  border-radius: 999px;
}

.nav img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  gap: 4px;
  list-style: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(12, 31, 46, 0.1);
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1;
}

.nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(12, 31, 46, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 50px -18px rgba(12, 31, 46, 0.2);
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a,
.nav-drawer button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--aqua);
  color: var(--navy);
}

.nav-drawer .btn-coral {
  background: var(--coral);
  color: #fff;
  justify-content: center;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy-muted);
  }
  .nav-links a:hover,
  .nav-links a.is-active {
    color: var(--teal);
    background: #fff;
  }
  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

.nav-actions .btn-coral .label-short {
  display: none;
}

@media (max-width: 420px) {
  .nav-actions .btn-coral .label-full {
    display: none;
  }
  .nav-actions .btn-coral .label-short {
    display: inline;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-coral:hover {
  background: var(--coral-hot);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  border: 1px solid rgba(12, 31, 46, 0.1);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.nav-actions .btn {
  padding: 10px 16px;
  font-size: 0.82rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ——— Home hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh - (2 * var(--frame)));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  animation: rise 1.1s var(--ease) both;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  display: block;
  transform: scale(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 31, 46, 0.15) 0%, rgba(12, 31, 46, 0.15) 35%, rgba(12, 31, 46, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 31, 46, 0.35) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(40px, 8vh, 88px);
  animation: rise 1s 0.12s var(--ease) both;
}

.brand-mark {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.years {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(5.5rem, 18vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.years span {
  color: var(--teal-mid);
}

.claim {
  margin-top: 18px;
  max-width: 22ch;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Detail hero (service / contact) */
.hero--panel {
  min-height: 340px;
  border-radius: var(--radius-lg);
  background: var(--aqua);
  align-items: end;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  color: #fff;
}

.hero--panel .hero-media::after {
  background:
    linear-gradient(90deg, rgba(12, 31, 46, 0.84) 0%, rgba(12, 31, 46, 0.48) 50%, rgba(12, 31, 46, 0.18) 100%),
    linear-gradient(180deg, transparent 28%, rgba(12, 31, 46, 0.55) 100%);
}

.hero--panel .hero-copy {
  width: 100%;
  padding: clamp(28px, 5vw, 48px);
  max-width: 640px;
}

/* ——— Bands & scrollers ——— */
.band {
  padding: clamp(56px, 9vw, 100px) 0;
}

.band-aqua {
  background: linear-gradient(180deg, var(--cream) 0%, var(--aqua) 100%);
}

.band-head {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.band-head h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14ch;
}

.band-head p {
  color: var(--navy-muted);
  font-size: 0.98rem;
  max-width: 36ch;
  margin-top: 8px;
}

.viewport {
  width: 100%;
  overflow: hidden;
  padding: 8px 0 28px;
  cursor: grab;
  touch-action: pan-y;
}

.viewport:active {
  cursor: grabbing;
}

.track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Service cards — tip-first, cream media */
.svc-card,
.archive-card {
  width: clamp(320px, 86vw, 520px);
  min-height: 240px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(12, 31, 46, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr;
  flex-shrink: 0;
}

.svc-card .body,
.archive-card .body {
  order: 0;
  padding: 26px 18px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  background: #fff;
  min-height: 240px;
}

.svc-card .media,
.archive-card .media {
  order: 1;
  display: block;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  background: var(--media-cream);
}

.svc-card .media img,
.archive-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease);
}

.svc-card:hover .media img,
.archive-card:hover .media img {
  transform: scale(1.04);
}

.svc-card p,
.archive-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--navy-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 30ch;
}

@media (max-width: 520px) {
  .svc-card,
  .archive-card {
    grid-template-columns: 1fr;
    width: clamp(280px, 86vw, 360px);
  }
  .svc-card .media,
  .archive-card .media {
    min-height: 200px;
  }
  .svc-card .body,
  .archive-card .body {
    min-height: 0;
    padding: 20px;
  }
}

/* Doctor scroll cards */
.doc-card {
  width: clamp(280px, 78vw, 360px);
  min-height: 420px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(12, 31, 46, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.doc-card .media {
  display: block;
  height: 220px;
  overflow: hidden;
  background: var(--aqua);
}

.doc-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease);
}

.doc-card:hover .media img {
  transform: scale(1.04);
}

.doc-card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.badge {
  display: inline-flex;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 107, 125, 0.1);
  color: var(--teal);
}

.svc-card h3,
.archive-card h2,
.doc-card h3 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.svc-card h3,
.archive-card h2 {
  font-size: 1.35rem;
}

.doc-card p {
  color: var(--navy-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.quals {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  line-height: 1.35;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ——— Reviews ——— */
.reviews {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0;
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.reviews-head h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14ch;
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(12, 31, 46, 0.08);
  box-shadow: var(--shadow);
}

.reviews-score strong {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 1;
}

.reviews-score .stars {
  color: #f5b301;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.reviews-score span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-muted);
}

.reviews-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

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

.review-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 107, 125, 0.12);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-weight: 800;
}

.review-card h3 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 0.95rem;
}

.review-card .when {
  font-size: 0.72rem;
  color: var(--navy-muted);
  font-weight: 600;
}

.review-card p {
  color: var(--navy-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  font-style: italic;
}

.review-card footer {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
}

.close {
  text-align: center;
  padding: clamp(72px, 14vw, 140px) 20px;
  background: radial-gradient(circle at 50% 40%, #e8f7fa 0%, var(--cream) 68%);
}

.close h2 {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 14ch;
  margin: 0 auto 24px;
}

.close .teal {
  color: var(--teal);
}

/* ——— Page shell ——— */
.intro,
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 20px 48px;
}

.intro h1,
.wrap h1 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 14ch;
}

.intro p {
  color: var(--navy-muted);
  margin-top: 14px;
  max-width: 48ch;
  font-size: 1.05rem;
}

.cta {
  text-align: center;
  padding: 64px 20px 80px;
  background: radial-gradient(circle at 50% 40%, #e8f7fa, transparent 70%);
  border-radius: var(--shell-radius) var(--shell-radius) 0 0;
}

.cta h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0 auto 20px;
}

.cta--teal {
  text-align: left;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  padding: 28px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--navy-muted);
  font-size: 0.9rem;
}

.wrap .site-footer {
  padding-left: 0;
  padding-right: 0;
}

/* ——— Doctors archive grid ——— */
.page-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .page-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.page-hero p {
  color: var(--navy-muted);
  margin-top: 14px;
  max-width: 42ch;
  font-size: 1.05rem;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: var(--aqua);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 40px;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.stat span {
  font-size: 0.85rem;
  color: var(--navy-muted);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.doc-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doc-grid .card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease);
}

.doc-grid .card:hover {
  transform: translateY(-3px);
}

.doc-grid .card .photo {
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  background: var(--aqua);
}

.doc-grid .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-grid .card h3 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.doc-grid .meta {
  font-size: 0.78rem;
  color: var(--navy-muted);
  border-top: 1px solid rgba(12, 31, 46, 0.08);
  padding-top: 12px;
}

/* ——— Detail pages ——— */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-muted);
  margin-bottom: 22px;
}

.crumbs a:hover {
  color: var(--teal);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise var(--dur) var(--ease) forwards;
}

.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.12s; }
.reveal.d3 { animation-delay: 0.18s; }
.reveal.d4 { animation-delay: 0.24s; }
.reveal.d5 { animation-delay: 0.3s; }

.ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--aqua);
  color: var(--teal);
  flex-shrink: 0;
}

.ico svg {
  width: 22px;
  height: 22px;
}

.ico-white {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ico-coral {
  background: rgba(214, 69, 27, 0.12);
  color: var(--coral);
}

.highlights {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hl {
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}

.hl:hover {
  transform: translateY(-3px);
}

.hl .ico {
  margin-bottom: 14px;
}

.hl strong {
  display: block;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hl p {
  color: var(--navy-muted);
  font-size: 0.9rem;
}

.detail-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .detail-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.prose p {
  color: var(--navy-muted);
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

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

.doc-row img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--aqua);
}

.doc-row h3 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.doc-row p {
  font-size: 0.78rem;
  color: var(--navy-muted);
  font-weight: 600;
  margin-top: 2px;
}

.aside-note {
  font-size: 0.85rem;
  color: var(--navy-muted);
  margin: 10px 0 14px;
}

.book-card {
  background: linear-gradient(160deg, var(--teal), #004f5c);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.book-card h3 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
}

.book-card p {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 18px;
}

.book-card .btn-coral {
  width: 100%;
  margin-bottom: 10px;
}

.book-card .btn-ghost {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.others h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.others a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: var(--aqua);
  transition: transform 0.2s var(--ease);
}

.others a:hover {
  transform: translateX(3px);
}

.others a.is-current {
  background: var(--teal);
  color: #fff;
}

/* Doctor single */
.layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: 0.92fr 1.28fr;
    gap: 24px;
  }
}

.portrait {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--aqua);
  position: relative;
  margin-bottom: 18px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-name {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-align: center;
}

.side-spec {
  display: block;
  text-align: center;
  margin: 6px 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 31, 46, 0.08);
}

.meta-block .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.spec-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--aqua);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 700;
}

.affil-img {
  max-width: 280px;
  margin: 0 0 18px;
  display: block;
}

.certs {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .certs {
    grid-template-columns: 1fr 1fr;
  }
}

.cert {
  background: var(--aqua);
  border-radius: 18px;
  padding: 16px;
}

.cert img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

/* ——— Journal ——— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}

.filter {
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid rgba(12, 31, 46, 0.08);
  color: var(--navy-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.journal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .journal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.journal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease);
}

.journal-card:hover {
  transform: translateY(-3px);
}

.journal-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .journal-card.featured {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.journal-card .media {
  height: 200px;
  background: var(--aqua);
  overflow: hidden;
  display: block;
}

.journal-card.featured .media {
  height: 100%;
  min-height: 280px;
}

.journal-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 107, 125, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
}

.tag.internship {
  background: rgba(214, 69, 27, 0.1);
  color: var(--coral);
}

.tag.community {
  background: #e8f6e9;
  color: #1f7a3a;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 31, 46, 0.08);
  color: var(--navy-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.dek {
  color: var(--navy-muted);
  font-size: 1.1rem;
  max-width: 48ch;
  margin-bottom: 24px;
}

.cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--aqua);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related {
    grid-template-columns: 1fr 1fr;
  }
}

.related a {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
}

.related img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--aqua);
}

.reels {
  margin-top: 48px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 31, 46, 0.07);
  box-shadow: var(--shadow);
}

.reels-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .reels-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reel {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--aqua);
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(12, 31, 46, 0.08);
}

.info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-item .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.info-item p,
.info-item a {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.05rem;
}

.info-item .hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-muted);
  margin-top: 4px;
}

.map {
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  background: var(--aqua);
  margin-top: 16px;
  border: 1px solid rgba(12, 31, 46, 0.07);
}

.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

form.aat-form {
  display: grid;
  gap: 12px;
}

form.aat-form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-muted);
}

form.aat-form input,
form.aat-form textarea,
form.aat-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 31, 46, 0.12);
  background: var(--aqua);
  font: inherit;
  color: var(--navy);
}

form.aat-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* ——— Modal ——— */
dialog {
  border: 0;
  border-radius: 28px;
  padding: 0;
  width: min(440px, calc(100% - 28px));
  margin: auto;
  box-shadow: 0 30px 80px rgba(12, 31, 46, 0.25);
}

dialog::backdrop {
  background: rgba(12, 31, 46, 0.45);
  backdrop-filter: blur(6px);
}

.modal {
  padding: 28px;
}

.modal h2 {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 800;
}

.modal p {
  color: var(--navy-muted);
  margin: 12px 0 20px;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 140px;
}

.close-x {
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aqua);
  font-size: 1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--navy-muted);
  background: #fff;
  border-radius: 28px;
}

.more-grid {
  display: grid;
  gap: 12px;
}

.more-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--aqua);
  font-weight: 700;
  font-size: 0.9rem;
}

.reel .caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Legacy aat-business-suite Tailwind modal (no Tailwind on this theme) */
#aat-appointment-modal {
  display: none !important;
}

/* Default / About / FAQ pages */
.page-hero--simple {
  margin-bottom: 18px;
}

.page-hero--simple h1 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.prose-page,
.faq-prose {
  margin-top: 8px;
}

.prose.entry-content h2,
.prose.entry-content h3,
.prose.entry-content h4 {
  font-family: var(--font-d);
  color: var(--navy);
  margin: 1.4em 0 0.5em;
}

.prose.entry-content h4 {
  font-size: 1.05rem;
}

.prose.entry-content p,
.prose.entry-content li {
  color: var(--navy-muted);
  line-height: 1.65;
  margin: 0 0 0.85em;
}

.prose.entry-content ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}