/* ── TALIHQ.NG Stylesheet ── */

:root {
    --blue: #010165;
    --blue-light: #e6e6f7;
    --blue-dark: #000140;
    --blue-mid: #0a0a9a;
    --gold: #c8860a;
    --gold-light: #fdf3dc;
    --gold-dark: #8a5c00;
    --text: #1a1a1e;
    --text-muted: #5a5a6a;
    --text-light: #8a8a9a;
    --bg: #f8f8fc;
    --bg-card: #ffffff;
    --border: rgba(1,1,101,0.1);
    --nav-h: 60px;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: var(--nav-h);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(248,248,252,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(1,1,101,0.1); }
.nav-container {
    max-width: 1100px; margin: 0 auto;
    height: 100%;
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
}
.nav-logo {
    font-family: var(--font-head);
    font-weight: 800; font-size: 20px;
    color: var(--blue-dark);
    text-decoration: none; flex: 1;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
    font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px; border-radius: 8px;
    text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.nav-link:hover { background: var(--blue-light); color: var(--blue); }
.nav-link.active { color: var(--blue); background: var(--blue-light); }
.nav-cta {
    font-size: 13px; font-weight: 600;
    background: var(--blue); color: #fff;
    padding: 8px 18px; border-radius: 8px;
    text-decoration: none; transition: background 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-dark); }
.nav-hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; border: none; background: none;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── HERO ── */
.hero {
    background: var(--blue-dark);
    padding: 72px 24px 64px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 0, transparent 50%);
    background-size: 22px 22px;
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero-badge-dot { width: 7px; height: 7px; background: #60a5fa; border-radius: 50%; display: inline-block; }
h1 { font-family: var(--font-head); font-size: clamp(30px,5vw,50px); font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 18px; }
h1 em { color: #fbbf24; font-style: normal; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.72); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #fff; color: var(--blue-dark); font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 13px 28px; border-radius: 10px; border: none; cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #e8e8f8; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 14px; padding: 13px 28px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.35); cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── SCRATCH CARD BANNER ── */
.scratch-banner { background: var(--gold-light); border-bottom: 2px solid var(--gold); padding: 18px 24px; }
.scratch-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.scratch-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--gold-dark); flex: 1; min-width: 220px; }
.scratch-icon { font-size: 24px; }
.scratch-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scratch-select { font-family: var(--font-body); font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(200,134,10,0.4); background: #fff; color: var(--text); cursor: pointer; }
.scratch-qty { display: flex; align-items: center; background: #fff; border: 1px solid rgba(200,134,10,0.4); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 34px; height: 36px; border: none; background: transparent; cursor: pointer; font-size: 18px; color: var(--gold-dark); transition: background 0.1s; }
.qty-btn:hover { background: var(--gold-light); }
.qty-num { width: 32px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text); }
.scratch-price { font-size: 14px; color: var(--text-muted); }
.scratch-price strong { color: var(--gold-dark); font-size: 16px; font-family: var(--font-head); }
.btn-buy { background: var(--gold); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 8px; border: none; cursor: pointer; transition: background 0.15s; text-decoration: none; display: inline-block; }
.btn-buy:hover { background: var(--gold-dark); }

/* ── STATS ── */
.stats-bar { padding: 24px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; }
.stat { text-align: center; padding: 14px 8px; background: var(--bg); border-radius: 12px; }
.stat-n { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--blue); }
.stat-l { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── SECTIONS ── */
.section { padding: 48px 24px; max-width: 1000px; margin: 0 auto; }
.section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.section-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); }
.section-link { font-size: 13px; color: var(--blue); font-weight: 600; text-decoration: none; margin-left: auto; }
.section-link:hover { text-decoration: underline; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 14px; cursor: pointer; transition: all 0.18s; text-align: center; text-decoration: none; display: block; }
.service-card:hover { border-color: var(--blue-mid); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(1,1,101,0.1); }
.svc-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.svc-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.svc-price { font-size: 12px; color: var(--blue); margin-top: 5px; font-weight: 500; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--text-muted); }

/* ── TESTIMONIALS ── */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; }
.testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.test-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }
.test-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.test-author { font-size: 13px; font-weight: 600; color: var(--text); }
.test-dept { font-size: 12px; color: var(--text-light); }

/* ── CTA STRIP ── */
.cta-strip { background: var(--blue-dark); padding: 48px 24px; text-align: center; }
.cta-strip h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-strip p { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 28px; }

/* ── FOOTER ── */
.footer { background: #06061a; padding: 36px 24px; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--gold); }
.footer p { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 16px 0; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 8px; }

/* ── PAGE HERO ── */
.page-hero { background: var(--blue-dark); padding: 40px 24px; }
.page-hero-inner { max-width: 1000px; margin: 0 auto; }
.back-link { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.back-link:hover { color: rgba(255,255,255,0.85); }
.page-hero-title { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: #fff; margin-bottom: 6px; }
.page-hero-sub { font-size: 15px; color: rgba(255,255,255,0.65); }

/* ── SERVICES LIST ── */
.services-list { display: flex; flex-direction: column; gap: 14px; }
.svc-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; gap: 18px; align-items: flex-start; transition: all 0.18s; }
.svc-row:hover { border-color: var(--blue-mid); box-shadow: 0 6px 20px rgba(1,1,101,0.08); }
.svc-row-icon { font-size: 32px; flex-shrink: 0; }
.svc-row-body { flex: 1; }
.svc-row-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 5px; }
.svc-row-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.svc-row-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.svc-tag { background: var(--blue-light); color: var(--blue-dark); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.svc-time { font-size: 12px; color: var(--text-light); }
.svc-row-price { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--blue); white-space: nowrap; margin-left: 8px; }

/* ── PORTAL ── */
.portal-wrap { max-width: 460px; margin: 56px auto; padding: 0 24px; }
.portal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 36px 32px; }
.portal-title { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--blue-dark); margin-bottom: 6px; }
.portal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.tabs-row { display: flex; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.tab { flex: 1; text-align: center; padding: 12px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; background: none; border-left: none; border-right: none; border-top: none; font-family: var(--font-body); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; letter-spacing: 0.3px; }
.form-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--bg); transition: border 0.15s; outline: none; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,1,101,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-full { width: 100%; background: var(--blue); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 13px; border-radius: 10px; border: none; cursor: pointer; transition: background 0.15s; margin-top: 8px; text-align: center; display: block; text-decoration: none; }
.btn-full:hover { background: var(--blue-dark); }
.btn-wa { background: #25D366 !important; }
.btn-wa:hover { background: #1da852 !important; }
.divider { text-align: center; font-size: 13px; color: var(--text-light); margin: 16px 0; }

/* ── MARKETPLACE ── */
.market-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn { font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; transition: all 0.15s; font-family: var(--font-body); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter-btn:hover:not(.active) { border-color: var(--blue); color: var(--blue); }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 14px; }
.market-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; transition: all 0.18s; }
.market-card:hover { border-color: var(--blue-mid); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(1,1,101,0.1); }
.market-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.type-project { background: var(--blue-light); color: var(--blue-dark); }
.type-pq { background: var(--gold-light); color: var(--gold-dark); }
.market-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; line-height: 1.4; }
.market-dept { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.market-footer { display: flex; align-items: center; justify-content: space-between; }
.market-price { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--blue); }
.market-buy { font-size: 12px; font-weight: 700; color: var(--blue); border: 1.5px solid var(--blue); padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all 0.15s; background: none; font-family: var(--font-body); text-decoration: none; }
.market-buy:hover { background: var(--blue); color: #fff; }

/* ── APPLY FORMS ── */
.form-page { max-width: 580px; margin: 0 auto; padding: 36px 24px; }
.form-page-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.form-tabs { display: flex; gap: 10px; margin-bottom: 28px; }
.ftab { flex: 1; text-align: center; padding: 11px; font-size: 14px; font-weight: 600; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all 0.15s; background: var(--bg); font-family: var(--font-body); }
.ftab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.step-indicator { display: flex; gap: 8px; margin-bottom: 24px; }
.step-dot { height: 5px; border-radius: 3px; background: var(--border); transition: all 0.3s; flex: 1; }
.step-dot.done { background: var(--blue); }
.form-section-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 5px; }
.form-section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.checklist-item { font-size: 14px; color: var(--text-muted); }
.upload-area { border: 2px dashed rgba(1,1,101,0.25); border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; transition: all 0.18s; }
.upload-area:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.upload-text strong { color: var(--blue); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 500;
    width: 56px; height: 56px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: transform 0.15s;
    text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .nav-container { padding: 0 16px; }
    .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 16px; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .hero { padding: 48px 16px 40px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .scratch-banner { padding: 14px 16px; }
    .section { padding: 32px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .portal-card { padding: 24px 18px; }
    .form-page-card { padding: 22px 16px; }
    .dash-grid { grid-template-columns: 1fr; }
}


/* ── PHASE 2 ADDITIONS — append to talihq.css ── */

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form error states */
.input-error { border-color: #ef4444 !important; }
.field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 32px 16px;
}
.empty-icon { font-size: 36px; margin-bottom: 10px; }
.empty-text { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 5px; }
.empty-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.btn-sm {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-sm:hover { background: var(--blue-dark); }

/* Quick actions as links */
.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.12s;
}
.quick-action:last-child { border-bottom: none; }
.quick-action:hover .qa-text { color: var(--blue); }
