/* Catherine Dao, MD — site styles */

:root {
  --color-bg: #fdfcf9;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-primary: #1a4d5c;
  --color-primary-dark: #103943;
  --color-accent: #b08d4a;
  --max-width: 1100px;
  --content-width: 720px;
  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  --font-serif: ui-serif, "Iowan Old Style", "Apple Garamond", Garamond, "Times New Roman", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 77, 92, 0.25);
  transition: border-color 120ms ease, color 120ms ease;
}

a:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); line-height: 1.25; }
h3 { font-size: 1.25rem; line-height: 1.35; }

p {
  margin: 0 0 1.1em 0;
}

p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 0;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.brand:hover { color: var(--color-primary-dark); }

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand__tagline {
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .site-nav {
    margin-left: 0;
    width: 100%;
    gap: 0.5rem 1.25rem;
  }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.1rem; }
  .brand__tagline { font-size: 0.72rem; }
}

.site-nav a {
  border-bottom: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a:hover { color: var(--color-primary); }

.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-primary);
}

/* ---------- Layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.section {
  margin: 0 auto 3rem;
  max-width: var(--content-width);
}

.section--wide {
  max-width: var(--max-width);
}

.section--narrow {
  max-width: 600px;
}

.section h2 {
  margin-bottom: 0.85rem;
}

.section h2 + p,
.section h2 + ul {
  margin-top: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--content-width);
  margin: 0 auto 4.5rem;
}

.hero__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 0.25rem;
}

.hero__credentials {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

.hero__statement {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.hero__statement:last-of-type { margin-bottom: 0; }

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__photo {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Page header ---------- */

.page-header {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: var(--content-width);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header__lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.about-grid__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 2rem;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-grid__photo {
    max-width: 280px;
    margin: 0 auto;
    position: static;
  }
}

.testimonial {
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}

.services-list li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  color: var(--color-text);
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ---------- Locations ---------- */

.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

@media (max-width: 800px) {
  .locations { grid-template-columns: 1fr; }
}

.location-card__photo {
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.location-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.location-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.location-card__address {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--color-text);
  line-height: 1.4;
}

.location-card p {
  color: var(--color-muted);
}

/* ---------- Schedule / CTA ---------- */

.cta-card {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
}

.cta-card h1 {
  margin-bottom: 1.5rem;
}

.phone-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--color-primary);
  border-bottom: 0;
  padding: 0.5rem 0;
}

.phone-link:hover {
  color: var(--color-primary-dark);
}

.cta-card .hours {
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- News list ---------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-line);
}

.news-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-card--no-image {
  grid-template-columns: 1fr;
}

.news-card__image {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.news-card__date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.news-card__title {
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.news-card__title a {
  color: var(--color-primary-dark);
  border-bottom: 0;
}

.news-card__title a:hover {
  color: var(--color-primary);
}

.news-card__excerpt {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.news-card__more {
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .news-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-card__image {
    max-width: 280px;
  }
}

/* ---------- News article ---------- */

.article {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article__back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-bottom: 0;
  margin-bottom: 1.5rem;
}

.article__back:hover {
  color: var(--color-primary);
}

.article__date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}

.article h1 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.article__subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.article__source {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line);
}

.article__hero {
  border-radius: var(--radius);
  margin: 0 0 2rem;
  box-shadow: var(--shadow-soft);
}

.article__body p {
  margin-bottom: 1.25rem;
}

.article__body p:first-child::first-letter {
  /* avoid drop cap; left intentionally normal */
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.95rem;
  gap: 1rem;
}

.article-nav a {
  border-bottom: 0;
  color: var(--color-muted);
  max-width: 48%;
}

.article-nav a:hover {
  color: var(--color-primary);
}

.article-nav__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.article-nav__title {
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
}

.article-nav__next {
  text-align: right;
  margin-left: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer__name {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}

.site-footer__sep {
  margin: 0 0.65rem;
  color: var(--color-line);
}

.site-footer a {
  color: var(--color-muted);
  border-bottom: 0;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
