@import 'design-system.css';
@import 'animations.css';
@import 'home.css';

/* ==========================================================================
   HEADER
   ========================================================================== */
/* ==========================================================================
   HEADER & RESPONSIVE NAVIGATION
   ========================================================================== */
/* ==========================================================================
   HEADER & RESPONSIVE NAVIGATION (SITE-WIDE BULLETPROOF)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 9999 !important;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    transition: all 0.3s ease;
}

.site-header.is-scrolled {
    height: 72px;
    background: rgba(6, 6, 6, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(197, 168, 128, 0.35);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-shrink: 0;
    background: #f6f6f8;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(197, 168, 128, 0.5);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 12px rgba(197, 168, 128, 0.18);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .site-header {
        height: 68px;
    }
    .logo {
        padding: 3px 8px;
        border-radius: 10px;
    }
    .logo-img {
        height: 40px;
    }
}

/* Desktop Navigation Link Strip */
.nav-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: flex;
        gap: 26px;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .nav-link {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-weight: 600;
        color: rgba(245, 245, 245, 0.85);
        text-decoration: none !important;
        position: relative;
        padding: 6px 0;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    .nav-link:hover, 
    .nav-link.active {
        color: var(--color-gold) !important;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-gold);
        box-shadow: 0 0 10px rgba(197, 168, 128, 0.6);
        border-radius: 2px;
    }

    .header-nav-btn {
        padding: 10px 22px;
        background: linear-gradient(135deg, rgba(197, 168, 128, 0.18) 0%, rgba(197, 168, 128, 0.06) 100%);
        border: 1px solid var(--color-gold);
        border-radius: 30px;
        color: var(--color-gold);
        font-family: var(--font-body);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-decoration: none !important;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-nav-btn:hover {
        background: var(--color-gold);
        color: #0d0d0d;
        box-shadow: 0 0 22px rgba(197, 168, 128, 0.45);
        transform: translateY(-2px);
    }
}

/* Hamburger Toggle Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 10px;
    cursor: pointer;
    z-index: 10000 !important;
    padding: 8px 10px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(197, 168, 128, 0.25);
    border-color: var(--color-gold);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-ivory);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-gold);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-gold);
}

@media (min-width: 992px) {
    .hamburger {
        display: none !important;
    }
}

/* Mobile Menu Full Drawer (Bulletproof All Screen Heights) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(6, 6, 6, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 9998 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(80px, 14vh, 110px) 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.mobile-menu.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

.mobile-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-ivory);
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    color: var(--color-gold) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-charcoal);
    padding-top: var(--space-24);
    padding-bottom: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f8;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(197, 168, 128, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(197, 168, 128, 0.15);
    margin-bottom: var(--space-4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.35);
}

.footer-logo .logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: transform var(--transition-fast);
}

/* ==========================================================================
   GLOBAL BULLETPROOF ALL-DEVICE RESPONSIVE SYSTEM
   ========================================================================== */

/* 1. Universal Layout & Overflow Guards */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

#main-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

section {
    max-width: 100% !important;
    overflow-x: clip !important;
}

h1, h2, h3, h4, h5, h6, p, span, a, li {
    overflow-wrap: break-word !important;
    word-break: break-word;
}

img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
}

/* Page Hero Grid Systems */
.hero-split-grid,
.projects-hero-grid,
.services-hero-grid,
.insights-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-12);
    }
    .projects-hero-grid,
    .services-hero-grid,
    .insights-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-10);
    }
}

/* 2. Tablets & Small Laptops (max-width: 991px) */
@media (max-width: 991px) {
    .site-header {
        height: 68px !important;
    }
    .nav-desktop {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    .hero-grid,
    .split-section,
    .contact-split-grid,
    .faq-master-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-8) !important;
    }
    .hero, .hero-contact {
        padding-top: clamp(96px, 13vh, 130px) !important;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-8) !important;
    }
}

/* 3. Mobile Phones (max-width: 767px) */
@media (max-width: 767px) {
    .section-padding {
        padding-top: var(--space-16) !important;
        padding-bottom: var(--space-16) !important;
    }
    h1, .hero-title {
        font-size: clamp(2rem, 7.5vw, 2.75rem) !important;
        line-height: 1.2 !important;
    }
    h2 {
        font-size: clamp(1.6rem, 5.8vw, 2.2rem) !important;
        line-height: 1.25 !important;
    }
    h3 {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem) !important;
        line-height: 1.3 !important;
    }
    p {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }
    .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    /* iOS Input auto-zoom fix & full width */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .trust-item h3 {
        font-size: 2rem !important;
    }
    .cta-btn-gold,
    .cta-btn-glass,
    .btn-luxury-submit,
    .btn-service-link {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-8) !important;
        text-align: left !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
}

/* 4. Small Mobile Devices (max-width: 479px) */
@media (max-width: 479px) {
    .site-header {
        height: 62px !important;
    }
    .logo {
        padding: 3px 6px !important;
        border-radius: 8px !important;
    }
    .logo-img {
        height: 38px !important;
        max-width: 140px !important;
    }
    .hamburger {
        padding: 5px 8px !important;
    }
    .hamburger span {
        width: 19px !important;
    }
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .section-padding {
        padding-top: var(--space-12) !important;
        padding-bottom: var(--space-12) !important;
    }
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    /* Horizontal scroll filter bars for smooth mobile experience */
    #filter-buttons-container,
    .category-filter-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        padding-bottom: 8px !important;
        scrollbar-width: none;
    }
    #filter-buttons-container::-webkit-scrollbar,
    .category-filter-wrap::-webkit-scrollbar {
        display: none;
    }
    .p-filter-btn, .category-filter-btn {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 11px !important;
    }
    /* Decorative radial glows never overflow screen */
    .anim-pulse, .anim-spin, .anim-float, .anim-float-rev {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-links a {
    color: var(--color-ivory);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--color-gray);
    font-size: var(--text-xs);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================================================
   TIMELINE RESPONSIVE RULES (OUR JOURNEY & EVOLUTION)
   ========================================================================== */
@media (max-width: 991px) {
    .timeline-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .timeline-line {
        left: 18px !important;
        transform: none !important;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 48px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }
    
    .timeline-side-left, 
    .timeline-side-right {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .timeline-node {
        left: 18px !important;
        top: 28px !important;
        transform: translateX(-50%) !important;
        width: 28px !important;
        height: 28px !important;
    }

    .timeline-card-box, 
    .timeline-widget-box {
        padding: 20px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .journey-tab-btn {
        padding: 8px 14px !important;
        font-size: 11px !important;
        flex: 1 1 auto;
        text-align: center;
    }
}
