/* --- Global Reset & Variables --- */
:root {
    --navy: #0a192f;
    --navy-2: #06111d;
    --gold: #c9a55c;
    --gold-2: #b89243;
    --white: #ffffff;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: rgba(10, 25, 47, 0.12);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
    --container: 1200px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.2px;
}

a { color: inherit; }

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

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

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

.btn-accent:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.85);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.95);
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

input, textarea, select {
    font-family: inherit;
}

.form-error {
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: rgba(201, 165, 92, 0.8);
    box-shadow: 0 0 0 4px rgba(201, 165, 92, 0.18);
}

/* --- Navigation --- */
.main-nav {
    background: var(--navy);
    height: 85px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Section */
.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.cma-symbol {
    height: 50px;
    border-right: 1.5px solid var(--gold);
    padding-right: 15px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.gold-txt {
    color: var(--gold);
}

.brand-tag {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 2px;
}

/* Desktop Links */
.nav-links-box {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links-box a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links-box a.active {
    color: var(--gold);
}

.nav-links-box a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.nav-links-box a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 22px;
    border-radius: 4px;
    border: 2px solid var(--gold);
}

.nav-cta:hover {
    background: transparent;
    color: var(--gold) !important;
}

/* --- Mobile Menu Button --- */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 10001;
}

.bar {
    width: 100%;
    height: 2.5px;
    background: var(--gold);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive Behavior --- */
@media (max-width: 992px) {
    .menu-btn {
        display: flex;
    }

    .nav-links-box {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 100px 20px 30px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-links-box::before {
        content: 'Menu';
        position: absolute;
        top: 25px;
        left: 25px;
        color: var(--gold);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .nav-links-box.open {
        right: 0;
    }

    .nav-links-box li {
        border-bottom: 1px solid rgba(201, 165, 92, 0.15);
    }

    .nav-links-box li:last-child {
        border-bottom: none;
        margin-top: 15px;
        padding-top: 15px;
    }

    .nav-links-box a {
        display: block;
        font-size: 1.1rem;
        padding: 18px 15px;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.25s ease;
        border-radius: 8px;
    }

    .nav-links-box a:hover {
        background: rgba(201, 165, 92, 0.1);
        color: var(--gold);
        padding-left: 20px;
    }

    .nav-links-box a.active {
        color: var(--gold);
        background: rgba(201, 165, 92, 0.08);
    }

    .nav-links-box a.active::after {
        display: none;
    }

    .nav-cta {
        display: block;
        text-align: center;
        margin-top: 10px;
        padding: 16px 22px !important;
        border-radius: 8px;
        font-weight: 700;
    }

    /* X Animation for Menu */
    .toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6.5px); }
    .toggle .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
    .toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6.5px); }
}

@media (max-width: 480px) {
    .cma-symbol { height: 40px; }
    .brand-name { font-size: 1.1rem; }
    .brand-tag { font-size: 0.55rem; }
}

/* --- Main Content Wrapper --- */
.page-wrapper {
    padding-top: 85px;
    min-height: calc(100vh - 85px);
}

/* --- Footer --- */
.main-footer {
    background: var(--navy);
    color: white;
    padding: 60px 0 0;
    margin-top: 50px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-info h3, .footer-contact h4, .footer-legal h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-info p {
    opacity: 0.8;
    max-width: 350px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-contact i {
    color: var(--gold);
}
.footer-contact a {
    text-decoration:none;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-5px);
}

/* Footer Legal Links */
.footer-legal {
    color: rgba(255,255,255,0.8);
}

.footer-legal h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.legal-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-bar {
    background: var(--navy-2);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 768px) {
    .main-nav { height: 70px; }
    .page-wrapper { padding-top: 70px; min-height: calc(100vh - 70px); }

    .nav-container { width: 95%; }

    .nav-links-box a {
        font-size: 1.1rem;
        padding: 10px 0;
    }

    .cma-symbol { height: 35px; padding-right: 10px; }
    .brand-name { font-size: 1rem; letter-spacing: 0.3px; }
    .brand-tag { font-size: 0.5rem; letter-spacing: 1px; }

    .footer-container {
        width: 95%;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-info h3, .footer-contact h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-info p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .footer-contact p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .social-links {
        margin-top: 20px;
        gap: 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-bar {
        padding: 15px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .container { width: 95%; }
}

@media (max-width: 480px) {
    .cma-symbol { height: 32px; }
    .brand-name { font-size: 0.9rem; }
    .brand-tag { font-size: 0.45rem; letter-spacing: 0.8px; }

    .nav-links-box a { font-size: 1rem; }

    .footer-info h3, .footer-contact h4 { font-size: 1rem; }
    .footer-info p, .footer-contact p { font-size: 0.85rem; }
}