/* Bring Hanah Home: one page, five bands (photo, mission, get ready, contact, footer). */

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/source-sans-pro-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/source-sans-pro-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;
  --black: #000;
  --white: #fff;
  --soft-white: #f7f7f7;
  --field-text: #bfbfbf;
  --muted: #a9a9a9;
  --quiet: #969696;
  --heading: #6f6f6f;
  --rule: #808080;
  --teal: #2a7b86;        /* the Hope logo's teal: text on light backgrounds */
  --teal-light: #7cc5cf;  /* the same teal, lifted for dark backgrounds */
  --gold: #6f5f2f;        /* the guide's second heading colour */
  --sun: #fed779;         /* the yellow of "No pet left behind" */
  --paper: #f6f3ec;
  --paper-ink: #1b1b1b;
  --paper-muted: #4a4a4a;
  --card-line: #e3dccd;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans Pro", Arial, sans-serif;
  --display: "Montserrat", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 16px/1.5 var(--sans);
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---------- Photo band ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 24px 24px 56px;
  overflow: hidden;
  background: var(--ink);
  text-align: center;
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* The same even 25% shade the photo always had, so white text stays readable. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.25);
}

.hero__name {
  margin: 0;
  color: var(--soft-white);
  font: 700 22px/1.2 var(--display);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero__name a { text-decoration: none; }

.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 24px;
}

.hero__title {
  max-width: 902px;
  margin: 0;
  font: 400 40px/1.2 var(--serif);
  text-wrap: balance;
}

/* A soft shadow keeps the white words readable where the photo is bright. */
.hero__title,
.hero__lede { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 32px;
  border: 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font: 700 14px/1.2 var(--sans);
  letter-spacing: 0.071em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.button:hover { background: #d9d9d9; }

.button--ghost {
  border: 1px solid var(--white);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
}
.button--ghost:hover { background: rgba(255, 255, 255, 0.2); }

.hero__lede {
  max-width: 620px;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

/* ---------- Section titles (shared) ---------- */

.section-title,
.contact__title {
  margin: 0 0 40px;
  color: var(--heading);
  font: 400 32px/1.4 var(--serif);
  text-align: center;
}
.section-title::after,
.contact__title::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  margin: 24px auto 0;
  background: var(--rule);
}
.section-title--dark { color: var(--paper-ink); }

/* ---------- Mission band ---------- */

.mission {
  padding: 40px 0;
  background: var(--ink);
  text-align: center;
}

.mission__statement {
  max-width: 860px;
  margin: 0 auto 48px;
  font: 400 24px/1.45 var(--serif);
  text-wrap: balance;
}

.pillars {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar { color: var(--field-text); font-size: 17px; }
.pillar p { max-width: 360px; margin: 0 auto; }
.pillar__title {
  margin: 0 0 12px;
  color: var(--teal-light);
  font: 700 14px/1.2 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- "Get your pet ready" band (light, like the printed guide) ---------- */

.ready {
  padding: 40px 0;
  background: var(--paper);
  color: var(--paper-ink);
}

.ready__lede {
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--paper-muted);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

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

.guide {
  padding: 28px 24px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: var(--white);
}
.guide--prepare,
.guide--kit { --accent: var(--teal); }
.guide--identify { --accent: var(--gold); }

.guide__title {
  margin: 0;
  color: var(--accent);
  font: 400 30px/1.25 var(--serif);
}
.guide__question {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
}
.guide__label {
  margin: 28px 0 12px;
  color: var(--accent);
  font: 700 13px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide--identify .steps { margin-top: 28px; gap: 20px; }
.guide--identify .step { align-items: start; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  line-height: 1.5;
}
.step__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__dot { fill: var(--accent); stroke: none; }

.sheet {
  max-width: 620px;
  margin: 48px auto 0;
  text-align: center;
}
.sheet__link { display: block; }
.sheet__image {
  width: 100%;
  height: auto;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: var(--white);
}
.sheet__caption {
  margin-top: 12px;
  color: var(--paper-muted);
  font-size: 15px;
}
.sheet__caption a { color: var(--teal); }
.ready :focus-visible { outline-color: var(--paper-ink); }

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

.contact {
  padding: 40px 0;
  background: var(--ink);
  text-align: center;
}

.contact__intro {
  max-width: 725px;
  margin: 0 auto 24px;
  font-size: 22px;
  line-height: 1.3;
  text-wrap: balance;
}

.form {
  max-width: 725px;
  margin: 0 auto;
}

.field {
  position: relative;
  margin-bottom: 24px;
  text-align: left;
}

.field__input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 23px 16px 7px;
  border: 1px solid var(--white);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font: inherit;
}
.field__input--area {
  height: 202px;
  padding-top: 28px;
  line-height: 1.75;
  resize: vertical;
}
.field__input:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* The label sits inside the box like a hint, then lifts out of the way once there is text. */
.field__label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--field-text);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.15s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-9px) scale(0.75);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  margin: 4px auto 24px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.check__box {
  flex: none;
  appearance: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  border: 1px solid #898989;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.check__box:checked {
  border-color: var(--white);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.form .button { display: flex; width: 100%; }

.form__status {
  min-height: 24px;
  margin: 24px 0 0;
  color: var(--field-text);
}
.form__status a { color: var(--white); }

/* ---------- "Page not found" ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

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

.footer {
  padding: 40px 0;
  background: var(--black);
  color: var(--quiet);
  font-size: 14px;
  text-align: center;
}
.footer p { margin: 0; }
.footer__row { display: grid; gap: 24px; }
.footer a:hover { color: var(--white); }

/* ---------- Wider screens ---------- */

@media (min-width: 768px) {
  .hero {
    min-height: max(500px, 85vh);
    padding-top: 16px;
  }
  .hero__name { font-size: 26px; }
  .hero__title { font-size: clamp(40px, 4.3vw, 62px); }

  .hero__lede { font-size: 24px; }

  .section-title,
  .contact__title { font-size: 44px; }

  .mission { padding: 56px 0; }
  .mission__statement { font-size: 32px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }

  .ready { padding: 56px 0; }
  .guide { padding: 32px; }

  .contact { padding: 56px 0; }
  .form .button { width: fit-content; margin-inline: auto; }

  .footer { padding: 56px 0; }
  .footer__row {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
  }
}

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

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