/* =====================================================================
   HAPPY DESIGNS — SHARED SITE STYLES
   Base reset, glass/button effects, nav header, and footer.
   Loaded on every page via head.php. Page-specific styles (hero
   animations, cards, etc.) live in each page's own <style> block.
   ===================================================================== */


        /* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #EEF0F4;
            color: #1A1E2B;
            font-family: 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        .font-display {
            font-family: 'Space Grotesk', sans-serif;
        }

        /* ===== SCROLL PROGRESS BAR ===== */
        #scroll-progress {
            position: fixed; top: 0; left: 0; height: 3px; width: 100%;
            z-index: 2000; pointer-events: none;
            background: rgba(26,30,43,0.06);
        }
        #scroll-progress-bar {
            height: 100%; width: 0%;
            background: linear-gradient(90deg, var(--hd-blue, #18AEE3), #0B4F8A, var(--hd-orange, #F5821F));
            transform-origin: left;
            box-shadow: 0 0 12px rgba(11, 79, 138,0.5);
        }

        /* ===== GLASS EFFECTS ===== */
        .glass {
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.70);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.35);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
        }

        .glass-deep {
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.45);
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.04);
        }

        /* ===== NEW HEADER DESIGN ===== */
        #navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.98);
            border-bottom: 1px solid rgba(11, 42, 74, 0.08);
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
        }

        #navbar.scrolled {
            box-shadow: 0 4px 20px rgba(11, 42, 74, 0.06);
            border-bottom-color: rgba(11, 42, 74, 0.1);
        }

        .nav-container {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 1.5rem;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            flex-shrink: 0;
        }

        /* --- LOGO SIZE FIX: larger, balanced --- */
        .nav-logo img {
            height: 56px;       /* increased from 48px for better visibility */
            width: auto;
            display: block;
        }

        .nav-logo span {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 1.35rem;  /* slightly larger to match logo */
            color: #1A1E2B;
        }

        .nav-logo span .highlight {
            color: #0B4F8A;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-links a {
            color: #3D4458;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.25s ease;
            position: relative;
            padding: 0.25rem 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #0B4F8A, #18AEE3);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: #1A1E2B;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-shrink: 0;
        }

        .nav-actions .sign-in {
            color: #3D4458;
            font-size: 0.875rem;
            font-weight: 500;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            transition: all 0.25s ease;
        }

        .nav-actions .sign-in:hover {
            background: rgba(11, 79, 138, 0.08);
            color: #0B4F8A;
        }

        .nav-actions .btn-start {
            background: linear-gradient(135deg, #0B4F8A, #18AEE3);
            color: white;
            padding: 0.6rem 1.5rem;
            border-radius: 2rem;
            font-size: 0.875rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(11, 79, 138, 0.2);
        }

        .nav-actions .btn-start:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(17, 24, 39, 0.2);
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: #1A1E2B;
            cursor: pointer;
            padding: 0.5rem;
        }

        /* ===== MOBILE MENU ===== */
        .mobile-menu {
            display: none;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 1.5rem;
            margin-top: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
        }

        .mobile-menu.open {
            display: block;
        }

        .mobile-menu a {
            display: block;
            padding: 0.75rem 0;
            color: #1A1E2B;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            transition: color 0.2s;
        }

        .mobile-menu a:hover {
            color: #0B4F8A;
        }

        .mobile-menu a:last-child {
            border-bottom: none;
        }

        body.modal-open {
            overflow: hidden;
        }

        /* ===== FOOTER ===== */
        .site-footer {
            position: relative;
            overflow: hidden;
            background: #0B2A4A;
        }

        .site-footer::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, #0B4F8A, #18AEE3, #F5821F);
        }

        /* ===== FLOATING ACTION STACK (WhatsApp + Back-to-top) ===== */
        #fabStack {
            position: fixed;
            right: 1.5rem;
            bottom: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.9rem;
            z-index: 900;
        }

        /* ---- WhatsApp button ---- */
        #whatsappBtn {
            position: relative;
            width: 3.4rem;
            height: 3.4rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #25D366, #128C7E);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
            text-decoration: none;
            animation: fabFloat 3.2s ease-in-out infinite;
        }
        #whatsappBtn svg { width: 1.7rem; height: 1.7rem; position: relative; z-index: 2; }
        #whatsappBtn::before,
        #whatsappBtn::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: rgba(37, 211, 102, 0.55);
            z-index: 1;
            animation: whatsappPulse 2.4s ease-out infinite;
        }
        #whatsappBtn::after { animation-delay: 1.2s; }
        #whatsappBtn:hover { transform: translateY(-3px) scale(1.05); }
        #whatsappBtn .fab-tooltip {
            position: absolute;
            right: calc(100% + 0.75rem);
            top: 50%;
            transform: translateY(-50%) translateX(6px);
            background: #1A1E2B;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 600;
            white-space: nowrap;
            padding: 0.4rem 0.75rem;
            border-radius: 0.4rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        #whatsappBtn:hover .fab-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

        /* ===== BACK TO TOP ===== */
        #backToTop {
            position: relative;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #0B4F8A, #18AEE3);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(11, 42, 74, 0.25);
            border: none;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        }

        #backToTop.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            animation: fabFloat 3.2s ease-in-out infinite;
        }

        #backToTop:hover {
            transform: translateY(-3px) scale(1.05);
        }

        /* spinning loader ring drawn around the back-to-top button, a quiet
           sign of life that mirrors the preloader ring earlier on the page */
        #backToTop::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 2px solid transparent;
            border-top-color: rgba(24, 174, 227, 0.75);
            border-right-color: rgba(24, 174, 227, 0.25);
            animation: backToTopSpin 2.6s linear infinite;
        }

        .footer-glow {
            position: absolute;
            top: -220px;
            left: 50%;
            transform: translateX(-50%);
            width: 900px;
            height: 420px;
            background: radial-gradient(closest-side, rgba(24,174,227,0.28), transparent 72%);
            pointer-events: none;
        }

        .footer-logo {
            filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(24,174,227,0.35));
            height: 170px !important;
            width: auto !important;
            display: block;
        }

        @media (max-width: 768px) {
            .footer-logo {
                height: 90px !important;
            }
        }

        .footer-newsletter {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            width: 100%;
            max-width: 26rem;
        }

        .footer-newsletter input {
            flex: 1;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 9999px;
            padding: 0.75rem 1.25rem;
            font-size: 0.85rem;
            color: #fff;
            outline: none;
            transition: border-color 0.25s ease, background 0.25s ease;
        }

        .footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }

        .footer-newsletter input:focus {
            border-color: #18AEE3;
            background: rgba(255,255,255,0.1);
        }

        .footer-newsletter button {
            flex-shrink: 0;
            border: none;
            cursor: pointer;
            border-radius: 9999px;
            padding: 0.75rem 1.4rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #0B4F8A, #18AEE3, #F5821F);
            background-size: 200% 200%;
            transition: transform 0.25s ease, background-position 0.4s ease;
        }

        .footer-newsletter button:hover {
            transform: translateY(-2px);
            background-position: 100% 50%;
        }

        .footer-head {
            color: #fff;
            font-weight: 600;
            margin-bottom: 0.9rem;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.9rem;
            letter-spacing: 0.02em;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: color 0.2s, padding-left 0.2s;
            font-size: 0.9rem;
        }

        .footer-links a:hover {
            color: #fff;
            padding-left: 4px;
        }

        .social-icon {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.16);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.25s ease;
        }

        .social-icon svg { width: 1.05rem; height: 1.05rem; }

        .social-icon:hover {
            color: #fff;
            background: linear-gradient(135deg, #0B4F8A, #18AEE3);
            border-color: transparent;
            transform: translateY(-2px);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .nav-links {
                display: none;
            }
            .menu-toggle {
                display: block;
            }
        }

        @media (max-width: 640px) {
            .nav-container {
                padding: 0.35rem 0.75rem;
                border-radius: 1.5rem;
            }
            .nav-logo img {
                height: 50px; /* bigger, more prominent logo on mobile */
            }
            .nav-logo span {
                font-size: 1.1rem;
            }
            .nav-actions .btn-start {
                padding: 0.4rem 1rem;
                font-size: 0.8rem;
            }
            .nav-actions .sign-in {
                font-size: 0.8rem;
                padding: 0.4rem 0.75rem;
            }
            .mobile-menu {
                padding: 1rem;
            }
        }

        .bg-grid {
            background-image: radial-gradient(circle at 20% 30%, rgba(11, 79, 138, 0.03) 0%, transparent 60%);
        }
.logo-img{
    height:170px;
    width:auto;
    display:block;
}

/* Mobile */
@media (max-width: 768px){
    .logo-img{
        height:80px;   /* Try 70px-90px */
    }
}
/* ===== NAV ACTIVE STATE ===== */
.nav-links a.active {
    color: #1A1E2B;
}
.nav-links a.active::after {
    width: 100%;
}
.mobile-menu a.active {
    color: #0B4F8A;
    font-weight: 600;
}

/* ===== SHARED PAGE HERO (used by Services / About / Contact) ===== */
.page-hero {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0B4F8A;
    background: rgba(11, 79, 138, 0.08);
    border: 1px solid rgba(11, 79, 138, 0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}