/* ============================================
   617 Primary Care — Styles
   Fresh palette, cohesive with XPC Health
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
  color: rgb(25, 25, 25);
  background: #fff;
  position: relative;
}

a {
  color: rgb(22, 120, 100);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: rgb(16, 90, 75);
}

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

ul {
  list-style: disc;
  padding-left: 1.5em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rounded-img {
  border-radius: 8px;
}

/* ============================================
   Background — soft warm gradient
   ============================================ */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(
    160deg,
    rgb(232, 245, 242) 0%,
    rgb(240, 244, 248) 25%,
    rgb(245, 240, 235) 50%,
    rgb(235, 242, 240) 75%,
    rgb(228, 238, 245) 100%
  );
}

/* ============================================
   Header — transparent with dark text
   ============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: rgb(22, 120, 100);
  letter-spacing: -0.3px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  padding: 0;
}

.main-nav a {
  color: rgb(24, 24, 24);
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: rgb(22, 120, 100);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgb(24, 24, 24);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   Page Content
   ============================================ */
.page-content {
  position: relative;
  background: transparent;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 90px;
  padding-bottom: 30px;
  text-align: left;
}

.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  color: rgb(25, 25, 25);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgb(60, 60, 60);
  margin-bottom: 30px;
  font-weight: 300;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 17px 38px;
  font-size: 16px;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: rgb(22, 120, 100);
  border: 1px solid rgb(22, 120, 100);
}

.btn-primary:hover {
  background: rgb(16, 95, 80);
  border-color: rgb(16, 95, 80);
  color: #fff;
}

.btn-outline {
  color: rgb(22, 120, 100);
  border: 1px solid rgb(22, 120, 100);
  background: transparent;
}

.btn-outline:hover {
  background: rgb(22, 120, 100);
  color: #fff;
}

/* ============================================
   Services + Photo Layout
   ============================================ */
.services-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.services-text {
  flex: 1;
  min-width: 0;
}

.services-photo {
  flex-shrink: 0;
  width: 240px;
}

.services-photo img {
  width: 100%;
  border-radius: 8px;
}

/* ============================================
   Calendar Embed
   ============================================ */
.calendar-embed {
  padding: 24px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.calendar-embed iframe {
  border-radius: 8px;
  width: 100%;
}

/* ============================================
   Section Images
   ============================================ */
.section-image {
  padding: 20px 0;
  text-align: center;
}

.section-image .rounded-img {
  max-width: 640px;
  margin: 0 auto;
}

.section-image .headshot-img {
  max-width: 300px;
}

.section-image .location-img {
  max-width: 540px;
}

.image-caption {
  margin-top: 8px;
  font-size: 16px;
  color: rgb(60, 60, 60);
  font-weight: 300;
  font-style: italic;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
  padding: 30px 0 10px;
}

.content-section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: rgb(25, 25, 25);
  margin-bottom: 14px;
}

.content-block p {
  margin-bottom: 10px;
  font-weight: 300;
}

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

.content-block strong {
  font-weight: 500;
}

.content-block + .btn {
  margin-top: 20px;
}

.content-block + .content-list {
  margin-top: 14px;
}

/* Location Map */
.location-map-full {
  margin-top: 16px;
  max-width: 700px;
}

.location-map-full iframe {
  width: 100%;
  border-radius: 8px;
}

/* Location building photo — left aligned to match map */
.location-building {
  padding: 16px 0;
}

.location-building img {
  max-width: 540px;
  border-radius: 8px;
}

/* Content bullet lists */
.content-list {
  list-style: none;
  padding-left: 0;
}

.content-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-weight: 300;
}

.content-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: rgb(22, 120, 100);
  font-size: 20px;
  line-height: 1.4;
}

.content-list strong {
  font-weight: 500;
}

.content-list + .btn {
  margin-top: 20px;
}

.content-list + .content-block {
  margin-top: 16px;
}

/* ============================================
   FAQ / Accordion
   ============================================ */
.accordion {
  margin-top: 10px;
}

.accordion-item {
  border: 1px solid rgb(210, 210, 210);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgb(25, 25, 25);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.2s ease;
}

.accordion-toggle:hover {
  background: rgba(22, 120, 100, 0.04);
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
}

.accordion-content > * {
  padding: 0 20px;
}

.accordion-content > *:first-child {
  padding-top: 12px;
}

.accordion-content > *:last-child {
  padding-bottom: 24px;
}

.accordion-content p {
  margin-bottom: 10px;
  font-size: 16px;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
}

.accordion-content ul {
  margin-bottom: 10px;
  padding-left: 40px;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.accordion-content li {
  margin-bottom: 4px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 24px 0;
  text-align: center;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: rgb(60, 60, 60);
  position: relative;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 34px;
  }

  .content-section h2 {
    font-size: 28px;
  }

  body {
    font-size: 17px;
  }

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

  /* Services layout — stack on mobile, photo on top */
  .services-layout {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
  }

  .services-photo {
    width: 200px;
  }

  /* Images */
  .section-image .rounded-img,
  .section-image .location-img {
    max-width: 100%;
    width: 100%;
  }

  .section-image .headshot-img {
    max-width: 240px;
    width: auto;
  }

  /* Calendar embed */
  .calendar-embed {
    padding: 12px;
    border-radius: 8px;
  }

  .calendar-embed iframe {
    height: 700px;
  }

  /* Mobile nav */
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .main-nav.open {
    max-height: 350px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .main-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
  }

  .btn {
    padding: 15px 30px;
    font-size: 15px;
  }

  .accordion-toggle {
    padding: 16px;
  }

  .accordion-content > * {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .content-section {
    padding: 24px 0 8px;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 19px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}
