/* ==========================================================================
   Kunmi Sobowale, MD — Academic Personal Website
   Style: Obermeyer elegance (serif headings, teal accent, scholarly restraint)
          + Watkins warmth (hero photo, structured sections, approachable feel)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a2a;
  background: #fff;
}

a {
  color: #1a7a6d;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0f5249;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.nav.scrolled .nav-name {
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav.scrolled .nav-links a {
  color: #555;
}

.nav-links a:hover {
  color: #fff;
}

.nav.scrolled .nav-links a:hover {
  color: #1a7a6d;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background 0.3s ease;
}

.nav.scrolled .nav-toggle span {
  background: #333;
}


/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Placeholder gradient — replace with background-image for a real photo */
  background: linear-gradient(145deg, #1a2a3a 0%, #2c4a5a 40%, #1a3a4a 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 40, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 28px 80px;
}

.hero-photo {
  margin: 0 auto 32px;
  width: 160px;
  height: 160px;
}

.photo-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  object-position: center top;
}

.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.hero-affiliation {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.hero-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}


/* --- Sections --- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-dark {
  background: #1a2a3a;
  color: #ddd;
}

.section-dark a {
  color: #6dc5b8;
}

.section-dark a:hover {
  color: #a0ddd4;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-dark .section-heading {
  color: #fff;
}

.section-intro {
  font-size: 17px;
  color: #555;
  max-width: 720px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.section-dark .section-intro {
  color: #aaa;
}

.section-intro a {
  border-bottom: 1px solid #1a7a6d;
}

.section-intro a:hover {
  border-bottom-color: #0f5249;
}


/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  color: #3a3a3a;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.sidebar-block {
  margin-bottom: 36px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-block h3 {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a7a6d;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8eeec;
}

.education-list {
  list-style: none;
}

.education-list li {
  margin-bottom: 14px;
  padding-left: 0;
}

.education-list li:last-child {
  margin-bottom: 0;
}

.education-list .degree {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.35;
}

.education-list .school {
  display: block;
  font-size: 14px;
  color: #777;
  line-height: 1.4;
}


/* --- Research --- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.research-card {
  background: #fff;
  border: 1px solid #e8eeec;
  border-radius: 6px;
  padding: 36px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.research-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.research-icon {
  color: #1a7a6d;
  margin-bottom: 18px;
}

.research-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.research-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}


/* --- Publications --- */
.pub-list {
  border-top: 1px solid #e8eeec;
}

.pub {
  display: flex;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid #e8eeec;
  align-items: baseline;
}

.pub-year {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a7a6d;
  min-width: 48px;
  padding-top: 2px;
}

.pub-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.pub-authors {
  font-size: 14px;
  color: #555;
  margin-bottom: 2px;
}

.pub-journal {
  font-size: 14px;
  font-style: italic;
  color: #888;
}


/* --- Public Writing --- */
.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.writing-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e5e3;
  border-radius: 6px;
  padding: 28px 32px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.writing-card:hover {
  border-color: #1a7a6d;
  box-shadow: 0 4px 16px rgba(26, 122, 109, 0.08);
  transform: translateY(-2px);
}

.writing-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a7a6d;
  display: block;
  margin-bottom: 8px;
}

.writing-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 10px;
}

.writing-card:hover h4 {
  color: #1a7a6d;
}

.writing-date {
  font-size: 13px;
  color: #999;
}


/* --- Clinical Impact --- */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.impact-card {
  padding: 0;
}

.impact-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.impact-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
}

.impact-card strong {
  color: #1a1a1a;
  font-weight: 700;
}


/* --- Contact --- */
.contact-container {
  text-align: center;
}

.contact-container > p {
  max-width: 560px;
  margin: 0 auto 48px;
  color: #aaa;
  font-size: 17px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item h4 {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6dc5b8;
  margin-bottom: 12px;
}

.contact-item a {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #bbb;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-links a {
  font-size: 15px;
}


/* --- Footer --- */
.footer {
  padding: 28px 0;
  text-align: center;
  background: #141e28;
}

.footer p {
  font-size: 13px;
  color: #666;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .research-grid,
  .writing-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .profile-links {
    align-items: center;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: #333 !important;
    padding: 14px 28px;
    display: block;
  }

  .nav-links a:hover {
    color: #1a7a6d !important;
    background: #f5f5f5;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    font-size: 28px;
  }

  .pub {
    flex-direction: column;
    gap: 4px;
  }

  .pub-year {
    min-width: auto;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-link {
    width: 200px;
    text-align: center;
  }
}
