:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --primary: #2f5d4f;
  --accent: #c27b47;
  --text: #2b2b2b;
  --muted: #5f5f5f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, #486a5d 0%, #6d8b79 100%);
  color: white;
  padding: 3rem 1.5rem;
  position: relative;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

  .doctor-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .doctor-photo {
    width: 96px;
    min-width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.35);
    background: white;
    flex-shrink: 0;
  }

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

}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-nav a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.resume-link {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid rgba(47, 93, 79, 0.16);
  border-radius: 999px;
  background: rgba(47, 93, 79, 0.07);
  vertical-align: middle;
}

.resume-link:hover,
.resume-link:focus-visible {
  background: rgba(47, 93, 79, 0.12);
  color: var(--primary);
}

.section {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 40px rgba(43, 43, 43, 0.08);
}

.section h2 {
  margin-top: 0;
  color: var(--primary);
}

.section p,
.section ul {
  margin: 1rem 0;
}

.section ul {
  padding-left: 1.4rem;
}

.section li {
  margin-bottom: 0.75rem;
}

.report {
  border-left: 6px solid var(--accent);
}

  .report-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
  }

  .report-gallery figure {
    margin: 0;
    background: #faf8f4;
    border: 1px solid rgba(47, 93, 79, 0.08);
    border-radius: 20px;
    overflow: hidden;
  }

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

  .report-gallery figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--muted);
  }

  padding: 0.95rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(194, 123, 71, 0.22);
}

.button:hover,
.button:focus-visible {
  background: #b6622f;
}

.contact-section p {
  margin: 0.75rem 0;
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin: 0.3rem 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 2.5rem 1.25rem;
  }

  .site-nav a {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 1.6rem 1rem;
    text-align: center;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .site-nav {
    justify-content: center;
  }

  .resume-link {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .section {
    padding: 1.5rem;
  }

  .mini-logo {
    max-width: 64px;
    max-height: 48px;
    right: 0.75rem;
    top: 0.75rem;
  }
}

/* Mini logo in the top-right of the header */
.mini-logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 88px;
  border-radius: 8px;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}

@media (max-width: 720px) {
  .mini-logo {
    max-width: 80px;
    max-height: 56px;
    right: 0.75rem;
    top: 0.75rem;
  }
}
