/* ----------------------------------------------------------
   Base Typography & Layout
---------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* Section spacing */
section {
  max-width: 850px;
  margin: 3.5rem auto;
  padding: 0 1.25rem;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  color: #002f6c; /* UF deep blue */
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
p {
  margin: 0.75rem 0;
  font-size: 1.05rem;
  max-width: 700px;
}

/* Lists */
ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

ul li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------
   Header & Navigation
---------------------------------------------------------- */

header {
  background-color: #ffffff;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
}

/* Sticky nav bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #f7f9fc;
  border-bottom: 1px solid #e5e8ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}

.logo-left {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 160px;
}

.logo {
  height: 68px;
  max-width: 340px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 1;
  min-width: 260px;
}

.nav-links a {
  text-decoration: none;
  color: #002f6c;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover {
  text-decoration: underline;
}

header h1 {
  font-size: 2.4rem;
  margin: 1.75rem auto 0.5rem;
  color: #002f6c;
  text-align: center;
}

header p {
  font-size: 1.1rem;
  margin: 0.5rem auto 0;
  max-width: 700px;
  text-align: center;
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.4rem;
  background-color: #fa4616;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.button:hover {
  background-color: #d93d13;
}

/* ----------------------------------------------------------
   Physician Section
---------------------------------------------------------- */

.physician-section {
  max-width: 950px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}

.physician-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.physician-photo {
  display: flex;
  align-items: center;
}

.physician-photo img {
  width: 260px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  transition: transform 0.35s ease;
}

.physician-photo img:hover {
  transform: translateY(-4px);
}

.physician-bio {
  flex: 1;
  min-width: 260px;
}

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

footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #e5e8ee;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width: 700px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

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

  .nav-links a {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .physician-container {
    flex-direction: column;
    text-align: center;
  }

  .physician-bio {
    text-align: left;
  }
}

/* ----------------------------------------------------------
   Micro Animations
---------------------------------------------------------- */

section {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.6s ease-out forwards;
}

section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.2s; }
section:nth-of-type(4) { animation-delay: 0.3s; }
section:nth-of-type(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.button {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #fa4616;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: translateX(0);
}

.physician-photo img {
  transition: transform 0.35s ease;
}

.physician-photo img:hover {
  transform: translateY(-4px);
}

header h1, header p {
  animation: fadeHeader 0.8s ease-out forwards;
  opacity: 0;
}

header h1 { animation-delay: 0.1s; }
header p { animation-delay: 0.25s; }

@keyframes fadeHeader {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

ul li {
  transition: color 0.2s ease;
}

ul li:hover {
  color: #002f6c;
}

/* ----------------------------------------------------------
   FIXED + IMPROVED SITE-INTRO (CENTERED)
---------------------------------------------------------- */

.site-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.site-intro h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #003f7f;
}

.site-intro p {
  font-size: 1.1rem;
  color: #444;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
