/* arelhope.com: 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-light: #f7a044;
  --orange-dark: #ea6a0e;
  --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 */

  --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;
  --shadow: 0 18px 40px -20px rgba(0, 55, 62, 0.35);
  --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 1rem/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);
}

/* ---------- 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--outline-light {
  border-color: var(--cream);
  color: var(--white);
}

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

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

.btn-row--center {
  justify-content: center;
}

/* ---------- 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: 20px 48px;
  background: linear-gradient(160deg, var(--orange-light) 0%, var(--orange) 45%, var(--orange-dark) 100%);
}

.hero__card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--teal);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

.hero__media {
  position: relative;
  aspect-ratio: 3 / 2;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 55, 62, 0) 60%, var(--teal) 100%);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 35%;
}

.hero__content {
  padding: 8px 24px 32px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--cream);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hl {
  color: var(--orange);
}

.hero__lede {
  margin: 16px 0 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.hero__text {
  margin: 8px 0 24px;
  color: var(--cream);
}

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

  .hero__card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 520px;
  }

  .hero__media {
    aspect-ratio: auto;
  }

  .hero__media::after {
    background: linear-gradient(90deg, rgba(0, 55, 62, 0) 55%, var(--teal) 100%);
  }

  .hero__content {
    align-self: center;
    padding: 56px 56px 56px 32px;
  }
}

/* ---------- At a glance ---------- */

.stats {
  background: var(--cream);
}

.stats__list {
  display: grid;
  gap: 4px;
  margin-block: 0;
  padding: 18px 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 720px) {
  .stats__list {
    grid-template-columns: repeat(3, 1fr);
    padding-block: 24px;
  }

  .stats__list li + li {
    border-left: 2px solid var(--orange);
  }
}

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

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

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

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

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

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

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

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

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

.card {
  padding: 28px 24px;
  border: 1px solid rgba(0, 55, 62, 0.06);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--orange);
}

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

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

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

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

/* ---------- Closing call to action ---------- */

.cta {
  padding-block: 56px;
  background: linear-gradient(160deg, var(--orange-light) 0%, var(--orange) 50%, var(--orange-dark) 100%);
}

.cta__card {
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.cta__title {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1.1;
}

.cta__text {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.cta__strap {
  margin: 12px 0 28px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}

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

  .cta__card {
    padding: 64px 48px;
  }
}

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

.contact__grid {
  display: grid;
  gap: 16px;
  margin: 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;
}

@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);
  text-align: center;
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  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: 640px;
  text-align: center;
}

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