@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-regular.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-bold.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-extrabold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --navy: #00304b;
  --gold: #dfca3a;
  --text: #35415b;
  --pale: #e3e7f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text);
}

.phone-link {
  color: inherit;
  white-space: nowrap;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1,
h2 {
  margin: 0 0 1.5rem;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1140px, calc(100% - 5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 3;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 130px;
}

.header-logo {
  width: auto;
  height: 80px;
}

.hero {
  height: 430px;
  background: linear-gradient(rgb(223 202 58 / 40%), rgb(223 202 58 / 40%)),
    url("../images/dog-with-woman.jpg") center / cover no-repeat;
}

.section {
  padding-block: 4rem;
}

.intro-grid,
.support-grid,
.footer-grid {
  display: grid;
  align-items: start;
  gap: 3rem;
}

.intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

.support {
  background: var(--pale);
  color: var(--navy);
}

.support-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

.support-logo {
  width: auto;
  height: 200px;
  object-fit: contain;
}

.support-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.site-footer {
  background: var(--navy);
  color: #fff;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 58px;
}

.site-footer h2 {
  color: inherit;
  font-size: 1.5rem;
}

.footer-logo {
  display: block;
  width: 100px;
  margin-top: 1.5rem;
}

.contact {
  padding-top: 1.5rem;
  font-style: normal;
}

.contact a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 10px;
  color: inherit;
}

.contact a:hover {
  color: var(--gold);
}

.contact a:last-child {
  margin-bottom: 0;
}

.contact svg {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal {
  min-height: 40px;
  padding-block: 5px 7px;
  background: var(--pale);
  color: var(--text);
  font-size: 14px;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 1.5rem 1.5rem auto;
  background: rgb(255 255 255 / 15%);
  color: #fff;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 1380px) {
  .site-header .container {
    height: 110px;
  }

  .header-logo {
    height: 60px;
  }

  .hero {
    height: 410px;
  }
}

@media (max-width: 1024px) {
  .header-logo {
    height: 35px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 3rem);
  }

  .site-header .container {
    height: 90px;
  }

  .header-logo {
    height: 25px;
  }

  .hero {
    height: 390px;
  }

  .section {
    padding-block: 1.5rem;
  }

  .intro-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .support-logo {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}
