/* =========================================================
   Associated Lay Members — Hero (Sessão 1)
   ========================================================= */
.lay-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0 20px 90px 20px;
    background-color: var(--dark-navy);
}

.lay-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 1;
    animation: layHeroZoom 18s ease-out forwards;
}

@keyframes layHeroZoom {
    0%   { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.lay-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(21, 36, 51, 0.15) 0%,
        rgba(21, 36, 51, 0.35) 50%,
        rgba(21, 36, 51, 0.80) 100%);
    z-index: 2;
}

.lay-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.lay-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Chamado ao Batismo (Sessão 2)
   ========================================================= */
.lay-intro {
    background-color: var(--site-bg);
    padding: 80px 20px 0 20px;
}

.lay-intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lay-intro-statement {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--dark-navy);
    margin: 0 0 22px 0;
}

.lay-intro-quote {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.25vw, 1.1rem);
    font-style: italic;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0 0 40px 0;
}

/* Marca-texto azul desenhado no scroll (mesmo efeito das outras páginas) */
.lay-intro-quote .highlight-blue {
    position: relative;
    display: inline-block;
    padding: 0 5px;
    z-index: 1;
    font-style: normal;
}

.lay-intro-quote .highlight-blue::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 11px;
    background-color: #5da2d5;
    z-index: -1;
    border-radius: 2px;
    transition: width 1s var(--ease-out);
}

.lay-intro-quote.revealed .highlight-blue::after {
    width: 100%;
    transition-delay: 0.5s;
}

/* Moldura azul desenhada no scroll */
.lay-intro-quote .highlight-blue-box {
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    white-space: nowrap;
    z-index: 1;
    font-style: normal;
}

.lay-intro-quote .highlight-blue-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #63a4ff;
    border-radius: 3px;
    z-index: -1;
    width: 0;
    opacity: 0;
    transition: width 0.8s var(--ease-out), opacity 0.2s ease;
}

.lay-intro-quote.revealed .highlight-blue-box::after {
    width: 100%;
    opacity: 1;
    transition-delay: 0.8s;
}

/* --- Par de fotos --- */
.lay-photo-pair {
    max-width: var(--container-max);
    width: var(--container-width);
    margin: 55px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lay-photo {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.lay-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}

.lay-photo:hover img {
    transform: scale(1.05);
}

/* =========================================================
   Vocação missionária (Sessão 3) — bloco marrom
   ========================================================= */
.lay-vocation {
    background-color: var(--primary-brown-dark);
    padding: 90px 20px;
    margin-top: 70px;
}

.lay-vocation-container {
    max-width: var(--container-max);
    width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 55px;
    align-items: center;
}

.lay-vocation-photo {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.lay-vocation-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}

.lay-vocation-photo:hover img {
    transform: scale(1.05);
}

.lay-vocation-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.05rem);
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 26px 0;
}

.lay-vocation-text p {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 18px 0;
}

.lay-vocation-text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Caminho de formação (Sessão 4) — bloco escuro
   ========================================================= */
.lay-path {
    background-color: #241a14;
    padding: 0;
}

.lay-path-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}

.lay-path-text {
    padding: 90px clamp(24px, 5vw, 80px);
    max-width: 640px;
    margin-left: auto;
}

.lay-path-text p {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 24px 0;
}

.lay-path-text p:last-child {
    margin-bottom: 0;
}

.lay-path-photo {
    margin: 0;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
}

.lay-path-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   Formulário de inscrição (Sessão 5)
   ========================================================= */
.lay-form-section {
    background-color: var(--site-bg);
    padding: 90px 20px 100px 20px;
}

.lay-form-container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.lay-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark-navy);
    margin: 0 0 45px 0;
}

.lay-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

/* O rótulo vive dentro da moldura do campo, como na arte, mas continua
   sendo um <label> real — leitores de tela e toque no rótulo funcionam. */
.lay-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--dark-navy);
    border-radius: 3px;
    background-color: #ffffff;
    padding: 0 16px;
    min-height: 52px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lay-field:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.lay-field label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--dark-navy);
    white-space: nowrap;
    flex-shrink: 0;
}

.lay-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    /* 16px evita o zoom automático do iOS ao focar o campo */
    font-size: 16px;
    color: var(--text-color);
    padding: 14px 0;
}

/* Honeypot — fora da tela, sem display:none (alguns bots ignoram) */
.lay-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lay-form-btn {
    align-self: center;
    min-height: 44px;
    margin-top: 14px;
    background-color: var(--dark-navy);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 2px;
    padding: 14px 34px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, background-color 0.35s ease;
}

.lay-form-btn:hover:not(:disabled),
.lay-form-btn:focus-visible:not(:disabled) {
    transform: translateY(-4px);
    background-color: var(--dark-navy-soft);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.lay-form-btn:disabled {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

/* Mensagens de retorno do envio */
.lay-form-msg {
    margin: 6px 0 0 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
    min-height: 1px;
}

.lay-form-msg.is-ok {
    color: #1c6b3f;
}

.lay-form-msg.is-error {
    color: #a12727;
}

/* =========================================================
   Responsividade
   ========================================================= */
@media (max-width: 992px) {
    .lay-vocation-container,
    .lay-path-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lay-vocation {
        padding: 70px 20px;
    }

    .lay-path-text {
        padding: 70px 24px 0 24px;
        margin-left: 0;
        max-width: 100%;
    }

    .lay-path-photo {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .lay-hero {
        min-height: 62vh;
        padding-bottom: 60px;
    }

    /* Empilha as fotos para não virarem duas faixas minúsculas */
    .lay-photo-pair {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lay-intro {
        padding-top: 60px;
    }

    .lay-vocation {
        margin-top: 55px;
    }
}

@media (max-width: 576px) {
    .lay-form-section {
        padding: 65px 18px 80px 18px;
    }

    /* Rótulo acima do campo: lado a lado não cabe em telas estreitas */
    .lay-field {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 14px;
    }

    .lay-field label {
        white-space: normal;
        font-size: 0.75rem;
        opacity: 0.85;
    }

    .lay-field input {
        padding: 6px 0 8px 0;
    }

    .lay-form-btn {
        width: 100%;
    }

    /* A moldura da citação quebraria a linha em telas estreitas */
    .lay-intro-quote .highlight-blue-box {
        white-space: normal;
    }
}

/* Respeita quem pediu menos movimento no sistema */
@media (prefers-reduced-motion: reduce) {
    .lay-hero-bg {
        animation: none;
    }

    .lay-photo img,
    .lay-vocation-photo img,
    .lay-form-btn {
        transition: none;
    }
}
