/* The Million Step Challenge */

:root {
    --teal: #015670;
    --teal-deep: #001f30;
    --mint: #6cccb0;
    --mint-num: #66c6aa;
    --olive: #b2b740;
    --lime: #b5bd12;
    --sage: #7ea7ac;
    --body: #6d6e71;
    --line: #dcddde;
    --field-line: #bfc3c8;
    --wash: #f7f7f7;
    --footer: #00394c;
    --footer-text: #4c7482;
    --shadow: 0 2px 10px rgba(100, 100, 111, .3);
    --header-h: 117px;
    --display: 52px;
}

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

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

body {
    margin: 0;
    background: #fff;
    color: var(--body);
    font: 300 16px/26px Poppins, Arial, Helvetica, sans-serif;
}

h1, h2, h3, ul, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
p { margin: 0 0 20px; }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

[id] { scroll-margin-top: var(--header-h); }
.anchor { display: block; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* Type */

.display {
    color: var(--teal);
    font-size: var(--display);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 40px;
}

.eyebrow {
    color: var(--olive);
    font-size: 25px;
    font-weight: 700;
    line-height: 35px;
    margin-bottom: 20px;
    text-transform: lowercase;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid transparent;
    border-radius: 36px;
    background: var(--mint);
    box-shadow: var(--shadow);
    color: #fff;
    cursor: pointer;
    font: 600 18px/28px Poppins, Arial, Helvetica, sans-serif;
    letter-spacing: .9px;
    transition: background-color .15s;
}
.btn:hover { background: var(--lime); color: #fff; }

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-h);
    transition: background-color .1s, box-shadow .1s;
}
.site-header.is-stuck,
.site-header.menu-open { background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo img { width: 200px; height: 74px; }

.site-nav ul { display: flex; align-items: center; gap: 25px; }
.site-nav a { color: var(--teal); font-size: 18px; font-weight: 400; letter-spacing: 1px; line-height: 50px; }
.site-nav a:hover { color: var(--teal-deep); }
.site-nav .nav-donate { padding: 0 28px; border-radius: 30px; background: var(--mint); box-shadow: var(--shadow); transition: background-color .15s; }
.site-nav .nav-donate:hover { background: var(--lime); }
.site-nav .nav-donate a { color: #fff; font-weight: 700; display: block; }

.menu-toggle { display: none; padding: 8px; border: 0; background: none; color: var(--teal); cursor: pointer; }
.menu-toggle:hover { color: var(--teal-deep); }

/* Parallax backgrounds */

.parallax { position: relative; overflow: hidden; }
.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    height: 150%;
    background-position: 50% 0;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateY(calc(var(--p, .5) * 33.333%));
    will-change: transform;
}

/* Hero */

.hero { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 117px 0; }
.hero .container { position: relative; }
.hero-bg { background-image: url("../img/the-million-step-challenge-homepage-background-0.png"); }
.hero-copy { max-width: 555px; }
.hero h1 { width: max-content; max-width: calc(100vw - 30px); margin-bottom: 40px; color: #005670; font-size: 72px; font-weight: 700; line-height: 76px; }
.hero-sub { margin-bottom: 6px; color: var(--sage); font-size: 20px; font-weight: 600; letter-spacing: 1px; line-height: 24px; }

/* About */

.about { padding: 116px 0 130px; background: var(--wash); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.about .btn { margin-top: 10px; }
.rounded-img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 31px; }
.features article { padding-top: 26px; border-top: 1px solid var(--line); }
.feature-num { display: block; margin-bottom: 20px; color: var(--mint-num); }
.features h3 { margin-bottom: 17px; color: var(--teal); font: 700 25px/35px Montserrat, Arial, Helvetica, sans-serif; }
.features p { margin: 0; }

/* Full-width bands */

.band {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 276px;
    padding: 40px 15px;
    background: linear-gradient(90deg, #86cbb0, #b2b740);
}
.band-bg { background-image: url("../img/make-an-impact-donate-today-background.png"); }
.band-text { position: relative; margin: 0; color: #fff; font-size: 48px; line-height: 56px; text-align: center; }

/* Two-column layouts */

.two-col { display: grid; grid-template-columns: minmax(0, 750fr) minmax(0, 360fr); gap: 30px; align-items: start; }

/* Team */

.team { padding: 143px 0 115px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 30px; margin-top: 29px; }
.person { display: flex; align-items: center; gap: 16px; }
.headshot { width: 106px; height: 106px; border-radius: 50%; box-shadow: var(--shadow); flex: none; }
.person-name { display: block; font-size: 23px; font-weight: 700; line-height: 32px; text-transform: lowercase; }
.person-cta { display: block; line-height: 23px; }

/* Cards */

.card { margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; }
.card > :last-child { margin-bottom: 0; }
.card-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stat { text-align: center; padding: 28px 20px 24px; }
.stat-value { margin-bottom: 14px; color: var(--teal); font: 700 52px/56px Montserrat, Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.stat-label { margin: 0; color: var(--teal); }
.empty { margin: 0; }
.donors li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.donors span { overflow-wrap: anywhere; }
.donors strong { color: var(--teal); font-weight: 600; }

/* Inner pages */

.page { padding: 190px 0 115px; }
.page-title { margin-bottom: 40px; }
.page-title.narrow { max-width: 750px; }

/* FAQ */

.faq { margin-top: 20px; }
.faq-item { margin-bottom: 10px; }
.faq-item summary {
    position: relative;
    padding: 14px 20px 14px 46px;
    background: var(--mint);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 24px;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; position: absolute; left: 20px; font-weight: 400; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item:first-child summary { border-radius: 32px 32px 0 0; }
.faq-item:last-child summary { border-radius: 0 0 32px 32px; }
.faq-item[open] + .faq-item summary { border-radius: 32px 32px 0 0; }
.faq-item[open] summary { border-radius: 32px; }
.faq-answer { padding: 30px 20px 40px; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 20px 20px; list-style: disc; }

/* Story */

.story { margin-bottom: 30px; }
.story .headshot { float: left; margin: 0 16px 8px 0; }
.story blockquote { clear: both; margin: 30px 0; color: #005670; font-size: 25px; font-style: italic; line-height: 34px; }
.story blockquote p { margin: 0; }

.aside-image { margin-bottom: 18px; }
.shares { display: flex; gap: 20px; padding: 16px 0 8px; }

/* Forms */

.form-card { padding: 35px 38px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field label, .field legend { display: block; margin-bottom: 3px; padding: 0; font-size: 15px; font-weight: 400; }
.req { color: #b94a48; }
.field input, .field textarea {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--field-line);
    border-radius: 4px;
    color: #555;
    font: 400 14px/18px Poppins, Arial, Helvetica, sans-serif;
}
.field textarea { line-height: 26px; resize: vertical; min-height: 144px; }
.field-error { margin: 4px 0 0; color: #b02a2a; font-size: 14px; font-weight: 400; }

.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.field label.amount { margin: 0; position: relative; cursor: pointer; }
.amount input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.amount span { display: block; padding: 7px 24px; border: 1px solid var(--line); border-radius: 30px; color: var(--teal); font-size: 16px; font-weight: 600; }
.amount input:checked + span { border-color: var(--mint); background: var(--mint); color: #fff; }
.amount input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.demo-note { margin: 16px 0 0; font-size: 14px; line-height: 20px; }

.notice { margin-bottom: 22px; padding: 12px 16px; border-radius: 8px; font-weight: 400; }
.notice-ok { background: #e6f7f1; color: #0b5a45; }
.notice-bad { background: #fbeaea; color: #8a1f1f; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.site-footer { padding: 35px 0; background: var(--footer); color: var(--footer-text); font-size: 14px; line-height: 20px; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: #cfe0e5; }
.site-footer a:hover { color: #fff; }

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--lime); color: #fff; }

/* Tablet and below */

@media (max-width: 991px) {
    :root { --display: 42px; }

    .menu-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 6px 10px rgba(0, 0, 0, .1);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 15px 20px; }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav a { display: block; }
    .site-nav .nav-donate { margin-top: 14px; border: 0; text-align: center; }

    .hero-bg { background-image: url("../img/the-million-step-challenge-homepage-background-20.png"); }
    .hero h1 { font-size: 38px; line-height: 43px; }
    .hero-copy { max-width: none; }
    .desktop-only { display: none; }

    .about { padding: 80px 0 60px; }
    .about-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }

    .band { min-height: 220px; }
    .band-text { font-size: 36px; line-height: 44px; }

    .two-col { grid-template-columns: 1fr; }
    .team { padding: 80px 0 70px; }
    .page { padding: 160px 0 70px; }
}

/* Phones */

@media (max-width: 767px) {
    :root { --display: 34px; }

    .display { line-height: 40px; margin-bottom: 30px; }
    .people { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
    .field input, .field textarea { font-size: 16px; line-height: 20px; }
    .faq-item summary { font-size: 17px; }
    .story blockquote { font-size: 21px; line-height: 30px; }
    .band-text { font-size: 30px; line-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .parallax-bg { will-change: auto; }
}
