/* ── MindLife Shared Stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #4a7c59;
  --green-light:#6aaa7a;
  --green-bg:   #eef5f0;
  --cream:      #faf8f3;
  --dark:       #1c2b22;
  --gray:       #5a6a60;
  --border:     #d4e0d8;
  --white:      #ffffff;
  --radius:     12px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--green); letter-spacing: .5px; }
.logo span { color: var(--dark); }
.nav-links { display: flex; gap: 2rem; font-size: .95rem; color: var(--gray); }
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 600; }
.nav-cta {
  background: var(--green); color: var(--white);
  padding: .55rem 1.3rem; border-radius: 8px; font-size: .9rem; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--green-light); }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 99;
  flex-direction: column;
  padding: 1.5rem 5vw 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1.1rem; font-weight: 600; color: var(--dark);
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a.active { color: var(--green); }
.nav-drawer .nav-drawer-cta {
  margin-top: 1.5rem;
  background: var(--green); color: var(--white);
  text-align: center; padding: 1rem; border-radius: 9px;
  font-weight: 700; font-size: 1rem;
  border-bottom: none;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--green); color: var(--white);
  padding: .8rem 2rem; border-radius: 9px; font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--green); color: var(--green);
  padding: .75rem 1.8rem; border-radius: 9px; font-weight: 700; font-size: .95rem;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-white {
  display: inline-block;
  background: var(--white); color: var(--green);
  padding: .85rem 2.2rem; border-radius: 9px; font-weight: 700; font-size: 1rem;
  transition: opacity .2s, transform .15s;
}
.btn-white:hover { opacity: .9; transform: translateY(-1px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-bg) 0%, #d8eede 100%);
  padding: 70px 5vw 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--dark); margin-bottom: .8rem;
}
.page-hero p { color: var(--gray); font-size: 1.05rem; max-width: 640px; margin: 0 auto 1.8rem; }

/* ── SECTION WRAPPERS ── */
.section { padding: 70px 5vw; }
.section-alt { background: var(--white); }
.section-green { background: var(--green-bg); }
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--dark); margin-bottom: .6rem;
}
.section-sub { color: var(--gray); font-size: 1rem; margin-bottom: 2.5rem; max-width: 560px; }
.section-sub.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── CARDS / GRIDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(74,124,89,.15); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--green-bg); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: .9rem;
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.card p  { font-size: .88rem; color: var(--gray); line-height: 1.55; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: var(--white);
  padding: 1.1rem 1.4rem; font-size: .97rem; font-weight: 700; color: var(--dark);
  border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q:hover { background: var(--green-bg); }
.faq-a {
  padding: 0 1.4rem;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .92rem; color: var(--gray); background: var(--white);
}
.faq-item.open .faq-a { max-height: 400px; padding: 1rem 1.4rem 1.3rem; }
.faq-item.open .faq-q { background: var(--green-bg); color: var(--green); }
.faq-chevron { font-style: normal; transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── TEAM CARD ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.team-card:hover { box-shadow: 0 6px 24px rgba(74,124,89,.15); transform: translateY(-3px); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green-bg); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--green);
}
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.team-card .role { font-size: .83rem; color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.team-card .exp  { font-size: .8rem; color: var(--gray); }
.team-card .btn-outline { margin-top: 1rem; font-size: .82rem; padding: .5rem 1rem; }

/* ── SPECIALIST INLINE (service pages) ── */
.spec-list { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.spec-chip {
  display: flex; align-items: center; gap: .7rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; padding: .5rem 1rem .5rem .5rem;
  font-size: .87rem;
}
.spec-chip-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-bg); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.spec-chip strong { color: var(--dark); }
.spec-chip span   { color: var(--gray); font-size: .8rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--green); color: var(--white);
  text-align: center; padding: 70px 5vw;
}
.cta-banner h2 { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p  { font-size: 1rem; opacity: .85; margin-bottom: 2rem; }

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: .9rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit; color: var(--dark);
  background: var(--white);
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn-primary { align-self: flex-start; cursor: pointer; border: none; }

/* ── PROFILE PAGE ── */
.profile-hero {
  background: linear-gradient(135deg, var(--green-bg) 0%, #d8eede 100%);
  padding: 60px 5vw;
  display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center;
}
.profile-avatar-lg {
  width: 160px; height: 160px; border-radius: 50%;
  background: #c5deca; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--green); flex-shrink: 0;
}
.profile-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .3rem; }
.profile-hero .role { font-size: 1.1rem; color: var(--green); font-weight: 600; margin-bottom: .6rem; }
.profile-hero .exp-badge {
  display: inline-block;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; padding: .35rem 1rem; font-size: .85rem; font-weight: 600; color: var(--dark);
}
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.info-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.info-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: .9rem; color: var(--green); }
.info-row { display: flex; gap: .6rem; font-size: .9rem; margin-bottom: .5rem; color: var(--gray); }
.info-row strong { color: var(--dark); min-width: 80px; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .6rem; font-size: .88rem; }
.hours-grid .day { color: var(--gray); }
.hours-grid .time { color: var(--dark); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--green-bg); color: var(--green);
  padding: .3rem .8rem; border-radius: 50px; font-size: .82rem; font-weight: 600;
}

/* ── FOOTER ── */
footer {
  background: var(--dark); color: #a8bcb0;
  padding: 50px 5vw 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem;
}
footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .9rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; font-size: .87rem; }
footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #2d4035;
  padding-top: 1.2rem;
  font-size: .82rem; color: #6a8070;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: .6rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-avatar-lg { margin: 0 auto; }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* Nav: show hamburger, hide desktop links + CTA */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  /* Sections */
  .section { padding: 48px 5vw; }
  .page-hero { padding: 48px 5vw 40px; }
  .cta-banner { padding: 48px 5vw; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 36px 5vw 24px; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr 1fr; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }

  /* Sticky steps: tighten up */
  .sticky-step { padding: 1.2rem 1rem 1.2rem 1.2rem; }
  .sticky-step::before { left: 1.2rem; }

  /* Buttons: full-width on narrow screens */
  .btn-primary, .btn-outline, .btn-white { display: block; text-align: center; width: 100%; }
  /* But not inside nav or spec chips */
  nav .btn-primary, .spec-chip .btn-primary,
  .topbar .btn-primary, .card-header .btn-primary { display: inline-block; width: auto; }

  /* Hero: single column handled by index.html inline media */

  /* Pricing table: horizontal scroll */
  .pricing-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-table { min-width: 420px; }

  /* Contact form inputs: ensure 16px to prevent zoom on iOS */
  .contact-form input,
  .contact-form textarea,
  .contact-form select { font-size: 1rem; }

  /* Stats: 2 per row */
  .stats { gap: 1rem; }
  .stat strong { font-size: 1.6rem; }

  /* Profile hero */
  .profile-hero { padding: 40px 5vw; }

  /* Sticky steps on mobile */
  .sticky-steps-left { padding: 40px 0 1.5rem; }
  .sticky-steps-right { padding: 1.5rem 0 40px; }

  /* Map iframes */
  .map-frame iframe { height: 180px; }

  /* Spec booking cards: stack label+button vertically */
  .spec-booking-card { flex-direction: column; align-items: stretch; }
  .spec-booking-card .btn-primary,
  .spec-booking-card .btn-outline { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Avatar images (replaces emoji when photo is set) ── */
.team-avatar-img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; display: block;
}
.profile-avatar-lg-img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; display: block;
}
.spec-chip-avatar-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; display: block;
}

/* ── FAQ JS ── */

/* ── STICKY STEPS SECTION ── */
.sticky-steps-section { padding: 0; overflow: hidden; }
.sticky-steps-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  min-height: 560px;
}
.sticky-steps-left {
  position: sticky;
  top: 88px; /* nav height + small gap */
  align-self: start;
  padding: 80px 3rem 80px 0;
}
.sticky-steps-right {
  padding: 80px 0 80px 3rem;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.sticky-step {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 2rem 2rem 2rem 2.2rem;
  position: relative;
  transition: background .25s;
  border-radius: var(--radius);
}
.sticky-step:hover { background: var(--green-bg); }
.sticky-step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--green);
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s;
  position: relative;
  z-index: 1;
}
.sticky-step:hover .sticky-step-num {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
/* connector line between steps */
.sticky-step::before {
  content: '';
  position: absolute;
  left: 2.1rem; /* aligns with center of num dot (2rem left pad + 22px = center of 44px circle) */
  top: calc(2rem + 44px);
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.sticky-step:last-child::before { display: none; }
.sticky-step-body h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: .4rem; color: var(--dark);
}
.sticky-step-body p {
  font-size: .9rem; color: var(--gray); line-height: 1.6;
}

@media (max-width: 900px) {
  .sticky-steps-wrap { grid-template-columns: 1fr; padding: 0 5vw; }
  .sticky-steps-left { position: static; padding: 60px 0 2rem; }
  .sticky-steps-right { border-left: none; border-top: 2px solid var(--border); padding: 2rem 0 60px; }
  .sticky-step::before { left: 1.5rem; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
