/* public/css/naan-home-portal.css */

:root {
    --nd-navy: #0f2a3f;
    --nd-blue: #149fd3;
    --nd-blue-dark: #0f7399;
    --nd-sky: #33b5e5;
    --nd-soft: #eef7fb;
    --nd-page: #f4f7fa;
    --nd-card: #ffffff;
    --nd-border: #dce7ef;
    --nd-text: #29485d;
    --nd-muted: #647b8c;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--nd-page);
    color: var(--nd-text);
}

.nd-home-page {
    padding-top: 0;
    overflow: hidden;
    background: var(--nd-page);
}

.nd-home-page a:focus,
.nd-home-page button:focus {
    outline: 3px solid rgba(51, 181, 229, 0.45);
    outline-offset: 3px;
}

.nd-home-hero {
    position: relative;
    padding: 82px 0 64px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(51, 181, 229, 0.28), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(20, 159, 211, 0.22), transparent 34%),
        linear-gradient(135deg, #0f2a3f 0%, #173f58 56%, #0f7399 100%);
}

.nd-home-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 390px;
    height: 390px;
    border: 52px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.nd-home-eyebrow,
.nd-section-kicker {
    margin: 0 0 12px;
    color: #78d8f7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nd-home-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto 22px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.nd-home-hero-lead {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto 16px;
    color: #f4fbfe;
    font-size: 20px;
    line-height: 1.7;
}

.nd-home-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 790px;
    margin: 0 auto;
    color: #cce3ee;
    font-size: 16px;
    line-height: 1.75;
}

.nd-home-actions {
    position: relative;
    z-index: 1;
    margin: 30px 0 0;
}

.nd-home-actions .btn {
    margin: 5px;
}

.nd-btn-primary,
.nd-btn-secondary,
.nd-btn-light {
    min-width: 148px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        border 0.18s ease;
}

.nd-btn-primary {
    color: #ffffff;
    border: 1px solid var(--nd-blue);
    background: var(--nd-blue);
    box-shadow: 0 10px 24px rgba(20, 159, 211, 0.24);
}

.nd-btn-primary:hover,
.nd-btn-primary:focus {
    color: #ffffff;
    border-color: var(--nd-blue-dark);
    background: var(--nd-blue-dark);
    transform: translateY(-1px);
}

.nd-btn-secondary {
    color: var(--nd-navy);
    border: 1px solid #78d8f7;
    background: #ffffff;
}

.nd-btn-secondary:hover,
.nd-btn-secondary:focus {
    color: #ffffff;
    border-color: var(--nd-blue);
    background: var(--nd-blue);
    transform: translateY(-1px);
}

.nd-btn-light {
    color: var(--nd-navy);
    border: 1px solid var(--nd-border);
    background: #ffffff;
}

.nd-btn-light:hover,
.nd-btn-light:focus {
    color: var(--nd-blue-dark);
    border-color: #a8dced;
    background: #eef9fd;
    transform: translateY(-1px);
}

.nd-home-pills {
    position: relative;
    z-index: 1;
    margin: 26px auto 0;
}

.nd-home-pills span {
    display: inline-block;
    margin: 5px 3px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #eaf8fd;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
}

.nd-home-trust {
    position: relative;
    z-index: 3;
    margin-top: -20px;
}

.nd-home-trust .container {
    padding: 20px 18px;
    border: 1px solid var(--nd-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 42, 63, 0.11);
}

.nd-trust-item {
    min-height: 58px;
    padding: 4px 14px;
    border-right: 1px solid #e4edf3;
    text-align: center;
}

.nd-home-trust [class*="col-"]:last-child .nd-trust-item {
    border-right: 0;
}

.nd-trust-item strong {
    display: block;
    color: var(--nd-navy);
    font-size: 14px;
}

.nd-trust-item span {
    display: block;
    margin-top: 4px;
    color: var(--nd-muted);
    font-size: 12px;
    line-height: 1.4;
}

.nd-home-section {
    padding: 78px 0;
}

.nd-home-section-soft {
    background: var(--nd-soft);
}

.nd-section-heading {
    max-width: 790px;
    margin: 0 auto 38px;
}

.nd-section-heading .nd-section-kicker,
.nd-content-panel .nd-section-kicker {
    color: var(--nd-blue-dark);
}

.nd-section-heading h2,
.nd-content-panel h2,
.nd-home-final h2 {
    margin: 0 0 14px;
    color: var(--nd-navy);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.nd-section-heading p,
.nd-content-panel p,
.nd-home-final p {
    color: var(--nd-muted);
    font-size: 16px;
    line-height: 1.75;
}

.nd-card-row,
.nd-step-row,
.nd-showcase-row {
    display: flex;
    flex-wrap: wrap;
}

.nd-card-row > [class*="col-"],
.nd-step-row > [class*="col-"],
.nd-showcase-row > [class*="col-"] {
    display: flex;
}

.nd-service-card,
.nd-step-card,
.nd-mini-card,
.nd-showcase-card,
.nd-content-panel {
    width: 100%;
    border: 1px solid var(--nd-border);
    border-radius: 18px;
    background: var(--nd-card);
    box-shadow: 0 10px 26px rgba(15, 42, 63, 0.07);
}

.nd-service-card {
    display: flex;
    flex-direction: column;
    min-height: 315px;
    margin-bottom: 24px;
    padding: 28px 24px 24px;
}

.nd-service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--nd-blue), var(--nd-blue-dark));
    font-size: 26px;
    line-height: 54px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(20, 159, 211, 0.2);
}

.nd-service-card h3,
.nd-step-card h3,
.nd-mini-card h3 {
    margin: 0 0 12px;
    color: var(--nd-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

.nd-service-card p,
.nd-step-card p,
.nd-mini-card p {
    color: var(--nd-muted);
    line-height: 1.7;
}

.nd-service-card > a {
    display: inline-block;
    position: static;
    margin-top: auto;
    padding-top: 16px;
    color: var(--nd-blue-dark);
    font-weight: 800;
    line-height: 1.35;
}

.nd-service-card > a:hover,
.nd-service-card > a:focus,
.nd-text-link:hover,
.nd-text-link:focus {
    color: var(--nd-navy);
}

.nd-step-card {
    min-height: 255px;
    margin-bottom: 24px;
    padding: 26px 22px;
}

.nd-step-number {
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--nd-blue);
    font-size: 18px;
    font-weight: 800;
    line-height: 42px;
    text-align: center;
}

.nd-section-action {
    margin-top: 18px;
}

.nd-section-action .btn {
    margin: 5px;
}

.nd-production-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.nd-content-panel {
    height: 100%;
    padding: 34px;
}

.nd-text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--nd-blue-dark);
    font-weight: 800;
}

.nd-mini-card-row {
    display: flex;
    flex-wrap: wrap;
}

.nd-mini-card-row > [class*="col-"] {
    display: flex;
}

.nd-mini-card {
    min-height: 185px;
    margin-bottom: 24px;
    padding: 24px;
}

.nd-home-showcase {
    background: #ffffff;
}

.nd-showcase-card {
    overflow: hidden;
    margin: 0 0 24px;
    background: #ffffff;
}

.nd-showcase-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f7fafc;
}

.nd-faq-group {
    margin-bottom: 0;
}

.nd-faq-panel {
    overflow: hidden;
    margin-bottom: 14px !important;
    border: 1px solid var(--nd-border);
    border-radius: 14px !important;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(15, 42, 63, 0.055);
}

.nd-faq-panel .panel-heading {
    padding: 0;
    background: #ffffff;
}

.nd-faq-panel .panel-title {
    font-size: 16px;
    font-weight: 800;
}

.nd-faq-panel .panel-title a {
    position: relative;
    display: block;
    padding: 19px 52px 19px 20px;
    color: var(--nd-navy);
    text-decoration: none;
}

.nd-faq-panel .panel-title a::after {
    content: "+";
    position: absolute;
    top: 13px;
    right: 20px;
    color: var(--nd-blue);
    font-size: 26px;
    font-weight: 500;
}

.nd-faq-panel .panel-title a[aria-expanded="true"]::after {
    content: "×";
}

.nd-faq-panel .panel-body {
    border-top: 1px solid #e7eff4 !important;
    color: var(--nd-muted);
    line-height: 1.75;
}

.nd-faq-panel .panel-body p {
    margin: 0;
}

.nd-home-final {
    padding: 70px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 30%, rgba(51, 181, 229, 0.22), transparent 38%),
        linear-gradient(135deg, #0f2a3f, #0f7399);
}

.nd-home-final h2 {
    color: #ffffff;
}

.nd-home-final p {
    max-width: 720px;
    margin: 0 auto;
    color: #dceaf2;
}

.nd-home-final .nd-btn-light {
    border-color: rgba(255, 255, 255, 0.55);
}

.nd-floating-account-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: inline-flex;
    min-height: 48px;
    padding: 13px 22px;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff !important;
    background: #149fd3;
    box-shadow: 0 12px 28px rgba(15, 42, 63, 0.3);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.nd-floating-account-cta:hover,
.nd-floating-account-cta:focus {
    color: #ffffff !important;
    background: #0f7399;
    box-shadow: 0 15px 32px rgba(15, 42, 63, 0.36);
    transform: translateY(-2px);
    text-decoration: none !important;
}

@media (max-width: 991px) {
    .nd-home-hero h1 {
        font-size: 40px;
    }

    .nd-home-section {
        padding: 62px 0;
    }

    .nd-production-row {
        display: block;
    }

    .nd-content-panel {
        height: auto;
        margin-bottom: 24px;
    }

    .nd-showcase-card img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .nd-home-page {
        padding-top: 0;
    }

    .nd-home-hero {
        padding: 58px 0 46px;
    }

    .nd-home-hero h1 {
        font-size: 32px;
    }

    .nd-home-hero-lead {
        font-size: 18px;
    }

    .nd-home-trust {
        margin-top: 0;
        background: #ffffff;
    }

    .nd-home-trust .container {
        border-radius: 0;
        box-shadow: none;
    }

    .nd-trust-item {
        margin: 7px 0;
        border-right: 0;
    }

    .nd-home-section {
        padding: 52px 0;
    }

    .nd-section-heading h2,
    .nd-content-panel h2,
    .nd-home-final h2 {
        font-size: 29px;
    }

    .nd-card-row,
    .nd-step-row,
    .nd-showcase-row {
        display: block;
    }

    .nd-card-row > [class*="col-"],
    .nd-step-row > [class*="col-"],
    .nd-showcase-row > [class*="col-"] {
        display: block;
    }

    .nd-service-card,
    .nd-step-card {
        min-height: 0;
    }

    .nd-service-card > a {
        margin-top: 14px;
        padding-top: 0;
    }

    .nd-mini-card-row {
        display: block;
    }

    .nd-mini-card-row > [class*="col-"] {
        display: block;
    }

    .nd-mini-card {
        min-height: 0;
    }

    .nd-showcase-card img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .nd-floating-account-cta {
        right: 14px;
        bottom: 14px;
        min-height: 44px;
        padding: 11px 17px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nd-home-hero h1 {
        font-size: 28px;
    }

    .nd-home-actions .btn,
    .nd-section-action .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .nd-showcase-card img {
        height: 145px;
    }
}
