/********** SPICA Financial Group Theme **********/
:root {
    --primary: #0A1F3F;
    --secondary: #1B4F8A;
    --accent: #2E75B6;
    --light-blue: #D5E8F0;
    --light-grey: #F5F5F5;
    --light: #FFFFFF;
    --dark: #0A1F3F;
    --tertiary: #2D2D2D;
    --gold: #C9A84C;
    --surface: #ECF3F8;
    --shadow: 0 18px 48px rgba(10, 31, 63, 0.11);
}

body {
    font-family: "Source Sans 3", sans-serif;
    color: var(--tertiary);
    background-color: var(--light);
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: "Playfair Display", serif;
    color: var(--dark);
    letter-spacing: 0.015em;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.rounded-12,
.rounded-16,
.rounded-20 {
    overflow: hidden;
}

img.rounded-12,
img.rounded-16,
img.rounded-20,
.card-subsidiary img,
.card-brand img {
    transition: transform 0.35s ease;
}

.rounded-12:hover,
.rounded-16:hover,
.rounded-20:hover,
.card-subsidiary:hover img,
.card-brand:hover img {
    transform: scale(1.03);
}

.text-primary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--secondary) !important;
}

.border-primary {
    border-color: var(--secondary) !important;
}

.section-label {
    display: inline-block;
    border: 1px solid rgba(10, 31, 63, 0.2);
    color: var(--secondary);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-soft {
    background: linear-gradient(180deg, var(--light) 0%, var(--surface) 100%);
}

.bg-trust {
    background: linear-gradient(140deg, rgba(10, 31, 63, 0.98) 10%, rgba(27, 79, 138, 0.95) 62%, rgba(46, 117, 182, 0.9) 100%);
}

.rounded-12 {
    border-radius: 12px;
}

.rounded-16 {
    border-radius: 16px;
}

.rounded-20 {
    border-radius: 20px;
}

.shadow-soft {
    box-shadow: var(--shadow);
}

.brand-mark {
    height: 54px;
    width: auto;
}

.brand-wordmark {
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
    margin: 0;
}

.brand-subline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary);
    margin: 0;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    z-index: 99;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0s linear 0.4s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.4s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary,
.btn-outline-primary:hover {
    background: linear-gradient(120deg, var(--secondary), var(--accent));
    border-color: var(--secondary);
    color: var(--light);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 79, 138, 0.25);
}

.btn-outline-primary {
    color: var(--secondary);
    border-color: rgba(27, 79, 138, 0.45);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background-color: #d5b65c;
    border-color: #d5b65c;
    color: var(--dark);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.fixed-top {
    transition: all 0.35s ease;
}

.top-bar {
    min-height: 46px;
    border-bottom: 1px solid rgba(10, 31, 63, 0.1);
    background-color: var(--light);
}

.top-bar small {
    color: var(--tertiary);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(7px);
    border-bottom: 1px solid rgba(10, 31, 63, 0.08);
}

.navbar .navbar-nav .nav-link {
    padding: 1.45rem 0.9rem;
    color: var(--tertiary);
    font-weight: 600;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar .cta-nav {
    margin-left: 1rem;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(10, 31, 63, 0.08);
        background: #FFFFFF;
        padding-top: 0.6rem;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar .cta-nav {
        margin-left: 0;
        margin-top: 0.6rem;
    }
}

.hero-home {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(10, 31, 63, 0.78), rgba(10, 31, 63, 0.58)), url(../img/carousel-1.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-home::after {
    content: "";
    position: absolute;
    inset: auto -12% -42% -12%;
    height: 380px;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.16), rgba(201, 168, 76, 0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 0.85s ease;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.84rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--light-blue);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
}

.hero-title {
    color: var(--light);
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.1;
    margin: 1rem 0;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    font-size: 1.15rem;
}

.hero-actions .btn {
    margin-right: 0.65rem;
    margin-bottom: 0.65rem;
}

.page-header {
    margin-top: 90px;
    padding: 6rem 0 4.25rem;
    background-image: linear-gradient(rgba(10, 31, 63, 0.87), rgba(27, 79, 138, 0.85)), url(../img/header.jpg);
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.72);
}

.card-trust,
.card-brand,
.card-insight,
.card-service,
.card-subsidiary {
    background-color: var(--light);
    border: 1px solid rgba(10, 31, 63, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-trust:hover,
.card-brand:hover,
.card-insight:hover,
.card-service:hover,
.card-subsidiary:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(27, 79, 138, 0.24);
}

.card-trust .icon,
.card-service .icon,
.card-subsidiary .icon,
.card-brand .icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: rgba(46, 117, 182, 0.12);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.structure-line {
    position: relative;
    padding-left: 2rem;
}

.structure-line::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0.6rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(var(--accent), rgba(46, 117, 182, 0));
}

.structure-node {
    position: relative;
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(10, 31, 63, 0.15);
    border-radius: 12px;
    background: #fff;
}

.structure-node::before {
    content: "";
    position: absolute;
    left: -1.47rem;
    top: 1rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: var(--accent);
}

.kpi-panel {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 16px;
    padding: 1.3rem;
    text-align: center;
}

.kpi-panel h3,
.kpi-panel p {
    color: #fff;
}

.gold-divider {
    width: 70px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 999px;
}

.form-control,
.form-select,
.form-floating > .form-control,
.form-floating > .form-select {
    border-color: rgba(10, 31, 63, 0.17);
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(46, 117, 182, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(46, 117, 182, 0.15);
}

.notice-box {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.11);
}

.footer {
    background: linear-gradient(145deg, #071731, #0a1f3f 58%, #12396c 100%);
}

.footer,
.footer p,
.footer a,
.footer li {
    color: rgba(255, 255, 255, 0.9);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.25s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 9px;
    color: var(--gold);
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.social-pill {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.social-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.js-form-alert {
    min-height: 1.2rem;
}

.copyright {
    background: #061127;
    color: rgba(255, 255, 255, 0.84);
}

.copyright a {
    color: var(--light-blue);
}

.legal-note {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.reveal-on-load {
    animation: fadeUp 0.8s ease;
}

.fade-quick {
    animation: fadeUp 0.55s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-home {
        min-height: 75vh;
        margin-top: 80px;
    }

    .page-header {
        margin-top: 75px;
        padding: 4.6rem 0 3.2rem;
    }

    .brand-mark {
        height: 48px;
    }

    .brand-wordmark {
        font-size: 1.12rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.05rem;
    }

    .hero-copy {
        font-size: 1.02rem;
    }

    .top-bar {
        display: none;
    }
}


