/* =========================================================
   CAPITAL EDGE FINANCE GROUP
   ========================================================= */

:root {
    --blue: #082797;
    --blue-dark: #051b68;
    --blue-deep: #03144f;
    --green-light: #f1f8df;
    --blue-light: #eaf0ff;
    --black: #101828;
    --background: #ffffff;

    --green: #8fcc1a;
    --green-dark: #71a900;

    --text: #101828;
    --muted: #667085;

    --white: #ffffff;
    --off-white: #f7f9fc;

    --border: #e5e9f0;

    --container: 1240px;

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;

    --shadow-sm:
        0 4px 20px rgba(8, 39, 151, 0.06);

    --shadow-md:
        0 15px 45px rgba(8, 39, 151, 0.10);

    --transition:
        0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--white);

    color: var(--text);

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    color: var(--text);

    font-weight: 600;

    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(48px, 6vw, 82px);
    line-height: .98;
}

h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
}

h3 {
    font-size: 25px;
    line-height: 1.15;
}

p {
    margin-top: 0;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.section-padding {
    padding: 30px 0;
}

.eyebrow {
    display: inline-block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    color: var(--green);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;

    color: var(--blue);
}

.section-label span {
    color: var(--green);
}

.section-label.light {
    color: rgba(255,255,255,.7);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    min-height: 50px;

    padding: 0 25px;
    border: 1px solid transparent;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    
    cursor: pointer;

     transition:
            transform var(--transition),
            background var(--transition),
            border-color var(--transition),
        color var(--transition);
}

.btn span {
    font-size: 18px;
}

.btn-primary {
    color: var(--white);
    background: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
}

.btn-green {
    color: #071400;
    background: var(--green);
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(143,204,26,.25);
}

.btn-outline {
    color: var(--white);
    border: 1px solid rgba(255,255,255,.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue);
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background: #ffffff;
    border-bottom: 1px solid rgba(8, 39, 151, 0.08);
    
    box-shadow: 0 2px 18px rgba(8, 39, 151, 0.04);
}


/* Header after scrolling */

.site-header.scrolled {
    background: rgba(255, 255, 255, .98);

    border-color: var(--border);

    box-shadow:
        0 8px 30px rgba(8, 39, 151, .06);
}


.header-inner {
    width: min(1240px, calc(100% - 48px));
    height: 88px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 40px;
}


.site-header.scrolled .header-inner {
    height: 72px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.site-logo img {
    display: block;

    width: auto;

    max-width: 205px;

    max-height: 54px;

    object-fit: contain;
}

.site-header.scrolled .site-logo img {
    max-height: 47px;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.desktop-navigation {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: auto;
}

.desktop-navigation > a,
.navigation-dropdown-trigger {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 0;

    border: 0;

    background: transparent;

    color: #28344c;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: .01em;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color .2s ease;
}

.desktop-navigation > a:hover,
.navigation-dropdown-trigger:hover,
.desktop-navigation > a.active,
.navigation-dropdown.active
.navigation-dropdown-trigger {
    color: var(--blue);
}


/* Active underline */

.desktop-navigation > a::after,
.navigation-dropdown-trigger::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--green);

    transition: width .2s ease;
}

.desktop-navigation > a:hover::after,
.desktop-navigation > a.active::after,
.navigation-dropdown:hover
.navigation-dropdown-trigger::after {
    width: 100%;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.navigation-dropdown {
    position: relative;
}


.navigation-dropdown-trigger svg {
    transition:
        transform .2s ease;
}

.navigation-dropdown:hover
.navigation-dropdown-trigger svg {
    transform: rotate(180deg);
}


.navigation-dropdown-menu {
    position: absolute;

    top: calc(100% + 20px);

    left: 50%;

    width: 330px;

    padding: 10px;

    background: var(--white);

    border: 1px solid var(--border);

    box-shadow:
        0 20px 55px rgba(8, 39, 151, .13);

    opacity: 0;

    visibility: hidden;

    transform:
        translate(-50%, 8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


.navigation-dropdown-menu::before {
    content: "";

    position: absolute;

    top: -6px;
    left: 50%;

    width: 12px;
    height: 12px;

    background: #fff;

    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);

    transform: translateX(-50%) rotate(45deg);
}


.navigation-dropdown:hover
.navigation-dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* Dropdown item */

.navigation-dropdown-menu > a {
    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 12px;

    padding: 16px 14px;

    transition:
        background .2s ease;
}

.navigation-dropdown-menu > a:hover {
    background: #f5f7fb;
}


.dropdown-number {
    padding-top: 2px;

    color: var(--green);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .08em;
}


.dropdown-content {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.dropdown-content strong {
    color: var(--text);

    font-size: 13px;

    font-weight: 600;
}


.dropdown-content small {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* Dropdown footer */

.dropdown-footer {
    margin-top: 5px;

    padding: 14px;

    border-top: 1px solid var(--border);
}

.dropdown-footer a {
    color: var(--blue);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .08em;
}


/* =========================================================
   HEADER CTA
   ========================================================= */

.header-action {
    flex-shrink: 0;
}


.header-cta {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    min-height: 44px;

    padding: 0 20px;

    background: var(--green);

    color: #0b1800;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .08em;

    transition:
        background .2s ease,
        transform .2s ease;
}

.header-cta span {
    font-size: 16px;

    line-height: 1;

    transition:
        transform .2s ease;
}

.header-cta:hover {
    background: var(--green-dark);

    transform: translateY(-1px);
}

.header-cta:hover span {
    transform: translateX(3px);
}


/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.mobile-menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    margin: 5px auto;

    background: var(--blue);

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* Open hamburger */

.mobile-menu-toggle.open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
}

.mobile-navigation {
    display: flex;
    flex-direction: column;
}

.mobile-navigation > a {
    padding: 15px 0;

    border-bottom: 1px solid var(--border);

    color: #28344c;

    font-size: 15px;
    font-weight: 600;
}

.mobile-solutions-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--border);

    background: transparent;

    color: #28344c;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

.mobile-plus {
    font-size: 20px;
    font-weight: 400;
    color: var(--blue);

    transition: transform .2s ease;
}

.mobile-solutions-trigger.open .mobile-plus {
    transform: rotate(45deg);
}

.mobile-solutions {
    max-height: 0;

    overflow: hidden;

    background: #f5f7fb;

    transition: max-height .3s ease;
}

.mobile-solutions.open {
    max-height: 400px;
}

.mobile-solutions a {
    display: block;

    padding: 12px 15px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 600;

    border-bottom: 1px solid var(--border);
}

.mobile-solutions a:last-child {
    border-bottom: 0;
    color: var(--green);
}

.mobile-menu-bottom {
    display: flex;
    flex-direction: column;

    gap: 15px;

    margin-top: 25px;
    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.mobile-menu-bottom > span {
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.mobile-menu-bottom .btn {
    width: 100%;
}


/* =========================================================
   PREMIUM HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(3, 16, 58, .98) 0%,
            rgba(8,39,151,.94) 36%,
            rgba(8,39,151,.72) 61%,
            rgba(8,39,151,.25) 100%
        ),
        url("../images/hero/hero.jpg")
        center / cover no-repeat;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: -180px;

    border-radius: 50%;

    border: 1px solid rgba(143,204,26,.25);

    box-shadow:
        0 0 0 70px rgba(143,204,26,.025),
        0 0 0 140px rgba(143,204,26,.02);
}

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 180px;

    background:
        linear-gradient(
            to top,
            rgba(4,20,65,.55),
            transparent
        );
}

.hero-container {
    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns: 1.1fr .7fr;

    gap: 90px;

    align-items: center;

    padding-top: 55px;
}

.hero-content {
    max-width: 680px;
}

.hero .eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

    letter-spacing: 2.5px;

    color: rgba(255,255,255,.8);
}

.hero .eyebrow::before {
    content: "";

    width: 35px;
    height: 1px;

    background: var(--green);
}

.hero h1 {
    margin-top: 27px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(54px, 6vw, 80px);

    line-height: .98;

    letter-spacing: -3.5px;

    font-weight: 600;

    color: var(--white);
}

.hero h1 span {
    display: block;

    color: var(--green);

    font-weight: 700;
}

.hero-description {
    max-width: 530px;

    margin-top: 27px;

    color: rgba(255,255,255,.72);

    font-size: 15px;

    line-height: 1.8;
}

.hero-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 32px;
}

.hero-actions .btn {
    min-width: 165px;
    font-size: 14px;
}

.hero-trust {
    display: flex;

    align-items: center;

    gap: 17px;

    margin-top: 55px;
}

.trust-item strong {
    font-size: 12px;
    font-weight: 700;

    color: var(--green);
}

.trust-item span {
    font-size: 10px;

    color: rgba(255,255,255,.55);

    text-transform: uppercase;

    letter-spacing: 1px;
}

.trust-line {
    width: 35px;
    height: 1px;

    background: rgba(255,255,255,.2);
}


/* HERO FINANCE PANEL */

.hero-card {
    position: relative;

    padding: 32px;

    background: rgba(255,255,255,.98);

    border-top: 3px solid var(--green);

    box-shadow:
        0 25px 70px rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
}

.hero-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 90px;
    height: 90px;

    background:
        linear-gradient(
            135deg,
            transparent 50%,
            rgba(143,204,26,.12) 50%
        );
}

.hero-card-top {
    position: relative;

    margin-bottom: 8px;
}

.hero-card-top span {
    font-size: 12px;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: 1px;
}

.hero-card-top strong {
    display: block;

    margin-top: 5px;

    font-family: "Manrope", sans-serif;

    font-size: 23px;

    line-height: 1.2;

    color: var(--blue);
}

.finance-options a {
    display: grid;

    grid-template-columns: 46px 1fr 15px;

    align-items: center;

    gap: 15px;

    padding: 17px 0;

    border-bottom: 1px solid var(--border);

    transition: .3s ease;
}

.finance-options a:hover {
    padding-left: 6px;
}

.option-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-light);

    color: var(--blue);

    border: 1px solid rgba(143,204,26,.25);
}

.finance-options strong {
    display: block;

    font-family: "Manrope", sans-serif;

    color: var(--black);

    font-size: 13px;
}

.finance-options span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}

.finance-options b {
    color: var(--green);

    transition: transform .3s ease;
}

.finance-options a:hover b {
    transform: translateX(4px);
}


/* =========================================================
   INTRO
   ========================================================= */
.intro-section {
    background: #fff;
}
.intro-grid {
    display: grid;

    grid-template-columns: 220px minmax(0, 850px);

    gap: 80px;
}

.intro-content {
    max-width: 850px;
}

.intro-content h2 {
    max-width: 850px;

    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1.05;
}
.section-heading h2,
.why-grid h2,
.calculator-grid h2,
.final-cta h2 {
    font-family: "Manrope", sans-serif;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.08;

    letter-spacing: -2.5px;

    color: var(--blue);
}

.intro-content h2 span,
.section-heading h2 span,
.why-grid h2 span,
.calculator-grid h2 span,
.final-cta h2 span {
    color: var(--green);
}

.intro-content p {
    max-width: 690px;

    margin-top: 23px;

    color: #667085;

    font-size: 15px;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;

    margin-top: 27px;
    transition:
            color .25s ease,
        gap .25s ease;

    color: var(--blue);

    font-size: 13px;
    font-weight: 700;

    border-bottom: 1px solid var(--green);

    padding-bottom: 7px;
}
.text-link:hover {
    gap: 20px;
    color: var(--blue-dark);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    background: #f7f9fc;

    overflow: hidden;
}

.section-heading {
    max-width: 760px;

    margin-bottom: 48px;
}

.section-heading h2 {
    margin-top: 16px;
}

.section-heading p {
    max-width: 560px;
    
    margin-top: 17px;
    
    line-height: 1.75;

    color: var(--muted);
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

.section-heading.centered .section-label {
    justify-content: center;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.service-card {
    position: relative;

    min-height: 370px;
     border-radius: 2px;
    
        transition:
            transform .35s ease,
            box-shadow .35s ease;

    overflow: hidden;

     isolation: isolate;
    
    background: var(--blue);
}

.service-large {
    grid-row: span 2;
    min-height: 570px;
}

.service-wide {
    grid-column: span 1;
}

.service-image {
    position: absolute;

    inset: 0;

    background-position: center;
    background-size: cover;
   

    transition:
        transform .9s cubic-bezier(.2,.7,.2,1);
}

.service-home {
    background-image: url("../images/services/home.jpg");
}

.service-business {
    background-image: url("../images/services/business.jpg");
}

.service-asset {
    background-image: url("../images/services/asset.jpg");
}

.service-personal {
    background-image: url("../images/services/personal.jpg");
}

.service-card:hover .service-image {
    transform: scale(1.045);
}

.service-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(2,10,38,.94) 0%,
	    rgba(3,20,65,.48) 45%,
            rgba(8,39,151,.05) 100%
        );
}

.service-content {
    position: absolute;

    left: 32px;
    right: 32px;
    bottom: 32px;

    z-index: 2;
}

.service-number {
    color: var(--green);

    font-size: 10px;
    font-weight: 700;
}

.service-content h3 {
    margin-top: 9px;

    font-family: "Manrope", sans-serif;

    font-size: 28px;
}

.service-content p {
    max-width: 390px;

    margin-top: 9px;

    color: rgba(255,255,255,.72);

    font-size: 12px;
    line-height: 1.7;
}

.service-link {
    color: var(--green);
    display: inline-flex;
    
    margin-top: 7px;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   WHY
   ========================================================= */

.why-section {
    background:
        linear-gradient(
            135deg,
            #082797 0%,
            #061f78 55%,
            #051b68 100%
        );
}

.why-grid {
    display: grid;

    grid-template-columns: .85fr 1.15fr;

    gap: 90px;
}

.why-grid h2 {
    max-width: 550px;
    
    font-size: clamp(40px, 4vw, 56px);
    color: var(--white);
}

.why-grid > div:first-child p {
    margin: 30px 0;

    max-width: 470px;

    color: rgba(255,255,255,.7);
}

.benefits {
    border-top: 1px solid rgba(255,255,255,.2);
}

.benefit {
    display: grid;

    grid-template-columns: 60px 1fr;

    gap: 10px;

    padding: 15px 0;

    border-bottom: 1px solid rgba(255,255,255,.2);
}

.benefit-number {
    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}

.benefit h3 {
    font-family: "Manrope", sans-serif;
    color: var(--green);
    font-size: 18px;
}

.benefit p {
    margin-top: 7px;

    color: rgba(255,255,255,.6);

    font-size: 12px;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-grid {
    display: grid;

    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;

    align-items: center;

    gap: 20px;
}

.process-item {
    text-align: center;
}

.process-item > span {
    color: var(--green);

    font-size: 11px;
    font-weight: 700;
}

.process-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 13px auto;

    border: 1px solid var(--border);

    color: var(--blue);

    font-size: 22px;
}

.process-item h3 {
    color: var(--blue);

    font-family: "Manrope", sans-serif;

    font-size: 17px;
}

.process-item p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 12px;
}

.process-arrow {
    color: var(--green);

    font-size: 21px;
}


/* =========================================================
   CALCULATOR
   ========================================================= */

.calculator-section {
    padding: 25px 0;

    background:
            linear-gradient(
                135deg,
                #f3f9df 0%,
                #eef7d5 100%
        );
}

.calculator-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 85px;
}

.calculator-grid h2 {
    margin-top: 20px;
}

.calculator-grid p {
    max-width: 550px;

    margin: 25px 0;

    color: var(--muted);
}

.calculator-preview {
    padding: 20px;

    background: var(--white);

    box-shadow: 0 25px 65px rgba(8,39,151,.10);

    transform: rotate(1.2deg);
}

.calculator-window {
    border: 1px solid var(--border);
}

.calculator-top {
    display: flex;
    gap: 5px;

    padding: 12px;

    background: var(--background);
}

.calculator-top span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--border);
}

.calculator-body {
    padding: 32px;
}

.calculator-body > small {
    color: var(--muted);

    font-size: 9px;

    letter-spacing: 1px;
}

.calculator-body > strong {
    display: block;

    margin-top: 10px;

    color: var(--blue);

    font-family: "Manrope", sans-serif;

    font-size: 38px;
}

.calculator-bar {
    height: 6px;

    margin: 22px 0;

    background: var(--blue-light);
}

.calculator-bar span {
    display: block;

    width: 68%;
    height: 100%;

    background: var(--green);
}

.calculator-details {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 20px;
}

.calculator-details small {
    display: block;

    color: var(--muted);

    font-size: 9px;
}

.calculator-details strong {
    display: block;

    margin-top: 5px;

    color: var(--black);

    font-size: 12px;
}


/* =========================================================
   TESTIMONIAL
   ========================================================= */

.testimonial-layout {
    display: grid;

     grid-template-columns: 220px minmax(0, 850px);

    gap: 80px;
}

.testimonial-content {
    max-width: 850px;
}

.quote-mark {
    color: var(--green);

    font-family: Georgia, serif;

    font-size: 70px;

    line-height: .6;
}

blockquote {
    max-width: 800px;
    color: var(--blue);

    font-family: "Manrope", sans-serif;

    font-size: clamp(27px, 3vw, 40px);

    line-height: 1.28;

    letter-spacing: -1.2px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;

    margin-top: 30px;
}

.testimonial-author strong {
    color: var(--blue);

    font-size: 13px;
}

.testimonial-author span {
    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
    padding: 30px 0;

    background:
            linear-gradient(
                135deg,
                #051b68,
                #03144f
        );

    color: var(--white);
}

.final-cta-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 70px;
}

.final-cta h2 {
    max-width: 700px;
    
    font-size: clamp(42px, 4.5vw, 60px);
}

.final-cta h2 span {
    display: block;
}
.final-cta .btn {
    min-width: 190px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 30px 0 15px;

    background: #041441;

    color: var(--white);
}

.footer-main {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 60px;

    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-brand p {
    color: rgba(255,255,255,.55);

    font-size: 13px;
}

.footer-link {
    display: inline-block;

    margin-top: 25px;

    color: var(--green);

    font-size: 14px;
    font-weight: 700;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.footer-column h4 {
    margin-bottom: 10px;

    color: var(--green);

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.footer-column a,
.footer-column p {
    color: rgba(255,255,255,.6);

    font-size: 12px;

    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--green);
}

.social-links {
    display: flex;

    gap: 8px;

    margin-top: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.15);

    color: var(--white);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding-top: 25px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255,255,255,.4);

    font-size: 10px;
}

.footer-bottom div {
    display: flex;
    gap: 25px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .header-inner {
        gap: 20px;
    }

    .desktop-navigation {
        gap: 18px;
    }

    .hero-container {
        gap: 50px;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;

        gap: 45px;
    }

    .process-arrow {
        display: none;
    }

}


@media (max-width: 900px) {

    .container {
        width: min(
            calc(100% - 40px),
            var(--container)
        );
    }


    /* Switch header to mobile nav */

    .desktop-navigation,
    .header-action {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        height: 72px;
    }

    .site-header.scrolled .header-inner {
        height: 64px;
    }


    .mobile-menu {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        max-height: calc(100vh - 72px);
        overflow-y: auto;

        display: block;

        padding: 20px;

        background: var(--white);

        color: var(--blue);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition: var(--transition);

        box-shadow: 0 20px 40px rgba(8,39,151,.12);
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .mobile-menu > a,
    .mobile-menu-group > a,
    .mobile-menu-group > span {
        padding: 13px 0;

        font-size: 14px;
    }

    
    .hero {
        min-height: auto;

        padding: 160px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 650px;
    }

    .intro-grid,
    .why-grid,
    .testimonial-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-large {
        grid-row: auto;
        min-height: 550px;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .section-padding {
        padding: 80px 0;
    }


    .mobile-menu {
        max-height: calc(100vh - 64px);
    }

    .hero {
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        margin-top: 40px;
    }

    .hero-card {
        padding: 25px;
    }

    .services-grid {
        gap: 15px;
    }

    .service-card,
    .service-large {
        min-height: 420px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .calculator-preview {
        transform: none;
    }

    .calculator-details {
        grid-template-columns: 1fr;
    }

    .final-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-bottom div {
        flex-direction: column;
        gap: 10px;
    }

}


/* =========================================================
   RESOURCES
   ========================================================= */

.resources-hero {
    min-height: 520px;
}

.resources-intro {
    margin-bottom: 70px;
}

.resources-intro p {
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.8;
}


/* Featured resource */

.featured-resource {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-height: 420px;

    padding: 50px;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            var(--blue),
            #041a63
        );

    color: #fff;
}

.featured-resource-content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.resource-category {
    color: var(--green);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.featured-resource h2 {
    margin: 18px 0;

    font-size: clamp(40px, 4vw, 58px);
    line-height: 1;
}

.featured-resource h2 span {
    color: var(--green);
}

.featured-resource p {
    max-width: 580px;

    margin-bottom: 25px;

    color: rgba(255,255,255,.65);

    line-height: 1.7;
}

.featured-resource-number {
    position: absolute;

    right: 40px;
    bottom: -40px;

    color: rgba(255,255,255,.04);

    font-size: 250px;
    font-weight: 700;

    line-height: 1;
}


/* Resource listing */

.resources-list {
    padding: 110px 0;

    background: #f5f7fb;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 60px;
}

.resource-card {
    display: grid;
    grid-template-columns: 40px 1fr;

    gap: 20px;

    padding: 35px;

    min-height: 280px;

    background: #fff;

    border: 1px solid var(--border);

    color: var(--text);

    transition: .25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);

    border-color: var(--green);
}

.resource-card > span {
    color: var(--green);

    font-size: 11px;
    font-weight: 700;
}

.resource-card small {
    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.resource-card h3 {
    margin: 12px 0;

    font-size: 23px;
}

.resource-card p {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}

.resource-card strong {
    grid-column: 2;

    align-self: end;

    color: var(--blue);

    font-size: 10px;

    letter-spacing: 1px;
}

.resource-contact-card {
    background: var(--blue);
    color: #fff;
}

.resource-contact-card p {
    color: rgba(255,255,255,.6);
}

.resource-contact-card strong {
    color: var(--green);
}


/* =========================================================
   ARTICLES
   ========================================================= */

.article-hero {
    padding: 150px 0 100px;

    background: var(--blue);

    color: #fff;
}

.article-hero h1 {
    max-width: 800px;

    margin-top: 20px;

    font-size: clamp(48px, 6vw, 82px);
    line-height: .95;
}

.article-hero h1 span {
    display: block;
    color: var(--green);
}

.article-hero p {
    max-width: 650px;

    margin-top: 25px;

    color: rgba(255,255,255,.65);

    line-height: 1.8;
}

.article-section {
    padding: 100px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 100px;

    max-width: 1100px;
}

.article-content {
    max-width: 720px;
}

.article-lead {
    margin-bottom: 50px;

    color: var(--text);

    font-size: 19px;
    line-height: 1.8;
}

.article-content h2 {
    margin: 45px 0 15px;

    font-size: 30px;
}

.article-content p {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}

.article-callout {
    margin-top: 60px;
    padding: 35px;

    background: #f5f7fb;

    border-left: 4px solid var(--green);
}

.article-callout strong {
    font-size: 20px;
}

.article-callout p {
    margin: 12px 0 20px;
}


/* Article sidebar */

.article-sidebar {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.article-sidebar > div {
    padding: 30px;

    background: var(--blue);

    color: #fff;
}

.article-sidebar > div:nth-child(2) {
    background: #f5f7fb;

    color: var(--text);
}

.article-sidebar span {
    color: var(--green);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.article-sidebar h3 {
    margin: 15px 0 25px;

    font-size: 22px;
}

.article-sidebar a {
    color: var(--green);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
    padding: 110px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;

    padding: 25px 0;

    border: 0;
    background: transparent;

    color: var(--text);

    font-family: inherit;
    font-size: 17px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

.faq-question strong {
    color: var(--green);

    font-size: 24px;

    font-weight: 400;

    transition: .2s ease;
}

.faq-item.open .faq-question strong {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition: .3s ease;
}

.faq-answer p {
    overflow: hidden;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
    padding-bottom: 25px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-hero {
    min-height: 520px;
}

.contact-section {
    padding: 110px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;

    gap: 100px;
}

.contact-details h2 {
    margin-top: 20px;

    font-size: clamp(42px, 4vw, 60px);
    line-height: 1;
}

.contact-details h2 span {
    display: block;

    color: var(--blue);
}

.contact-details > p {
    max-width: 500px;

    margin: 25px 0 50px;

    color: var(--muted);

    line-height: 1.8;
}

.contact-detail-item {
    padding: 20px 0;

    border-top: 1px solid var(--border);
}

.contact-detail-item span {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.contact-detail-item a,
.contact-detail-item p {
    color: var(--text);

    font-size: 15px;
}

.contact-social {
    margin-top: 25px;
}

.contact-social a {
    color: var(--blue);

    font-size: 11px;
    font-weight: 700;
}


/* Form */

.contact-form-wrapper {
    padding: 45px;

    background: #f5f7fb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.contact-form .form-field {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #dfe4ec;

    background: #fff;

    color: var(--text);

    outline: none;

    font-family: inherit;
    font-size: 13px;

    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 20px 0 25px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
}

.form-checkbox input {
    width: auto;
    margin-top: 2px;
}

.contact-submit {
    width: 100%;
}


/* Form messages */

.form-message {
    margin-bottom: 25px;
    padding: 15px 20px;

    font-size: 12px;
    line-height: 1.6;
}

.form-message.success {
    background: #eef8e2;
    border-left: 3px solid var(--green);
}

.form-message.error {
    background: #fff0f0;
    border-left: 3px solid #c33;
}


/* Contact bottom */

.contact-bottom {
    padding: 80px 0;

    background: var(--blue);
    color: #fff;
}

.contact-bottom > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 50px;
}

.contact-bottom h2 {
    margin-top: 15px;

    font-size: clamp(40px, 4vw, 58px);
    line-height: 1;
}

.contact-bottom h2 span {
    display: block;
    color: var(--green);
}


/* Responsive */

@media (max-width: 850px) {

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

}


@media (max-width: 600px) {

    .featured-resource {
        min-height: 480px;

        padding: 30px;
    }

    .featured-resource-number {
        display: none;
    }

    .resource-card {
        min-height: 250px;
        padding: 25px;
    }

    .article-hero {
        padding: 110px 0 70px;
    }

    .article-section,
    .faq-section,
    .contact-section {
        padding: 70px 0;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-bottom > .container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Prevent iOS Safari auto-zoom on form focus */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }

}

