/* Capture page (capture.php) */

.btn--outline {
    padding: .7em 2.4em;
    border: 2px solid var(--blue);
    border-radius: 8px;
    color: var(--blue);
    font-size: 1.05rem;
    background: var(--white);
}

.btn--outline:hover { background: var(--blue); color: var(--white); }

.btn--primary {
    width: 100%;
    padding: 1em 1.2em;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--green-bright), var(--green));
    color: var(--white);
    font-size: 1.15rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(20, 107, 44, .3);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 107, 44, .35); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    grid-template-areas: "content optin";
    gap: 32px;
    min-height: 560px;
    padding: 16px var(--gutter) 0;
}

.hero__media {
    position: absolute;
    inset: 0 0 0 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 35%;
}

/* Soft wash on the left for legibility, and a fade into the page at the bottom */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(251, 248, 241, .97) 0%, rgba(251, 248, 241, .88) 30%, rgba(251, 248, 241, 0) 56%),
        linear-gradient(0deg, var(--cream) 0%, rgba(251, 248, 241, 0) 14%);
}

.hero__content {
    grid-area: content;
    position: relative;
    z-index: 1;
    align-self: start;
    max-width: 640px;
    padding: 28px 0 64px;
}

.hero__logo {
    width: clamp(240px, 26vw, 340px);
    margin: 0 0 28px -6px;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 3.1vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -.015em;
    color: var(--navy-deep);
    text-shadow: 0 0 18px rgba(251, 248, 241, .9), 0 0 4px rgba(251, 248, 241, .7);
}

.hero__title span { display: block; }
.hero__title--accent { color: var(--green); }

.hero__lead {
    margin-top: 22px;
    max-width: 34em;
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 1.4;
    color: var(--ink);
    text-shadow: 0 0 12px rgba(251, 248, 241, .95);
}

/* ---------- Opt-in card ---------- */
.optin {
    grid-area: optin;
    position: relative;
    z-index: 2;
    align-self: start;
    margin-bottom: -48px; /* card hangs below the hero image */
    padding: 26px 26px 22px;
    background: var(--white);
    border-radius: var(--radius);
    border-top: 5px solid var(--gold);
    box-shadow: var(--shadow);
}

.optin__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    line-height: 1.15;
    color: var(--navy-deep);
}

.optin__intro {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.3;
}

.optin__form { margin-top: 14px; }

.field + .field { margin-top: 14px; }

.field label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--ink);
}

.field__optional { color: var(--muted); }

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #c9ced8;
    border-radius: 6px;
    background: var(--white);
    font: inherit;
    font-size: 16px; /* prevents iOS zoom on focus */
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(29, 59, 125, .15);
}

.optin .btn--primary { margin-top: 18px; }

.optin__fineprint {
    margin-top: 14px;
    text-align: center;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--muted);
}

/* ---------- Benefits ---------- */
.benefits {
    padding: 84px var(--gutter) 48px;
    background:
        radial-gradient(120% 60% at 50% 100%, rgba(230, 197, 106, .12), transparent 70%),
        var(--cream);
}

.benefits__title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: .3em;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.015em;
    text-align: center;
    color: var(--navy-deep);
}

.benefits__title .accent { color: var(--green); }

/* Gold rules either side of the heading */
.benefits__title::before,
.benefits__title::after {
    content: "";
    flex: 0 0 80px;
    height: 2px;
    margin: 0 .6em;
    background: var(--gold);
    opacity: .8;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 22px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(15, 42, 92, .07);
}

.benefit__icon {
    width: 120px;
    height: 120px;
    flex: none;
}

.benefit__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.15;
    color: var(--navy-deep);
}

.benefit p {
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.4;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 14px var(--gutter);
    background: var(--navy-deep);
    color: var(--white);
}

.site-footer__name { font-family: var(--serif); font-size: 1.05rem; }

.site-footer__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .5); }

.site-footer a { color: rgba(255, 255, 255, .85); font-size: .9rem; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ================= Responsive ================= */

/* Medium desktops: tighten icon cards */
@media (max-width: 1200px) {
    .benefit { flex-direction: column; align-items: flex-start; text-align: left; }
    .benefit__icon { width: 96px; height: 96px; }
}

/* Tablet & mobile: stack hero content, image, then the form */
@media (max-width: 959px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "content"
            "media"
            "optin";
        gap: 0;
        min-height: 0;
        padding: 0;
    }

    .hero__content {
        max-width: none;
        padding: 24px var(--gutter) 20px;
        text-align: center;
    }

    .hero__logo { margin: 0 auto 20px; width: clamp(220px, 50vw, 320px); }

    .hero__lead { margin-left: auto; margin-right: auto; }

    .hero__media {
        grid-area: media;
        position: relative;
        aspect-ratio: 16 / 9;
    }

    .hero__media img { object-position: 58% 40%; }

    .hero__media::after {
        background:
            linear-gradient(180deg, var(--cream) 0%, rgba(251, 248, 241, 0) 14%),
            linear-gradient(0deg, var(--cream) 0%, rgba(251, 248, 241, 0) 22%);
    }

    .optin {
        margin-bottom: 0;
        width: min(560px, calc(100% - 2 * var(--gutter)));
        justify-self: center;
        margin: -110px 0 0;
    }

    .benefits { padding-top: 48px; }

    .benefits__title::before,
    .benefits__title::after { flex-basis: 40px; }

    .benefits__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }

    .benefit { flex-direction: row; align-items: center; }
}

/* Phones: portrait hero image */
@media (max-width: 599px) {
    .site-header { padding-top: 10px; padding-bottom: 10px; }

    .btn--outline { padding: .55em 1.1em; font-size: .9rem; border-width: 1.5px; }

    .hero__media { aspect-ratio: 4 / 5; }
    .hero__media img { object-position: 50% 72%; }

    .optin { padding: 22px 18px 18px; margin-top: -70px; }

    .btn--primary { font-size: 1.02rem; }

    .benefits__title { flex-direction: column; }
    .benefits__title::before,
    .benefits__title::after { display: none; }

    .benefit { gap: 14px; padding: 18px 16px; }
    .benefit__icon { width: 76px; height: 76px; }
    .benefit__title { font-size: 1.35rem; }
    .benefit p { font-size: 1.02rem; }

    .site-footer__sep { display: none; }
    .site-footer { flex-direction: column; text-align: center; }
}
