/*
File: /apps/assets/public-home.css
Purpose: Public home page layout (hero, intake, footer spacing) for soft-nav with Contact/legal.
Version: v1.2.0
Changelog:
- v1.2.0: Mobile-first grids; touch phones keep stacked layout even under Chrome Desktop site; no sticky-footer void on phones.
- v1.1.1: Keep sheet loaded on Contact/legal via media=not all (no flash when returning Home).
- v1.1.0: Scoped attempt (reverted; media toggle is more reliable).
- v1.0.0: Extracted from index.php so Home ↔ footer pages soft-navigate without a reload flash.
*/

:root {
    --sots-blue: #173f70;
    --sots-blue-dark: #0f2d52;
    --sots-ink: #102542;
    --sots-muted: #5f6f86;
    --sots-border: #dbe4ee;
    --sots-bg: #eef3f8;
    --sots-card: #ffffff;
    --sots-green: #0f8f5a;
}
* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html,
body {
    max-width: 100%;
    overflow-x: clip;
}
html {
    height: auto;
}
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(31, 68, 109, .14), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, var(--sots-bg) 100%);
    font-family: Arial, sans-serif;
    color: var(--sots-ink);
}
/* Real desktop only: pin footer to viewport bottom without phone “Desktop site” voids. */
@media (min-width: 1100px) and (min-height: 780px) and (pointer: fine) {
    html,
    body {
        height: 100%;
        max-height: 100dvh;
        overflow: hidden;
    }
}
.sots-shell {
    width: min(1440px, calc(100% - 56px));
    margin: 0 auto;
    max-width: 100%;
    min-width: 0;
    padding: 14px 0 8px;
    flex: 1 1 auto;
}
/* Mobile-first: stacked by default (phones, and Chrome Desktop-site ~980px layout). */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}
.hero-card,
.request-card,
.feature-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--sots-border);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 45, 82, .10);
    max-width: 100%;
    min-width: 0;
}
.hero-card {
    padding: 22px 28px 18px;
}
.kicker {
    display: inline-flex;
    align-items: center;
    margin: 0;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #e8f7ee;
    color: #087848;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
}
h1 {
    margin: 10px 0 10px;
    max-width: 820px;
    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1.05;
    letter-spacing: -.05em;
    color: #0c2442;
}
.lede {
    max-width: 640px;
    margin: 0;
    color: #334e68;
    font-size: 15px;
    line-height: 1.45;
}
.hero-tagline {
    color: #627d98;
    font-size: 12px;
    line-height: 1.4;
    margin: 12px 0 0;
}
.home-value-strip {
    margin: 14px 0 0;
    padding: 12px 4px 0;
    border-top: 1px solid rgba(16, 42, 67, 0.08);
}
.home-value-strip-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-value-strip-list li {
    color: #486581;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}
.home-value-strip-list strong {
    color: #243b53;
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 4px;
}
.value-grid {
    display: none;
}
.feature-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 104px;
    padding: 14px 16px;
    box-shadow: none;
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #c9d5e3;
    background: #f8fafc;
    color: var(--sots-blue-dark);
    line-height: 1;
}
.feature-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.85;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-title {
    color: var(--sots-blue-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.feature-copy {
    color: #486581;
    font-size: 13px;
    line-height: 1.45;
}
.request-card {
    padding: 18px 22px;
}
.request-title {
    margin: 0 0 6px;
    color: var(--sots-blue-dark);
    font-size: 30px;
    letter-spacing: -.035em;
}
.request-copy {
    margin: 0 0 16px;
    color: #486581;
    font-size: 13px;
    line-height: 1.5;
}
label {
    display: block;
    margin-bottom: 6px;
    color: #102542;
    font-size: 13px;
    font-weight: 700;
}
label span {
    color: #627d98;
    font-weight: 400;
}
.request-card form {
    max-width: 100%;
    min-width: 0;
}
.form-row {
    margin-bottom: 8px;
    min-width: 0;
}
.sots-hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.form-row-goal textarea {
    min-height: 84px;
}
input,
textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--sots-border);
    border-radius: 12px;
    background: #ffffff;
    color: #102542;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    min-height: 44px;
    outline: none;
    padding: 9px 12px;
}
textarea {
    min-height: 88px;
    resize: vertical;
}
textarea::placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}
textarea::-webkit-input-placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}
#message {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    min-height: 84px;
}
#message::placeholder,
#message::-webkit-input-placeholder {
    color: #102542;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}
input::placeholder,
input::-webkit-input-placeholder {
    color: #94a3b8;
    font-weight: 400;
    opacity: 1;
}
input:focus,
textarea:focus {
    border-color: var(--sots-blue);
    box-shadow: 0 0 0 4px rgba(23, 63, 112, .10);
    background: #ffffff;
}
.request-card button[type="submit"] {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--sots-blue-dark);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 45, 82, .16);
}
.sots-home-talk-live {
    width: 100%;
    min-height: 48px;
    margin: 4px 0 8px;
    border: 0;
    border-radius: 12px;
    background: var(--sots-blue-dark);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 45, 82, .16);
}
.sots-home-talk-live:hover {
    background: #163556;
}
.sots-home-talk-live-hint {
    margin: 0 0 12px;
    color: #627d98;
    font-size: 12px;
    line-height: 1.4;
}
.sots-home-request-sample {
    width: 100%;
    min-height: 48px;
    margin: 0 0 14px;
    border: 1.5px solid var(--sots-blue-dark);
    border-radius: 12px;
    background: #ffffff;
    color: var(--sots-blue-dark);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
}
.sots-home-request-sample:hover {
    background: #f0f5fa;
}
.sots-home-details-form {
    margin-top: 4px;
    border-top: 1px solid rgba(16, 42, 67, 0.1);
    padding-top: 10px;
}
.sots-home-details-form > summary {
    cursor: pointer;
    list-style: none;
    color: #1f446d;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 0;
}
.sots-home-details-form > summary::-webkit-details-marker {
    display: none;
}
.sots-home-details-form[open] > summary {
    margin-bottom: 10px;
}
.request-card button[type="submit"]:hover {
    filter: brightness(1.04);
}
.note {
    margin-top: 10px;
    color: var(--sots-muted);
    font-size: 12px;
    line-height: 1.4;
}
.alert {
    border-radius: 16px;
    padding: 11px 13px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.4;
}
.alert-success {
    background: #e8f7ee;
    border: 1px solid #bfe8d0;
    color: #087848;
    font-weight: 750;
}
.alert-error {
    background: #fff1f1;
    border: 1px solid #f3c5c5;
    color: #9b1c1c;
}
.alert-error ul {
    margin: 0;
    padding-left: 18px;
}
.site-footer {
    margin-top: 18px;
    border-top: 1px solid rgba(16, 42, 67, 0.08);
    background: transparent;
    flex: 0 0 auto;
}
.site-footer-inner {
    width: min(1440px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    max-width: 100%;
    min-width: 0;
    padding: 14px 0 16px;
}
.footer-brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.footer-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 3px solid var(--sots-blue-dark);
    background: #ffffff;
    color: var(--sots-blue-dark);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.footer-name {
    color: var(--sots-blue-dark);
    font-size: 15px;
    font-weight: 900;
}
.footer-tagline,
.footer-copy {
    color: var(--sots-muted);
    font-size: 12px;
    line-height: 1.4;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    justify-content: center;
}
.footer-links a {
    color: var(--sots-muted);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-copy {
    text-align: center;
}
@media (max-height: 900px) {
    .sots-shell { padding: 10px 0 4px; }
    .hero-card { padding: 16px 22px 14px; }
    .request-card { padding: 14px 18px; }
    h1 { font-size: clamp(28px, 2.8vw, 38px); margin: 6px 0 8px; }
    .lede { font-size: 14px; }
    .home-value-strip { margin-top: 10px; padding-top: 8px; }
    .home-value-strip-list li,
    .home-value-strip-list strong { font-size: 12px; }
    .form-row { margin-bottom: 6px; }
    .form-row-goal textarea { min-height: 56px; }
}
/* True desktop / laptop: two-up hero + four value columns + sticky footer. */
@media (min-width: 901px) and (pointer: fine) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
        gap: 18px;
    }
    .home-value-strip-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 18px;
    }
    .site-footer {
        margin-top: auto;
    }
    .sots-mobile-desktop-hint,
    .sots-mobile-desktop-notice {
        display: none;
    }
}
/* Phones and tablet touch (incl. Chrome Desktop-site ~980px layout viewport). */
@media (max-width: 900px), ((hover: none) and (pointer: coarse)) {
    .sots-mobile-desktop-notice,
    .sots-mobile-desktop-hint {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #627d98;
        display: block;
        font-size: 11px;
        line-height: 1.4;
        margin: 0 0 10px;
        padding: 0 2px;
    }

    .sots-mobile-desktop-notice strong,
    .sots-mobile-desktop-hint strong {
        color: #486581;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
    }

    .sots-mobile-desktop-notice span,
    .sots-mobile-desktop-hint span {
        display: inline;
    }

    html,
    body {
        height: auto;
        max-height: none;
        overflow: visible;
        overflow-x: clip;
    }

    .hero-grid,
    .home-value-strip-list,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .home-value-strip {
        margin-top: 18px;
        padding-top: 16px;
    }

    .home-value-strip-list {
        gap: 12px;
    }

    .sots-shell {
        padding: 14px 12px;
        width: 100%;
        flex: 0 1 auto;
    }

    .hero-grid {
        gap: 14px;
    }

    .hero-card,
    .request-card {
        box-shadow: 0 10px 28px rgba(15, 45, 82, 0.08);
        padding: 18px 16px;
    }

    h1 {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.08;
        margin: 10px 0 10px;
    }

    .lede {
        color: #334e68;
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-tagline {
        font-size: 12px;
        margin-top: 12px;
    }

    .request-title {
        font-size: 20px;
    }

    .request-card button[type="submit"] {
        font-size: 16px;
        min-height: 48px;
    }

    .site-footer {
        margin-top: 18px;
    }

    .site-footer-inner {
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        gap: 10px 16px;
    }

    .footer-copy {
        text-align: center;
    }

    input,
    textarea {
        min-height: 42px;
        padding: 8px 12px;
    }

    #message {
        min-height: 76px;
    }
}
@media (max-width: 560px), ((hover: none) and (pointer: coarse) and (max-width: 700px)) {
    .sots-shell {
        padding: 12px 10px 14px;
    }

    .hero-card,
    .request-card,
    .feature-card {
        border-radius: 16px;
        padding: 16px 14px;
    }

    .feature-card {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 0;
        padding: 12px;
    }

    .kicker {
        font-size: 11px;
        min-height: 28px;
        padding: 0 10px;
    }

    input,
    textarea,
    #message {
        font-size: 16px;
        padding: 8px 11px;
    }

    input[required] {
        min-height: 40px;
    }

    input:not([required]) {
        min-height: 40px;
    }

    #message {
        min-height: 72px;
    }

    #message::placeholder,
    #message::-webkit-input-placeholder,
    textarea::placeholder,
    textarea::-webkit-input-placeholder {
        font-size: 14px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        gap: 10px 16px;
    }

    .footer-copy {
        text-align: center;
    }
}
