/* ============================================================
   Homepage shell — unified page rhythm for body.page-home
   Loaded last on index.html; keeps offer/psych card UI intact.
   ============================================================ */

body.page-home {
  --shell-teal: #024442;
  --shell-teal-mid: #0a514d;
  --shell-teal-deep: #013a3a;
  --shell-ink: #183331;
  --shell-muted: #677a78;
  --shell-line: #d5dfdd;
  --shell-line-strong: #c2cecb;
  --shell-soft: #f3f6f5;
  --shell-white: #ffffff;
  --shell-radius: 16px;
  --shell-radius-md: 22px;
  --shell-radius-lg: 28px;
  --shell-shadow: 0 12px 30px rgba(15, 62, 59, 0.07);
  --shell-shadow-hover: 0 18px 42px rgba(15, 62, 59, 0.12);
  --shell-content: 1100px;
  --shell-gutter: 24px;
  --shell-section-y: 64px;

  background: var(--shell-soft);
  color: var(--shell-ink);
}

/* ---------- Shared content width ---------- */
body.page-home .container:not(.nav-container),
body.page-home #hamraz-offer .services-container,
body.page-home #psych-services {
  width: min(var(--shell-content), calc(100% - 32px));
  max-width: var(--shell-content);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

body.page-home .container:not(.nav-container) {
  padding-inline: 0;
}

/* ---------- Section vertical rhythm ---------- */
body.page-home .hero-section,
body.page-home #hamraz-offer,
body.page-home .psych-services-wrap,
body.page-home .why-us-section,
body.page-home .featured-therapists-section,
body.page-home .testimonials-preview,
body.page-home .cta-section {
  padding-block: var(--shell-section-y) !important;
  position: relative;
}

/* Alternating soft / white bands (continuous canvas) */
body.page-home .hero-section {
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(2, 68, 66, 0.055), transparent 55%),
    var(--shell-soft) !important;
  padding-top: 72px !important;
  padding-bottom: 48px !important;
}

body.page-home #hamraz-offer {
  background: var(--shell-white) !important;
}

body.page-home .psych-services-wrap,
body.page-home #psych-services {
  background: var(--shell-soft) !important;
}

body.page-home .why-us-section {
  background: var(--shell-white) !important;
}

body.page-home .featured-therapists-section {
  background: var(--shell-soft) !important;
}

body.page-home .testimonials-preview {
  background: var(--shell-white) !important;
}

body.page-home .cta-section {
  background: var(--shell-soft) !important;
  padding-bottom: 72px !important;
}

/* ---------- Neutralize competing section canvases ---------- */
body.page-home #hamraz-offer {
  padding-inline: var(--shell-gutter) !important;
  color: var(--shell-ink);
  overflow: hidden;
}

body.page-home #hamraz-offer .services-container {
  width: min(var(--shell-content), 100%);
}

body.page-home .psych-services-wrap {
  padding-inline: var(--shell-gutter);
  overflow: hidden;
}

body.page-home #psych-services {
  max-width: var(--shell-content);
  width: min(var(--shell-content), 100%);
  margin-inline: auto;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
}

body.page-home #psych-services::before {
  opacity: 0.12;
}

/* ---------- Unified section headings (RTL) ---------- */
body.page-home .section-intro {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px !important;
  text-align: right;
  justify-content: flex-start;
}

body.page-home .section-intro .section-number {
  width: 56px !important;
  height: 46px !important;
  min-width: 56px !important;
  border-radius: 15px !important;
  border: none !important;
  color: #fff !important;
  background: linear-gradient(145deg, #217a6d, #075049) !important;
  box-shadow: 0 8px 20px rgba(10, 81, 77, 0.16) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
  opacity: 1 !important;
  line-height: 1 !important;
}

body.page-home .section-intro .section-heading {
  margin: 0 0 6px !important;
  color: var(--shell-teal-mid) !important;
  font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.3 !important;
}

body.page-home .section-intro .section-desc {
  margin: 0 !important;
  color: var(--shell-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}

body.page-home #hamraz-offer .section-heading {
  max-width: none;
  margin: 0 0 28px;
  text-align: right;
}

body.page-home #hamraz-offer .section-kicker {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--shell-teal-mid);
}

body.page-home #psych-services .section-number {
  width: 56px;
  height: 46px;
  min-width: 56px;
  border-radius: 15px;
  font-size: 1.05rem !important;
  margin-inline-end: auto;
}

body.page-home #psych-services .services-heading {
  margin: 14px 0 26px;
  text-align: right;
}

body.page-home #psych-services .services-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--shell-teal-mid);
  letter-spacing: -0.03em;
}

body.page-home #psych-services .services-heading p {
  color: var(--shell-muted);
  font-size: 0.98rem;
}

/* ---------- Hero polish inside shell ---------- */
body.page-home .hero-section {
  padding-inline: var(--shell-gutter) !important;
}

body.page-home .hero-section > .container {
  width: min(var(--shell-content), 100%);
}

body.page-home .hero-brand {
  color: var(--shell-teal-mid) !important;
}

body.page-home .hero-main-title .title-primary,
body.page-home .hero-main-title .title-secondary {
  color: var(--shell-ink) !important;
}

body.page-home .hero-text {
  color: var(--shell-muted) !important;
}

/* ---------- Lower sections: cards & rhythm ---------- */
body.page-home .why-us-section,
body.page-home .featured-therapists-section,
body.page-home .testimonials-preview,
body.page-home .cta-section {
  padding-inline: var(--shell-gutter) !important;
}

body.page-home .why-us-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px !important;
}

body.page-home .why-card {
  background: var(--shell-white) !important;
  border: 1px solid rgba(194, 206, 203, 0.75) !important;
  border-radius: var(--shell-radius-md) !important;
  box-shadow: var(--shell-shadow) !important;
  padding: 22px 18px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.page-home .why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 133, 125, 0.4) !important;
  box-shadow: var(--shell-shadow-hover) !important;
}

body.page-home .why-card .why-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #f7faf8, #edf3f0) !important;
  border: 1px solid rgba(214, 224, 221, 0.85) !important;
  color: var(--shell-teal-mid) !important;
  box-shadow: none !important;
}

body.page-home .why-card h3 {
  color: var(--shell-teal-mid) !important;
  font-weight: 800 !important;
}

body.page-home .why-card p {
  color: var(--shell-muted) !important;
}

body.page-home .testimonial-card,
body.page-home .therapist-showcase-card {
  border: 1px solid rgba(194, 206, 203, 0.75) !important;
  border-radius: var(--shell-radius-md) !important;
  box-shadow: var(--shell-shadow) !important;
  background: var(--shell-white) !important;
}

body.page-home .featured-therapists-section .btn.btn-outline,
body.page-home .btn.btn-outline {
  border-radius: 14px !important;
  border-color: rgba(10, 81, 77, 0.35) !important;
  color: var(--shell-teal-mid) !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
}

body.page-home .cta-wrapper {
  border-radius: var(--shell-radius-lg) !important;
  background: linear-gradient(145deg, #0f6b63, #024442) !important;
  box-shadow: 0 18px 42px rgba(2, 68, 66, 0.18) !important;
  padding: 36px 32px !important;
}

body.page-home .cta-image img {
  border-radius: var(--shell-radius) !important;
  max-height: 240px;
  width: 100%;
  object-fit: cover;
}

body.page-home .testimonials-swiper .swiper-button-next,
body.page-home .testimonials-swiper .swiper-button-prev,
body.page-home #testimonialsNext,
body.page-home #testimonialsPrev {
  display: none !important;
}
body.page-home .main-footer {
  background: #012e2e !important;
  margin-top: 0;
  border-top: none;
}

body.page-home .main-footer .container {
  width: min(var(--shell-content), calc(100% - 32px));
}

/* ---------- Soft offer/psych card chrome alignment ---------- */
body.page-home #hamraz-offer .trust-card,
body.page-home #hamraz-offer .offer-card,
body.page-home #psych-services .psych-card {
  border-color: rgba(194, 206, 203, 0.72);
  box-shadow: var(--shell-shadow);
}

body.page-home #hamraz-offer .section-heading {
  margin-bottom: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  body.page-home {
    --shell-section-y: 52px;
    --shell-gutter: 18px;
  }

  body.page-home .why-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.page-home {
    --shell-section-y: 40px;
    --shell-gutter: 14px;
  }

  body.page-home .container:not(.nav-container),
  body.page-home #hamraz-offer .services-container,
  body.page-home #psych-services {
    width: min(var(--shell-content), calc(100% - 28px));
  }

  body.page-home .hero-section {
    padding-top: 48px !important;
    padding-bottom: 32px !important;
  }

  body.page-home .section-intro {
    gap: 12px;
    margin-bottom: 20px !important;
  }

  body.page-home .section-intro .section-number,
  body.page-home #psych-services .section-number {
    width: 48px !important;
    height: 40px !important;
    min-width: 48px !important;
    border-radius: 13px !important;
    font-size: 0.95rem !important;
  }

  body.page-home .section-intro .section-heading,
  body.page-home #psych-services .services-heading h2 {
    font-size: 1.4rem !important;
  }

  body.page-home .why-us-grid {
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  body.page-home .cta-wrapper {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
    text-align: right;
  }

  body.page-home .cta-image {
    order: -1;
  }

  body.page-home .cta-image img {
    max-height: 180px;
  }
}

@media (max-width: 400px) {
  body.page-home {
    --shell-gutter: 12px;
  }
}

/* ---------- Pre-consultation service card link ---------- */
body.page-home #preConsultCard {
  text-decoration: none;
  color: inherit;
}

body.page-home .hm-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.page-home .hm-soon-modal.is-open {
  opacity: 1;
  visibility: visible;
}

body.page-home .hm-soon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 38, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.page-home .hm-soon-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  border-radius: 28px;
  background: var(--shell-white);
  box-shadow: 0 24px 60px rgba(15, 62, 59, 0.22);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

body.page-home .hm-soon-modal.is-open .hm-soon-card {
  transform: translateY(0) scale(1);
}

body.page-home .hm-soon-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--shell-line);
  border-radius: 12px;
  background: #f7faf8;
  color: var(--shell-teal-mid);
  cursor: pointer;
}

body.page-home .hm-soon-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, #e8f2ef, #d7e8e3);
  color: var(--shell-teal-mid);
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(2, 68, 66, 0.1);
}

body.page-home .hm-soon-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 68, 66, 0.08);
  color: var(--shell-teal-mid);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.page-home .hm-soon-card h2 {
  margin: 0 0 10px;
  color: var(--shell-teal);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.page-home .hm-soon-text {
  margin: 0 0 24px;
  color: var(--shell-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

body.page-home .hm-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

body.page-home .hm-soon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.page-home .hm-soon-btn.primary {
  background: var(--shell-teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 68, 66, 0.18);
}

body.page-home .hm-soon-btn.primary:hover {
  background: var(--shell-teal-deep);
  transform: translateY(-1px);
}

body.page-home .hm-soon-btn.ghost {
  background: var(--shell-soft);
  color: var(--shell-teal-mid);
  border: 1px solid var(--shell-line-strong);
}

body.page-home .hm-soon-btn.ghost:hover {
  transform: translateY(-1px);
  background: #fff;
}

@media (max-width: 640px) {
  body.page-home .hm-soon-card {
    padding: 30px 20px 22px;
    border-radius: 24px;
  }

  body.page-home .hm-soon-actions {
    flex-direction: column;
  }

  body.page-home .hm-soon-btn {
    width: 100%;
  }
}
