/* ============================================
   TriFace — Oral & Maxillofacial Surgery
   Design system — Theme Color #3A7271
   ============================================ */

:root {
  --ink: #071923;
  --ink-soft: #102c3d;
  --teal: #3A7271;
  --teal-deep: #285352;
  --teal-soft: #e0eceb;
  --seagreen: #3A7271;
  --seagreen-deep: #285352;
  --seagreen-soft: #e0eceb;
  --sand: #88c4c2;
  --sand-soft: #e6f2f1;
  --mist: #f2f8fb;
  --pearl: #e6f2f8;
  --white: #ffffff;
  --muted: #526d7a;
  --line: rgba(7, 25, 35, 0.09);
  --shadow: 0 24px 60px rgba(7, 25, 35, 0.11);
  --radius: 1.25rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn-tf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
}

.btn-tf:hover {
  transform: translateY(-2px);
}

.btn-tf-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(58, 114, 113, 0.28);
}

.btn-tf-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-tf-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(7, 25, 35, 0.18);
}

.btn-tf-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-tf-light {
  background: var(--white);
  color: var(--ink);
}

.btn-tf-light:hover {
  background: var(--sand-soft);
  color: var(--ink);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(40, 83, 82, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(242, 248, 251, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(7, 25, 35, 0.08);
}

.site-nav .nav-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal), var(--ink-soft));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.logo-text span {
  color: var(--sand);
}

.site-nav.is-scrolled .logo-text {
  color: var(--ink);
}

.site-nav.is-scrolled .logo-text span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
  transition: color 0.25s, opacity 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sand);
}

.site-nav.is-scrolled .nav-links a {
  color: var(--ink-soft);
}

.site-nav.is-scrolled .nav-links a:hover,
.site-nav.is-scrolled .nav-links a.active {
  color: var(--teal);
}

.site-nav .nav-links .btn-tf-primary {
  background: var(--sand);
  color: var(--ink);
  box-shadow: none;
}

.site-nav .nav-links .btn-tf-primary:hover {
  background: var(--white);
  color: var(--ink);
}

.site-nav.is-scrolled .nav-links .btn-tf-primary {
  background: var(--teal);
  color: var(--white);
}

.site-nav.is-scrolled .nav-links .btn-tf-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
}

.site-nav.is-scrolled .nav-toggle {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 2.75rem) 0 3.5rem;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 25, 35, 0.35) 0%, rgba(7, 25, 35, 0.78) 55%, rgba(7, 25, 35, 0.94) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(58, 114, 113, 0.52), transparent 55%),
    linear-gradient(135deg, #071923 0%, #3A7271 48%, #102c3d 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(136, 196, 194, 0.16), transparent 35%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  right: max(-1rem, calc((100% - 1120px) / 2 - 1rem));
  top: calc(var(--nav-h) + 1.5rem);
  z-index: 1;
  width: min(42vw, 420px);
  pointer-events: none;
  opacity: 0.95;
  mask-image: radial-gradient(circle at center, #000 48%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, #000 48%, transparent 78%);
}

.hero-mark img {
  width: 100%;
  display: block;
  border-radius: 50%;
  filter: saturate(1.05) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: italic;
  color: var(--sand);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 0 0.5rem;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-sub {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin: 0 0 1.15rem;
  line-height: 1.55;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.32s both;
}

.hero-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-ghost:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

/* ---------- About firm ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
}

.about-cta-wrap {
  margin-top: 1.75rem;
}

/* Full-row video showcase across all columns */
.about-videos {
  margin-top: 2.75rem;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .about-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-videos:has(.about-video-card:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-video-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(7, 25, 35, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.about-video-card:hover,
.about-video-card.is-active {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 18px 36px rgba(7, 25, 35, 0.12);
}

.about-video-frame {
  position: relative;
  background: var(--ink);
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.about-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-video-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(7, 25, 35, 0.82);
  color: var(--sand);
  border: 1px solid rgba(136, 196, 194, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.about-video-card.is-active .about-video-badge {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.about-video-meta {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.about-video-meta h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.about-video-meta p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.54;
  color: var(--muted);
}

.about-pillars {
  display: grid;
  gap: 1.1rem;
}

.pillar {
  padding: 1.35rem 1.4rem;
  border-left: 3px solid var(--teal);
  background: linear-gradient(90deg, rgba(58, 114, 113, 0.08), transparent);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.72rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Services ---------- */
.services-strip {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.services-strip .section-title {
  color: var(--white);
}

.services-strip .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.service-item {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.52rem;
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.service-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.service-num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 0.55rem;
  font-weight: 700;
}

/* ---------- Doctors ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.doctor-tile {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 280px;
  background: var(--white);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.doctor-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.doctor-photo {
  position: relative;
  background: linear-gradient(160deg, var(--teal-soft), #b7d6d5 40%, var(--ink-soft));
  min-height: 240px;
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}

.doctor-tile:hover .doctor-photo img {
  transform: scale(1.04);
}

.doctor-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
}

.doctor-body {
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
}

.doctor-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.doctor-body h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.doctor-creds {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.doctor-blurb {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doctor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.doctor-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doctor-link:hover {
  color: var(--teal-deep);
}

.social-row {
  display: flex;
  gap: 0.45rem;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pearl);
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: background 0.25s, color 0.25s;
}

.social-row a:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---------- Supporting Members / Collaborators ---------- */
.collaborators-band {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.collab-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 260px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.collab-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.collab-photo {
  position: relative;
  background: linear-gradient(160deg, var(--teal-soft), #b7d6d5 45%, var(--ink-soft));
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
}

.collab-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}

.collab-card:hover .collab-photo img {
  transform: scale(1.04);
}

.collab-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
}

.collab-body {
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}

.collab-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.collab-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.collab-body .doctor-creds {
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.collab-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.collab-tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}

.collab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ---------- Why TriFace (Big Feature Band) ---------- */
.why-band {
  padding: 6.25rem 0;
  background:
    linear-gradient(120deg, rgba(58, 114, 113, 0.1), rgba(136, 196, 194, 0.18)),
    var(--pearl);
}

.why-heading {
  font-size: clamp(3rem, 6.2vw, 4.9rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.why-lead {
  font-size: 1.22rem;
  max-width: 44rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1.25rem;
}

.why-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 1rem;
  padding: 1.6rem 1.45rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.why-item .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(7, 25, 35, 0.08);
}

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.contact-panel > div > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 500;
}

.contact-list i {
  color: var(--teal);
  margin-top: 0.2rem;
}

.firm-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.firm-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pearl);
  color: var(--ink);
  font-size: 1.1rem;
  transition: background 0.25s, color 0.25s;
}

.firm-social a:hover {
  background: var(--teal);
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  background: var(--mist);
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin: 0 0 0.65rem;
}

.footer-brand span {
  color: var(--sand);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a:hover {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-credit {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-credit a {
  color: var(--sand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.footer-credit a:hover {
  color: var(--white);
}

/* ---------- Doctor profile page ---------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 4.25rem;
  background:
    linear-gradient(160deg, rgba(7, 25, 35, 0.88), rgba(40, 83, 82, 0.88)),
    linear-gradient(135deg, #071923, #3A7271);
  color: var(--white);
}

.profile-hero-mark {
  position: absolute;
  right: max(-1.5rem, calc((100% - 1120px) / 2 - 2rem));
  top: 52%;
  transform: translateY(-50%);
  z-index: 1;
  width: min(36vw, 380px);
  pointer-events: none;
  opacity: 0.38;
  mask-image: radial-gradient(circle at center, #000 45%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at center, #000 45%, transparent 76%);
}

.profile-hero-mark img {
  width: 100%;
  display: block;
  border-radius: 50%;
  filter: saturate(1.05) contrast(1.05);
}

.profile-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.75rem;
  align-items: end;
}

.profile-photo-wrap {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #6ba6a5, #102c3d);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.profile-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-meta .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.profile-meta .back-link:hover {
  color: var(--sand);
}

.profile-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.65rem;
}

.profile-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.55rem;
}

.profile-creds {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.35rem;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.25s, color 0.25s;
}

.profile-social a:hover {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
}

/* ---------- Quick Highlights Strip ---------- */
.profile-highlights {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 14px 36px rgba(7, 25, 35, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(7, 25, 35, 0.11);
}

.highlight-card .hl-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.highlight-card .hl-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.highlight-card .hl-value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* ---------- Profile Body & Cards ---------- */
.profile-body {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 2.5rem;
  padding: 3.5rem 0 4.5rem;
}

.profile-story,
.profile-side {
  min-width: 0;
}

.profile-story h2,
.profile-side h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 1rem;
}

.profile-story p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
}

.profile-story .profile-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.7;
  padding-left: 1.1rem;
  border-left: 3px solid var(--sand);
  margin-bottom: 1.45rem;
}

.profile-section-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.85rem;
  margin-bottom: 1.5rem;
}

.profile-section-card h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.profile-section-card h2 i {
  font-size: 1.25rem;
  color: var(--teal);
}

.interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.interest-list li {
  padding: 0.55rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.interest-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.interest-grid li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.interest-grid li i {
  color: var(--teal);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.interest-grid li:hover {
  background: var(--white);
  border-color: var(--teal);
  transform: translateX(3px);
}

/* ---------- Timeline (Academic Journey) ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 2px;
  background: var(--teal-soft);
}

.timeline li {
  position: relative;
  padding-left: 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
}

.tl-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.tl-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.tl-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Other Specialists Switcher ---------- */
.other-surgeons {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 3.75rem 0 4.5rem;
}

.other-surgeons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.mini-doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mini-doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(7, 25, 35, 0.08);
}

.mini-doc-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--teal), var(--ink-soft));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.mini-doc-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mini-doc-info {
  min-width: 0;
}

.mini-doc-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--ink);
  line-height: 1.2;
}

.mini-doc-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- Sidebar ---------- */
.profile-side-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.side-block {
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--line);
}

.side-block h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.85rem;
}

.side-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.side-block li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 0.9rem;
  position: relative;
}

.side-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.quote-block {
  background: var(--ink);
  color: var(--white);
  padding: 1.5rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.consult-cta-box {
  background: linear-gradient(155deg, var(--teal-deep), var(--ink));
  color: var(--white);
  padding: 1.5rem;
  margin-top: 1.15rem;
}

.consult-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  color: var(--white);
}

.consult-cta-box p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.1rem;
}

.consult-cta-box .btn-tf-light {
  width: 100%;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid,
  .profile-hero-grid,
  .profile-body,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: calc(var(--nav-h) + 2rem) 0 2.75rem;
  }

  .hero-mark {
    width: min(58vw, 240px);
    right: -8vw;
    top: calc(var(--nav-h) + 0.75rem);
    opacity: 0.28;
  }

  .profile-hero-mark {
    width: min(56vw, 240px);
    right: -5vw;
    top: auto;
    bottom: 1rem;
    transform: none;
    opacity: 0.28;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .other-surgeons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doctors-grid,
  .collaborators-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .doctor-tile,
  .collab-card {
    grid-template-columns: 165px minmax(0, 1fr);
  }

  .profile-photo-wrap {
    max-width: 260px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-side-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(40, 83, 82, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background 0.35s var(--ease);
  }

  .site-nav.is-scrolled .nav-links {
    background: rgba(242, 248, 251, 0.98);
    border-bottom-color: var(--line);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 0.25rem;
  }

  .nav-links .btn-tf {
    width: 100%;
    margin-top: 0.5rem;
  }

  .collab-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .collab-photo {
    min-height: 240px;
  }

  .services-grid,
  .why-grid,
  .other-surgeons-grid,
  .highlights-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .doctor-tile {
    grid-template-columns: minmax(0, 1fr);
  }

  .doctor-photo {
    min-height: 220px;
  }

  .doctor-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-highlights {
    margin-top: 1.25rem;
  }

  .profile-section-card {
    padding: 1.35rem 1.25rem;
  }
}