/* ============================================================
   Location Spoke — Hero
   File: assets/css/spoke/spoke-hero.css
   Scope: .spoke-hero__* classes only
   Figma: node 2195:675 — cream section, 2 columns:
   left copy (rating / H1 / body / bullets / CTAs / note),
   right white form card. Uses --spoke-* tokens from spoke-base.css.
   Desktop design width 1440px.
   ============================================================ */

.spoke-hero {
    background: var(--spoke-cream);
    color: var(--spoke-navy);
    padding: 50px 0;
}

.spoke-hero__row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
}

.spoke-hero__col--left {
    flex: 1 1 600px;
    max-width: 600px;
}

.spoke-hero__col--right {
    flex: 0 1 575px;
    max-width: 575px;
    width: 100%;
}


/* ============================
   LEFT COLUMN
   ============================ */

.spoke-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 24px;
}

.spoke-hero__rating:hover {
    text-decoration: none;
    opacity: 0.85;
}

.spoke-hero__stars {
    width: 120px;
    height: auto;
    display: block;
}

.spoke-hero__rating-text {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--spoke-grey);
}

.spoke-hero__h1 {
    font-family: var(--spoke-font-serif);
    font-size: 70px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    max-width: 550px;
    margin: 0 0 14px;
}

.spoke-hero__body {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    margin: 0 0 30px;
}

.spoke-hero__bullets {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spoke-hero__bullet {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.spoke-hero__bullet-icon {
    width: 30px;
    height: 30px;
    flex: none;
}

.spoke-hero__bullet-text {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
}

.spoke-hero__cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.spoke-hero__note {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--spoke-grey);
    margin: 0;
}


/* ============================
   RIGHT COLUMN — FORM CARD
   ============================ */

.spoke-hero__form-card {
    background: var(--spoke-white);
    border-radius: 20px;
    padding: 49px 35px;
    box-shadow: 0 20px 60px rgba(3, 0, 47, 0.08);
    /* #book anchor target: keep the card clear of the header on jump. */
    scroll-margin-top: 100px;
}

/* #book target is tabindex="-1" (never tab-reachable), so it takes focus only via
   hash navigation. Focus still moves for screen readers; the ring is suppressed
   because a visible outline here would read as a stray border, not a focus cue. */
.spoke-hero__form-card:focus,
.spoke-hero__form-card:focus-visible {
    outline: none;
}

.spoke-hero__form-heading {
    font-family: var(--spoke-font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    margin: 0 0 10px;
}

.spoke-hero__form-desc {
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    margin: 0 0 20px;
}

.spoke-hero__form-disclaimer {
    font-family: var(--spoke-font-sans);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--spoke-grey);
    margin: 16px 0 0;
}


/* ============================
   CF7 FORM FIELDS (scoped)
   Styles the shared Contact Form 7 markup only inside the hero
   card so it matches the spoke design. No change to the form itself.
   ============================ */

.spoke-hero__form .wpcf7-form p {
    margin: 0 0 14px;
}

/* First / Last name two-column row.
   wpautop wraps both fields in a single <p> inside .spoke-hero__form-row,
   so the grid lives on that <p>; each field is a .wpcf7-form-control-wrap. */
.spoke-hero__form-row p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 14px;
}

.spoke-hero__form-row .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.spoke-hero__form input[type="text"],
.spoke-hero__form input[type="email"],
.spoke-hero__form input[type="tel"],
.spoke-hero__form input[type="number"],
.spoke-hero__form input[type="url"],
.spoke-hero__form select,
.spoke-hero__form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--spoke-font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--spoke-navy);
    background: var(--spoke-cream);
    border: 1px solid rgba(3, 0, 47, 0.12);
    border-radius: var(--spoke-radius-btn);
    padding: 14px 16px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.spoke-hero__form textarea {
    min-height: 118px;
    resize: vertical;
}

.spoke-hero__form select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2303002F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.spoke-hero__form input::placeholder,
.spoke-hero__form textarea::placeholder {
    color: var(--spoke-grey);
    opacity: 1;
}

.spoke-hero__form input:focus,
.spoke-hero__form select:focus,
.spoke-hero__form textarea:focus {
    outline: none;
    border-color: var(--spoke-blue);
    box-shadow: 0 0 0 3px rgba(61, 105, 223, 0.15);
}

.spoke-hero__form .wpcf7-submit {
    width: 100%;
    display: block;
    font-family: var(--spoke-font-sans);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--spoke-white);
    background: var(--spoke-blue);
    border: 1px solid transparent;
    border-radius: var(--spoke-radius-btn);
    padding: 15px 34px;
    margin-top: 4px;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}

.spoke-hero__form .wpcf7-submit:hover {
    opacity: 0.9;
}

.spoke-hero__form .wpcf7-spinner {
    margin: 0 auto;
}

.spoke-hero__form .wpcf7-not-valid-tip {
    font-family: var(--spoke-font-sans);
    font-size: 13px;
    margin-top: 6px;
}

.spoke-hero__form .wpcf7 form .wpcf7-response-output {
    font-family: var(--spoke-font-sans);
    font-size: 14px;
    border-radius: var(--spoke-radius-btn);
    margin: 14px 0 0;
    padding: 12px 16px;
}


/* ============================
   RESPONSIVE — HERO
   ============================ */

@media (max-width: 1024px) {
    .spoke-hero__row {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .spoke-hero__col--left,
    .spoke-hero__col--right {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .spoke-hero__h1 {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .spoke-hero {
        padding: 36px 0;
    }

    .spoke-hero__h1 {
        font-size: 38px;
    }

    .spoke-hero__form-heading {
        font-size: 28px;
    }

    .spoke-hero__form-card {
        padding: 32px 22px;
    }

    .spoke-hero__cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .spoke-hero__cta-group .spoke-btn {
        width: 100%;
    }
}
