/* ==========================================================================
   Let the Animals Live USA — landing page
   Palette and proportions follow the Let the Animals Live brand:
   cream ground, teal marks, gold pill buttons, arch-topped imagery.
   ========================================================================== */

:root {
  /* Brand */
  --cream:      #fff9f0;  /* page ground */
  --beige:      #f4e9dd;  /* secondary band */
  --sand:       #e3d5c3;  /* hairlines, outline ring */
  /* Three teals: the brand teal is decorative only — at 2.66:1 on cream it is
     not legible as text, so headings and links use the darker steps.
     Ratios: --teal-ink 4.5:1 on cream; --link 6.4:1 cream / 5.6:1 beige. */
  --teal:       #36a8c1;  /* borders, rules, the heart mark */
  --teal-ink:   #1b7e93;  /* large teal text (the lead) */
  --link:       #146577;  /* links and small teal text, AA on both grounds */
  --link-hover: #115664;
  --gold:       #f0b337;  /* primary button */
  --gold-dark:  #dfa123;  /* button hover */

  /* Ink */
  --ink:        #2b2b25;
  --ink-soft:   #3a3a34;

  /* Rhythm */
  --measure:    1120px;
  --gutter:     clamp(1.25rem, 5vw, 3rem);
  --radius-pill: 999px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* --- Reset / base ------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Flex column so the footer settles at the bottom of short viewports rather
   than leaving a bare strip of cream beneath it. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--link); }

a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--cream);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgb(43 43 37 / 0.2);
  text-decoration: none;
}

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
}

.site-logo {
  width: auto;
  height: clamp(46px, 8vw, 64px);
}

/* "United States" set beside the logo, divided by a teal hairline — this is
   what distinguishes the US entity from the Israeli organization. */
.site-locale {
  margin: 0;
  padding-left: clamp(0.75rem, 2.5vw, 1.25rem);
  border-left: 2px solid var(--teal);
  color: var(--link);
  font-size: clamp(0.8125rem, 0.6rem + 0.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
}

/* --- Hero --------------------------------------------------------------- */

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  display: grid;
  /* minmax(0, 1fr) rather than an implicit auto track, so the column may shrink
     below the copy's ch-based measure on narrow screens. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}

/* Two columns only once there is room for both a comfortable measure and a
   reasonably sized arch — below this the stacked layout reads better. */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 440px);
  }
}

.hero__copy > * + * { margin-top: 1.15em; }

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.125rem, 1.2rem + 3.9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lead {
  max-width: 30ch;
  color: var(--teal-ink);
  font-size: clamp(1.1875rem, 1rem + 0.85vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.body-text {
  max-width: 56ch;
  text-wrap: pretty;
}

/* --- Primary call to action -------------------------------------------- */

.cta-row {
  margin-top: clamp(1.75rem, 4vw, 2.25rem) !important;
}

.btn {
  display: inline-block;
  padding: 0.95em 2em;
  background: var(--gold);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 0 rgb(43 43 37 / 0.07);
  transition: background-color 0.18s ease, transform 0.18s ease,
              box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-dark);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(43 43 37 / 0.16);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 rgb(43 43 37 / 0.07);
}

/* --- Hero image: arch top with an offset outline ring ------------------- */

.hero__figure {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 440px);
}

/* The thin outline that sits just outside the arch, as on the Israeli site. */
.hero__figure::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1.5px solid var(--sand);
  border-radius: 215px 215px 34px 34px;
  pointer-events: none;
}

.hero__figure img {
  width: 100%;
  border-radius: 200px 200px 20px 20px;
}

@media (max-width: 899px) {
  .hero__figure { width: min(100%, 400px); }

  .hero__figure::before {
    inset: -12px;
    border-radius: 195px 195px 30px 30px;
  }

  .hero__figure img { border-radius: 184px 184px 18px 18px; }
}

/* --- Activity: three areas of work ------------------------------------- */

.activity {
  padding-bottom: clamp(2.75rem, 7vw, 4.5rem);
}

.activity h2 {
  max-width: 34ch;
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--teal-ink);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.pillars {
  display: grid;
  /* Explicit shrinkable tracks, as in .hero. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pillar {
  background: var(--beige);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* Short gold rule — the brand's accent, echoing the gold borders and drawn
   line used across the Israeli site. Decorative only. */
.pillar::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: var(--gold);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  color: var(--link);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.pillar p {
  margin: 0;
  line-height: 1.6;
}

/* --- Curved divider into the footer ------------------------------------ */

.divider {
  display: block;
  width: 100%;
  height: clamp(38px, 5vw, 72px);
  margin-bottom: -1px;
  fill: var(--beige);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--beige);
  padding-block: clamp(2rem, 5vw, 3rem);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p { margin: 0; }

.footer__org {
  flex: 1 1 26rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer__mark {
  flex: none;
  width: 30px;
  height: auto;
  margin-top: 0.15rem;
}

.footer__name {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

.footer__note {
  max-width: 34rem;
  line-height: 1.55;
}

.footer__meta {
  text-align: right;
  line-height: 1.6;
}

.footer__address {
  margin: 0 0 0.5rem;
  font-style: normal;
  line-height: 1.6;
}

.footer__copyright {
  color: #57574e;
  font-size: 0.875rem;
}

@media (max-width: 559px) {
  .footer__meta { text-align: left; }
}

/* --- Motion preferences ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .btn:hover,
  .btn:focus-visible { transform: none; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  body { background: #fff; }
  .divider { display: none; }
  .site-footer { background: none; border-top: 1px solid var(--sand); }
}
