/* =========================================
   CLEAR VIEW DOUBLE GLAZING - CUSTOM CSS
   ========================================= */

html {
    scroll-behavior: smooth;
}

/* ---------- STICKY NAV GRADIENT (Top to Bottom) ---------- */
.nav-gradient {
    background: linear-gradient(to bottom, rgba(11, 31, 58, 0.98) 0%, rgba(11, 31, 58, 0.85) 60%, rgba(11, 31, 58, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-gradient.scrolled {
    background: linear-gradient(to bottom, rgba(11, 31, 58, 0.98) 0%, rgba(11, 31, 58, 0.95) 100%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ---------- 3D CARD EFFECTS ---------- */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}
.card-3d-inner {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
}
.card-3d:hover .card-3d-inner {
    transform: rotateY(-6deg) rotateX(4deg) translateZ(20px);
    box-shadow: -20px 25px 50px -12px rgba(30, 90, 168, 0.45);
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---------- LAYER PARALLAX / FLOATING ---------- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float-anim { animation: float-slow 6s ease-in-out infinite; }

@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-fast { animation: float-fast 4s ease-in-out infinite; }

/* ---------- HERO LAYER SHINE ---------- */
@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shine-text {
    background: linear-gradient(90deg, #fff 0%, #93c5fd 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

/* ---------- IMAGE HOVER ZOOM ---------- */
.img-zoom {
    overflow: hidden;
    border-radius: 1rem;
}
.img-zoom img {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.img-zoom:hover img {
    transform: scale(1.08);
}

/* ---------- BUTTON RIPPLE / GLOW ---------- */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.btn-glow:hover::before { left: 100%; }

/* ---------- FLOATING QUOTE BUTTON PULSE ---------- */
@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.7; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}
.quote-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #3b82f6;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

/* ---------- 3D FLIP ICONS ---------- */
.flip-card {
    perspective: 800px;
}
.flip-card-inner {
    transition: transform 0.7s;
    transform-style: preserve-3d;
    position: relative;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-front, .flip-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.flip-back {
    transform: rotateY(180deg);
    position: absolute;
    inset: 0;
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 768px) {
    .card-3d:hover .card-3d-inner { transform: none; }
    .reveal-left, .reveal-right { transform: translateY(40px); }
    .reveal-left.active, .reveal-right.active { transform: translateY(0); }
}

/* Hide scrollbar for smooth feel */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B1F3A; }
::-webkit-scrollbar-thumb { background: #1E5AA8; border-radius: 4px; }

/* ---------- TESTIMONIAL SLIDER ---------- */
/* ---------- TESTIMONIAL SLIDER (FORCED SINGLE VIEW) ---------- */
#testimonial-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    will-change: transform;
}

#testimonial-track .testimonial-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 12px;
}
#testimonial-track > .testimonial-slide {
    flex: 0 0 100% !important;
    width: 100vw !important;
    max-width: 100% !important;
}


/* =========================================
   ANIMATED HAMBURGER (Morphs to X)
   ========================================= */
.hamburger {
    width: 32px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* When open */
.hamburger.is-open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.hamburger.is-open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* =========================================
   MOBILE MENU (Slide Down + Fade)
   ========================================= */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 31, 58, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-menu.is-open {
    max-height: 700px;
}

/* Mobile links with stagger */
.mobile-link {
    position: relative;
    display: block;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 8px;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}
.mobile-menu.is-open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}
/* Staggered delays */
.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-link:nth-child(6) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-link:nth-child(7) { transition-delay: 0.35s; }

/* Mobile link hover state */
.mobile-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
    padding-left: 16px;
}

/* Active page indicator */
.mobile-link.mobile-active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), transparent);
    padding-left: 16px;
}
.mobile-link.mobile-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Disable scroll when menu is open (optional, added via JS) */
body.menu-open {
    overflow: hidden;
}

/* =========================================
   PREMIUM NAVIGATION LINKS
   ========================================= */
.nav-link {
    position: relative;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 2px;
    transition: color 0.35s ease, letter-spacing 0.35s ease, transform 0.35s ease;
    display: inline-block;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-link:hover {
    color: #ffffff;
    letter-spacing: 0.06em;
    transform: translateY(-1px);
    text-shadow: 0 0 12px rgba(147, 197, 253, 0.6);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.nav-active {
    color: #ffffff;
    font-weight: 700;
}
.nav-link.nav-active::after {
    width: 100%;
    background: linear-gradient(90deg, #60a5fa, #ffffff);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
}

/* =========================================
   PRODUCT CHECKLIST TAGS
   ========================================= */
.product-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 90, 168, 0.08);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Sliding gradient background on hover */
.product-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1E5AA8, #3b82f6);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}

.product-tag:hover::before {
    transform: translateX(0);
}

/* Icon */
.product-tag i {
    color: #1E5AA8;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.35s ease, transform 0.35s ease;
}

/* Text */
.product-tag span {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease, letter-spacing 0.35s ease;
}

/* HOVER STATE */
.product-tag:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px -10px rgba(30, 90, 168, 0.5);
    border-color: transparent;
}

.product-tag:hover i {
    color: #ffffff;
    transform: scale(1.15) rotate(-5deg);
}

.product-tag:hover span {
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* =========================================
   OUR WORK — FILTER BUTTONS
   ========================================= */
.filter-btn {
    padding: 10px 22px;
    border-radius: 9999px;
    background: #E8F0F9;
    color: #1E5AA8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(30, 90, 168, 0.4);
    background: #d9e6f7;
}
.filter-btn.filter-active {
    background: linear-gradient(135deg, #1E5AA8, #3b82f6);
    color: #fff;
    box-shadow: 0 12px 25px -10px rgba(30, 90, 168, 0.6);
}

/* =========================================
   WORK GALLERY — FILTERING ANIMATION
   ========================================= */
.work-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.work-item.is-hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}





/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 15, 30, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
}

/* Content */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 2;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}
.lightbox.is-open .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    display: block;
}

/* Caption */
.lightbox-caption {
    text-align: center;
    margin-top: 16px;
    color: #fff;
}
.lightbox-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1E5AA8, #3b82f6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}
.lightbox-caption h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.lightbox-caption p {
    font-size: 0.85rem;
    color: #93c5fd;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-close:hover {
    background: #3b82f6;
    transform: rotate(90deg) scale(1.1);
}

/* Prev / Next buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-nav:hover {
    background: #3b82f6;
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Prevent page scroll when open */
body.lightbox-open {
    overflow: hidden;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
    .lightbox-content img { max-height: 65vh; }
}


/* =========================================
   QUOTE FORM — MULTI-STEP
   ========================================= */
.form-step {
    animation: fadeInStep 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Active step circle */
.step-indicator.active .step-circle {
    background: linear-gradient(135deg, #1E5AA8, #3b82f6);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(30, 90, 168, 0.6);
    transform: scale(1.1);
}
.step-indicator.active .step-label {
    color: #1E5AA8;
    font-weight: 700;
}

/* Completed step */
.step-indicator.completed .step-circle {
    background: #1E5AA8;
    color: #fff;
}
.step-indicator.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.step-indicator.completed .step-circle {
    font-size: 0;
}
.step-indicator.completed .step-circle::after {
    font-size: 14px;
}

/* Service option */
.service-option .peer:checked + div {
    transform: translateY(-3px);
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-item:hover {
    border-color: rgba(30, 90, 168, 0.35);
    box-shadow: 0 10px 30px -15px rgba(30, 90, 168, 0.25);
}
.faq-item.is-open {
    border-color: #1E5AA8;
    box-shadow: 0 15px 40px -15px rgba(30, 90, 168, 0.35);
}

/* Question button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #0B1F3A;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: #1E5AA8;
}
.faq-q-text {
    flex-grow: 1;
}

/* Plus icon (turns into X) */
.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8F0F9;
    color: #1E5AA8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    font-size: 0.75rem;
}
.faq-item.is-open .faq-icon {
    background: linear-gradient(135deg, #1E5AA8, #3b82f6);
    color: #fff;
    transform: rotate(135deg);
}

/* Answer area (smooth height animation) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-item.is-open .faq-answer {
    max-height: 500px;
}
.faq-answer-inner {
    padding: 0 24px 24px 24px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 0;
}

/* Category filter buttons */
.faq-filter-btn {
    padding: 10px 22px;
    border-radius: 9999px;
    background: #E8F0F9;
    color: #1E5AA8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(30, 90, 168, 0.4);
    background: #d9e6f7;
}
.faq-filter-btn.faq-filter-active {
    background: linear-gradient(135deg, #1E5AA8, #3b82f6);
    color: #fff;
    box-shadow: 0 12px 25px -10px rgba(30, 90, 168, 0.6);
}

/* Hidden group (when filtered out) */
.faq-group.is-hidden {
    display: none;
}


/* =========================================
   COLOUR SWATCHES
   ========================================= */
.colour-swatch {
    position: relative;
    text-align: center;
}
.colour-swatch .aspect-square {
    position: relative;
}
.colour-swatch .aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}
.colour-swatch:hover .aspect-square::after {
    border-color: #1E5AA8;
}