/* ============================================
   XPC Health — Static Site Styles
   Faithful to original WordPress design
   ============================================ */

/* 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(37, 158, 213);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: rgb(27, 128, 180);
}

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;
}

/* ============================================
   Full-Page Parallax Background
   The original site uses one large background
   image behind the entire page content.
   ============================================ */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-image: url('https://health.xprimarycare.com/wp-content/uploads/2025/06/pexels-codioful-7130551-scaled.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ============================================
   Header — Transparent with dark text
   (matches original WordPress theme)
   ============================================ */
.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: 50px;
}

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

.logo-text {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: rgb(37, 158, 213);
  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(37, 158, 213);
}

/* 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 — sits on top of background
   ============================================ */
.page-content {
  position: relative;
  background: transparent;
}

.page-content > .container {
  /* No extra background — the parallax image shows through */
}

/* ============================================
   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: 400;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: rgb(37, 158, 213);
  color: #fff;
  border: 1px solid rgb(37, 158, 213);
}

.btn-primary:hover {
  background: rgb(25, 120, 170);
  border-color: rgb(25, 120, 170);
  color: #fff;
}

.btn-outline {
  color: rgb(37, 158, 213);
  border: 1px solid rgb(37, 158, 213);
  background: transparent;
}

.btn-outline:hover {
  background: rgb(37, 158, 213);
  color: #fff;
}

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

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

/* ============================================
   Section Image (Farmers market, headshot, etc.)
   ============================================ */
.section-image {
  padding: 20px 0;
  text-align: center;
}

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

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

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

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

/* ============================================
   Content Sections — continuous flow
   Tighter spacing to match original's rhythm
   ============================================ */
.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;
}

/* Spacing between content block and following button */
.content-block + .btn {
  margin-top: 20px;
}

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

/* Content bullet lists (Services, Pricing, Benefits, Values) */
.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(37, 158, 213);
  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(0, 0, 0, 0.02);
}

.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(25, 25, 25);
  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;
  }

  /* Images — fit within mobile viewport */
  .section-image .rounded-img,
  .section-image .location-img {
    max-width: 100%;
    width: 100%;
  }

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

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

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

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

  .main-nav {
    position: absolute;
    top: 50px;
    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: 300px;
  }

  .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 — better touch targets */
  .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 24px;
  }

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

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

/* ============================================
   Pricing Panel (3-tier cards)
   ============================================ */
.pricing-panel {
  margin-top: 40px;
  padding: 8px 0 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.pricing-heading {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: rgb(24, 24, 24);
  text-align: center;
  margin: 0 0 18px;
}
.pricing-heading:not(:first-child) { margin-top: 36px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.pricing-grid-single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 5px 18px 18px;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.pricing-card-featured .pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.pricing-header h3 {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: rgb(24, 24, 24);
  margin: 0 0 6px;
  line-height: 1.3;
  min-height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgb(37, 158, 213);
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.pricing-tagline {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 14px;
  color: rgba(24, 24, 24, 0.6);
  margin: 0;
  font-weight: 400;
}

.pricing-amount {
  padding: 16px 0;
  border-top: 1px solid rgba(24, 24, 24, 0.08);
  border-bottom: 1px solid rgba(24, 24, 24, 0.08);
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.pricing-price {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: rgb(24, 24, 24);
  line-height: 1;
}

.pricing-unit {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 14px;
  color: rgba(24, 24, 24, 0.65);
  font-weight: 400;
}

.pricing-note {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 13px;
  color: rgba(24, 24, 24, 0.5);
  width: 100%;
  margin-top: 2px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 14.5px;
  color: rgba(24, 24, 24, 0.85);
  padding: 7px 0 7px 26px;
  position: relative;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%23259ed5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.pricing-footnote {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 14px;
  color: rgba(24, 24, 24, 0.65);
  text-align: center;
  margin: 24px 0 0;
}

.pricing-footnote-accent {
  color: rgb(37, 158, 213);
  font-weight: 600;
}

@media (max-width: 900px) {
  .pricing-grid,
  .pricing-grid-two { grid-template-columns: 1fr; gap: 16px; }
  .pricing-heading { font-size: 22px; }
}

@media (max-width: 480px) {
  .pricing-price { font-size: 34px; }
  .pricing-panel { padding: 24px 18px 22px; }
  .pricing-card { padding: 5px 16px 16px; }
}

.pricing-intro {
  margin: 0 0 8px;
  line-height: 1.65;
}

/* ============================================
   Location Map & Building Photo
   ============================================ */
.location-map-full {
  margin-top: 16px;
  max-width: 700px;
}
.location-map-full iframe {
  width: 100%;
  border-radius: 8px;
}
.location-building {
  padding: 16px 0;
}
.location-building img {
  max-width: 540px;
  border-radius: 8px;
}

.pricing-features li.pricing-feature-plain {
  padding-left: 0;
  font-weight: 600;
  color: rgba(24, 24, 24, 0.9);
}
.pricing-features li.pricing-feature-plain::before {
  display: none;
}

/* 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;
}
@media (max-width: 900px) {
  .services-layout {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
  }
  .services-photo {
    width: 200px;
  }
}
