/* onlinetherapies.co.in: Hope Trust microsite. Colours and fonts follow hopetrustindia.com. */

/* Brand fonts, self-hosted: the Latin subsets Google Fonts serves (SIL Open Font License, see assets/fonts/). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #00373e;
  --teal-600: #005c66;
  --orange: #ed7428;
  --orange-text: #b3480c; /* brand orange darkened for small text: 4.8:1 or more on white, cream and paper */
  --cream: #ffeedd;
  --paper: #f7f6f4;
  --white: #ffffff;
  --muted: #486364;
  --whatsapp: #1a9e55; /* deeper than WhatsApp's #25d366 so the white icon keeps 3:1 contrast */

  /* One colour per service, as on hopetrustindia.com/mental-health/ */
  --tint-therapy: #f9e6d0;
  --tint-psychiatry: #f8f1bc;
  --tint-couples: #ede6b1;
  --tint-family: #dfd58f;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius-md: 20px;
  --line: rgba(0, 55, 62, 0.14);
  --header-h: 72px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--teal);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* The browser's own [hidden] rule only covers HTML elements, so the icon sprite needs this. */
svg[hidden] {
  display: none;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-wrap: balance;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.icon,
.icon-fill {
  display: block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

/* On the teal band and the footer a teal ring would vanish. */
.steps :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
  box-shadow: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}

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

.btn--primary:hover {
  background: var(--teal-600);
}

.btn--outline {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--light {
  background: var(--cream);
  color: var(--teal);
}

.btn--light:hover {
  background: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 55, 62, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: block;
  border-radius: 50%;
}

.brand img {
  width: auto;
  height: 56px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.header-call:hover {
  background: var(--cream);
}

.header-call__number {
  display: none;
}

@media (min-width: 720px) {
  .brand img {
    height: 64px;
  }

  .header-call__number {
    display: inline;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 32px 16px;
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__content {
  max-width: 640px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 34ch;
  margin: 20px 0 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero__note {
  margin: 12px 0 28px;
  color: var(--muted);
}

.hero__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 64px 32px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 56px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

@media (min-width: 900px) {
  .section {
    padding-block: 96px;
  }
}

/* ---------- What we help with ---------- */

.services {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding: 28px 24px 32px;
  border-radius: var(--radius-lg);
}

.service--therapy {
  background: var(--tint-therapy);
}

.service--psychiatry {
  background: var(--tint-psychiatry);
}

.service--couples {
  background: var(--tint-couples);
}

.service--family {
  background: var(--tint-family);
}

.service__art {
  width: auto;
  height: 140px;
  margin-bottom: 24px;
}

.service__title {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  line-height: 1.1;
}

.service__text {
  max-width: 60ch;
  margin: 0 0 16px;
}

.service__issues {
  max-width: 60ch;
  margin: 0;
  font-weight: 600;
}

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

@media (min-width: 900px) {
  .service {
    padding: 40px 40px 44px;
  }

  .service__art {
    height: 180px;
  }
}

/* ---------- How online sessions work ---------- */

.steps {
  padding-block: 64px;
  background: var(--teal);
  color: var(--white);
}

.steps__list {
  display: grid;
  gap: 32px;
  margin: 40px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding-top: 20px;
  border-top: 2px solid rgba(255, 238, 221, 0.3);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.step__title {
  margin: 0 0 8px;
  font-size: 1.375rem;
  line-height: 1.25;
}

.step__text {
  max-width: 40ch;
  margin: 0;
  color: var(--cream);
}

.steps__note {
  margin: 0 0 20px;
  color: var(--cream);
}

@media (min-width: 900px) {
  .steps {
    padding-block: 96px;
  }

  .steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-block: 48px;
  }
}

/* ---------- Why Hope Trust ---------- */

.why {
  background: var(--paper);
}

.why__inner {
  display: grid;
  gap: 24px;
}

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

.reason {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding-block: 20px;
}

.reason + .reason {
  border-top: 1px solid var(--line);
}

.reason__icon {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--orange);
}

.reason__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.reason__text {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 900px) {
  .why__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: 56px;
  }

  .reason:first-child {
    padding-top: 0;
  }
}

/* ---------- Questions ---------- */

.faq {
  background: var(--paper);
}

/* The FAQ continues the paper background of the section above, so it needs no second top gap. */
.why + .faq {
  padding-top: 0;
}

.faq__title {
  margin-bottom: 32px;
}

.faq__list {
  max-width: 760px;
  border-bottom: 1px solid var(--line);
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-block: 18px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

/* A plus sign that becomes a minus when the answer is open. */
.faq__q::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--orange-text);
}

.faq__item[open] > .faq__q::after {
  background-size: 14px 2px, 0 0;
}

.faq__q:hover {
  color: var(--orange-text);
}

.faq__a {
  max-width: 65ch;
  margin: 0 0 24px;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.contact__item {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.contact__icon {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.contact__label {
  margin: 12px 0 4px;
  font-size: 1.125rem;
}

.contact__value {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.contact__value:hover {
  color: var(--orange-text);
}

.contact__item address,
.contact__text {
  margin: 0 0 8px;
  color: var(--muted);
  font-style: normal;
}

.crisis {
  max-width: 760px;
  margin: 32px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: var(--cream);
}

.crisis a {
  font-weight: 600;
  text-underline-offset: 3px;
}

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

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

  .contact__item--wide {
    grid-column: span 2;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 104px;
  background: var(--teal);
  color: var(--cream);
}

.site-footer__inner {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.site-footer__logo {
  width: 72px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 3px;
}

.site-footer__legal {
  font-size: 0.875rem;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}

.whatsapp-fab:hover {
  transform: scale(1.06);
}

.whatsapp-fab .icon-fill {
  width: 30px;
  height: 30px;
}

@media (min-width: 900px) {
  .whatsapp-fab {
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
  }

  .whatsapp-fab .icon-fill {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .btn:hover,
  .whatsapp-fab:hover {
    transform: none;
  }
}

/* ---------- 404 page ---------- */

.notfound {
  display: grid;
  align-items: center;
  min-height: 60vh;
}

.notfound__inner > * {
  max-width: 720px;
}

.notfound__inner .section-intro {
  margin-bottom: 28px;
}
