/* =====================================================================
   G-Haan Hub Ltd — Design System
   Palette:  ink #0a1628 · slate #1b2a41 · signal #17c3b2 (teal)
             pulse #2f6fed (electric blue) · gold #f4b942 · mist #f5f8fc
   Type:     Display "Space Grotesk", Body "Inter"
   ===================================================================== */

:root {
    --ink: #0a1628;
    --slate: #1b2a41;
    --slate-2: #24344d;
    --signal: #17c3b2;
    --signal-dark: #0e9e90;
    --pulse: #2f6fed;
    --gold: #f4b942;
    --mist: #f5f8fc;
    --line: #e2e8f0;
    --muted: #64748b;
    --text: #1e293b;
    --white: #ffffff;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(10,22,40,.08);
    --shadow: 0 10px 30px rgba(10,22,40,.10);
    --shadow-lg: 0 24px 60px rgba(10,22,40,.18);
    --container: 1180px;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pulse); text-decoration: none; transition: color .2s; }
a:hover { color: var(--signal-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .74rem;
    font-weight: 600;
    color: var(--signal-dark);
    display: inline-block;
    margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; letter-spacing: -.02em; }
.section-header p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .96rem;
    padding: 14px 28px; border-radius: var(--radius-sm);
    cursor: pointer; border: 1px solid transparent; transition: all .22s ease;
    text-align: center; line-height: 1;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--slate); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--signal); color: var(--ink); }
.btn-accent:hover { background: var(--signal-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: var(--container); margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
    color: var(--ink); letter-spacing: -.01em; display: flex; align-items: center; gap: 9px;
}
.logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--signal), var(--pulse));
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--white); font-size: .9rem; font-weight: 700;
}
.logo:hover { color: var(--ink); }
.nav-links { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav-links a {
    font-family: var(--font-display); font-weight: 500; font-size: .94rem;
    color: var(--slate); padding: 8px 14px; border-radius: 7px; transition: all .18s;
}
.nav-links a:hover { background: var(--mist); color: var(--ink); }
.nav-links a.active { color: var(--signal-dark); }
.nav-cta { margin-left: 8px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(47,111,237,.12), transparent),
        radial-gradient(900px 500px at 5% 10%, rgba(23,195,178,.10), transparent),
        var(--white);
    padding: 20px 0 72px;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--mist); border: 1px solid var(--line);
    padding: 6px 14px; border-radius: 30px;
    font-family: var(--font-display); font-size: .8rem; font-weight: 500; color: var(--slate);
    margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(23,195,178,.2); }
.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.03em; margin-bottom: 20px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--pulse), var(--signal));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.14rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); display: block; }
.stat .stat-label { font-size: .86rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 26px; position: relative; z-index: 2;
}
.hero-card-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    background: var(--mist);
}
.hero-card-row h4 { font-size: .98rem; margin-bottom: 2px; }
.hero-card-row p { font-size: .84rem; color: var(--muted); margin: 0; }
.hero-blob {
    position: absolute; inset: -30px -30px auto auto; width: 220px; height: 220px;
    background: linear-gradient(135deg, var(--signal), var(--pulse)); filter: blur(60px); opacity: .25; z-index: 1;
}

/* ---------- Section: generic card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

/* Services */
.services { background: var(--mist); }
.service-card .service-icon {
    width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(23,195,178,.15), rgba(47,111,237,.15));
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--ink), var(--slate));
    color: var(--white); border-radius: var(--radius); padding: 56px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: auto -60px -80px auto; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(23,195,178,.4), transparent 70%); filter: blur(30px);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 26px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Blog / cards with image ---------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--slate), var(--pulse)); position: relative; overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.tag { display: inline-block; background: var(--mist); color: var(--signal-dark); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card .read-more { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article-hero { padding: 60px 0 30px; text-align: center; }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; margin: 16px 0; }
.article-body { font-size: 1.08rem; line-height: 1.8; color: #334155; }
.article-body h2, .article-body h3 { margin: 34px 0 14px; }
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body blockquote { border-left: 3px solid var(--signal); padding-left: 20px; color: var(--muted); font-style: italic; margin: 24px 0; }

/* ---------- Job / course list rows ---------- */
.list-row {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); transition: box-shadow .2s, border-color .2s; margin-bottom: 16px;
}
.list-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.list-row h3 { font-size: 1.2rem; margin-bottom: 6px; }
.list-row .row-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.badge { display: inline-block; font-family: var(--font-display); font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.badge-teal { background: rgba(23,195,178,.14); color: var(--signal-dark); }
.badge-blue { background: rgba(47,111,237,.12); color: var(--pulse); }
.badge-gold { background: rgba(244,185,66,.18); color: #b07d0a; }
.badge-gray { background: var(--mist); color: var(--muted); }
.badge-green { background: rgba(22,163,74,.14); color: #15803d; }
.badge-red { background: rgba(220,38,38,.12); color: #b91c1c; }

.price-tag { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.price-tag small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.price-free { color: var(--signal-dark); }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--slate); }
.form-group label .req { color: #dc2626; }
.form-control {
    width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .96rem; color: var(--text); background: var(--white); transition: border-color .18s, box-shadow .18s;
}
.form-control:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(23,195,178,.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Flash / alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .93rem; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ---------- Contact split ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .ci-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h4 { font-size: .98rem; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: .93rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 320px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: var(--slate); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; transition: background .2s; }
.footer-social a:hover { background: var(--signal); color: var(--ink); }
.footer-links h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.66); font-size: .9rem; }
.footer-links a:hover { color: var(--signal); }
.footer-newsletter input { background: var(--slate); border: 1px solid var(--slate-2); color: var(--white); }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-bottom { border-top: 1px solid var(--slate); padding-top: 22px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 12px;
    background: var(--ink); color: var(--white); border: none; cursor: pointer; font-size: 1.2rem;
    opacity: 0; visibility: hidden; transition: all .25s; z-index: 90; box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--signal); color: var(--ink); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(120deg, var(--ink), var(--slate)); color: var(--white); padding: 66px 0; text-align: center; }
.page-hero .eyebrow { color: var(--signal); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 600; font-family: var(--font-display); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.02em; margin: 12px 0; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--signal-dark); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span { padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--slate); }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .es-icon { font-size: 2.6rem; margin-bottom: 14px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mb-2 { margin-bottom: 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .section { padding: 64px 0; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    .mobile-menu-btn { display: block; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .list-row { flex-direction: column; align-items: flex-start; }
    .cta-band { padding: 40px 24px; }
    .hero-stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* --- additions: logo image + blog video embed (design-neutral) --- */
.logo-img{height:40px;width:auto;display:inline-block;vertical-align:middle;border-radius:8px}
.video-embed{position:relative;width:100%;padding-bottom:56.25%;height:0;margin-bottom:30px;border-radius:var(--radius,12px);overflow:hidden;background:#000}
.video-embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

/* Navbar logo hard constraint */
.navbar .logo img, .logo-img {
    height: 44px !important;
    width: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}
.navbar .logo { display: inline-flex; align-items: center; gap: .6rem; }

/* Mobile: hero card comes AFTER content (eyebrow, heading, text, buttons, stats) */
@media (max-width: 980px) {
    .hero-visual { order: 2 !important; margin-top: 8px; }
}
