/* Core Credence — custom styles */
:root {
    --brand-navy: #0a1f3d;
    --brand-navy-dark: #061633;
    --brand-navy-light: #102a55;
    --brand-gold: #d4a84a;
    --brand-gold-dark: #b88a2a;
    --brand-gold-light: #e8c777;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: #f8fafc;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.font-serif {
    font-family: "Playfair Display", Georgia, serif;
}

/* Brand colors */
.bg-brand-navy {
    background-color: var(--brand-navy);
}
.bg-brand-navy-dark {
    background-color: var(--brand-navy-dark);
}
.bg-brand-gold {
    background-color: var(--brand-gold);
}
.text-brand-navy {
    color: var(--brand-navy);
}
.text-brand-gold {
    color: var(--brand-gold);
}
.border-brand-gold {
    border-color: var(--brand-gold);
}
.hover\:bg-brand-gold-dark:hover {
    background-color: var(--brand-gold-dark);
}
.hover\:text-brand-gold:hover {
    color: var(--brand-gold);
}
.hover\:border-brand-gold:hover {
    border-color: var(--brand-gold);
}
.hover\:bg-brand-navy-light:hover {
    background-color: var(--brand-navy-light);
}

/* Hero backgrounds */
.bg-hero {
    background:
        linear-gradient(
            90deg,
            rgba(6, 22, 51, 0.85) 0%,
            rgba(10, 31, 61, 0.35) 45%,
            rgba(10, 31, 61, 0) 70%
        ),
        url("../assets/hero-bg.png") right center / cover no-repeat;
    background-color: #061633;
}
@media (max-width: 768px) {
    .bg-hero {
        background:
            linear-gradient(
                180deg,
                rgba(6, 22, 51, 0.80) 0%,
                rgba(10, 31, 61, 0.75) 100%
            ),
            url("../assets/hero-bg.png") center center / cover no-repeat;
        background-color: #061633;
    }
}
.bg-page-hero {
    background:
        linear-gradient(
            180deg,
            rgba(6, 22, 51, 0.92) 0%,
            rgba(10, 31, 61, 0.85) 100%
        ),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80&auto=format&fit=crop")
            center / cover no-repeat;
}
.bg-cta {
    background:
        linear-gradient(
            90deg,
            rgba(6, 22, 51, 0.94) 0%,
            rgba(10, 31, 61, 0.75) 100%
        ),
        url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&q=80&auto=format&fit=crop")
            center / cover no-repeat;
}

/* Decorative gold line */
.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    margin: 0 auto 16px;
}
.decorative-line::before,
.decorative-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--brand-gold),
        transparent
    );
}
.decorative-line.justify-start {
    margin-left: 0;
}
.decorative-line.justify-start::before {
    display: none;
}

/* Service card hover */
.service-card {
    transition: all 0.35s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -16px rgba(10, 31, 61, 0.25);
    border-color: var(--brand-gold);
}
.service-card:hover .service-icon-wrap {
    background-color: var(--brand-gold);
}
.service-card:hover .service-icon-wrap i {
    color: var(--brand-navy);
}

/* Nav underline */
.nav-link {
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--brand-gold);
}

/* Grain texture */
.grain {
    position: relative;
}
.grain::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-navy);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}
::selection {
    background: var(--brand-gold);
    color: var(--brand-navy);
}

/* Toast */
.toast-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #fff;
    color: var(--brand-navy);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(10, 31, 61, 0.2);
    border-left: 4px solid var(--brand-gold);
    min-width: 280px;
    max-width: 360px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}
.toast.error {
    border-left-color: #ef4444;
}
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: var(--brand-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu.open {
    display: block;
}

/* Services dropdown */
.services-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 280px;
    background: #fff;
    color: var(--brand-navy);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 50;
}
.services-dropdown.open {
    display: block;
}
.services-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    text-decoration: none;
    color: var(--brand-navy);
    transition: all 0.2s;
}
.services-dropdown a:hover {
    background: var(--brand-navy);
    color: var(--brand-gold);
}

/* Form focus */
.form-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 2px rgba(212, 168, 74, 0.3);
}
