/* ============================================================
   CTA One Column Block Styles
   Unified design combining news-cta-compact with about-cta min-height
   ============================================================ */

.cta-one-column-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    padding: 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.cta-one-column-bg {
    position: absolute;
    inset: 0;
    background-color: #193e6e;
    z-index: 0;
    overflow: hidden;
}

/*
 * Oversized frame (~210% of the panel each axis) so the parallax img always
 * has pixels beyond the visible clip after translateY + scale(1.32).
 */
.cta-one-column-bg-media {
    position: absolute;
    inset: -55%;
    z-index: 0;
    pointer-events: none;
    background-color: #193e6e;
}

.cta-one-column-bg-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    transform-origin: center center;
}

.cta-one-column-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 62, 110, 0.8);
    z-index: 1;
}

.cta-one-column-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.cta-one-column-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 168px;
}

.cta-one-column-block .es-section-title {
    line-height: 1;
}

/* Primary + optional secondary CTA in one row (wraps on narrow viewports). No gap when a single button is shown. */
.cta-one-column-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 32px between the two buttons only when both are present (see template: --pair modifier). */
.cta-one-column-buttons--pair {
    gap: 32px;
}

.cta-one-column-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 8px 32px;
    border-radius: 8px;
    background-color: var(--btn-primary-rest, #ff6b35);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-one-column-button:hover {
    background-color: var(--btn-primary-hover, #e55a2b);
    box-shadow: 0px 6px 14px rgba(1, 13, 20, 0.1);
}

.cta-one-column-button:active {
    background-color: var(--btn-primary-pressed, #cc4a1f);
    box-shadow: none;
}

.cta-one-column-button:focus-visible {
    outline: 2px solid var(--btn-primary-pressed, #cc4a1f);
    outline-offset: 2px;
}

/* Secondary CTA: outline style so it reads as a pair with the solid primary. */
.cta-one-column-button--secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    /* Same outer height as primary; horizontal padding reduced by border width. */
    height: 44px;
    padding: 0 30px;
}

.cta-one-column-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0px 6px 14px rgba(1, 13, 20, 0.1);
}

.cta-one-column-button--secondary:active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.cta-one-column-button--secondary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Links container */
.cta-one-column-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cta-one-column-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Underline only the text label, not the arrow */
.cta-one-column-link .link-label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Add arrow indicator via CSS */
.cta-one-column-link::after {
    content: "→";
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cta-one-column-link:hover::after {
    transform: translateX(2px);
}

.cta-one-column-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.cta-one-column-link:active {
    color: rgba(255, 255, 255, 0.8);
}

.cta-one-column-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================================
   CTA disclaimer — mirrors franchising .about-cta-disclaimer inside
   .about-cta-container (max-width 800px, centered column). No extra
   horizontal padding here (that made copy too narrow). Center with
   margin auto; cap width at 840px like the static CSS.
   Overrides .site-main p (16px / smith-grey) via specific selector only.
   ============================================================ */

.site-main .cta-one-column-block p.about-cta-disclaimer,
.cta-one-column-block p.about-cta-disclaimer {
    /* Same rules as EverSmith-HTML-PAGE .about-cta-disclaimer, plus centering */
    max-width: 840px;
    width: 100%;
    box-sizing: border-box;
    margin: 24px auto 0;
    padding: 0;
    align-self: center;
    color: #fff;
    text-align: center;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    .cta-one-column-block {
        padding-left: 32px;
        padding-right: 32px;
    }

    .cta-one-column-inner {
        padding-left: 80px;
        padding-right: 80px;
    }
}


/* Mobile (480px) */
@media (max-width: 480px) {
    .cta-one-column-block {
        padding: 60px 24px;
        min-height: auto;
    }

    .cta-one-column-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cta-one-column-buttons {
        flex-direction: column;
    }

    .cta-one-column-link {
        font-size: 14px;
    }

    .cta-one-column-link::after {
        font-size: 14px;
    }
}
