/* ============================================================
   layout.css — topbar, header/nav, hero, footer structure
   ============================================================ */

/* ---------- topbar ---------- */
.topbar {
    position: relative;
    z-index: 30;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(3, 8, 13, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 12px;
}
.topbar a { color: var(--accent); font-weight: 600; }
.topbar a:hover { color: #ffce7a; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-socials { display: flex; gap: 10px; align-items: center; }
.topbar-socials a {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(240, 173, 60, .4);
    border-radius: 50%;
    color: var(--accent) !important;
    background: rgba(255, 255, 255, .03);
    transition: transform .25s ease, background .25s ease;
}
.topbar-socials a svg { display: block; }
.topbar-socials a:hover { background: var(--surface-gold); color: #0b1520 !important; transform: translateY(-2px); }

/* ---------- header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(5, 11, 18, .55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(5, 11, 18, .82);
    box-shadow: 0 12px 34px rgba(2, 8, 14, .35);
}
.nav-wrap {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { display: grid; place-items: center; }
.brand-logo img { width: 50px; height: 50px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; max-width: 300px; }
.brand-text strong { font-size: 19px; letter-spacing: .8px; white-space: nowrap; }
.brand-text small { font-size: 8.5px; letter-spacing: .4px; color: var(--muted); margin-top: 4px; line-height: 1.35; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #d6e0e4; }
.nav a { padding: 10px 13px; border-radius: 10px; transition: color .2s ease, background .2s ease; }
.nav a:hover { color: var(--accent); background: rgba(240, 173, 60, .08); }
.nav a.active { color: var(--accent); }
.nav-cta {
    margin-left: 10px;
    color: var(--accent) !important;
    background: var(--surface-gold);
    border: 1px solid rgba(240, 173, 60, .45) !important;
}
.nav-cta:hover { background: rgba(240, 173, 60, .16) !important; }
.nav-cta span { font-size: 15px; }
.nav-toggle { display: none; font-size: 26px; color: var(--text); line-height: 1; }

/* ---------- services dropdown (mega menu) ---------- */
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 10px; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: var(--accent); background: rgba(240, 173, 60, .08); }
.nav-link.active { color: var(--accent); }
.nav-item.active .nav-link { color: var(--accent); }
.caret { font-size: 9px; opacity: .7; transition: transform .25s ease; }
.nav-item:hover .caret { transform: rotate(180deg); }

.nav-sub {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 620px;
    max-height: 78vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 18px;
    background: rgba(4, 10, 17, .97);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-sub::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 14px; height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(4, 10, 17, .97);
    border-left: 1px solid rgba(255, 255, 255, .14);
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-sub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
}
.nav-sub-head a { color: var(--accent); font-weight: 700; letter-spacing: 0; text-transform: none; padding: 4px 8px; }
.nav-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nav-sub-grid a {
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    color: #d6e0e4;
    line-height: 1.35;
    transition: color .2s ease, background .2s ease;
}
.nav-sub-grid a:hover { color: var(--accent); background: rgba(240, 173, 60, .1); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 130px 0 90px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bg-image {
    position: absolute; inset: 0;
    background-image: linear-gradient(90deg, rgba(5, 11, 18, .72) 0%, rgba(5, 11, 18, .35) 55%, rgba(5, 11, 18, .12) 100%),
                      url('../images/banner-home.jpg');
    background-size: cover; background-position: center;
    transform: scale(1.02);
}
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: .25;
    mix-blend-mode: soft-light;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(140px); pointer-events: none; opacity: .35; }
.hero-glow-1 { width: 520px; height: 520px; top: -180px; right: -80px; background: #16507e; }
.hero-glow-2 { width: 460px; height: 460px; bottom: -160px; left: -120px; background: #7a5a2e; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(120% 120% at 0% 0%, rgba(240,173,60,.08) 0%, transparent 60%);
}
.hero-crumbs {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; margin-bottom: 20px;
    font-size: 11px; color: #c8d4d8;
}
.hero-crumbs i { opacity: .4; font-style: normal; color: var(--accent); }
.hero-crumbs span:last-child { color: var(--accent); font-weight: 700; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.14;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    font-weight: 900;
}
.hero-copy h1 em { font-style: normal; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy p { max-width: 580px; color: rgba(238,244,246,.88); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.8; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 12.5px; color: rgba(238,244,246,.8); }
.hero-meta span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-card { position: relative; display: flex; justify-content: flex-end; }
.hero-glass { width: min(460px, 100%); padding: 28px 28px 24px; margin-left: auto; border-radius: 24px; }
.hero-glass-top { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; font-size: 11.5px; letter-spacing: 1.2px; color: var(--muted); }
.live-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #35c976; box-shadow: 0 0 0 4px rgba(53,201,118,.15), 0 0 20px rgba(53,201,118,.45); }
.hero-glass-title { flex: 1; }
.hero-glass-badge {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #221303;
    background: var(--gold-gradient);
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(240,173,60,.35);
}

.float-chip {
    position: absolute;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(2,8,14,.45);
}
.chip-1 { top: -12px; right: 6px; }
.chip-2 { bottom: -16px; left: -6px; }
.chip-about { top: -16px; right: 18px; }

/* ---------- inner page banner ---------- */
.page-banner {
    position: relative;
    padding: 110px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}
.page-banner-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-banner-bg .bg-image {
    position: absolute; inset: 0;
    background-image: linear-gradient(90deg, rgba(5, 11, 18, .94) 0%, rgba(5, 11, 18, .72) 55%, rgba(5, 11, 18, .4) 100%),
                      url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=2000&q=85');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}
.page-banner-bg .hero-glow-1 { top: -140px; right: 4%; }
.page-banner-bg .hero-glow-2 { bottom: -160px; left: -140px; }
.page-banner-inner { max-width: 840px; }
.page-banner-inner .hero-crumbs { margin-bottom: 16px; }
.page-banner-inner .hero-crumbs a:hover { color: var(--accent); }
.page-banner-inner .eyebrow { margin-bottom: 14px; }
.page-banner-inner h1 {
    font-size: clamp(36px, 4.8vw, 60px);
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 16px;
    font-weight: 900;
}
.page-banner-inner p { color: rgba(238, 244, 246, .85); font-size: 16px; line-height: 1.75; max-width: 660px; }

/* ---------- stats band ---------- */
.stats-band { padding: 70px 0 20px; }

/* ---------- footer ---------- */
.footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: rgba(3, 8, 13, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 70px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 44px; }
.footer h4 { font-size: 13px; color: var(--accent); letter-spacing: 1px; margin-bottom: 16px; }
.footer-brand p { margin: 16px 0; }
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 20px;
    color: #ffffff;
    font-size: 11.5px;
    text-align: center;
}