/* =============================================================
   HOME — Homepage-specific sections only
   ============================================================= */


/* ===== HERO ============================================== */

.hero {
  position: relative;
  height: 400px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('/images/hero-image.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 30, 15, 0.50);
}

.hero-badge {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  height: 110px;
  width: auto;
  z-index: 2;
  drop-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .hero-badge {
    height: 150px;
    top: var(--sp-8);
    left: var(--sp-8);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: var(--sp-8) var(--container-pad);
  max-width: 820px;
  width: 100%;
}

.hero-title {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-3);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: var(--font-medium);
  margin-bottom: var(--sp-6);
  opacity: 0.92;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto var(--sp-8);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}


/* ===== SERVICES ========================================== */

.services-section {
  background-color: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1150px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/*
  Each card has --card-accent set via inline style.
  Background is auto-calculated at 30% of that color blended with white.
  To change a card's color scheme: update --card-accent on the article element.
*/
.service-card {
  --card-accent: #14532d; /* fallback — overridden per card via inline style */
  background-color: color-mix(in srgb, var(--card-accent) 30%, white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Image fills the top of each card */
.service-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img-wrap img {
  transform: scale(1.05);
}

/* Card body — text + button */
.service-card-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.service-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--card-accent);
  line-height: var(--leading-snug);
  text-align: center;
  font-size: 1.25rem;
}

.service-card-desc {
  font-size: 1rem;
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  font-style: italic;
  text-align: center;
  flex: 1;
}

/* Per-card button — color driven by --card-accent */
.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-3);
  padding: 0.55rem 1.25rem;
  font-size: 1rem;
  font-weight: var(--font-semibold);
  color: var(--color-white);
  background-color: var(--card-accent);
  border: 2px solid var(--card-accent);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card-btn:hover {
  background-color: color-mix(in srgb, var(--card-accent) 80%, black);
  border-color: color-mix(in srgb, var(--card-accent) 80%, black);
  transform: translateY(-1px);
}


/* ===== ABOUT / TRUST ===================================== */

/*
  Layer 1 (bottom): environment/background photo via background-image
  Layer 2 (middle): .about-overlay — left-heavy dark gradient for readability
  Layer 3 (top):    .about-inner flex row — text left, doctors image right

  To swap images:
    - Background environment: update the url() below
    - Doctors photo: update the <img src> in the HTML
*/

.about-section {
  position: relative;
  background-color: var(--color-brand-dark); /* fallback if image fails */
  background-image: url('/images/hero_image_new.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Left-heavy gradient: opaque dark green on left, fades to near-transparent on right */
.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 30, 15, 0.85);
  z-index: 1;
}

/* Mobile: uniform dark so text stays readable above stacked image */
@media (max-width: 767px) {
  .about-overlay {
    background: rgba(5, 30, 15, 0.88);
  }
}

/* Flex row containing text (left) + doctors image (right) */
.about-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

/* Text block — left side, not a rigid 50/50 split */
.about-text-col {
  flex: 0 0 auto;
  width: 52%;
  max-width: 540px;
}

/* Doctors image — right side, fills remaining space */
.about-doctors-col {
  flex: 1;
  min-width: 0;
}

.about-doctors-img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}

/* Mobile: stacked — image moves below text */
@media (max-width: 767px) {
  .about-inner {
    flex-direction: column;
  }

  .about-text-col {
    width: 100%;
    max-width: 100%;
  }

  .about-doctors-img {
    max-height: 320px;
  }
}

/* Text styles */
.about-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}

.about-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-5);
}

.about-text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-6);
}

.about-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.about-check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.88);
  line-height: var(--leading-snug);
}

.about-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-color: var(--color-accent);
  color: var(--color-brand-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}


/* ===== APPOINTMENT / FORM ================================ */

.appt-section {
  background-color: var(--color-brand);
  color: var(--color-white);
}

.appt-banner {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.appt-banner-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-tight);
}

.appt-banner-sub {
  font-size: var(--text-lg);
  opacity: 0.82;
}

/* Form panel — centered, max-width constrained */
.appt-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}

.appt-form-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--sp-6);
}

.appt-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.appt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 480px) {
  .appt-form-row {
    grid-template-columns: 1fr;
  }

  .appt-form-wrap {
    padding: var(--sp-6);
  }
}


/* ===== NEWS / UPDATES ==================================== */

.news-section {
  background-color: var(--color-bg);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 768px) {
  .news-item {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
  }

  .news-item.reverse .news-img-col {
    order: 2;
  }

  .news-item.reverse .news-text-col {
    order: 1;
  }
}

.news-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.news-img-half {
  width: 60%;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.news-title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-snug);
}

.news-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.news-text a {
  color: var(--color-brand);
  text-decoration: underline;
}

.news-text a:hover {
  color: var(--color-brand-hover);
}

.news-text strong {
  color: var(--color-text);
  font-weight: var(--font-semibold);
}


/* ===== MASSAGE STAFF ===================================== */

.staff-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 41, 22, 0.94), rgba(20, 83, 45, 0.82)),
    url('/images/massage.jpg') center 35% / cover no-repeat;
  color: var(--color-white);
}

.staff-hero-inner {
  position: relative;
  max-width: 840px;
  padding: var(--sp-20) 0 var(--sp-16);
}

.staff-hero-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.staff-hero-title {
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  font-weight: var(--font-extrabold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.staff-hero-copy {
  max-width: 44rem;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.84);
}

.staff-page {
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.14), transparent 26%),
    linear-gradient(180deg, #f7fbf8 0%, #edf5ef 100%);
}

.staff-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 700px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 83, 45, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.staff-card-media {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 320px;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.12), rgba(20, 83, 45, 0.04));
}

.staff-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.staff-card-name {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: var(--color-text);
}

.staff-card-credential {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.staff-card-bio {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.staff-note {
  margin-top: var(--sp-10);
  padding: var(--sp-5) var(--sp-6);
  border-left: 4px solid rgba(20, 83, 45, 0.4);
  background-color: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}
