/* ======================================================
   HANDSREACH — Styles
   ====================================================== */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #26251e;
  background: #f7f7f4;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- Design Tokens ----- */
:root {
  --color-bg:        #f7f7f4;
  --color-bg-card:   #f2f1ed;
  --color-dark:      #26251e;
  --color-light:     #f7f7f4;
  --color-white:     #ffffff;
  --color-border:    #c3c2bf;
  --color-text:      #26251e;
  --color-text-body: #000000;

  --font-sm:   0.813rem;   /* ~13px */
  --font-base: 0.898rem;   /* ~14.4px */
  --font-lg:   1.5rem;     /* 24px */
  --font-xl:   3rem;       /* 48px */
  --font-2xl:  3.7rem;     /* ~59px */
  --font-3xl:  4.164rem;   /* ~66.6px */

  --radius-pill: 9999px;
  --radius-sm:   4px;

  --max-width: 1300px;
  --gutter:    70px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.97); }

.btn--sm {
  height: 26px;
  padding: 5px 12px;
  font-size: var(--font-sm);
  line-height: 16px;
}

.btn--md {
  height: 44px;
  padding: 12px 23px;
  font-size: var(--font-base);
  line-height: 18px;
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-light);
  border: 1px solid var(--color-dark);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

/* ===========================
   HEADER
   =========================== */
.header {
  background: var(--color-bg);
  padding: 0 var(--gutter);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__logo-icon {
  width: 26px;
  height: 26px;
}

.header__logo-text {
  height: 18px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: var(--color-bg);
  padding: 0 var(--gutter);
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__title {
  font-size: var(--font-2xl);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.4px;
  max-width: 856px;
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.17px;
  max-width: 812px;
}

.hero__subtitle strong {
  font-weight: 500;
}

.hero__image-wrapper {
  max-width: var(--max-width);
  margin: 40px auto 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 680px;
}

/* ===========================
   SERVICES
   =========================== */
.services {
  background: var(--color-bg);
  padding: 78px var(--gutter) 80px;
}

.services__heading {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  font-size: var(--font-xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.33px;
}

.services__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ----- Card ----- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__title {
  font-size: var(--font-lg);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08px;
  color: var(--color-text);
}

.card__desc {
  font-size: var(--font-lg);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08px;
  color: var(--color-text-body);
}

.card__image-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-top: 16px;
}

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

/* ===========================
   CTA
   =========================== */
.cta {
  background: var(--color-white);
  padding: 80px var(--gutter) 80px;

}

/* Match Notion form's light/dark mode */
@media (prefers-color-scheme: dark) {
  .cta {
    background: #191919;
  }
}

.cta__inner {
  max-width: 976px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta__heading {
  font-size: var(--font-3xl);
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: -2.16px;
}

.cta__form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.cta__form iframe {
  display: block;
  width: 100%;
  min-height: 1250px;
  border: none;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--color-bg-card);
  padding: 38px var(--gutter);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.81rem;
  line-height: 21px;
  letter-spacing: 0.14px;
  color: #000;
}

.footer__inner a:hover {
  text-decoration: underline;
}


/* ===========================
   RESPONSIVE — Tablet (≤ 1024px)
   =========================== */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .services__heading {
    font-size: 2.25rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    min-height: 480px;
  }

  .cta__heading {
    font-size: 3rem;
  }
}

/* ===========================
   RESPONSIVE — Mobile (≤ 640px)
   =========================== */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  /* Header */
  .header__logo-icon {
    width: 22px;
    height: 22px;
  }

  .header__logo-text {
    height: 18px;
  }

  .btn--sm {
    height: 28px;
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  /* Hero */
  .hero__content {
    padding-top: 40px;
    gap: 20px;
  }

  .hero__title {
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.8px;
  }

  .hero__subtitle {
    font-size: 0.938rem;
  }

  .hero__image-wrapper {
    margin-top: 28px;
  }

  .hero__image {
    max-height: 320px;
  }

  /* Services */
  .services {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .services__heading {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    min-height: auto;
    gap: 16px;
  }

  .card__title {
    font-size: 1.25rem;
  }

  .card__desc {
    font-size: 1rem;
  }

  .card__image-wrapper {
    aspect-ratio: 4 / 3;
  }

  /* CTA */
  .cta {
    padding: 80px var(--gutter);
  }

  .cta__heading {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Contact form */
  .cta__form iframe {
    min-height: 1400px;
  }
}

