/* =========================================================
   SUPPORT / FOUNDATION (support.php)
   Builds on home.css (.hm), why-us.css (tags) and book-trial.css (form + success)
   ========================================================= */

.sp {
    --rose: #e11d48;
    --rose-tint: #fff1f2;
}

/* ---------- Hero ---------- */
.sp-hero .hm-hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
}

.sp-dot {
    background: var(--rose);
}

.sp-dot::after {
    border-color: var(--rose);
}

.sp-blob {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.22), rgba(20, 184, 166, 0.14));
}

/* Impact stats: 3 columns with icons */
.hm .sp-stats {
    grid-template-columns: repeat(3, 1fr);
}

.sp-stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--rose-tint);
    color: var(--rose);
}

.sp-stats li:nth-child(2) .sp-stat-icon {
    background: var(--mint);
    color: var(--teal-d);
}

.sp-stats li:nth-child(3) .sp-stat-icon {
    background: #fef3c7;
    color: #b45309;
}

.sp-stat-icon svg {
    width: 20px;
    height: 20px;
}

/* ---------- Journey ---------- */
.hm .sp-how {
    background: #ffffff;
}

.sp-journey {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sp-journey::before {
    content: '';
    position: absolute;
    top: 46px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--teal-2), var(--teal-d));
    opacity: 0.35;
}

.sp-journey li {
    position: relative;
    padding: 24px 22px 26px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-journey li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sp-journey-num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: var(--font-h);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: #eef2f6;
}

.sp-journey-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(145deg, var(--teal-2), var(--teal-d));
    box-shadow: 0 10px 20px -8px rgba(13, 148, 136, 0.6);
}

.sp-journey li:first-child .sp-journey-icon {
    background: linear-gradient(145deg, #fb7185, var(--rose));
    box-shadow: 0 10px 20px -8px rgba(225, 29, 72, 0.5);
}

.sp-journey-icon svg {
    width: 22px;
    height: 22px;
}

.hm .sp-journey h3 {
    margin-top: 16px;
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
}

.sp-journey p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Mission ---------- */
.hm .sp-mission-section {
    background: #ffffff;
    padding-top: 0;
}

.sp-mission {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 32px;
    color: rgba(236, 253, 245, 0.85);
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(251, 113, 133, 0.25) 0%, rgba(251, 113, 133, 0) 60%),
        linear-gradient(150deg, #0f766e 0%, #0b4f4a 60%, #083b37 100%);
    box-shadow: var(--shadow-lg);
}

.sp-mission-media {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sp-mission-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-mission-copy > p {
    margin-top: 14px;
    line-height: 1.75;
}

/* ---------- Ways to help ---------- */
.hm .sp-involve {
    background: var(--soft);
    border-top: 1px solid var(--line);
    scroll-margin-top: 70px;
}

.sp-ways {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.sp-way {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 20px 20px;
    border-radius: var(--radius);
    border: 1.5px solid var(--line);
    background: #ffffff;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.sp-way:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-md);
}

.sp-way:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.sp-way-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--mint);
    color: var(--teal-d);
    transition: all 0.25s ease;
}

.sp-way-icon svg {
    width: 22px;
    height: 22px;
}

.sp-way strong {
    margin-top: 6px;
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.sp-way small {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

.sp-way-cta {
    margin-top: auto;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--teal-d);
}

.sp-way-cta svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.sp-way:hover .sp-way-cta svg {
    transform: translateY(2px);
}

.sp-way.is-selected {
    border-color: var(--teal);
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14), var(--shadow-md);
}

.sp-way.is-selected .sp-way-icon {
    background: var(--teal);
    color: #ffffff;
}

.sp-way.is-selected::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
    animation: hm-pop 0.3s ease both;
}

.sp-way.is-selected .sp-way-cta {
    visibility: hidden;
}

/* ---------- Form ---------- */
.sp-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.hm .sp-form-aside h3 {
    font-family: var(--font-h);
    font-size: 1.4rem;
    font-weight: 800;
}

.sp-next {
    margin-top: 16px;
}

.sp-direct {
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.sp-direct > p {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.sp-mail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    word-break: break-all;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.sp-mail:hover {
    color: var(--ink);
    border-color: rgba(13, 148, 136, 0.4);
    background: var(--mint);
    transform: translateX(3px);
}

.sp-mail > span:first-child {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--mint);
    color: var(--teal-d);
}

.sp-mail svg {
    width: 18px;
    height: 18px;
}

.sp-mail small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--muted);
}

.sp-form {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.sp-type-pill {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--mint);
    border: 1px solid rgba(13, 148, 136, 0.2);
    font-size: 0.9rem;
    color: var(--ink-2);
}

.sp-type-pill strong {
    font-family: var(--font-ui);
    color: var(--teal-d);
}

.sp-type-pill strong.sp-flash {
    animation: sp-flash 0.6s ease;
}

@keyframes sp-flash {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: none; }
}

.sp-change {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--teal-d);
}

.sp-opt {
    font-style: normal;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--muted);
}

.sp-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.hm .sp-submit {
    justify-content: space-between;
    margin-top: 4px;
}

/* ---------- CTA ---------- */
.hm .sp-cta-section {
    padding-top: clamp(56px, 6vw, 96px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .sp-journey,
    .sp-ways {
        grid-template-columns: 1fr 1fr;
    }

    .sp-journey::before {
        display: none;
    }
}

@media (max-width: 992px) {
    .sp-mission,
    .sp-form-grid {
        grid-template-columns: 1fr;
    }

    .sp-form-aside {
        order: 2;
    }
}

@media (max-width: 640px) {
    .hm .sp-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hm .sp-stats li {
        padding: 14px 6px;
    }

    .sp-stat-icon {
        width: 32px;
        height: 32px;
    }

    .hm .sp-stats .hm-stat-label {
        font-size: 0.74rem;
    }

    .sp-journey,
    .sp-ways {
        grid-template-columns: 1fr;
    }

    .sp-way {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 14px;
    }

    .sp-way strong {
        margin-top: 0;
        flex: 1;
    }

    .sp-way small {
        flex-basis: 100%;
    }

    .sp-way-cta {
        display: none;
    }
}

/* =====================================================================
   HERO — bento mosaic (.sp-bento): headline tile + photo tiles + impact-number tiles
   ===================================================================== */
.hm .sp-bento-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.sp-bento { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(150px, auto)) minmax(170px, auto);
    grid-template-areas: "copy copy main main" "copy copy main main" "copy copy s1 s2" "side s3 promise promise"; }
.sp-tile { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 22px 44px -32px rgba(15, 23, 42, .4);
    animation: sp-tile-in .9s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes sp-tile-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.sp-tile-copy { grid-area: copy; padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(80% 60% at 100% 0%, rgba(254, 205, 211, .55), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(20, 184, 166, .14), transparent 70%), #fffdfb; }
.sp-tile-copy .hm-hero-title { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
.sp-tile-copy .hm-eyebrow { align-self: flex-start; }
.sp-tile-main { grid-area: main; animation-delay: .12s; }
.sp-tile-side { grid-area: side; animation-delay: .5s; }
.sp-tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.sp-tile-photo:hover img { transform: scale(1.05); }
.sp-tile-chip { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 26px -16px rgba(15, 23, 42, .5); }
.sp-tile-chip > svg { width: 36px; height: 36px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; }
.sp-tile-chip span { display: flex; flex-direction: column; }
.sp-tile-chip strong { font: 800 .95rem var(--font-h); color: var(--ink, #0f172a); }
.sp-tile-chip small { font-size: .8rem; color: var(--muted, #64748b); }

.sp-tile-stat { padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.sp-tile-stat .sp-stat-icon { margin: 0 0 auto; }
.sp-tile-stat-1 { grid-area: s1; animation-delay: .24s; background: linear-gradient(160deg, #f0fdfa, #fff); }
.sp-tile-stat-2 { grid-area: s2; animation-delay: .32s; background: linear-gradient(160deg, #fffbeb, #fff); }
.sp-tile-stat-3 { grid-area: s3; animation-delay: .58s; background: linear-gradient(160deg, #fdf2f8, #fff); }
.sp-tile-stat-2 .sp-stat-icon { background: #fef3c7; color: #d97706; }
.sp-tile-stat-3 .sp-stat-icon { background: #fce7f3; color: #db2777; }
.sp-tile-stat .hm-stat-num { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }

.sp-tile-promise { grid-area: promise; animation-delay: .66s; display: flex; align-items: center; gap: 18px; padding: 24px 28px; border: 0; color: #fff;
    background: radial-gradient(60% 90% at 100% 0%, rgba(45, 212, 191, .45), transparent 70%), linear-gradient(135deg, #0f766e, #134e4a); }
.sp-promise-icon { flex-shrink: 0; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.sp-promise-icon svg { width: 28px; height: 28px; }
.sp-tile-promise > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.sp-tile-promise strong { font: 800 clamp(1.3rem, 2vw, 1.6rem) var(--font-h); }
.sp-tile-promise small { font-size: .95rem; color: rgba(204, 251, 241, .9); }

@media (max-width: 1100px) {
    .sp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(150px, auto);
        grid-template-areas: "copy copy" "main main" "s1 s2" "s3 side" "promise promise"; }
    .sp-tile-main { min-height: 320px; }
}
@media (max-width: 640px) {
    .sp-bento { gap: 12px; }
    .sp-tile { border-radius: 22px; }
    .sp-tile-main { min-height: 240px; }
    .sp-tile-stat { padding: 16px; }
    .sp-tile-promise { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-tile { animation: none; }
}
