@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Parisienne&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Links */
a {
  color: #0a3c7e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Phone numbers - prevent wrapping */
a[href^='tel:'],
.phone-number {
  white-space: nowrap;
}

/* Phone links in hero section should be white */
.hero a[href^='tel:'] {
  color: white;
}

/* Header */
header {
  background: #0a3c7e;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* --- Header Layout --- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Default nav styles (desktop) */
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: white; /* adjust to match your design */
}

/* Hide the checkbox itself */
.nav-toggle {
  display: none;
}

/* Hamburger button base */
.hamburger {
  display: none; /* we'll show this on mobile */
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.4rem;
}

/* Hamburger lines */
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: white; /* match text color / brand color */
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }

  .header-right {
    gap: 1rem;
    justify-content: flex-end;
  }

  .portal-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #0a3c7e;
    border-top: 1px solid #1c4d95;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem 0 0 0;
    display: none;
    flex-direction: column;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem 1rem;
    margin: 0;
  }

  .site-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: white;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    transform-origin: center;
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    transform-origin: center;
  }
}
.logo {
  font-weight: bold;
  font-size: 1.2rem;
}
.logo img {
  max-height: 100px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background-color: #2fa3fc;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  font-size: clamp(1.2rem, 4vw, 2rem);
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 4rem 1rem;
}
.section.alt {
  background: #f4f9ff;
}
.container {
  max-width: 1000px;
  margin: auto;
}
.section h2 {
  color: #0a3c7e;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.section p,
.section li {
  margin-bottom: 1rem;
}

/* Doctors */
.doctors {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.doctor {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.doctor-info {
  flex-shrink: 0;
  text-align: center;
  min-width: 200px;
}

.doctor img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* Adjust Chloe's image positioning to prevent cropping */
.doctor img[src='images/Chloe.jpg'] {
  object-position: center 0px;
}

.doctor h3 {
  margin: 0;
  color: #0a3c7e;
}

.doctor-bio {
  flex: 1;
}

/* Staff */
.staff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.staff-member {
  text-align: center;
  padding: 1rem;
}

.staff-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-info img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #0a3c7e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Placeholder for missing staff images */
.placeholder-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #87ceeb; /* Light blue */
  border: 3px solid #0a3c7e;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.staff-info h3 {
  margin: 0.5rem 0;
  color: #0a3c7e;
}

.staff-info .role {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.staff-bio {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .staff {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .staff-info img {
    width: 100px;
    height: 100px;
  }

  .placeholder-image {
    width: 100px;
    height: 100px;
  }
}

/* Policies */
.policy-list {
  list-style: disc;
  margin-left: 1.5rem;
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.map {
  flex: 1 1 300px;
  border: 0;
  height: 250px;
  min-width: 300px;
}
.map-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0a3c7e;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #0a3c7e;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .doctors {
    gap: 2rem;
  }

  .doctor {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .doctor-info {
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact {
    flex-direction: column;
  }

  /* Make map full width on mobile */
  #contact.section {
    padding-left: 0;
    padding-right: 0;
  }

  #contact .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #contact .map {
    margin-left: calc(-1rem + 8px);
    margin-right: calc(-1rem + 8px);
    width: calc(100% + 2rem - 16px);
  }

  header nav {
    display: none;
  }
}

/* Offset anchor targets so the sticky header doesn't cover section titles */
#home.hero {
  scroll-margin-top: 0 !important;
}

.section {
  scroll-margin-top: 120px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Hero should start at top on mobile */
  #home.hero {
    scroll-margin-top: 0 !important;
  }

  /* Add scroll offset for sticky header on mobile for other sections */
  .section {
    scroll-margin-top: 80px;
  }
}

.portal-button {
  background-color: white;
  color: #0a3c7e;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.portal-button:hover {
  background-color: #f0f4ff;
  color: #072b5b;
  transform: translateY(-2px);
}
