/* =====================================================
   GLOBAL.CSS — Tyloones Trading
   Reset · Variables · Typography · Nav · Footer · Utilities
   ===================================================== */

/* --- RESET ------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- VARIABLES --------------------------------------- */
:root {
    /* Orange accent */
    --gold:         #E8731A;
    --gold-light:   #F5923E;
    --gold-dim:     #B85A10;
    --gold-faint:   rgba(232, 115, 26, 0.08);
    --gold-border:  rgba(232, 115, 26, 0.2);
    --gold-border2: rgba(232, 115, 26, 0.4);

    /* Light backgrounds */
    --dark:         #F8F9FB;
    --dark2:        #FFFFFF;
    --dark3:        #EEF0F4;
    --dark4:        #E4E7ED;
    --dark5:        #D8DCE6;

    /* Navy / dark text */
    --text-primary:   #0D1B2E;
    --text-secondary: #3A4B62;
    --text-muted:     #7A8A9E;

    --font: 'Plus Jakarta Sans', sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1280px;
    --gutter:    80px;
}

/* --- SCROLLBAR --------------------------------------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #EEF0F4; }
::-webkit-scrollbar-thumb { background: #E8731A; border-radius: 2px; }

/* --- TYPOGRAPHY -------------------------------------- */
body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.8; }

/* --- LAYOUT CONTAINER -------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 120px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading span {
    color: var(--gold);
}

.section-subheading {
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 60px;
}

/* --- BUTTONS ----------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gold);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232, 115, 26, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(13, 27, 46, 0.2);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* --- NAV --------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid rgba(13,27,46,0.08);
    transition: box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(13,27,46,0.1);
    box-shadow: 0 2px 24px rgba(13,27,46,0.08);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 26px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding var(--transition);
}

.site-header.scrolled .nav-container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-primary);
    line-height: 1.2;
}

.nav-logo-text em {
    display: block;
    font-style: normal;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.22em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    background: var(--gold);
    color: var(--dark);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    border-top: 1px solid rgba(13,27,46,0.08);
    padding: 28px var(--gutter);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: 0 8px 32px rgba(13,27,46,0.08);
}

.nav-mobile.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 24px;
}

.nav-mobile ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #3A4B62;
    border-bottom: 1px solid rgba(13,27,46,0.06);
    transition: color var(--transition);
}

.nav-mobile ul li a:hover { color: var(--gold); }

/* --- FOOTER ------------------------------------------ */
.site-footer {
    background: var(--dark2);
    border-top: 1px solid var(--gold-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
    gap: 48px;
    padding: 72px var(--gutter) 64px;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-faint);
}

.footer-nav-group h4,
.footer-contact-group h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-group ul li a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition), padding-left var(--transition);
    display: block;
}

.footer-nav-group ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-contact-list a { transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--gold); }

.contact-icon {
    color: var(--gold);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cert-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    color: var(--gold-dim);
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid var(--gold-border);
    padding: 22px var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-legal-links a:hover { color: var(--gold); }

/* --- DIVIDER / GOLD LINE ----------------------------- */
.gold-line {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 32px;
}

/* --- ANIMATE ON SCROLL ------------------------------- */
.aos {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.aos.aos-delay-1 { transition-delay: 0.1s; }
.aos.aos-delay-2 { transition-delay: 0.2s; }
.aos.aos-delay-3 { transition-delay: 0.3s; }
.aos.aos-delay-4 { transition-delay: 0.4s; }
.aos.aos-delay-5 { transition-delay: 0.5s; }

.aos.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- GOLD CARD BORDER -------------------------------- */
.gold-card {
    background: #fff;
    border: 1px solid rgba(13,27,46,0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 16px rgba(13,27,46,0.05);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.gold-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232,115,26,0.1);
}

/* --- PAGE HERO (inner pages) ------------------------- */
.page-hero {
    padding: 160px 0 80px;
    background: #0D1B2E;
    border-bottom: 1px solid rgba(13,27,46,0.1);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.06;
    filter: grayscale(100%);
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,27,46,0.4) 0%,
        rgba(13,27,46,0.98) 100%
    );
}

/* Orange glow accent */
.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,115,26,0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 16px;
}

.page-hero h1 span { color: var(--gold); }

.page-hero p {
    font-size: 1.05rem;
    max-width: 540px;
    color: rgba(255,255,255,0.55);
}

.page-hero .section-label {
    color: var(--gold);
}

.page-hero .section-label::before {
    background: var(--gold);
}

/* --- RESPONSIVE -------------------------------------- */
@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    :root { --gutter: 24px; }
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .nav-mobile { display: flex; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .section { padding: 80px 0; }
}