/* ======================================================
   QByteGTec Apps - Global Cohesive Style Sheet
   ====================================================== */

/* ================================================
   BRAND TOKENS
   ================================================ */
:root {
    --teal:        #09aca3;
    --teal-light:  #28bdb6;
    --teal-dark:   #067a73;
    --orange:      #f38d2f;
    --orange-dark: #d4721a;
    --grad:        linear-gradient(45deg, var(--teal), var(--orange));
    --grad-rev:    linear-gradient(45deg, var(--orange), var(--teal));
    --nav-h:       74px;
}

/* ================================================
   BASE & TYPOGRAPHY
   ================================================ */
html { 
    scroll-padding-top: var(--nav-h); 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
}

.font-alt {
    font-family: 'Kanit', sans-serif !important;
}

/* ================================================
   BRAND UTILITIES
   ================================================ */
.bg-brand-gradient {
    background: var(--grad) !important;
}

.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   NAVIGATION (Always identical across pages)
   ================================================ */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(9,172,163,0.12);
    transition: background 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
    box-shadow: 0 2px 20px rgba(9,172,163,0.15) !important;
}

#mainNav .navbar-brand img { 
    height: 42px; 
    width: auto; 
}

#mainNav .nav-link {
    color: #444 !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0.9rem !important;
    border-radius: 50px;
    transition: all 0.2s;
}

#mainNav .nav-link:hover {
    color: var(--teal) !important;
    background: rgba(9,172,163,0.07);
}

#mainNav .nav-link.active {
    color: var(--teal) !important;
    background: rgba(9,172,163,0.07) !important;
}

#mainNav .navbar-toggler {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    color: #212529;
    border-color: rgba(9,172,163,0.3);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-brand {
    background: var(--grad);
    color: #fff !important;
    border: none;
    font-weight: 700;
    transition: all 0.25s;
    box-shadow: 0 4px 18px rgba(9,172,163,0.35);
}

.btn-brand:hover {
    background: linear-gradient(45deg, var(--teal-dark), var(--orange-dark));
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(9,172,163,0.4);
}

.btn-outline-brand {
    color: #fff !important;
    border: 2px solid #fff;
    font-weight: 700;
    transition: all 0.25s;
}

.btn-outline-brand:hover {
    background: #fff;
    color: var(--teal-dark) !important;
    transform: translateY(-2px);
}

/* ================================================
   SOCIAL SIDEBAR (Facebook & YouTube)
   ================================================ */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid rgba(9,172,163,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d2b2a;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    transform: scale(1.15) translateX(5px);
    background: var(--grad);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(9,172,163,0.3);
}

/* ================================================
   COOKIE CONSENT BAR
   ================================================ */
#cookieBar {
    position: fixed;
    bottom: -100px;
    left: 0; right: 0;
    background: #0d2b2a;
    color: #ccc;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 9999;
    font-size: 0.85rem;
    transition: bottom 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 -4px 24px rgba(9,172,163,0.2);
    border-top: 1px solid rgba(9,172,163,0.25);
}

#cookieBar.show { 
    bottom: 0; 
}

#cookieBar a { 
    color: var(--teal-light); 
}

.cookie-btns { 
    display: flex; 
    gap: 0.5rem; 
    flex-shrink: 0; 
}

.btn-cookie {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-cookie-reject {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}

.btn-cookie-reject:hover { 
    border-color: #777; 
    color: #ddd; 
}

.btn-cookie-accept {
    background: var(--grad);
    color: #fff;
}

/* ================================================
   TOAST
   ================================================ */
#toast {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    z-index: 3000;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
    pointer-events: none;
}

#toast.show { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ================================================
   FOOTER (Shared style)
   ================================================ */
footer {
    background-color: #000;
    padding: 2.5rem 0;
    text-align: center;
}

footer .text-white-50 { 
    font-size: 0.85rem; 
}

footer a { 
    color: rgba(255,255,255,0.5); 
    text-decoration: none; 
    transition: color 0.2s; 
}

footer a:hover { 
    color: var(--teal-light); 
    text-decoration: none; 
}

/* ================================================
   MODAL & FORM
   ================================================ */
.modal-header.brand-header {
    background: var(--grad);
}

.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(9,172,163,0.2);
}

select.form-control option { 
    background: #fff; 
}

/* ================================================
   RESPONSIVE OVERRIDES
   ================================================ */
@media (max-width: 768px) {
    .social-sidebar {
        position: relative;
        flex-direction: row;
        top: 0; left: 0;
        width: 100%;
        justify-content: center;
        padding: 1.5rem 1rem;
        background: #fff;
        border-top: 1px solid #eee;
        transform: none;
        margin-top: 2rem;
    }
}
