/* Dr. Tran Plastic Surgery — site stylesheet
   One file, no frameworks. Brand colors come from the logo. */

@font-face {
  font-family: "PF Din";
  src: url("/fonts/PFDinTextPro-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "PF Din";
  src: url("/fonts/PFDinTextPro-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PF Din";
  src: url("/fonts/PFDinTextPro-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #3f4448;
  --muted: #666d72;
  --teal: #00bbd6;
  --teal-dark: #007a8f;
  --teal-tint: #e8f8fb;
  --coral: #f48480;
  --line: #e1e6e8;
  --max: 1100px;
  --font: "PF Din", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 300; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: 0.06em; text-transform: uppercase; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.2rem; font-weight: 500; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.6rem; flex-wrap: wrap;
}
.brand { display: block; line-height: 0; }
.brand img { height: 64px; width: auto; }
.call { text-decoration: none; color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }
.call:hover { color: var(--teal-dark); }
.nav { list-style: none; margin: 0; padding: 0 0 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; align-items: center; }
.nav a {
  display: inline-block; text-decoration: none; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--teal); }
.nav .cta a {
  background: var(--teal-dark); color: #fff; padding: 0.5rem 1.1rem;
  border-radius: 2px; border-bottom: 0;
}
.nav .cta a:hover { background: var(--ink); }

/* ---------- Home ---------- */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero img { display: block; width: 100%; min-height: 260px; max-height: 520px; object-fit: cover; object-position: top center; }
.hero-copy {
  position: absolute; top: 0; bottom: 0; left: 50%; right: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; text-align: center;
}
.hero-copy h1 { margin: 0; text-transform: none; letter-spacing: 0.02em; font-size: clamp(1.5rem, 3.4vw, 2.7rem); }
.tagline { margin: 0; padding: 1.4rem 1.25rem; text-align: center; font-weight: 300; font-style: italic; color: var(--muted); }

.tiles { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; color: #fff; text-decoration: none; background: var(--teal-tint); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; inset: auto 0 0 0; padding: 2.6rem 0.9rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 1.1rem; letter-spacing: 0.04em;
}

.meet {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin: 3rem 0; padding: 1.5rem 2.5rem; background: var(--teal-tint);
  border-radius: 3px; text-decoration: none; color: var(--ink);
}
.meet:hover { color: var(--teal-dark); }
.meet span { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.08em; }
.meet img { width: min(38%, 300px); height: auto; }

/* ---------- Page headings, breadcrumbs ---------- */
.page-head { padding: 2.2rem 0 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px dashed #cfd6d9; }
.page-head h1 { margin: 0; }
.crumbs { margin: 1.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-dark); }
.crumbs span { margin: 0 0.35em; }
.lede { color: var(--muted); max-width: 46rem; }

/* ---------- Gallery landing & category lists ---------- */
.cat-list { margin-top: 1rem; margin-bottom: 3rem; display: grid; gap: 2rem; }
.cat-row { display: grid; grid-template-columns: 1fr 1fr; background: var(--teal-dark); color: #fff; border-radius: 3px; overflow: hidden; }
.cat-row:nth-child(even) .cat-img { order: 2; }
.cat-img { min-height: 260px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-text { padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.cat-text h2 { color: #fff; font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.cat-text h2 a { color: inherit; text-decoration: none; }
.cat-text h2 a:hover { text-decoration: underline; }
.cat-text ul { list-style: none; margin: 0; padding: 0; }
.cat-text li { margin: 0.45rem 0; }
.cat-text li a { color: #fff; }
.cat-text li a:hover { color: var(--teal-tint); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; margin-top: 1rem; margin-bottom: 3rem; }
.split img { width: 100%; height: auto; border-radius: 3px; display: block; }
.split h2 { margin-top: 1.4rem; text-transform: none; }
.split h2 span { display: block; font-size: 1rem; color: var(--muted); }
.link-list { padding-left: 1.2rem; }
.link-list li { margin: 0.4rem 0; }

/* ---------- Before & after gallery ---------- */
.gallery {
  list-style: none; margin: 0 0 3rem; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.gallery a { display: block; position: relative; border: 1px solid var(--line); background: var(--teal-tint); line-height: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1019 / 600; object-fit: cover; transition: opacity 0.2s; }
.gallery a:hover img { opacity: 0.88; }
.gallery a::after {
  content: ""; position: absolute; right: 0.6rem; bottom: 0.6rem; width: 2rem; height: 2rem;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E")
    center / 62% no-repeat;
  opacity: 0; transition: opacity 0.2s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery-note { color: var(--muted); font-size: 0.95rem; }

/* Lightbox (native <dialog>) */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: #dcdfe0; color: var(--ink);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4.5rem 5rem 0.5rem; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2); transition: opacity 0.15s; }
.lb-img.is-loading { opacity: 0; }
.lb-caption { margin: 0; padding: 0.6rem 5rem 0.4rem; text-align: center; font-size: 1.15rem; line-height: 1.4; }
.lb-count { text-align: center; padding-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: #000; cursor: pointer;
}
.lb-btn:hover { background: #fff; color: var(--teal-dark); }
.lb-btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 1rem; right: 1.25rem; }
.lb-prev { top: 50%; left: 1rem; margin-top: -1.5rem; }
.lb-next { top: 50%; right: 1rem; margin-top: -1.5rem; }

/* ---------- Procedure pages & articles ---------- */
.embed iframe { display: block; width: 100%; height: 724px; border: 0; }
.embed .video { aspect-ratio: 16 / 9; height: auto; margin-bottom: 1.5rem; }
.cta-box { margin: 2rem 0; padding: 1.2rem 1.5rem; background: var(--teal-tint); border-left: 4px solid var(--teal); }
.cta-box h3 { margin: 0 0 0.3rem; }
.cta-box p { margin: 0; }

.prose { max-width: 50rem; margin-bottom: 3rem; }
.prose::after { content: ""; display: block; clear: both; }
.prose .portrait { float: right; width: min(42%, 300px); height: auto; margin: 0.3rem 0 1rem 1.8rem; }
.btn { display: inline-block; background: var(--teal-dark); color: #fff; padding: 0.75rem 1.6rem; border-radius: 2px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; }
.btn:hover { background: var(--ink); color: #fff; }
.big-phone { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 300; }

.cv-title { margin-top: 2.2rem; padding-bottom: 0.3rem; border-bottom: 1px dashed #cfd6d9; font-size: 1.25rem; }
.cv-bullets { margin: 0.6rem 0; padding-left: 1.3rem; }
.cv-bullets ul { margin: 0.2rem 0; }
ul.cv-daterange { list-style: none; margin: 0.6rem 0; padding: 0; }
ul.cv-daterange li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; margin-bottom: 1rem; }
ol.cv-daterange { margin: 0.6rem 0; padding-left: 1.6rem; }   /* numbered citation lists */
ol.cv-daterange li { margin-bottom: 0.9rem; }
.cv-date { color: var(--muted); font-size: 0.95rem; }

.quotes { max-width: 50rem; margin-bottom: 3rem; display: grid; gap: 2.2rem; }
.quote { margin: 0; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.quote:last-child { border-bottom: 0; }
.quote blockquote { margin: 0; padding-left: 1.4rem; border-left: 3px solid var(--teal); }
.quote blockquote p { margin: 0 0 1rem; }
.quote figcaption { text-align: right; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; background: var(--teal-tint); border-top: 1px solid var(--line); }
.footer-inner { padding-top: 2.4rem; padding-bottom: 1.6rem; display: grid; gap: 1rem 3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 0.4rem; }
.copyright { grid-column: 1 / -1; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cat-row, .split { grid-template-columns: 1fr; }
  .cat-row:nth-child(even) .cat-img { order: 0; }
  .cat-img { min-height: 0; aspect-ratio: 16 / 9; }
  .hero-copy { position: static; padding: 1.5rem 1.25rem; background: var(--teal-tint); }
  .hero img { max-height: 340px; }
  .prose .portrait { float: none; display: block; width: min(70%, 300px); margin: 0 auto 1.5rem; }
  .lb-stage { padding: 4.5rem 0.75rem 0.5rem; }
  .lb-caption { padding-left: 1rem; padding-right: 1rem; font-size: 1rem; }
  .lb-count { min-height: 4.2rem; display: flex; align-items: center; justify-content: center; padding: 0; }
  .lb-prev { left: 0.8rem; top: auto; bottom: 0.6rem; margin: 0; }
  .lb-next { right: 0.8rem; top: auto; bottom: 0.6rem; margin: 0; }
}
@media (max-width: 600px) {
  .tile span { font-size: 0.95rem; padding: 2rem 0.7rem 0.7rem; }
  .brand img { height: 52px; }
  .nav { gap: 0.2rem 1.1rem; }
  .nav a { font-size: 0.82rem; letter-spacing: 0.06em; }
  .meet { flex-direction: column-reverse; text-align: center; padding: 1.5rem; }
  .meet img { width: 62%; }
  ul.cv-daterange li { grid-template-columns: 1fr; gap: 0.1rem; }
  .embed iframe { height: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header .nav, .lightbox, .lb-btn { display: none; }
}
