/*
Theme Name: FirstCV
Author: FirstCV
Version: 1.2
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #2563EB;
    --dark-blue: #1E40AF;
    --success-green: #10B981;
    --charcoal: #1E293B;
}

/* ==================================================
   GLOBAL
================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
}

/* ==================================================
   HEADER
================================================== */

.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #E6E9F2;
}

/* LOGO */
.top-header img {
    transition: transform 0.2s ease;
}

.top-header a:hover img {
    transform: scale(1.04);
}

/* ================= DESKTOP NAV ================= */

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link-custom {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary-blue);
}

.nav-link-custom::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.25s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* ================= MOBILE MENU BUTTON ================= */

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #E6E9F2;
    font-size: 24px;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #F3F7FF;
    border-color: var(--primary-blue);
}

/* ================= MOBILE DROPDOWN ================= */

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #E6E9F2;
    padding: 18px 20px;
    animation: slideDown 0.25s ease;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #EEF2F7;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: var(--primary-blue);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================================
   BUTTONS
================================================== */

.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}

/* ==================================================
   CONTACT FORM
================================================== */

.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #B6C4D6;
}

.wpcf7-submit {
    width: 100%;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

/* ==================================================
   FOOTER
================================================== */

footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 2rem; /* FIX */
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 18px;
    list-style: none;
    padding: 0;
}

/* ==================================================
   MOBILE SPACING NORMALIZATION
================================================== */

@media (max-width: 768px) {

    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    section:first-of-type {
        padding-top: 1.5rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    footer ul {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ==================================================
   HOW IT WORKS
================================================== */

.how-badge {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.how-mini-cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.how-mini-cta:hover {
    color: var(--dark-blue);
    transform: translateX(4px);
}

/* ================= MOBILE SWIPE ================= */

@media (max-width: 767px) {

    #how .row {
        margin-left: 0;
        margin-right: 0;
    }

    .how-steps {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem 1rem;
        gap: 1rem;
    }

    .how-step {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    .how-step > .card {
        height: 100%;
    }

    .how-steps::-webkit-scrollbar {
        display: none;
    }

    .how-steps {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}
