/**
 * Subpage layout – treatment pages (cracked heels, diabetic foot care, etc.)
 * Single, consistent structure: breadcrumb → hero → intro → services → why choose → benefits → FAQ → CTA
 */

.subpage {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
  box-sizing: border-box;
}

/* Breadcrumb */
.subpage__breadcrumb {
  font-size: 0.9rem;
  color: #666;
  margin: 20px 0 12px;
  padding: 0;
}

.subpage__breadcrumb a {
  color: #00B4B4;
  text-decoration: none;
}

.subpage__breadcrumb a:hover {
  text-decoration: underline;
}

.subpage__breadcrumb span {
  margin: 0 6px;
  color: #999;
}

.subpage__breadcrumb .current {
  color: #2C0089;
  font-weight: 500;
}

/* Hero block */
.subpage__hero {
  text-align: center;
  padding: 36px 24px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #e8f7f7 0%, #f0fbfb 100%);
  border-left: 5px solid #00B4B4;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 12px rgba(0, 180, 180, 0.08);
}

.subpage__hero h1 {
  color: #2C0089;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.subpage__hero .subpage__subtitle {
  color: #444;
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0 0 20px 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.subpage__hero .subpage__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.subpage__hero .call-now-btn,
.subpage__hero .get-a-quote {
  margin: 0;
}

/* Content sections – consistent spacing and typography */
.subpage__section {
  margin-bottom: 40px;
}

.subpage__section > h2 {
  color: #00B4B4;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 180, 180, 0.2);
}

.subpage__section p {
  color: #333;
  line-height: 1.65;
  margin: 0 0 12px 0;
}

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

/* Intro – plain text block */
.subpage__intro {
  max-width: 72ch;
}

/* Lead image (optional) */
.subpage__lead-img {
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(0, 180, 180, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

/* Services – cards on teal, content width capped so it doesn’t feel full */
.subpage__services-wrap {
  background: #00B4B4;
  color: #fff;
  padding: 40px 24px;
  margin: 0 -20px 40px;
  border-radius: 12px;
  box-sizing: border-box;
}

.subpage__services-wrap > h2 {
  color: #fff;
  text-align: center;
  margin: 0 0 28px 0;
  padding: 0;
  border: none;
  font-size: 1.5rem;
}

/* Services: 1 col mobile → 2 col (2×2) desktop, narrower so it doesn’t feel full-width */
.subpage__services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .subpage__services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.subpage__card {
  background: #fff;
  color: #1a1a1a;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
  min-width: 0;
}

.subpage__card h3,
.subpage__card .wb-h {
  color: #2C0089;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 10px 0;
}

.subpage__card p,
.subpage__card .wb-p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  padding-top: 10px;
  border-top: 2px solid #00B4B4;
}

/* Why choose – image + text cards (full-bleed teal) */
.subpage__why-wrap {
  background: #00B4B4;
  padding: 32px 20px;
  margin: 0 -20px 40px;
  border-radius: 12px;
  box-sizing: border-box;
}

.subpage__why-wrap > h2 {
  color: #fff;
  text-align: center;
  margin: 0 0 24px 0;
  padding: 0;
  border: none;
  font-size: 1.5rem;
}

.subpage__media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.subpage__media-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.subpage__media-card img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.subpage__media-card .subpage__media-body {
  padding: 20px;
}

.subpage__media-card h3 {
  color: #2C0089;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
}

.subpage__media-card p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

@media (min-width: 600px) {
  .subpage__media-card {
    grid-template-columns: 280px 1fr;
  }
}

/* Benefits / feature list */
.subpage__feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 20px 24px;
  background: #f9f9f9;
  border-left: 5px solid #00B4B4;
  border-radius: 0 10px 10px 0;
}

.subpage__feature-list li,
.subpage__feature-list p {
  margin: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #333;
}

.subpage__feature-list li::before,
.subpage__feature-list p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300B4B4'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.subpage__feature-list .icon-feature {
  display: none;
}

/* FAQ – single-column list, narrow so it doesn’t feel full-width */
.subpage__faq-wrap {
  background: #00B4B4;
  color: #fff;
  padding: 40px 24px;
  margin: 0 -20px 40px;
  border-radius: 12px;
  box-sizing: border-box;
}

.subpage__faq-wrap > h2 {
  color: #fff;
  text-align: center;
  margin: 0 0 28px 0;
  padding: 0;
  border: none;
  font-size: 1.5rem;
}

/* FAQ: single column, narrow max-width for comfortable reading */
.subpage__faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.subpage__faq-grid .subpage__card {
  margin: 0;
}

/* Final CTA block */
.subpage__cta-block {
  text-align: center;
  padding: 36px 24px;
  margin-top: 16px;
  background: linear-gradient(135deg, #e8f7f7 0%, #f0fbfb 100%);
  border: 2px solid #00B4B4;
  border-radius: 12px;
}

.subpage__cta-block h2 {
  color: #2C0089;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  border: none;
  padding: 0;
}

.subpage__cta-block p {
  margin: 0 0 20px 0;
  color: #444;
}

.subpage__cta-block .subpage__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.subpage__cta-block .call-now-btn,
.subpage__cta-block .get-a-quote {
  margin: 0;
}

/* Optional gallery (e.g. nail reduction, corn) */
.subpage__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 16px 0;
}

.subpage__gallery img {
  border: 2px solid rgba(0, 180, 180, 0.35);
  border-radius: 8px;
  width: 100%;
  max-width: 280px;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .subpage {
    padding: 0 15px 32px;
  }
  .subpage__hero {
    padding: 28px 16px;
    margin-bottom: 24px;
  }
  .subpage__services-wrap,
  .subpage__why-wrap,
  .subpage__faq-wrap {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .subpage__services-grid,
  .subpage__faq-grid {
    gap: 16px;
  }
  .subpage__card {
    padding: 16px;
  }
  .subpage__card h3,
  .subpage__card .wb-h {
    font-size: 1.05rem;
  }
  .subpage__card p,
  .subpage__card .wb-p {
    font-size: 0.9rem;
  }
}

@media (min-width: 501px) and (max-width: 767px) {
  .subpage__services-grid .subpage__card,
  .subpage__faq-grid .subpage__card {
    padding: 18px;
  }
}
