/* =====================================================
   HCM Landing Page — Shared / Global Styles
   Block-specific styles live in each block's style.css
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.hcm-page {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1A2C3E;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary:       #0066cc;
    --primary-dark:  #0052a3;
    --primary-light: #e6f0ff;
    --secondary:     #00a86b;
    --dark-bg:       #0a1929;
    --light-bg:      #f5f7fa;
    --border:        #e0e7f1;
    --text-dark:     #0a1929;
    --text-mid:      #2c3e50;
    --text-light:    #5f7d9c;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
    --shadow-md:     0 8px 24px rgba(0,0,0,.12);
    --shadow-lg:     0 16px 40px rgba(0,0,0,.15);
}

/* ===== LAYOUT ===== */
.hcm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.hcm-main {
    min-height: 60vh;
    background: #f5f5f5;
}

/* ===== TYPOGRAPHY ===== */
.hcm-page h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
}

.hcm-page h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--dark-bg);
    margin-bottom: 1.2rem;
}

.hcm-page h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: .8rem;
}

.hcm-page h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: .6rem;
}

.form-privacy{
    color: #1A2C3E !important;
}

.hcm-page p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1rem;
}



/* ===== BUTTONS ===== */
.hcm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EF4444;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,102,204,.3);
    font-family: 'Inter', sans-serif;
}

.hcm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,102,204,.4);
}

.hcm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    border: 2px solid var(--primary);
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.hcm-btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== BADGE ===== */
.hcm-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #00c77d 100%);
    color: #fff;
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hcm-badge::before {
    content: "✓";
    font-weight: 800;
}

/* Header styling is inherited from the global theme stylesheet (site-header, main-navigation, head-patner). */

/* ── HCM landing: override global header hide on mobile ── */
.hcm-page .main-navigation {
    flex-wrap: wrap;
    gap: 10px;
}

@media screen and (max-width: 1200px) {
    .hcm-page .head-patner {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .hcm-page .main-navigation {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hcm-page .site-branding {
        width: auto;
    }

    .hcm-page .head-patner {
        display: flex;
        width: auto;
        justify-content: center;
    }
}

/* Footer styles are in acf-blocks/hcm_footer/style.css */

.name-row {
    display: flex;
    gap: 20px;
}

.name-field {
    flex: 1;
}

.name-field label,
.wpcf7-form label {
    display: block;
    width: 100%;
}

.name-field input {
    width: 100%;
}

.form-privacy {
    font-size: 0.65rem;
    line-height: 1.5;
}

.form-privacy a {
    color: #0066cc;
}

.wpcf7-form p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .name-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1280px) {
    .hcm-container { padding: 0 32px; }
}

@media (max-width: 1024px) {
    .hcm-container { padding: 0 28px; }
    .hcm-page h1 { font-size: 2.6rem; }
    .hcm-page h2 { font-size: 1.9rem; }
}

@media (max-width: 768px) {
    .hcm-container { padding: 0 20px; }
    .hcm-page h1 { font-size: 2rem; }
    .hcm-page h2 { font-size: 1.5rem; }
    .hcm-page h3 { font-size: 1.15rem; }

    .hcm-btn-primary,
    .hcm-btn-secondary {
        font-size: .95rem;
        padding: .9rem 1.8rem;
    }
}


@media (max-width: 480px) {
    .hcm-container { padding: 0 16px; }
    .hcm-page h1 { font-size: 1.6rem; }
    .hcm-page h2 { font-size: 1.3rem; }
    .hcm-page h3 { font-size: 1.05rem; }

    .hcm-logo { height: 30px; }

    .hcm-btn-primary,
    .hcm-btn-secondary {
        font-size: .9rem;
        padding: .85rem 1.5rem;
    }

    .hcm-badge { font-size: .7rem; padding: .35rem .85rem; }
}

/* =====================================================
   HCM CF7 FORM ENHANCEMENTS
   Scoped to .hcm-cf7-hero and .hcm-cf7-audit only.
   ===================================================== */

/* ── Keyframes (shared) ── */
@keyframes hcm-spin {
    to { transform: rotate(360deg); }
}

@keyframes hcm-response-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Submit button: flex layout so text + arrow + spinner sit inline ── */
.hcm-cf7-hero button.hcm-submit-btn,
.hcm-cf7-audit button.hcm-submit-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

/* ── Arrow icon (flex child, slides right on hover) ── */
.hcm-btn-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s ease, opacity .15s ease;
}

.hcm-cf7-hero button.hcm-submit-btn:hover .hcm-btn-arrow,
.hcm-cf7-audit button.hcm-submit-btn:hover .hcm-btn-arrow {
    transform: translateX(4px);
}

/* ── Spinner (flex child, hidden by default) ── */
.hcm-btn-spinner {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: hcm-spin .7s linear infinite;
    transition: opacity .15s ease;
}

/* ── Submitting state ── */
.hcm-is-submitting .hcm-btn-arrow   { opacity: 0; }
.hcm-is-submitting .hcm-btn-spinner { opacity: 1; }
.hcm-is-submitting button.hcm-submit-btn {
    opacity: .82;
    cursor: not-allowed;
}

/* =====================================================
   REQUEST-SUBMITTED PAGE
   Sticky footer + content centred between header/footer
   ===================================================== */

/* Body becomes a full-viewport flex column so the footer
   can be pinned to the bottom regardless of content height. */
body.hcm-page--submitted {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main grows to fill the space between the sticky header
   and the footer block, then distributes it as a column. */
body.hcm-page--submitted .hcm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Every ACF block wrapper except the footer takes the
   remaining space and centres its content both axes. */
body.hcm-page--submitted .hcm-main > *:not(.wp-block-acf-hcm-footer) {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-submitted{
    color: #0a1929 !important;
}

.request-submitted-heading {
    margin-bottom: 0 !important;
    margin: 0 !important;
}

.kovaion-delivery__eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em !important;
    color: #0084ff !important;
    background: rgba(0, 132, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 0.3rem 0.85rem !important;
}

.kovaion-cta-strip {
    background-color: #ffffff !important;
}
