/* ============================================================
   Valiant Branch Inc — main.css
   Shared styles: reset, variables, navbar, footer, buttons
   ============================================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Variables */
:root {
    --gold: #C8A84E;
    --gold-light: #E2CC7E;
    --gold-dark: #A68A3E;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-mid: #2A2A2A;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-600: #6B6B6B;
    --gray-700: #4A4A4A;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-gold: 0 4px 20px rgba(200,168,78,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }

/* Skip nav */
.skip-nav {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--black); padding: 12px 24px;
    z-index: 10000; border-radius: 0 0 8px 8px; font-weight: 600;
}
.skip-nav:focus { top: 0; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(10,10,10,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200,168,78,0.15);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(10,10,10,0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 24px; height: 80px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 50px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.25rem; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { color: var(--gray-300); font-size: 0.9rem; font-weight: 500; padding: 8px 18px; border-radius: 6px; letter-spacing: 0.3px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(200,168,78,0.08); }
.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--black) !important; font-weight: 600 !important;
    padding: 10px 24px !important; border-radius: 8px !important;
    min-height: 44px;
    display: inline-flex !important; align-items: center !important;
}
.nav-cta:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); }

/* Mobile toggle */
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 8px; min-height: 44px; min-width: 44px;
    align-items: center; justify-content: center;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--gold); transition: var(--transition); border-radius: 2px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none; position: fixed; top: 80px; left: 0; width: 100%;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
    padding: 24px; z-index: 999; border-bottom: 1px solid rgba(200,168,78,0.15);
    transform: translateY(-100%); opacity: 0; transition: all 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-menu a {
    display: block; color: var(--gray-300); padding: 14px 0;
    font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 44px;
}
.mobile-menu a:hover { color: var(--gold); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 10px; font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.3px; cursor: pointer;
    border: none; transition: var(--transition); min-height: 44px;
    font-family: var(--font-body);
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--black); }
.btn-primary:hover { box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid rgba(200,168,78,0.4); }
.btn-outline:hover { border-color: var(--gold); background: rgba(200,168,78,0.08); }
.btn svg { width: 18px; height: 18px; }

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-gold); transition: var(--transition);
    opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(200,168,78,0.45); }
.back-to-top svg { width: 20px; height: 20px; }

/* ========== FOOTER ========== */
footer { background: var(--black); border-top: 1px solid rgba(200,168,78,0.12); padding: 64px 24px 0; }
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { color: var(--gray-600); margin-top: 16px; font-size: 0.9rem; line-height: 1.8; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-brand .footer-logo img { height: 40px; }
.footer-brand .footer-logo span { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; color: var(--white); margin-bottom: 20px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-600); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-600); font-size: 0.9rem; margin-bottom: 12px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: var(--gray-600); font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--gray-600); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--gold); }

/* Simple footer (apply/legal pages) */
.footer-simple { padding: 24px; }
.footer-simple .footer-bottom { padding: 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-600); font-size: 0.8rem; }
.footer-links a:hover { color: var(--gold); }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 500; margin-top: 24px; font-size: 0.95rem; min-height: 44px; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { gap: 12px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-menu { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .btn { width: 100%; justify-content: center; max-width: 300px; }
}
