/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue-deep: #0D2E5C;
    --blue-primary: #1656A0;
    --blue-light: #2A7ADE;
    --gold: #D4A827;
    --gold-light: #F0CC5B;
    --gold-pale: #FFF8E1;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --gray-100: #EEF0F4;
    --gray-200: #D1D5DE;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.navbar.transparent { background: transparent; border-bottom: none; }
.navbar.transparent .nav-brand-text { color: var(--white); }
.navbar.transparent .nav-links a { color: rgba(255,255,255,0.85); }
.navbar.transparent .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.navbar.transparent .hamburger span { background: var(--white); }
.navbar.transparent.scrolled {
    background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--gray-100);
}
.navbar.transparent.scrolled .nav-brand-text { color: var(--blue-deep); }
.navbar.transparent.scrolled .nav-links a { color: var(--gray-700); }
.navbar.transparent.scrolled .nav-links a:hover { color: var(--blue-primary); background: var(--gray-100); }
.navbar.transparent.scrolled .hamburger span { background: var(--gray-900); }

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1.5rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand img { height: 48px; width: 48px; border-radius: 50%; }
.nav-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--blue-deep); line-height: 1.2; transition: color 0.3s; }
.nav-brand-sub { font-size: 0.7rem; color: var(--gold); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--gray-700);
    font-size: 0.85rem; font-weight: 500;
    padding: 0.5rem 0.85rem; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--blue-primary); background: var(--gray-100); }
.nav-links a.active { color: var(--blue-primary); font-weight: 600; }
.nav-cta {
    background: var(--blue-primary) !important; color: var(--white) !important;
    padding: 0.5rem 1.2rem !important; border-radius: 8px !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; }

.hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.hamburger span {
    display: block; width: 22px; height: 2px; background: var(--gray-900);
    margin: 5px 0; border-radius: 2px; transition: 0.3s;
}

/* ========== SHARED ELEMENTS ========== */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.5rem;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700; color: var(--blue-deep); margin-bottom: 1rem; line-height: 1.2;
}
.section-desc { color: var(--gray-500); max-width: 600px; margin-bottom: 3rem; font-size: 1rem; }
.alt-bg { background: var(--off-white); }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: 10px; font-size: 0.95rem;
    font-weight: 600; text-decoration: none; transition: all 0.25s; border: none; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--blue-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,39,0.4); }
.btn-outline-dark { background: transparent; color: var(--blue-primary); border: 1.5px solid var(--blue-primary); }
.btn-outline-dark:hover { background: var(--blue-primary); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-blue { background: var(--blue-primary); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }

/* ========== PAGE HEADER (non-home pages) ========== */
.page-header {
    padding: 8rem 1.5rem 3rem; text-align: center;
    background: linear-gradient(165deg, var(--blue-deep), var(--blue-primary));
    position: relative;
}
.page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
}
.page-header h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white); font-weight: 700; position: relative; z-index: 1;
}
.page-header p {
    color: rgba(255,255,255,0.7); margin-top: 0.5rem; position: relative; z-index: 1;
}
.page-header.alt-header::after {
    background: linear-gradient(to top, var(--off-white), transparent);
}

/* ========== CARDS ========== */
.card {
    background: var(--white); border-radius: 16px; padding: 2.5rem 2rem;
    border: 1px solid var(--gray-100); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--gold));
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--gold-pale); display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.5rem; }
.card .highlight { font-size: 1.05rem; font-weight: 600; color: var(--blue-primary); margin-bottom: 0.25rem; }
.card .meta { font-size: 0.9rem; color: var(--gray-500); }

/* ========== FOOTER ========== */
footer {
    background: var(--blue-deep); color: rgba(255,255,255,0.7); padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 50px; width: 50px; border-radius: 50%; margin-bottom: 0.75rem; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-links h4 { color: var(--gold-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; padding: 0.2rem 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 0.85rem;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    text-decoration: none; transition: all 0.2s; font-weight: 700;
}
.footer-social a:hover { background: var(--gold); color: var(--blue-deep); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
    text-align: center; font-size: 0.8rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: 1rem;
        border-bottom: 1px solid var(--gray-100); box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    .nav-links.active { display: flex; }
    .navbar.transparent .nav-links.active { background: var(--white); }
    .navbar.transparent .nav-links.active a { color: var(--gray-700); }
    .hamburger { display: block; }
    section { padding: 3.5rem 1.25rem; }
    .footer-top { flex-direction: column; }
    .page-header { padding: 7rem 1.5rem 2.5rem; }
}
