/* ═══════════════════════════════════════════════════════
   QueueSystem.my — Global Stylesheet v2.0
   Stack: Poppins (headings) + DM Sans (body)
   Palette: Navy #0B1437 | Sky #0EA5E9 | White #FFFFFF
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts Import ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,600;0,700;0,800;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ────────────────────────────────────── */
:root {
    --navy:       #0B1437;
    --navy-mid:   #0F1E4A;
    --navy-light: #162356;
    --sky:        #0EA5E9;
    --sky-dark:   #0284C7;
    --sky-glow:   #38BDF8;
    --sky-light:  #E0F2FE;
    --green:      #22C55E;
    --green-dk:   #15803D;
    --amber:      #F59E0B;
    --red:        #EF4444;
    --purple:     #A855F7;
    --teal:       #14B8A6;
    --whatsapp:   #25D366;
    --wa-dark:    #128C7E;
    --white:      #FFFFFF;
    --off:        #F8FAFC;
    --off2:       #F1F5F9;
    --muted:      #64748B;
    --text:       #1E293B;
    --border:     #E2E8F0;
    --card-bg:    #FFFFFF;
    --shadow-sm:  0 2px 8px rgba(14,165,233,0.08);
    --shadow:     0 4px 24px rgba(14,165,233,0.10);
    --shadow-lg:  0 12px 40px rgba(14,165,233,0.15);
    --shadow-xl:  0 24px 60px rgba(11,20,55,0.15);
    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full:50px;
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Typography Scale ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

/* ── Layout ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Utility Classes ──────────────────────────────────── */
.text-center { text-align: center; }
.text-sky    { color: var(--sky); }
.text-muted  { color: var(--muted); }
.bg-off      { background: var(--off); }
.bg-off2     { background: var(--off2); }
.bg-navy     { background: var(--navy); color: var(--white); }

/* ── Section Headers ──────────────────────────────────── */
.sec-header { margin-bottom: 52px; }
.sec-header.center { text-align: center; }
.sec-header.center .sec-sub { max-width: 600px; margin: 0 auto; }

.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sky-light);
    color: var(--sky-dark);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sec-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.sec-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn, [class*="btn-"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    padding: 11px 24px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--sky);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(14,165,233,0.30);
}
.btn-primary:hover {
    background: var(--sky-dark);
    box-shadow: 0 6px 24px rgba(14,165,233,0.40);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(11,20,55,0.20);
}
.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover {
    background: var(--wa-dark);
    box-shadow: 0 6px 24px rgba(37,211,102,0.40);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--sky);
    border: 1.5px solid var(--sky);
}
.btn-outline:hover {
    background: var(--sky);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── Cards ────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ── Badges / Tags ────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.tag-sky    { background: var(--sky-light); color: var(--sky-dark); }
.tag-green  { background: #F0FDF4; color: #15803D; }
.tag-amber  { background: #FFFBEB; color: #92400E; }
.tag-navy   { background: #EEF2FF; color: var(--navy); }
.tag-red    { background: #FEF2F2; color: #991B1B; }

/* ── Header & Navigation ──────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    padding: 7px 0;
    font-family: 'DM Sans', sans-serif;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}
.top-bar a:hover { color: var(--sky-glow); }
.top-bar i { color: var(--sky); font-size: 0.75rem; }
.top-bar .sep { opacity: 0.3; margin: 0 4px; }

.nav-wrapper {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}
header.scrolled .nav-wrapper {
    box-shadow: 0 4px 24px rgba(11,20,55,0.10);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo span { color: var(--sky); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--sky);
    background: var(--sky-light);
}

.caret {
    font-size: 0.6rem;
    transition: transform var(--transition);
}
.dropdown:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: relative; }

/* Invisible bridge — fills the gap between nav link and menu
   so the hover chain is never broken when moving the mouse down */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 12px;
    background: transparent;
    z-index: 9998;
    display: none;
}
.dropdown:hover::before { display: block; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    min-width: 230px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

/* Trigger on parent hover OR when mouse is over the menu itself */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.dropdown-menu li a:hover {
    background: var(--sky-light);
    color: var(--sky-dark);
}
.dropdown-menu li a i {
    width: 16px;
    color: var(--sky);
    font-size: 0.8rem;
}

.dropdown-header {
    padding: 6px 12px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 8px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--wa-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--navy);
    padding: 8px;
}

/* Header spacer */
.header-spacer { height: 112px; } /* top-bar + nav */

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    display: inline-block;
}
.footer-logo span { color: var(--sky-glow); }

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
}
.footer-links a:hover { color: var(--sky-glow); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}
.footer-contact i {
    color: var(--sky);
    font-size: 0.85rem;
    margin-top: 2px;
    width: 14px;
    flex-shrink: 0;
}
.footer-contact a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--sky-glow); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
    font-size: 0.82rem;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── WhatsApp Float Button ────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 54px;
    height: 54px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: all var(--transition);
    animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
    background: var(--wa-dark);
    transform: scale(1.1);
    animation: none;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.70); }
}

/* ── Feature Icon Boxes ───────────────────────────────── */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.icon-box-sky    { background: var(--sky-light); color: var(--sky); }
.icon-box-green  { background: #F0FDF4; color: var(--green); }
.icon-box-amber  { background: #FFFBEB; color: var(--amber); }
.icon-box-navy   { background: #EEF2FF; color: var(--navy); }
.icon-box-purple { background: #FAF5FF; color: var(--purple); }
.icon-box-teal   { background: #F0FDFA; color: var(--teal); }
.icon-box-wa     { background: #F0FDF4; color: var(--whatsapp); }

/* ── CTA Sections ─────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0D2151 60%, #0B3068 100%);
    color: var(--white);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(14,165,233,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.cta-section p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.75;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
    background: var(--navy);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sky-glow);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .nav-links, .nav-cta {
        display: none;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px;
        border-top: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(11,20,55,0.12);
    }
    .nav-links.active > li {
        width: 100%;
    }
    .nav-links.active > li > a {
        padding: 12px 8px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        pointer-events: auto;
        display: none;
    }
    .nav-links.active .dropdown.active .dropdown-menu {
        display: block;
    }
    .mobile-menu-btn { display: block; }
    .header-spacer   { height: 100px; }
}

@media (max-width: 768px) {
    section { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .top-bar-content { justify-content: center; gap: 4px; }
    .header-spacer { height: 88px; }
    .cta-section h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
