/* HERO */
.hero {
  padding-block: clamp(2.25rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.hero h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.6rem);
  line-height: 1.25;
  max-width: 15ch;
}

.hero h1:lang(en) {
  line-height: 1.1;
  max-width: 17ch;
}

.hero .lede {
  margin-block-start: 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-block-start: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta .icon {
  color: var(--peach);
}

.hero__visual {
  position: relative;
  padding: 0 0 14px 14px;
}

[dir="rtl"] .hero__visual {
  padding: 0 14px 14px 0;
}

.hero__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border: 1px solid #d5e6e2;
  box-shadow: var(--shadow);
}

.hero__frame-echo {
  position: absolute;
  inset: 14px 14px 0 0;
  border: 1.5px solid var(--peach);
  border-radius: var(--r-lg);
}

[dir="rtl"] .hero__frame-echo {
  inset: 14px 0 0 14px;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
}

.care-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.care-dot {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .care-line {
    stroke-dashoffset: 1;
    animation: draw-line 1400ms var(--ease-in-out) 200ms forwards;
  }

  .care-dot {
    opacity: 0;
    animation: fade-in 300ms var(--ease-out) 1500ms forwards;
  }

  .hero__copy > * {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 400ms var(--ease-out) forwards;
  }

  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ABOUT */
.about__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: 4rem;
  }
}

.about__panel {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .about__panel {
    border-start-end-radius: 96px;
  }
}

.about__panel h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  margin-block-end: 1.25rem;
}

.about__panel .text-link {
  margin-block-start: 1.5rem;
}

.about__side {
  padding-block-start: 0.5rem;
}

@media (min-width: 900px) {
  .about__side { padding-block-start: 4rem; }
}

.about__art {
  width: 160px;
  height: auto;
  margin-block-end: 1.5rem;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
}

.values li {
  padding-block: 1.1rem;
  border-block-start: 1px solid var(--line-warm);
}

.values li:last-child {
  border-block-end: 1px solid var(--line-warm);
}

.values h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.values p {
  margin-block-start: 0.25rem;
  color: var(--ink-soft);
}

/* SERVICES */
.services {
  background: var(--white);
  border-block: 1px solid var(--line-warm);
}

.svc-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc--marital { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .svc-grid {
    grid-template-columns: 1.1fr 1.1fr 0.9fr;
    align-items: stretch;
  }
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.svc--psychiatry {
  background: var(--mist);
  border-color: #d5e6e2;
}

.svc--psychotherapy {
  background: var(--paper);
  border-color: var(--line-warm);
}

.svc--marital {
  background: var(--ink);
  border-color: var(--ink);
  color: #e9f1ef;
}

.svc--marital h3,
.svc--marital .fees dd {
  color: var(--white);
}

.svc--marital .svc__head p,
.svc--marital .svc__label,
.svc--marital .fees dt,
.svc--marital .fees small {
  color: #c9dbd8;
}

.svc--marital .svc__duration {
  color: var(--peach-soft);
}

.svc--marital .fees__row {
  border-color: rgb(255 255 255 / 0.16);
}

.svc--marital .svc__link {
  color: var(--white);
}

.svc__head h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
}

.svc__head p {
  margin-block-start: 0.6rem;
  color: var(--ink-soft);
}

.svc__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--teal);
}

.svc__fees {
  margin-block-start: auto;
}

.svc__label {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-block-end: 0.25rem;
}

.fees {
  margin: 0;
}

.fees__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
  border-block-start: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.fees dt {
  font-size: 1rem;
}

.fees dt small {
  display: block;
  margin-block-start: 0.2rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.fees dd {
  margin: 0;
  flex: none;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  color: var(--ink);
}

.fees dd small {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: end;
}

.svc__link {
  align-self: flex-start;
}

.fine-print {
  margin-block-start: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* JOURNEY */
.journey__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .journey__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

  .journey__head {
    position: sticky;
    inset-block-start: 120px;
    align-self: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  inset-block: 1.5rem 1.5rem;
  inset-inline-start: 21px;
  width: 0;
  border-inline-start: 1.5px dashed color-mix(in srgb, var(--peach) 70%, transparent);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding-block: 1.1rem;
}

.step__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.step:first-child .step__dot {
  background: var(--teal);
  color: var(--white);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  padding-block-start: 0.45rem;
}

.step p {
  margin-block-start: 0.3rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* TEAM (home + list) */
.team-home {
  background: var(--mist);
}

.team-home__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

.team-home__head .section-head {
  margin: 0;
}

.people {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .people { display: flex; flex-wrap: wrap; justify-content: center; }
  .people > * { flex: 0 1 calc((100% - 1rem) / 2); min-width: 0; }
}

@media (min-width: 1100px) {
  .people > * { flex-basis: calc((100% - 2rem) / 3); }
}

.person-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid #d5e6e2;
  border-radius: var(--r-md);
}

.person-card__mono {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--peach-soft);
  color: #8a4a33;
  font-size: 1.4rem;
  font-weight: 700;
  margin-block-end: 1.25rem;
  font-family: "Plex Arabic", sans-serif;
}

.person-card__name {
  font-size: 1.15rem;
  font-weight: 700;
}

.person-card__role {
  margin-block-start: 0.35rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.person-card__sum {
  margin-block: 0.75rem 1rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.person-card .text-link {
  margin-block-start: auto;
}

/* PRIVACY */
.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.privacy {
  display: grid;
  gap: 1rem;
  background: var(--ink);
  color: #e6efed;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .privacy {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.privacy__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgb(226 149 121 / 0.16);
  color: var(--peach);
}

.privacy__icon .icon {
  width: 26px;
  height: 26px;
}

.privacy h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
}

.privacy p {
  font-size: 1.0625rem;
  line-height: 1.85;
}

/* FAQ */
.faq__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
}

.faq__item {
  border-block-end: 1px solid var(--line-warm);
}

.faq__item:first-child {
  border-block-start: 1px solid var(--line-warm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal);
  transition: transform 200ms var(--ease-out), background-color 150ms ease;
}

.faq__item[open] .faq__mark {
  transform: rotate(45deg);
  background: var(--peach-soft);
}

.faq__answer {
  padding-block-end: 1.25rem;
  padding-inline-end: 3rem;
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover h3 { color: var(--teal); }
}

/* FINAL CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .final-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.final-cta__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.final-cta > :not(svg) {
  position: relative;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem);
}

.final-cta p {
  margin-block-start: 0.6rem;
  color: #e3f1ef;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.final-cta .btn--primary {
  background: var(--white);
  color: var(--teal);
}

.final-cta .btn--light {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .final-cta .btn--primary:hover { background: var(--mist); }
  .final-cta .btn--light:hover { background: rgb(255 255 255 / 0.12); }
}

.final-cta__note {
  grid-column: 1 / -1;
  font-size: 0.925rem;
}

.final-cta :focus-visible {
  outline-color: var(--white);
}
