/* === COLOR PALETTE ===
   --teal-deep: #1F4D4A; primary brand tone for headings, navigation, and strong anchors
   --cream-warm: #F7F1E8; overall page background for warmth without sterility
   --sage-soft: #C9D9CF; secondary accent for gentle highlights, tints, and calm surfaces
   --coral-warm: #C96F5A; CTA and action color with a refined, human touch
   --charcoal-deep: #23302F; primary text color with softer contrast than pure black
   --sand-light: #E8DED1; border and divider tone that keeps the palette cohesive
   --white-soft: #FFFDFC; elevated surfaces and cards
*/

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: 0;
  color: inherit;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* === DESIGN TOKENS === */
:root {
  color-scheme: light;

  /* Brand palette */
  --teal-deep: #1F4D4A;
  --cream-warm: #F7F1E8;
  --sage-soft: #C9D9CF;
  --coral-warm: #C96F5A;
  --charcoal-deep: #23302F;
  --sand-light: #E8DED1;
  --white-soft: #FFFDFC;

  /* Typography */
  --font-heading: "Fraunces", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2.6vw, 3.5rem);
  --text-4xl: clamp(2.6rem, 2.15rem + 3.6vw, 4.75rem);

  --leading-tight: 1.08;
  --leading-snug: 1.2;
  --leading-normal: 1.65;

  /* Spacing scale: 8px base */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 72rem;
  --container-pad: clamp(1rem, 0.55rem + 2vw, 2rem);

  /* Radius */
  --radius-sm: 1rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-soft: 0 14px 36px rgba(31, 77, 74, 0.08);
  --shadow-lifted: 0 22px 50px rgba(35, 48, 47, 0.14);

  /* Transitions */
  --transition-base: 180ms ease;
}

/* === PAGE BASE === */
html,
body {
  background-color: var(--cream-warm);
  color: var(--charcoal-deep);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: color-mix(in srgb, var(--coral-warm) 18%, transparent);
  color: var(--charcoal-deep);
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: var(--leading-snug);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p,
li {
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-md);
}

small,
.text-small {
  font-size: var(--text-sm);
}

.eyebrow {
  color: var(--coral-warm);
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* === LAYOUT UTILITIES === */
.container {
  margin-inline: auto;
  max-width: calc(var(--container-max) + (var(--container-pad) * 2));
  padding-inline: var(--container-pad);
  width: 100%;
}

.section {
  padding-block: var(--space-3xl);
}

.section-tight {
  padding-block: var(--space-2xl);
}

.surface {
  background-color: var(--white-soft);
  border: 1px solid color-mix(in srgb, var(--charcoal-deep) 8%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.accent-wash {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--sage-soft) 55%, transparent),
    color-mix(in srgb, var(--white-soft) 90%, transparent)
  );
}

/* === INTERACTIVE FOUNDATIONS === */
.button-reset {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: var(--space-xs);
  justify-content: center;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base);
}

.focus-ring:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral-warm) 35%, transparent);
  outline-offset: 3px;
}

/* === NAVIGATION === */
.site-header {
  left: 0;
  padding-top: var(--space-sm);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.site-header::before {
  backdrop-filter: blur(0);
  background-color: color-mix(in srgb, var(--cream-warm) 72%, transparent);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: none;
  content: "";
  inset: var(--space-xs) var(--container-pad) auto;
  opacity: 0;
  position: absolute;
  transition:
    opacity var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
  z-index: -1;
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  background-color: color-mix(in srgb, var(--cream-warm) 88%, transparent);
  border-color: color-mix(in srgb, var(--sand-light) 82%, transparent);
  box-shadow: var(--shadow-soft);
  opacity: 1;
}

.site-nav {
  align-items: center;
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding-block: var(--space-xs);
  position: relative;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  gap: var(--space-sm);
  min-width: 0;
}

.brand-mark__icon {
  align-items: center;

  border-radius: var(--radius-sm);
  color: var(--white-soft);

  flex: 0 0 2.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.brand-mark__text {
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 11ch;
}

.nav-toggle {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--sand-light) 92%, transparent);
  border-radius: var(--radius-md);
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
  height: 2.75rem;
  justify-content: center;
  justify-self: end;
  padding: 0;
  width: 2.75rem;
}

.nav-toggle__line {
  background-color: var(--teal-deep);
  border-radius: var(--radius-sm);
  display: block;
  height: 0.125rem;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  width: 1.1rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(0.41rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-0.41rem) rotate(-45deg);
}

.nav-cta,
.button-primary,
.button-secondary {
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.875rem 1.2rem;
  white-space: nowrap;
}

.nav-cta,
.button-primary {
  background-color: var(--coral-warm);
  color: var(--white-soft);
  box-shadow: var(--shadow-soft);
}

.nav-panel {
  background-color: color-mix(in srgb, var(--white-soft) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--sand-light) 90%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  left: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-xs));
  transform: translateY(-0.5rem);
  transition:
    max-height 260ms ease,
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear 260ms;
  visibility: hidden;
}

.site-header.is-open .nav-panel {
  max-height: 24rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

.nav-links {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-sm);
}

.nav-links a {
  border-radius: var(--radius-md);
  color: var(--teal-deep);
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  min-height: 2.75rem;
  padding: 0.8rem 0.95rem;
}

/* === HERO === */
.hero {
  overflow: clip;
  padding-top: 6.75rem;
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
}

.hero__content,
.hero__visual-wrap {
  min-width: 0;
}

.hero__content {
  align-self: center;
  display: grid;
  gap: var(--space-sm);
}

.hero__eyebrow,
.hero__title,
.hero__text,
.hero__actions,
.hero__trust,
.hero__visual {
  opacity: 0;
  transform: translateY(1rem);
}

.hero__eyebrow,
.hero__title,
.hero__text,
.hero__actions,
.hero__trust {
  animation: fade-up 700ms ease forwards;
}

.hero__eyebrow {
  animation-delay: 40ms;
}

.hero__title {
  animation-delay: 120ms;
  max-width: 10ch;
}

.hero__text {
  animation-delay: 220ms;
  color: color-mix(in srgb, var(--charcoal-deep) 86%, var(--cream-warm));
  font-size: var(--text-lg);
  line-height: 1.58;
  max-width: 42ch;
}

.hero__actions {
  animation-delay: 340ms;
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.button-primary:hover,
.button-primary:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  box-shadow: var(--shadow-lifted);
  transform: translateY(-0.125rem);
}

.button-secondary {
  background-color: transparent;
  border: 1.5px solid var(--teal-deep);
  color: var(--teal-deep);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background-color: color-mix(in srgb, var(--sage-soft) 38%, var(--white-soft));
  transform: translateY(-0.125rem);
}

.hero__trust {
  animation-delay: 430ms;
  border-top: 1px solid color-mix(in srgb, var(--sand-light) 88%, transparent);
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: var(--space-lg);
}

.hero__trust-item {
  display: grid;
  gap: var(--space-2xs);
  min-width: 0;
  padding-right: var(--space-sm);
  position: relative;
}

.hero__trust-item:not(:last-child)::after {
  background-color: color-mix(in srgb, var(--sand-light) 90%, transparent);
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
}

.hero__trust-item strong {
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero__trust-item span {
  color: color-mix(in srgb, var(--charcoal-deep) 72%, var(--cream-warm));
  font-size: var(--text-xs);
  line-height: 1.45;
}

.hero__visual-wrap {
  min-height: 19rem;
  position: relative;
}

.hero__shape {
  border-radius: 999px;
  filter: blur(10px);
  position: absolute;
}

.hero__shape--sage {
  background: color-mix(in srgb, var(--sage-soft) 64%, transparent);
  height: 9rem;
  right: -1rem;
  top: 0.5rem;
  width: 9rem;
}

.hero__shape--cream {
  background: color-mix(in srgb, var(--white-soft) 90%, transparent);
  height: 6rem;
  left: -0.75rem;
  top: 3rem;
  width: 6rem;
}

.hero__shape--sand {
  background: color-mix(in srgb, var(--sand-light) 60%, transparent);
  bottom: 1.5rem;
  height: 7rem;
  right: 2.5rem;
  width: 7rem;
}

.hero__visual {
  animation: fade-up 760ms ease forwards;
  animation-delay: 500ms;
  border-radius: var(--radius-xl);
  min-height: 17rem;
  overflow: hidden;
  padding: var(--space-lg);
  position: relative;
}

.hero__visual::after {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--white-soft) 26%, transparent),
    transparent
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero__tooth {
  align-items: center;
  display: grid;
  height: 100%;
  justify-items: center;
  min-height: 14rem;
}

.hero__tooth svg {
  height: auto;
  max-width: 13rem;
  width: 68%;
}

.hero__status {
  bottom: var(--space-md);
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  position: absolute;
  transform: rotate(-3deg);
  z-index: 1;
}

.hero__status-line {
  align-items: center;
  color: var(--teal-deep);
  display: inline-flex;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}

.hero__status-time {
  color: color-mix(in srgb, var(--charcoal-deep) 68%, var(--cream-warm));
  display: block;
  margin-top: var(--space-2xs);
}

.hero__pulse {
  animation: pulse 1.8s ease-out infinite;
  background-color: var(--sage-soft);
  border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage-soft) 68%, transparent);
  display: inline-flex;
  flex: 0 0 0.7rem;
  height: 0.7rem;
  width: 0.7rem;
}

/* === TRUST STRIP === */
.trust-strip {
  background-color: var(--sand-light);
  border-block: 1px solid color-mix(in srgb, var(--charcoal-deep) 7%, transparent);
}

.trust-strip__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-strip__item {
  align-items: center;
  background-color: var(--sand-light);
  display: grid;
  gap: var(--space-xs);
  justify-items: center;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.trust-strip__item svg {
  fill: none;
  height: 1.5rem;
  stroke: var(--teal-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 1.5rem;
}

.trust-strip__item strong {
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.trust-strip__item span {
  color: color-mix(in srgb, var(--charcoal-deep) 70%, transparent);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.trust-strip__item:nth-child(-n + 2) {
  border-bottom: 1px solid color-mix(in srgb, var(--charcoal-deep) 7%, transparent);
}

/* === SERVICES === */
.services {
  position: relative;
}

.services__intro {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  max-width: 38rem;
}

.services__intro h2 {
  max-width: 12ch;
}

.services__lede {
  color: color-mix(in srgb, var(--charcoal-deep) 80%, var(--cream-warm));
  font-size: var(--text-base);
}

.services__grid {
  display: grid;
  gap: var(--space-lg);
}

.service-card {
  display: grid;
  gap: var(--space-md);
  overflow: hidden;
  padding: var(--space-lg);
  position: relative;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.service-card::before {
  background-color: var(--coral-warm);
  border-radius: 999px;
  content: "";
  inset: var(--space-lg) auto var(--space-lg) 0;
  position: absolute;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
  width: 3px;
}

.service-card__number {
  color: var(--coral-warm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color var(--transition-base);
}

.service-card__icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.service-card__icon svg {
  fill: none;
  height: 1.5rem;
  stroke: var(--teal-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 1.5rem;
}

.service-card h3 {
  font-size: var(--text-xl);
}

.service-card p {
  color: color-mix(in srgb, var(--charcoal-deep) 75%, var(--cream-warm));
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 32ch;
}

/* === SCROLL REVEAL === */
.animate-hidden {
  opacity: 0;
  transform: translateY(1.5rem);
}

.animate-hidden--fade {
  transform: none;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transition-delay: calc(var(--stagger, 0) * var(--reveal-step, 80ms));
}

.animate-visible.animate-hidden--fade {
  transform: none;
}

/* === DOCTORS === */
.doctors__intro,
.why__intro,
.gallery__intro {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  max-width: 42rem;
}

.doctors__intro h2,
.why__intro h2,
.gallery__intro h2 {
  max-width: 14ch;
}

.doctors__lede {
  color: color-mix(in srgb, var(--charcoal-deep) 82%, var(--cream-warm));
}

.doctors__grid {
  display: grid;
  gap: var(--space-lg);
}

.doctor-card {
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.doctor-card__media {
  align-items: center;
  background-color: var(--sage-soft);
  color: color-mix(in srgb, var(--charcoal-deep) 68%, var(--cream-warm));
  display: flex;
  font-size: var(--text-sm);
  font-style: italic;
  height: 13.75rem;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  object-fit: cover;        /* ADD */
  object-position: center center;     /* ADD — keeps face visible */
  display: block; 
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.doctor-card__body {
  display: grid;
  gap: var(--space-sm);
  padding: 0 var(--space-lg) var(--space-lg);
}

.doctor-card__badge {
  border-radius: 999px;
  color: var(--white-soft);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 700;
  justify-self: start;
  letter-spacing: 0.08em;
  margin-top: calc(var(--space-lg) * -1);
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
  transition: transform var(--transition-base);
}

.doctor-card__badge--teal {
  background-color: var(--teal-deep);
}

.doctor-card__badge--coral {
  background-color: var(--coral-warm);
}

.doctor-card h3 {
  font-size: var(--text-xl);
}

.doctor-card__qualification {
  color: color-mix(in srgb, var(--charcoal-deep) 60%, transparent);
  font-size: var(--text-xs);
  margin-top: calc(var(--space-2xs) * -1);
}

.doctor-card__specialty {
  color: color-mix(in srgb, var(--teal-deep) 82%, var(--cream-warm));
  font-size: var(--text-sm);
  line-height: 1.55;
}

.doctor-card__description {
  color: color-mix(in srgb, var(--charcoal-deep) 82%, var(--cream-warm));
  font-size: var(--text-sm);
  line-height: 1.65;
}

.doctor-card__meta {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--sand-light) 90%, transparent);
  color: color-mix(in srgb, var(--charcoal-deep) 76%, var(--cream-warm));
  display: inline-flex;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
}

.doctor-card__meta svg {
  fill: none;
  flex: 0 0 0.875rem;
  height: 0.875rem;
  stroke: var(--coral-warm);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 0.875rem;
}

.doctors__note {
  color: color-mix(in srgb, var(--charcoal-deep) 60%, transparent);
  font-size: var(--text-sm);
  font-style: italic;
  margin: var(--space-xl) auto 0;
  max-width: 34rem;
  text-align: center;
}

.doctors__info {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.doctors__info-item {
  border-top: 1px solid color-mix(in srgb, var(--sand-light) 92%, transparent);
  display: grid;
  gap: var(--space-2xs);
  padding-top: var(--space-md);
}

.doctors__info-item h3 {
  font-size: var(--text-base);
}

.doctors__info-item p {
  max-width: 42ch;
}

.doctors__info-muted {
  color: color-mix(in srgb, var(--charcoal-deep) 62%, transparent);
  font-size: var(--text-sm);
}

/* === WHY === */
.why {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--sage-soft) 25%, transparent),
    color-mix(in srgb, var(--white-soft) 35%, transparent)
  );
}

.why__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why__item {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.why__icon {
  align-items: center;
  background-color: color-mix(in srgb, var(--sage-soft) 40%, transparent);
  border-radius: var(--radius-sm);
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.why__icon svg {
  fill: none;
  height: 2rem;
  stroke: var(--teal-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 2rem;
}

.why__item h3 {
  font-size: var(--text-lg);
}

.why__item p {
  color: color-mix(in srgb, var(--charcoal-deep) 78%, var(--cream-warm));
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* === GALLERY === */
.gallery__grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery__item {
  align-items: center;
  background-color: var(--sage-soft);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  min-height: 11.25rem;
  overflow: hidden;
  padding: var(--space-md);
  position: relative;
  text-align: center;
}

.gallery__item--tall {
  min-height: 17.5rem;
}

.gallery__item::before {
  background-color: color-mix(in srgb, var(--teal-deep) 45%, transparent);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease;
}

.gallery__item span {
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  position: relative;
  transition:
    color 220ms ease,
    transform 220ms ease;
  z-index: 1;
}

/* === MOTION === */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage-soft) 68%, transparent);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 0.6rem color-mix(in srgb, var(--sage-soft) 0%, transparent);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage-soft) 0%, transparent);
    transform: scale(1);
  }
}

@media (min-width: 37.5rem) {
  .doctors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-card__media {
    height: 16.25rem;
  }

  .doctors__info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 7rem;
  }

  .gallery__item {
    min-height: 12.5rem;
  }

  .gallery__item--tall {
    grid-row: span 2;
    min-height: 20rem;
  }
}

@media (min-width: 48rem) {
  .trust-strip__grid {
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trust-strip__item {
    padding: var(--space-xl) var(--space-md);
  }

  .trust-strip__item:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .trust-strip__item:not(:last-child) {
    border-right: 1px solid color-mix(in srgb, var(--charcoal-deep) 7%, transparent);
  }

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

  .brand-mark__text {
    font-size: 1.15rem;
    max-width: none;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    gap: var(--space-lg);
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav-cta {
    order: 3;
  }

  .nav-panel {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    justify-content: flex-end;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    position: static;
    transform: none;
    transition: none;
    visibility: visible;
  }

  .nav-links {
    align-items: center;
    gap: var(--space-xs);
    grid-auto-flow: column;
    justify-content: end;
    padding: 0;
  }

  .nav-links a {
    min-height: auto;
    padding: var(--space-xs) var(--space-sm);
  }

  .hero {
    padding-top: 9rem;
  }

  .hero__grid {
    align-items: center;
    gap: var(--space-2xl);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
  }

  .hero__visual-wrap {
    min-height: 30rem;
  }

  .hero__visual {
    min-height: 28rem;
    padding: var(--space-xl);
  }

  .hero__status {
    bottom: var(--space-lg);
    left: calc(var(--space-lg) * -0.4);
  }

  .section {
    padding-block: var(--space-4xl);
  }
}

@media (min-width: 64rem) {
  .why__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__grid {
    gap: var(--space-3xl);
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero__title {
    max-width: 11ch;
  }

  .hero__visual-wrap {
    min-height: 34rem;
  }

  .hero__visual {
    min-height: 31rem;
    padding: var(--space-2xl);
  }

  .hero__tooth svg {
    max-width: 16rem;
    width: 74%;
  }
}

@media (hover: hover) {
  .doctor-card:hover,
  .doctor-card:focus-within {
    box-shadow: var(--shadow-lifted);
    transform: translateY(-0.25rem);
  }

  .doctor-card:hover .doctor-card__badge,
  .doctor-card:focus-within .doctor-card__badge {
    transform: scale(1.05);
  }

  .service-card:hover,
  .service-card:focus-within {
    box-shadow: var(--shadow-lifted);
    transform: translateY(-0.375rem);
  }

  .service-card:hover::before,
  .service-card:focus-within::before {
    transform: scaleY(1);
  }

  .service-card:hover .service-card__number,
  .service-card:focus-within .service-card__number {
    color: var(--teal-deep);
  }

  .gallery__item:hover::before,
  .gallery__item:focus-within::before {
    opacity: 1;
  }

  .gallery__item:hover span,
  .gallery__item:focus-within span {
    color: var(--white-soft);
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__text,
  .hero__actions,
  .hero__trust,
  .hero__visual {
    opacity: 1;
    transform: none;
  }

  .animate-hidden,
  .animate-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   LOCATION SECTION
========================================================== */

.location {
    position: relative;
    overflow: hidden;
}

.location__heading {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.location__grid {
    display: grid;
    gap: 2rem;
}

/* ==========================================================
   LEFT COLUMN
========================================================== */

.location__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 1.5rem;

    border: 1px solid rgba(31, 77, 74, 0.08);

    border-radius: var(--radius-lg);

    background: rgba(255,255,255,.78);

    backdrop-filter: blur(10px);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.location-card__icon {

    width: 56px;
    height: 56px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(31,77,74,.08);

    color: var(--teal-deep);
}

.location-card__icon svg{

    width:26px;
    height:26px;

}

.location-card__label{

    display:block;

    margin-bottom:.4rem;

    text-transform:uppercase;

    letter-spacing:.08em;

    font-size:.72rem;

    font-weight:700;

    color:var(--teal-deep);

}

.location-card h3{

    margin-bottom:.5rem;

}

.location-card p{

    line-height:1.8;

    opacity:.82;

}

.location-hours{

    display:grid;

    gap:1rem;

    margin-top:.5rem;

}

.location-hours strong{

    display:block;

    margin-bottom:.3rem;

    color:var(--teal-deep);

}

.location-hours span{

    opacity:.82;

}

/* ==========================================================
   BUTTON
========================================================== */

.location__button{

    margin-top:.5rem;

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:.8rem;

}

.location__button svg{

    width:18px;

    height:18px;

    transition:transform .3s ease;

}

/* ==========================================================
   MAP
========================================================== */

.location-map{

    position:relative;

}

.location-map__frame{

    overflow:hidden;

    border-radius:var(--radius-xl);

    border:1px solid rgba(31,77,74,.08);

    background:#fff;

    box-shadow:
        0 20px 45px rgba(31,77,74,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}

.location-map iframe{

    display:block;

    width:100%;

    height:340px;

    border:0;

}

/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width:900px){

.location__grid{

grid-template-columns:

420px 1fr;

align-items:center;

gap:3rem;

}

.location-map iframe{

height:560px;

}

}

/* ==========================================================
   TABLET
========================================================== */

@media (min-width:700px) and (max-width:899px){

.location-map iframe{

height:460px;

}

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:699px){

.location-card{

padding:1.3rem;

}

.location-card__icon{

width:50px;

height:50px;

}

.location-map iframe{

height:320px;

}

}

/* ==========================================================
   HOVER
========================================================== */

@media (hover:hover){

.location-card:hover{

transform:translateY(-5px);

border-color:rgba(31,77,74,.18);

box-shadow:

0 18px 40px rgba(31,77,74,.08);

}

.location-card:hover .location-card__icon{

transform:rotate(-6deg);

transition:transform .35s ease;

}

.location-map__frame:hover{

transform:translateY(-5px);

box-shadow:

0 26px 55px rgba(31,77,74,.12);

}

.location__button:hover svg{

transform:translateX(4px);

}

}

/* ==========================================================
   LOCATION PREMIUM POLISH
========================================================== */

/* ---------- Background Glow ---------- */

.location::before{
    content:"";
    position:absolute;
    width:28rem;
    height:28rem;
    top:-12rem;
    right:-10rem;
    border-radius:50%;
    background:rgba(201,217,207,.28);
    filter:blur(90px);
    pointer-events:none;
}

.location::after{
    content:"";
    position:absolute;
    width:20rem;
    height:20rem;
    bottom:-8rem;
    left:-8rem;
    border-radius:50%;
    background:rgba(244,180,163,.12);
    filter:blur(70px);
    pointer-events:none;
}

/* ---------- Floating Map Badges ---------- */

.location-map{
    position:relative;
}

.location-badge{

    position:absolute;

    display:flex;
    align-items:center;
    gap:.6rem;

    padding:.8rem 1rem;

    border-radius:999px;

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(12px);

    border:1px solid rgba(31,77,74,.08);

    box-shadow:
        0 14px 32px rgba(31,77,74,.10);

    z-index:5;

}

.location-badge svg{

    width:18px;
    height:18px;

    color:var(--teal-deep);

}

.location-badge strong{

    display:block;

    font-size:.88rem;

    color:var(--teal-deep);

}

.location-badge span{

    display:block;

    font-size:.76rem;

    opacity:.7;

}

.location-badge--top{

    top:1rem;

    right:1rem;

}

.location-badge--bottom{

    bottom:1rem;

    left:1rem;

}

/* ---------- Card Accent ---------- */

.location-card{

    position:relative;

    overflow:hidden;

}

.location-card::before{

    content:"";

    position:absolute;

    inset:0;

    width:5px;

    background:linear-gradient(
        to bottom,
        var(--teal-deep),
        var(--sage-soft)
    );

    opacity:0;

    transition:opacity .35s ease;

}

@media(hover:hover){

.location-card:hover::before{

opacity:1;

}

}

/* ---------- Map Rounded Shadow ---------- */

.location-map__frame{

    position:relative;

}

.location-map__frame::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.35);

    pointer-events:none;

}

/* ---------- Button ---------- */

.location__button{

    min-height:56px;

}

@media(hover:hover){

.location__button{

transition:

transform .3s ease,

box-shadow .3s ease;

}

.location__button:hover{

transform:translateY(-2px);

}

}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion:reduce){

.location-card,

.location-map__frame,

.location__button{

transition:none;

}

}

/* ==========================================================
   CONTACT SECTION
========================================================== */

.contact{
    position:relative;
    overflow:hidden;
}

.contact::before{
    content:"";
    position:absolute;
    width:30rem;
    height:30rem;
    top:-12rem;
    left:-12rem;
    border-radius:50%;
    background:rgba(201,217,207,.22);
    filter:blur(90px);
    pointer-events:none;
}

.contact::after{
    content:"";
    position:absolute;
    width:22rem;
    height:22rem;
    bottom:-8rem;
    right:-8rem;
    border-radius:50%;
    background:rgba(244,180,163,.10);
    filter:blur(70px);
    pointer-events:none;
}

/* ==========================
   Heading
========================== */

.contact__heading{
    text-align:center;
    max-width:44rem;
    margin-inline:auto;
    margin-bottom:clamp(3rem,6vw,5rem);
}

/* ==========================
   Layout
========================== */

.contact__grid{

    display:grid;

    gap:2rem;

}

@media(min-width:960px){

.contact__grid{

grid-template-columns:

380px 1fr;

align-items:start;

gap:3rem;

}

}

/* ==========================
   Left Column
========================== */

.contact__info{

display:flex;

flex-direction:column;

gap:1.5rem;

}

.contact-card{

position:relative;

display:flex;

gap:1rem;

padding:1.5rem;

border-radius:var(--radius-lg);

border:1px solid rgba(31,77,74,.08);

background:rgba(255,255,255,.82);

backdrop-filter:blur(10px);

overflow:hidden;

transition:
transform .35s ease,
box-shadow .35s ease,
border-color .35s ease;

}

.contact-card::before{

content:"";

position:absolute;

left:0;
top:0;
bottom:0;

width:4px;

background:linear-gradient(
to bottom,
var(--teal-deep),
var(--sage-soft)
);

opacity:0;

transition:opacity .35s ease;

}

.contact-card__icon{

width:58px;
height:58px;

flex-shrink:0;

display:flex;
align-items:center;
justify-content:center;

border-radius:16px;

background:rgba(31,77,74,.08);

color:var(--teal-deep);

transition:
transform .35s ease,
background .35s ease;

}

.contact-card__icon svg{

width:26px;
height:26px;

}

.contact-card h3{

margin-bottom:.55rem;

}

.contact-card p{

line-height:1.8;

opacity:.82;

}

.contact-card__link{

display:inline-flex;

align-items:center;

margin-top:1rem;

font-weight:600;

color:var(--teal-deep);

text-decoration:none;

transition:letter-spacing .3s ease;

}

/* ==========================
   Form Card
========================== */

.contact-form{

padding:clamp(1.75rem,3vw,3rem);

border-radius:var(--radius-xl);

border:1px solid rgba(31,77,74,.08);

background:rgba(255,255,255,.92);

box-shadow:0 20px 45px rgba(31,77,74,.08);

}

.contact-form h3{

margin-bottom:.5rem;

}

.contact-form>p{

margin-bottom:2rem;

opacity:.78;

}

/* ==========================
   Form Groups
========================== */

.form-group{

display:flex;

flex-direction:column;

margin-bottom:1.25rem;

}

.form-group label{

font-size:.9rem;

font-weight:600;

margin-bottom:.55rem;

color:var(--teal-deep);

}

.form-group input,
.form-group select,
.form-group textarea{

width:100%;

padding:1rem 1.1rem;

font:inherit;

border-radius:16px;

border:1px solid rgba(31,77,74,.10);

background:#fff;

outline:none;

transition:
border-color .3s ease,
box-shadow .3s ease,
transform .3s ease;

resize:vertical;

}

.form-group textarea{

min-height:150px;

}

/* ==========================
   Focus
========================== */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

border-color:var(--teal-deep);

box-shadow:
0 0 0 4px rgba(31,77,74,.08);

}

/* ==========================
   Submit Button
========================== */

.contact-submit{

width:100%;

margin-top:.75rem;

min-height:58px;

font-size:1rem;

}

/* ==========================
   Desktop Hover
========================== */

@media(hover:hover){

.contact-card:hover{

transform:translateY(-5px);

border-color:rgba(31,77,74,.18);

box-shadow:
0 18px 42px rgba(31,77,74,.10);

}

.contact-card:hover::before{

opacity:1;

}

.contact-card:hover .contact-card__icon{

transform:rotate(-6deg) scale(1.06);

background:rgba(31,77,74,.12);

}

.contact-card__link:hover{

letter-spacing:.03em;

}

.contact-form{

transition:
transform .35s ease,
box-shadow .35s ease;

}

.contact-form:hover{

transform:translateY(-4px);

box-shadow:
0 26px 55px rgba(31,77,74,.12);

}

.contact-submit{

transition:
transform .3s ease,
box-shadow .3s ease;

}

.contact-submit:hover{

transform:translateY(-2px);

}

}

/* ==========================
   Mobile
========================== */

@media(max-width:640px){

.contact-form{

padding:1.5rem;

}

.contact-card{

padding:1.25rem;

}

.contact-card__icon{

width:50px;

height:50px;

}

.contact-card__icon svg{

width:22px;

height:22px;

}

.form-group input,
.form-group select,
.form-group textarea{

padding:.95rem 1rem;

}

}

/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
  position: relative;
  padding: clamp(4rem, 6vw, 6rem) 0 2rem;
  background: var(--cream-warm);
  border-top: 1px solid color-mix(in srgb, var(--sand-light) 70%, transparent);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(90%, 1200px);
  height: 1px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--sage-soft) 35%, transparent);
}

.footer__top {
  display: grid;
  gap: 3rem;
}

.footer__brand {
  display: grid;
  gap: 1.25rem;
}

.footer__logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
}

.footer__logo span {
  font-size: .9rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-top: .35rem;
}

.footer__description {
  max-width: 34ch;
  color: color-mix(in srgb, var(--charcoal-deep) 78%, white);
  line-height: 1.8;
}

.footer__heading {
  margin: 0 0 1.25rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
}

.footer__links,
.footer__info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li + li,
.footer__info li + li {
  margin-top: .9rem;
}

.footer__links a,
.footer__info a {
  color: var(--charcoal-deep);
  text-decoration: none;
  transition:
    color .22s ease,
    transform .22s ease;
}

.footer__links a:hover,
.footer__info a:hover {
  color: var(--teal-deep);
  transform: translateX(4px);
}

.footer__info li {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer__info svg {
  width: 20px;
  height: 20px;
  color: var(--teal-deep);
  flex-shrink: 0;
}

.footer__hours {
  display: grid;
  gap: 1.25rem;
}

.footer__time {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.footer__time strong {
  color: var(--teal-deep);
  font-size: .95rem;
}

.footer__time span {
  color: color-mix(in srgb, var(--charcoal-deep) 78%, white);
}

.footer__bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--sand-light) 70%, transparent);

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer__bottom p {
  margin: 0;
  color: color-mix(in srgb, var(--charcoal-deep) 72%, white);
}

.footer__agency {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 700;
  transition: color .22s ease;
}

.footer__agency:hover {
  color: var(--sage-dark);
}

/* ---------- Desktop ---------- */

@media (min-width: 992px) {

  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: start;
  }

}

/* ---------- Tablet ---------- */

@media (min-width: 768px) and (max-width: 991px) {

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

}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {

  .site-footer {
    padding-top: 3.5rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__description {
    max-width: none;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ==========================================
   AI Launcher
========================================== */

.chat-launcher{

position:fixed;

right:22px;
bottom:22px;

width:72px;
height:72px;

border:none;

border-radius:50%;

cursor:pointer;

z-index:9999;

display:flex;

justify-content:center;

align-items:center;

background:rgba(255,255,255,.82);

backdrop-filter:blur(18px);

-webkit-backdrop-filter:blur(18px);

box-shadow:
0 12px 35px rgba(0,0,0,.18),
0 0 0 1px rgba(255,255,255,.4);

transition:
transform .35s ease,
box-shadow .35s ease;

overflow:visible;

animation:
launcherFloat 5s ease-in-out infinite;

}

.chat-launcher:hover{

transform:translateY(-5px) scale(1.05);

box-shadow:
0 20px 50px rgba(0,0,0,.22),
0 0 35px rgba(37,99,235,.18);

}

.launcher-ring{

width:56px;
height:56px;

border-radius:50%;

display:flex;

justify-content:center;
align-items:center;

background:
linear-gradient(
135deg,
#2563eb,
#0ea5e9
);

color:white;

position:relative;

}

.launcher-ring::before{

content:"";

position:absolute;

inset:-4px;

border-radius:50%;

background:
linear-gradient(
135deg,
rgba(37,99,235,.35),
rgba(14,165,233,.35)
);

filter:blur(8px);

z-index:-1;

}

.tooth-icon{

width:30px;
height:30px;

}

.status-dot{

position:absolute;

top:8px;
right:8px;

width:12px;
height:12px;

background:#10b981;

border-radius:50%;

border:2px solid white;

box-shadow:
0 0 12px rgba(16,185,129,.8);

animation:
pulse 2s infinite;

}

@keyframes pulse{

0%{

transform:scale(1);

opacity:1;

}

50%{

transform:scale(1.25);

opacity:.55;

}

100%{

transform:scale(1);

opacity:1;

}

}

@keyframes launcherFloat{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-8px);

}

100%{

transform:translateY(0);

}

}

@media(max-width:768px){

.chat-launcher{

width:68px;
height:68px;

bottom:18px;
right:18px;

}

.launcher-ring{

width:52px;
height:52px;

}

}

/* ============================
   AI Chat Container
============================ */

.chat-widget{

    position:fixed;

    right:16px;
    bottom:60px;

    width: min(360px, calc(100vw - 48px));

    height: min(680px, calc(100vh - 120px));

    max-height:calc(100vh - 140px);

    background:
        rgba(255,255,255,.92);

    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);

    border:

        1px solid rgba(255,255,255,.45);

    border-radius:24px;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    box-shadow:

        0 30px 80px rgba(15,23,42,.18),

        0 8px 24px rgba(15,23,42,.08);

    z-index:9998;

    opacity:1;

    transform-origin:
        bottom right;

    transition:

        transform .28s cubic-bezier(.22,.61,.36,1),

        opacity .28s,

        visibility .28s;
}

/* Hidden State */

.chat-widget.hidden{

    opacity:0;

    visibility:hidden;

    transform:
        translateY(24px)
        scale(.96);

    pointer-events:none;

}

/* Mobile */

@media (max-width:768px){

.chat-widget{

    left:0;
    right:0;

    bottom:0;

    width:100%;

    height:100dvh;

    max-height:100dvh;

    border-radius:

        24px 24px 0 0;

}

}

/* =====================================
   Header
===================================== */

.chat-header{

display:flex;

align-items:center;

justify-content:space-between;

padding:18px 20px;

border-bottom:1px solid rgba(15,23,42,.06);

background:rgba(255,255,255,.55);

backdrop-filter:blur(14px);

}

.chat-profile{

display:flex;

align-items:center;

gap:14px;

}

.chat-avatar{

display:flex;

align-items:center;

justify-content:center;

}

.launcher-ring.small{

width:44px;

height:44px;

}

.launcher-ring.small .tooth-icon{

width:22px;

height:22px;

}

.chat-title h3{

margin:0;

font-size:17px;

font-weight:700;

color:#0f172a;

}

.chat-title span{

display:flex;

align-items:center;

gap:6px;

margin-top:4px;

font-size:13px;

color:#64748b;

}

.online-dot{

width:8px;

height:8px;

border-radius:50%;

background:#10b981;

box-shadow:0 0 8px rgba(16,185,129,.6);

}

.chat-close{

width:38px;

height:38px;

border:none;

border-radius:12px;

background:transparent;

cursor:pointer;

font-size:18px;

transition:.25s;

}

.chat-close:hover{

background:#f1f5f9;

}


/* ============================
   Welcome
============================ */

.chat-welcome{

padding:24px;

}

.welcome-label{

margin:0;

font-size:13px;

letter-spacing:.08em;

text-transform:uppercase;

color:#94a3b8;

}

.chat-welcome h2{

margin:8px 0;

font-size:30px;

font-weight:700;

color:#0f172a;

}

.welcome-description{

margin:0;

line-height:1.7;

font-size:15px;

color:#475569;

}

/* ============================
   Suggestions
============================ */

.chat-suggestions{

display:flex;

flex-wrap:wrap;

gap:10px;

padding:0 24px 20px;

}

.chat-chip{

padding:12px 16px;

border-radius:999px;

border:1px solid #e2e8f0;

background:white;

font-size:14px;

font-weight:500;

cursor:pointer;

transition:.25s;

}

.chat-chip:hover{

transform:translateY(-2px);

border-color:#2563eb;

color:#2563eb;

box-shadow:

0 10px 20px rgba(37,99,235,.10);

}

/* ============================
   Messages
============================ */

.chat-messages{

flex:1;

min-height:0;

overflow-y:auto;

}

/* ============================
   Input
============================ */

.chat-input-area{

display:flex;

align-items:center;

gap:12px;

flex-shrink:0;

padding:18px;

border-top:1px solid #e2e8f0;

background:white;

}

.chat-input-area input{

flex:1;
min-width: 0;
height:48px;

padding:0 18px;

border:1px solid #e2e8f0;

border-radius:14px;

outline:none;

font-size:15px;

transition:.25s;

}

.chat-input-area input:focus{

border-color:#2563eb;

box-shadow:

0 0 0 4px rgba(37,99,235,.08);

}

.send-btn{

width:44px;

height:44px;
flex-shrink: 0;
border:none;

border-radius:14px;

background:#2563eb;

color:white;

cursor:pointer;

display:flex;

justify-content:center;

align-items:center;

transition:.25s;

}

.send-btn svg{

width:20px;

height:20px;

}

.send-btn:hover{

transform:translateY(-2px);

background:#1d4ed8;

}

.chat-launcher{

transition:
opacity .25s ease,
transform .25s ease;

}


.message{

max-width:80%;

padding:14px 18px;

border-radius:18px;

margin-bottom:14px;

font-size:15px;

line-height:1.6;

word-break:break-word;

animation:fadeIn .25s ease;

}

.message.user{

margin-left:auto;

background:#2563eb;

color:white;

border-bottom-right-radius:6px;

}

.message.ai{

background:#f8fafc;

color:#0f172a;

border:1px solid #e2e8f0;

border-bottom-left-radius:6px;

}

@keyframes fadeIn{

from{

opacity:0;

transform:translateY(10px);

}

to{

opacity:1;

transform:none;

}

}

/* ==========================
   Typing Indicator
========================== */

.typing-indicator{

display:flex;

gap:6px;

margin-bottom:16px;

padding:12px 18px;

width:fit-content;

background:#f8fafc;

border:1px solid #e2e8f0;

border-radius:18px;

}

.typing-indicator span{

width:8px;

height:8px;

border-radius:50%;

background:#94a3b8;

animation:typingBounce 1.2s infinite;

}

.typing-indicator span:nth-child(2){

animation-delay:.2s;

}

.typing-indicator span:nth-child(3){

animation-delay:.4s;

}

@keyframes typingBounce{

0%,80%,100%{

transform:translateY(0);

opacity:.4;

}

40%{

transform:translateY(-5px);

opacity:1;

}

}

.gallery__item {
  position: relative;
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.gallery__more .button-secondary {
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
}

.gallery__more .button-secondary svg {
  transition: transform var(--transition-base);
}

.gallery__more .button-secondary:hover svg {
  transform: translateX(4px);
} 