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

/* =========================================================
   X FINANCE - MAIN WEBSITE CSS
   TEST WEBSITE ONLY
   ========================================================= */

:root {
    --green: #005b35;
    --dark-green: #003d25;
    --deep-green: #002d1c;
    --gold: #e3a400;
    --gold-light: #f4c34d;
    --white: #ffffff;
    --off-white: #f7faf8;
    --light-green: #eef5f1;
    --text: #17251f;
    --muted: #65736c;
    --border: #dce6e0;
    --shadow: 0 12px 35px rgba(0, 61, 37, 0.08);
}

/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    width: 100%;
    min-height: 36px;
    padding: 8px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: var(--dark-green);
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1px;
}

.topbar div {
    white-space: nowrap;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    width: 100%;
    min-height: 94px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 4%;

    background: #ffffff;

    position: relative;
    z-index: 100;

    border-bottom: 1px solid rgba(0, 0, 0, .05);

    box-shadow: 0 3px 18px rgba(0, 0, 0, .05);
}

/* LOGO */

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 94px;
    width: 180px;
    overflow: hidden;
}

.brand img {
    display: block;
    width: 155px;
    height: 82px;
    max-width: 155px;
    max-height: 82px;
    object-fit: contain;
    object-position: center;
}

/* NAV LINKS */

.nav nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.nav nav a {
    color: #17251f;
    transition: all .2s ease;
}

.nav nav a:hover {
    color: var(--green);
}

/* CHECK ELIGIBILITY BUTTON */

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 21px;

    background: var(--gold);
    color: #17251f !important;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 800;

    transition: all .2s ease;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* MOBILE MENU BUTTON */

.menu {
    display: none;

    border: 0;
    background: transparent;

    color: var(--dark-green);

    font-size: 28px;
    cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;

    min-height: 575px;

    background: var(--dark-green);
    color: #ffffff;
}

/* HERO LEFT SIDE */

.hero-copy {
    padding: 72px 7%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin-bottom: 10px;

    color: var(--gold-light);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;

    max-width: 760px;

    font-size: clamp(42px, 5vw, 62px);
    line-height: 1.03;

    letter-spacing: -2.3px;

    font-weight: 800;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero p {
    max-width: 650px;

    margin: 0;

    color: #e5eee9;

    font-size: 15px;
}

.hero p strong {
    color: #ffffff;
}

/* CHECK LIST */

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px 28px;

    margin: 27px 0;

    max-width: 620px;
}

.checks span {
    color: #edf5f0;

    font-size: 12px;
    font-weight: 600;
}

.checks span::first-letter {
    color: var(--gold-light);
}

/* HERO BUTTONS */

.buttons {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.btn {
    min-height: 48px;

    padding: 13px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid transparent;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition: all .2s ease;
}

.btn.gold {
    background: var(--gold);
    color: #13251c;
}

.btn.gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn.outline {
    background: transparent;
    border-color: rgba(255,255,255,.8);
    color: #ffffff;
}

.btn.outline:hover {
    background: #ffffff;
    color: var(--dark-green);
}

.wide {
    width: 100%;
}

/* =========================================================
   HERO IMAGE
   IMPORTANT:
   The image is supplied by the INLINE STYLE in index.php.
   We therefore DO NOT set another background image here.
   ========================================================= */

.hero-photo {
    position: relative;

    min-height: 575px;

    overflow: hidden;

    background-color: #f5f7f4;

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* =========================================================
   HERO BADGE
   ========================================================= */

.badge {
    position: absolute;

    right: 5%;
    bottom: 30px;

    z-index: 5;

    padding: 15px 21px;

    background: var(--gold);

    color: var(--dark-green);

    box-shadow: 0 10px 25px rgba(0,0,0,.15);

    transform: rotate(-3deg);

    font-size: 12px;
    font-style: italic;

    line-height: 1.25;
}

.badge strong {
    font-size: 17px;
}

/* =========================================================
   CALCULATOR / PROCESS
   ========================================================= */

.split {
    max-width: 1180px;

    margin: 0 auto;

    padding: 65px 25px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 55px;
}

/* CARD */

.card {
    padding: 32px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow: var(--shadow);
}

.card h2,
.how h2,
.docs h2,
.faq h2,
.contact h2 {
    margin: 0 0 8px;

    color: var(--dark-green);

    font-size: 30px;
    line-height: 1.15;
}

.card p,
.how p,
.docs p,
.contact p {
    color: var(--muted);

    font-size: 13px;
}

/* FORM LABEL */

label {
    display: block;

    margin-top: 17px;

    font-size: 11px;
    font-weight: 700;
}

/* CALCULATOR AMOUNT */

.amount {
    margin-top: 5px;

    color: var(--green);

    font-size: 32px;
    font-weight: 800;
}

/* RANGE */

input[type="range"] {
    width: 100%;

    margin: 12px 0;

    accent-color: var(--gold);
}

.range {
    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 10px;
}

/* PERIOD BUTTONS */

.periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 7px;

    margin-top: 8px;
}

.periods button {
    padding: 10px 5px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 5px;

    color: var(--text);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: all .2s ease;
}

.periods button:hover {
    border-color: var(--green);
}

.periods .active {
    background: var(--green);

    border-color: var(--green);

    color: #ffffff;
}

/* ESTIMATE */

.estimate {
    margin-top: 22px;

    padding: 17px;

    background: var(--light-green);

    border-left: 4px solid var(--gold);

    border-radius: 5px;
}

.estimate small,
.estimate span {
    display: block;
}

.estimate small {
    font-size: 10px;
    font-weight: 700;
}

.estimate strong {
    display: block;

    margin: 2px 0;

    color: var(--green);

    font-size: 29px;
}

.estimate span {
    color: var(--muted);

    font-size: 9px;
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */

.steps {
    display: flex;

    justify-content: space-between;

    gap: 8px;

    margin: 30px 0;
}

.steps div {
    flex: 1;

    text-align: center;

    font-size: 10px;
    font-weight: 700;
}

.steps b {
    width: 36px;
    height: 36px;

    margin: 0 auto 8px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--green);
    color: #ffffff;
}

.small {
    font-size: 10px !important;
}

/* =========================================================
   FEATURES
   ========================================================= */

.features {
    padding: 45px 5%;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 25px;

    text-align: center;

    background: #fafcfb;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features i {
    width: 58px;
    height: 58px;

    margin: auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--green);
    color: #ffffff;

    font-size: 22px;
    font-style: normal;
}

.features div:nth-child(even) i {
    background: var(--gold);
    color: #13251c;
}

.features h3 {
    margin: 11px 0 4px;

    font-size: 13px;
}

.features p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
}

/* =========================================================
   DOCUMENTS
   ========================================================= */

.docs {
    width: 100%;
    max-width: 100%;
    min-height: 390px;

    display: grid;
    grid-template-columns: 57.5% 42.5%;

    overflow: hidden;
}

.docs > div:first-child {
    width: 100%;
    min-width: 0;
    padding: 65px 8%;
    overflow: hidden;
}

.docgrid {
    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
    margin-top: 28px;
}

.docgrid div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.docgrid b {
    font-size: 11px;
}

.docgrid small {
    color: var(--muted);
    font-size: 9px;
}

.docphoto {
    width: 100%;
    min-width: 0;
    height: 390px;
    min-height: 390px;

    overflow: hidden;
    background: #f5f7f4;
}

.docphoto img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center;
}

/* =========================================================
   APPLICATION SECTION
   ========================================================= */

.apply {
    padding: 70px 4%;

    background: var(--light-green);
}

.application-card {
    max-width: 980px;

    margin: auto;

    padding: 40px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow: var(--shadow);
}

.form-section {
    margin-top: 25px;

    padding-top: 23px;

    border-top: 1px solid var(--border);
}

.form-section h3 {
    color: var(--green);

    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 17px;
}

.grid .full {
    grid-column: 1 / -1;
}

/* =========================================================
   FORM INPUTS
   ========================================================= */

input,
select,
textarea {
    width: 100%;

    margin-top: 6px;

    padding: 11px 12px;

    background: #ffffff;

    border: 1px solid #ccd8d2;

    border-radius: 5px;

    font: inherit;
    font-size: 13px;

    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: var(--green);

    box-shadow: 0 0 0 3px rgba(0,91,53,.08);
}

textarea {
    resize: vertical;
}

/* =========================================================
   CONSENT
   ========================================================= */

.consent {
    margin: 23px 0;

    padding: 17px;

    background: var(--off-white);

    border-radius: 6px;
}

.consent label {
    margin-top: 8px;

    font-weight: 500;
}

.consent label:first-child {
    margin-top: 0;
}

.consent input {
    width: auto;

    margin-right: 6px;
}

.legal-note {
    color: var(--muted);

    text-align: center;

    font-size: 9px;
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 13px;

    margin: 12px 0;

    border-radius: 6px;

    font-size: 12px;
}

.alert.success {
    background: #dcf2e1;

    color: #075c2e;
}

.alert.error {
    background: #fbe1e1;

    color: #8a1d1d;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
    max-width: 950px;

    margin: auto;

    padding: 70px 25px;
}

.faq details {
    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.faq summary {
    color: var(--dark-green);

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.faq p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 12px;
}

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

.contact {
    padding: 55px 7%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    background: var(--green);

    color: #ffffff;
}

.contact h2 {
    color: #ffffff;
}

.contact p {
    margin-bottom: 0;

    color: #dcebe4;
}

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

footer {
    background: var(--deep-green);

    color: #dcebe4;
}

.footergrid {
    padding: 48px 5%;

    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;

    gap: 30px;
}

.footerlogo {
    width: 175px;

    padding: 5px;

    background: #ffffff;

    border-radius: 5px;
}

footer h4 {
    margin: 0 0 11px;

    color: #ffffff;

    font-size: 12px;
}

footer p,
footer a {
    display: block;

    margin: 5px 0;

    color: #cbdcd4;

    font-size: 10px;
}

footer a:hover {
    color: var(--gold-light);
}

.footbottom {
    padding: 16px 5%;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.12);

    font-size: 9px;
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */

.floating-wa {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 200;

    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #25d366;
    color: #ffffff;

    font-size: 25px;

    box-shadow: 0 7px 20px rgba(0,0,0,.2);

    transition: all .2s ease;
}

.floating-wa:hover {
    transform: scale(1.05);
}

/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .nav {
        padding-left: 3%;
        padding-right: 3%;
    }

    .brand img {
        width: 145px;
    }

    .nav nav {
        gap: 17px;

        font-size: 11px;
    }

    .hero-copy {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero h1 {
        font-size: 50px;
    }
}

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {

    .topbar {
        display: none;
    }

    .nav {
        min-height: 76px;

        padding: 0 20px;
    }

    .brand {
        height: 76px;
    }

    .brand img {
        width: 145px;
        max-height: 65px;
    }

    .menu {
        display: block;
    }

    .nav nav {
        display: none;

        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        padding: 20px;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: #ffffff;

        box-shadow: 0 12px 20px rgba(0,0,0,.08);
    }

    .nav nav.open {
        display: flex;
    }

    .nav nav a {
        padding: 12px 5px;

        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        margin-top: 10px;

        text-align: center;
    }

    /* HERO */

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .hero-copy {
        padding: 55px 7% 45px;
    }

    .hero-photo {
        min-height: 420px;
    }

    /* OTHER SECTIONS */

    .split,
    .docs {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .docphoto {
        min-height: 280px;
    }

    .footergrid {
        grid-template-columns: 1fr 1fr;
    }

    .footbottom {
        flex-direction: column;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .nav {
        padding: 0 15px;
    }

    .brand img {
        width: 135px;
    }

    .hero h1 {
        font-size: 39px;

        letter-spacing: -1.5px;
    }

    .hero-copy {
        padding: 45px 20px 38px;
    }

    .hero p {
        font-size: 13px;
    }

    .checks {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .buttons {
        width: 100%;
    }

    .buttons .btn {
        width: 100%;
    }

    .hero-photo {
        min-height: 360px;
    }

    .badge {
        right: 15px;
        bottom: 20px;

        padding: 12px 16px;

        font-size: 10px;
    }

    .badge strong {
        font-size: 14px;
    }

    .split {
        padding: 38px 14px;
    }

    .card {
        padding: 24px 20px;
    }

    .periods {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        gap: 2px;
    }

    .steps div {
        font-size: 8px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .docgrid {
        grid-template-columns: 1fr 1fr;
    }

    .application-card {
        padding: 25px 17px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid .full {
        grid-column: auto;
    }

    .contact {
        flex-direction: column;

        align-items: flex-start;
    }

    .footergrid {
        grid-template-columns: 1fr;
    }

    .floating-wa {
        right: 15px;
        bottom: 15px;

        width: 50px;
        height: 50px;
    }
}
/* =========================================================
   X FINANCE - TEST SITE VISIBILITY SAFETY
   Keep all main website sections visible
   ========================================================= */

.features {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.docs {
    display: grid !important;
    grid-template-columns: 57.5% 42.5% !important;
    width: 100% !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
}

.docs > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.docphoto {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.docphoto img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 390px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.apply {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.faq {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep Documents responsive on smaller screens. */
@media (max-width: 900px) {
    .docs {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .docs > div:first-child {
        width: 100% !important;
    }

    .docphoto {
        width: 100% !important;
        min-height: 280px !important;
        height: 280px !important;
    }

    .docphoto img {
        height: 280px !important;
    }
}


/* =====================================================
   X FINANCE - PROFESSIONAL CORPORATE FOOTER
   ===================================================== */

footer.xf-footer {
    display: block !important;
    width: 100%;
    background: #002d1c !important;
    color: #ffffff !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.xf-footer-main {
    width: 100%;
    padding: 55px 6%;
    background: #002d1c;
}

.xf-footer-grid {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.xf-footer-brand,
.xf-footer-column {
    min-width: 0;
}

.xf-footer-logo {
    display: block !important;
    width: 165px !important;
    max-width: 165px !important;
    height: auto !important;
    max-height: 100px !important;
    object-fit: contain;
    padding: 7px;
    background: #ffffff;
    border-radius: 7px;
    margin-bottom: 18px;
}

.xf-footer-brand h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 12px;
}

.xf-footer-brand p {
    color: #cbdcd4;
    font-size: 12px;
    line-height: 1.8;
    margin: 0 0 12px;
}

.xf-footer-tagline {
    color: #f4c34d !important;
    font-weight: 700;
}

.xf-footer-column h4 {
    color: #f4c34d !important;
    font-size: 13px;
    font-weight: 800;
    margin: 5px 0 20px;
    letter-spacing: .5px;
}

.xf-footer-column p,
.xf-footer-column a {
    display: block;
    color: #dcebe4 !important;
    font-size: 11px;
    line-height: 1.8;
    margin: 0 0 11px;
    overflow-wrap: anywhere;
}

.xf-footer-column a:hover {
    color: #f4c34d !important;
}

.xf-footer-bottom {
    width: 100%;
    padding: 18px 6%;
    background: #001e13;
    border-top: 1px solid rgba(255,255,255,.13);
}

.xf-footer-bottom-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.xf-footer-bottom-inner p {
    color: #b9cec3;
    font-size: 10px;
    margin: 0;
}

/* TABLETS */
@media (max-width: 900px) {
    .xf-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .xf-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* MOBILE PHONES */
@media (max-width: 560px) {
    .xf-footer-main {
        padding: 40px 22px;
    }

    .xf-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .xf-footer-logo {
        width: 150px !important;
        max-width: 150px !important;
    }

    .xf-footer-bottom {
        padding: 18px 22px;
    }
}
