/* ==========================================================================
   Individual Counselling Services — The House of Minds
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280
   ========================================================================== */

.service-eyebrow,
.service-section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-brown);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero ---------- */
.service-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: var(--deep-forest);
  background-size: cover;
  background-position: center;
}
.service-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 26, 18, 0.72) 0%,
    rgba(20, 26, 18, 0.28) 60%,
    rgba(20, 26, 18, 0.05) 100%
  );
}
.service-hero-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.service-eyebrow {
  color: var(--muted-sage);
}
.service-hero-panel h1 {
  color: var(--warm-ivory);
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.15;
  max-width: 640px;
}
.service-hero-sub {
  margin: 22px 0 32px;
  color: rgba(244, 232, 220, 0.82);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  max-width: 460px;
  line-height: 1.6;
}
.service-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.btn-service--solid {
  background-color: var(--soft-gold);
  color: var(--deep-forest);
}
.btn-service--solid:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.btn-service--outline {
  background: transparent;
  color: var(--warm-ivory);
  border-color: rgba(244, 232, 220, 0.5);
}
.btn-service--outline:hover {
  background: var(--warm-ivory);
  color: var(--deep-forest);
  border-color: var(--warm-ivory);
}

/* ---------- Per-section background image (numbered desktop/mobile pair) ---------- */
.service-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: inherit;
}
.service-overview .service-section-bg::after,
.service-concerns-section .service-section-bg::after,
.service-related-section .service-section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 225, 214, 0.92); /* soft-beige tint */
}
.service-benefit-section .service-section-bg::after,
.service-faq-section .service-section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 232, 220, 0.92); /* warm-ivory tint */
}
.service-overview,
.service-benefit-section,
.service-concerns-section,
.service-faq-section,
.service-related-section {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
}
.service-overview-inner,
.service-benefit-inner,
.service-concerns-inner,
.service-faq-inner,
.service-related-inner {
  position: relative;
  z-index: 1;
}

/* ---------- Overview ---------- */
.service-overview {
  background: var(--soft-beige);
  width: 100%;
  padding-block: var(--section-pad);
  display: flex;
  align-items: center;
}
.service-overview-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.service-overview-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(30, 39, 25, 0.14);
  aspect-ratio: 4/3.1;
  background: var(--sand);
}
.service-overview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-overview-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.service-overview-lead {
  color: var(--muted-grey);
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.65;
  margin-bottom: 16px;
}
.service-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  margin-top: clamp(28px, 3.8vw, 46px);
}
.service-focus-item h3 {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  margin: 16px 0 8px;
}
.service-focus-item .service-icon {
  border-color: var(--soft-gold);
  color: var(--soft-gold);
}
.service-focus-item p {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  color: var(--muted-grey);
  line-height: 1.58;
}
.service-focus-item .service-icon,
.service-benefit-card .service-icon,
.service-related-card .service-icon {
  display: inline-flex;
}
.service-focus-item .service-icon svg,
.service-benefit-card .service-icon svg,
.service-related-card .service-icon svg {
  width: 22px;
  height: 22px;
}
.service-icon {
  width: clamp(52px, 5vw, 62px);
  height: clamp(52px, 5vw, 62px);
  border-radius: 50%;
  border: 1.5px solid var(--soft-gold);
  color: var(--deep-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Section head (shared by benefit/concerns/faq/related) ---------- */
.service-section-head {
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.service-section-head .service-section-eyebrow {
  justify-content: center;
}
.service-section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
}

/* ---------- Who Can Benefit ---------- */
.service-benefit-section {
  background: var(--warm-ivory);
  width: 100%;
  padding-block: var(--section-pad);
  display: flex;
  align-items: center;
}
.service-benefit-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: 6%;
}
.service-benefit-grid {
  display: grid;
  grid-template-columns: repeat(var(--benefit-cols, 3), 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.service-benefit-card {
  min-width: 0;
  background: var(--deep-forest);
  border-radius: 18px;
  min-height: clamp(168px, 16vw, 215px);
  padding: clamp(26px, 2.8vw, 36px) clamp(22px, 2.7vw, 34px);
  color: var(--warm-ivory);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.service-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(20, 28, 22, 0.28);
}
.service-benefit-card .service-icon {
  border-color: var(--soft-gold);
  color: var(--soft-gold);
  margin-bottom: 22px;
}
.service-benefit-card h3 {
  color: var(--warm-ivory);
  font-size: clamp(1.08rem, 1.25vw, 1.24rem);
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.service-benefit-card p {
  color: var(--muted-sage);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 1.62;
}

/* ---------- Common Concerns ---------- */
.service-concerns-section {
  background: var(--soft-beige);
  width: 100%;
  padding-block: var(--section-pad);
  display: flex;
  align-items: center;
}
.service-concerns-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.service-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.service-tag-list li {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--warm-ivory);
  border: 1px solid rgba(125, 102, 84, 0.25);
  color: var(--deep-forest);
  font-size: 0.86rem;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.service-faq-section {
  background: var(--warm-ivory);
  width: 100%;
  padding-block: var(--section-pad);
  display: flex;
  align-items: center;
}
.service-faq-inner {
  width: 100%;
  max-width: min(1040px, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: 6%;
}
.service-faq-list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}
.service-faq-item {
  background: var(--deep-forest);
  border-radius: 14px;
  overflow: hidden;
}
.service-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 2vw, 26px) clamp(22px, 2.6vw, 32px);
  color: var(--warm-ivory);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-family: var(--font-heading);
  text-align: left;
}
.service-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-gold);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.service-faq-item.open .service-faq-icon {
  transform: rotate(45deg);
}
.service-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 24px;
}
.service-faq-item.open .service-faq-answer {
  max-height: 260px;
  padding: 0 clamp(22px, 2.6vw, 32px) 24px;
}
.service-faq-answer p {
  color: var(--muted-sage);
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.65;
}

/* ---------- Related Services ---------- */
.service-related-section {
  background: var(--soft-beige);
  width: 100%;
  padding-block: var(--section-pad);
  display: flex;
  align-items: center;
}
.service-related-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.service-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.service-related-card {
  background: var(--deep-forest);
  border-radius: 18px;
  min-height: clamp(220px, 20vw, 285px);
  padding: clamp(26px, 2.8vw, 36px) clamp(22px, 2.6vw, 32px);
  color: var(--warm-ivory);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.service-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(20, 28, 22, 0.28);
}
.service-related-card .service-icon {
  border-color: var(--soft-gold);
  color: var(--soft-gold);
  margin-bottom: 20px;
}
.service-related-card h3 {
  color: var(--warm-ivory);
  font-size: clamp(1.04rem, 1.15vw, 1.16rem);
  margin-bottom: 10px;
}
.service-related-card p {
  color: var(--muted-sage);
  font-size: clamp(0.88rem, 0.95vw, 0.96rem);
  line-height: 1.58;
  margin-bottom: 22px;
  flex-grow: 1;
}
.service-related-link {
  color: var(--soft-gold);
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.service-related-link:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Desktop deck mode: every panel is pinned to exactly one viewport height
   with overflow hidden (see .stack-section in style.css), so content here
   must always fit inside 100svh — no internal scrolling, nothing clipped.
   These rules scale spacing/typography to the viewport height itself
   (svh units) so it keeps fitting on shorter laptop screens too. */
@media (min-width: 1025px) {
  .service-overview,
  .service-benefit-section,
  .service-concerns-section,
  .service-faq-section,
  .service-related-section {
    padding-block: clamp(26px, 6svh, 64px);
  }

  .service-section-head {
    margin-bottom: clamp(24px, 4.2svh, 46px);
  }
  .service-section-head h2 {
    font-size: clamp(1.9rem, 4.4svh, 2.75rem);
  }

  /* Overview */
  .service-overview-inner {
    gap: clamp(42px, 6vw, 84px);
    margin-top: 6%;
  }
  .service-overview-media {
    aspect-ratio: 4/3.15;
  }
  .service-overview-copy h2 {
    font-size: clamp(1.95rem, 4.8svh, 2.8rem);
    margin-bottom: 16px;
  }
  .service-overview-lead {
    font-size: clamp(0.95rem, 2svh, 1.05rem);
    margin-bottom: 14px;
  }
  .service-focus-grid {
    margin-top: clamp(22px, 3.2svh, 38px);
  }
  .service-focus-item h3 {
    font-size: clamp(0.98rem, 2svh, 1.1rem);
    margin: 14px 0 6px;
  }
  .service-focus-item p {
    font-size: clamp(0.84rem, 1.7svh, 0.94rem);
  }
  .service-icon {
    width: clamp(46px, 5.6svh, 58px);
    height: clamp(46px, 5.6svh, 58px);
  }
  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Who Can Benefit — flex-wrap sizes cards to fit whatever even count you use */
  .service-benefit-grid {
    gap: clamp(16px, 2.1svh, 26px);
  }
  .service-benefit-card {
    min-height: clamp(152px, 20svh, 205px);
    padding: clamp(20px, 2.8svh, 30px) clamp(18px, 2vw, 28px);
  }
  .service-benefit-card .service-icon {
    width: clamp(44px, 5.2svh, 56px);
    height: clamp(44px, 5.2svh, 56px);
    margin-bottom: clamp(12px, 2svh, 20px);
  }
  .service-benefit-card .service-icon svg {
    width: 23px;
    height: 23px;
  }
  .service-benefit-card h3 {
    font-size: clamp(0.98rem, 2.05svh, 1.15rem);
    margin-bottom: 8px;
  }
  .service-benefit-card p {
    font-size: clamp(0.82rem, 1.7svh, 0.94rem);
    line-height: 1.5;
  }

  /* Common Concerns */
  .service-tag-list {
    gap: clamp(6px, 1svh, 12px);
  }
  .service-tag-list li {
    padding: clamp(6px, 1svh, 10px) 16px;
    font-size: 0.8rem;
  }

  /* FAQ — collapsed rows only; only one item opens at a time */
  .service-faq-list {
    gap: clamp(9px, 1.4svh, 14px);
  }
  .service-faq-question {
    padding: clamp(14px, 2.1svh, 22px) clamp(22px, 2.4vw, 30px);
    font-size: clamp(0.92rem, 1.85svh, 1.06rem);
  }
  .service-faq-icon {
    width: 26px;
    height: 26px;
    font-size: 1.6rem;
  }
  .service-faq-item.open .service-faq-answer {
    max-height: 160px;
    padding: 0 clamp(22px, 2.4vw, 30px) clamp(12px, 1.8svh, 18px);
  }
  .service-faq-answer p {
    font-size: clamp(0.82rem, 1.65svh, 0.94rem);
    line-height: 1.5;
  }

  /* Related Services */
  .service-related-card {
    min-height: clamp(198px, 30svh, 270px);
    padding: clamp(20px, 3.2svh, 34px) clamp(18px, 2vw, 28px);
  }
  .service-related-card .service-icon {
    width: clamp(46px, 5.4svh, 58px);
    height: clamp(46px, 5.4svh, 58px);
    margin-bottom: clamp(12px, 2.2svh, 20px);
  }
  .service-related-card h3 {
    font-size: clamp(0.96rem, 2svh, 1.12rem);
    margin-bottom: 8px;
  }
  .service-related-card p {
    font-size: clamp(0.8rem, 1.65svh, 0.92rem);
    margin-bottom: 16px;
  }
}
@media (max-width: 1024px) {
  .service-overview,
  .service-benefit-section,
  .service-faq-section,
  .service-related-section {
    min-height: auto;
    padding-block: clamp(72px, 10vw, 110px);
  }
  .service-overview-inner {
    grid-template-columns: 1fr;
    gap: clamp(30px, 6vw, 54px);
  }
  .service-overview-media {
    width: min(100%, 680px);
    margin-inline: auto;
    aspect-ratio: 16/10;
    order: 2;
  }
  .service-overview-copy {
    order: 1;
  }
  .service-benefit-grid {
    --benefit-cols: 2;
    gap: clamp(18px, 3vw, 28px);
  }
  .service-benefit-card {
    min-height: clamp(170px, 24vw, 220px);
  }
  .service-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-related-card {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: 92px 0 clamp(56px, 12vw, 86px);
    min-height: 100svh;
    align-items: flex-end;
  }
  .service-hero-panel h1 {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }
  .service-hero-sub {
    max-width: 560px;
    font-size: 1rem;
  }
  .service-focus-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .service-focus-item {
    padding: 22px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(125, 102, 84, 0.14);
    border-radius: 16px;
  }
  .service-faq-inner {
    max-width: var(--container-max);
  }
  .service-faq-list {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .service-related-grid {
    grid-template-columns: 1fr;
  }
  .service-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .service-hero-cta .btn-service {
    width: 100%;
  }
  .service-benefit-grid {
    --benefit-cols: 1;
    grid-template-columns: 1fr;
  }
  .service-benefit-card,
  .service-related-card {
    padding: 22px 20px;
  }
  .service-benefit-card {
    min-height: 154px;
  }
  .service-related-card {
    min-height: 0;
  }
  .service-related-card .service-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }
  .service-faq-list {
    gap: 16px;
  }
  .service-faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }
  .service-tag-list {
    gap: 8px;
  }
  .service-tag-list li {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .service-benefit-grid {
    --benefit-cols: 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .service-overview-inner,
  .service-benefit-inner,
  .service-concerns-inner,
  .service-faq-inner,
  .service-related-inner {
    padding-inline: clamp(16px, 5vw, var(--gutter));
  }
}
