/********** Mariner Fiduciary Partners Limited - Template CSS **********/
:root {
    --primary: #C9A227;       /* Gold */
    --navy: #0A1F44;          /* Navy Blue */
    --white: #FFFFFF;
    --light: #F5F7FA;
    --dark: #0A1F44;
    --gold: #C9A227;
    --gold-light: #e8c96a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #FFFFFF;
}

.fw-medium { font-weight: 500 !important; }
.fw-bold    { font-weight: 700 !important; }
.fw-black   { font-weight: 900 !important; }

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background: var(--navy);
    border-color: var(--navy);
}
.back-to-top:hover { background: var(--gold); border-color: var(--gold); }

/* ── Spinner ── */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ── Buttons ── */
.btn { font-weight: 500; transition: .5s; }

.btn.btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
}
.btn.btn-primary:hover {
    background-color: #a8841e;
    border-color: #a8841e;
    color: #fff;
}

.btn.btn-secondary {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF;
}
.btn.btn-secondary:hover {
    background-color: #061530;
    border-color: #061530;
}

.btn.btn-outline-primary {
    border-color: var(--gold);
    color: var(--gold);
}
.btn.btn-outline-primary:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-square    { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* ── Topbar ── */
.topbar {
    background-color: var(--navy) !important;
    border-bottom: 2px solid var(--gold);
}
.topbar small, .topbar a { color: rgba(255,255,255,0.85); }
.topbar .fa { color: var(--gold); }
.topbar .btn-sm-square {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    transition: .3s;
}
.topbar .btn-sm-square:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

/* ── Navbar ── */
.navbar {
    background-color: #FFFFFF !important;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 20px rgba(10,31,68,0.08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 25px 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
    transition: color .3s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--gold);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 0; }
    .navbar .navbar-nav { border-top: 1px solid #EEEEEE; }
}

.navbar .navbar-brand, .navbar a.btn { height: 80px; }

.navbar.sticky-top { top: -100px; transition: .5s; }

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        border-top: 3px solid var(--gold);
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        box-shadow: 0 10px 30px rgba(10,31,68,0.12);
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar a.btn.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    border-radius: 0;
    height: 80px;
    padding: 0 30px;
}
.navbar a.btn.btn-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ── Logo ── */
.logo-img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    padding: 5px;
}
@media (max-width: 768px) {
    .logo-img { max-height: 50px; }
}

/* ── Hero Carousel ── */
#homeSlider .carousel-item {
    height: 90vh;
    min-height: 500px;
    position: relative;
}
#homeSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}
#homeSlider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 8%;
    right: 8%;
    max-width: 700px;
}
#homeSlider .carousel-caption h5 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}
#homeSlider .carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
#homeSlider .carousel-caption .btn {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 3px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
#homeSlider .carousel-caption .btn:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}
#homeSlider .carousel-indicators [data-bs-target] {
    background-color: var(--gold);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
    border-bottom: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(201,162,39,0.08);
    border-radius: 50%;
}
.page-header h1 { color: #fff; font-weight: 800; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gold); }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: var(--gold); }

/* ── Section Titles ── */
.section-title {
    color: var(--navy);
    font-weight: 800;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
}
.section-title.text-start::after { margin-left: 0; }

.section-badge {
    display: inline-block;
    background: rgba(201,162,39,0.12);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50px;
    padding: 4px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ── Main Section Background ── */
.main_section_home {
    position: relative;
    background-color: #FFFFFF;
}

/* ── Service Cards ── */
.service-item {
    transition: .4s;
    border: 1px solid rgba(10,31,68,0.08);
    background: #fff;
}
.service-item:hover {
    margin-top: -8px;
    box-shadow: 0 15px 40px rgba(10,31,68,0.12);
    border-color: var(--gold);
}
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(201,162,39,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: .3s;
}
.service-item:hover .service-icon {
    background: var(--gold);
}
.service-icon i {
    font-size: 1.6rem;
    color: var(--gold);
    transition: .3s;
}
.service-item:hover .service-icon i { color: var(--navy); }

/* ── Service Card with BG Image ── */
.service-bg-card {
    position: relative;
    min-height: 380px;
    border-radius: 8px;
    overflow: hidden;
    transition: .4s;
}
.service-bg-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.service-bg-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,68,0.92) 0%, rgba(10,31,68,0.4) 60%, transparent 100%);
    transition: .4s;
}
.service-bg-card:hover .overlay {
    background: linear-gradient(to top, rgba(10,31,68,0.97) 0%, rgba(10,31,68,0.6) 70%, rgba(10,31,68,0.2) 100%);
}
.service-bg-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 1;
    color: #fff;
}
.service-bg-card .card-content h4 { color: #fff; font-weight: 700; margin-bottom: 0.5rem; }
.service-bg-card .card-content .gold-line {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 0.8rem;
    transition: width .3s;
}
.service-bg-card:hover .card-content .gold-line { width: 80px; }

/* ── Why Choose Us / Feature ── */
.feature-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0d2a5e 100%);
    position: relative;
    overflow: hidden;
}
.feature-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(201,162,39,0.05);
    border-radius: 50%;
}
.feature-icon-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,162,39,0.2);
    transition: .3s;
}
.feature-icon-box:hover {
    background: rgba(201,162,39,0.1);
    border-color: var(--gold);
}
.feature-icon-box .icon-wrap {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(201,162,39,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon-box .icon-wrap i { color: var(--gold); font-size: 1.2rem; }
.feature-icon-box h6 { color: #fff; font-weight: 600; margin-bottom: 0.2rem; }
.feature-icon-box p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }

/* ── Values Section ── */
.value-card {
    background: #fff;
    border: 1px solid rgba(10,31,68,0.08);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: .4s;
    height: 100%;
}
.value-card:hover {
    box-shadow: 0 15px 40px rgba(10,31,68,0.1);
    border-color: var(--gold);
    transform: translateY(-5px);
}
.value-card .value-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(201,162,39,0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
}
.value-card h5 { color: var(--navy); font-weight: 700; margin-bottom: 0.8rem; }
.value-card p { color: #666; font-size: 0.9rem; margin: 0; }

/* ── Stats Counter ── */
.stats-section {
    background: var(--navy);
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}
.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-item .stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}
.stat-item .stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── Team ── */
.team-item { border-radius: 10px; overflow: hidden; transition: .4s; }
.team-item:hover { box-shadow: 0 15px 40px rgba(10,31,68,0.15); transform: translateY(-5px); }
.team-item img { width: 100%; height: 280px; object-fit: cover; }
.team-item .team-info { background: #fff; padding: 1.5rem; border-top: 3px solid var(--gold); }
.team-item .team-info h5 { color: var(--navy); font-weight: 700; margin-bottom: 0.2rem; }
.team-item .team-info p { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin: 0; }

/* ── Testimonials ── */
.testimonial-item {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(10,31,68,0.08);
    position: relative;
}
.testimonial-item::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-item p { color: #555; font-style: italic; line-height: 1.8; }
.testimonial-item .client-name { color: var(--navy); font-weight: 700; }
.testimonial-item .client-role { color: var(--gold); font-size: 0.85rem; }

/* ── Footer ── */
.footer { background-color: var(--navy); }
.footer h5 { color: var(--gold); font-weight: 700; }
.footer p, .footer small { color: rgba(255,255,255,0.75); }
.footer .footer-divider { border-color: rgba(201,162,39,0.3); }

.footer .btn.btn-social {
    margin-right: 5px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 50%;
    transition: .3s;
}
.footer .btn.btn-social:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    text-decoration: none;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--gold);
}
.footer .btn.btn-link:hover { color: var(--gold); letter-spacing: 1px; }

.footer .copyright {
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(201,162,39,0.2);
    color: rgba(255,255,255,0.6);
}
.footer .copyright a { color: var(--gold); text-decoration: none; }
.footer .copyright a:hover { color: #fff; }

/* ── Gold Accent Line ── */
.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px 0;
}
.gold-line.center { margin: 12px auto; }

/* ── Contact Cards ── */
.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(10,31,68,0.08);
    transition: .3s;
    height: 100%;
}
.contact-card:hover {
    box-shadow: 0 10px 30px rgba(10,31,68,0.1);
    border-color: var(--gold);
}
.contact-card .icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(201,162,39,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.contact-card .icon-wrap i { color: var(--gold); font-size: 1.4rem; }
.contact-card h6 { color: var(--navy); font-weight: 700; }
.contact-card p { color: #666; margin: 0; font-size: 0.9rem; }

/* ── Form Styling ── */
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201,162,39,0.15);
}
.form-floating label { color: #888; }

/* ── WhatsApp ── */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .3s;
}
.whatsapp-icon:hover { transform: scale(1.05); }
.whatsapp-message { font-size: 13px; font-weight: 600; white-space: nowrap; }

.whatsapp-chatbox {
    position: fixed;
    bottom: 75px;
    right: 30px;
    width: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 15px;
    display: none;
    z-index: 998;
}
.whatsapp-chatbox textarea {
    width: 100%;
    height: 80px;
    resize: none;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.whatsapp-chatbox .send-btn {
    background-color: #25d366;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    float: right;
}
.whatsapp-chatbox .send-btn:hover { background-color: #128c7e; }
.whatsapp-chatbox.active { display: block; }

@media (max-width: 900px) {
    .whatsapp-icon { font-size: 22px; padding: 3px 8px; }
    .whatsapp-message { display: none; }
}

/* ── Hover expand btn ── */
.expand-btn { transition: all 0.3s; }

/* ── Overlay for bg cards ── */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,31,68,0.55);
    border-radius: inherit;
    transition: .4s;
}

/* ── About image stack ── */
.img-stack { position: relative; }
.img-stack .img-main { border-radius: 10px; }
.img-stack .img-accent {
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 55%;
    border-radius: 10px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ── Gold badge pill ── */
.badge-gold {
    background: rgba(201,162,39,0.12);
    color: var(--gold);
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

/* ── Slogan Banner ── */
.slogan-banner {
    background: linear-gradient(90deg, var(--navy) 0%, #1a3a6e 50%, var(--navy) 100%);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    padding: 1.2rem 0;
    text-align: center;
}
.slogan-banner p {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ── News Card ── */
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(10,31,68,0.08);
    transition: .4s;
    height: 100%;
}
.news-card:hover {
    box-shadow: 0 15px 40px rgba(10,31,68,0.12);
    transform: translateY(-5px);
    border-color: var(--gold);
}
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-card .news-body { padding: 1.5rem; }
.news-card .news-date { color: var(--gold); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.news-card h5 { color: var(--navy); font-weight: 700; margin: 0.5rem 0; }
.news-card p { color: #666; font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    #homeSlider .carousel-item { height: 70vh; }
    #homeSlider .carousel-caption { left: 5%; right: 5%; }
    #homeSlider .carousel-caption h5 { font-size: 1.6rem; }
    .stat-item .stat-num { font-size: 2.2rem; }
}
