/* --- PRINT STUDIO NZ: COMPLETE THEME --- */

:root {
    --font-primary: 'Figtree', sans-serif;
    --font-hero: 'Figtree', sans-serif;
    
    /* THE HYBRID PALETTE: Soft Black, Champagne Gold Accents, Pastel Canvas */
    --color-primary: #E6D3A8;  /* Champagne Gold */
    --color-accent: #D5C39A;   /* Slightly darker Champagne for hover states */
    --color-dark: #1C1C1C;     /* Soft Charcoal/Off-Black */
    --color-text: #4a4a4a;     /* Soft Grey for body text */
    
    --shadow-clean: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(230, 211, 168, 0.15); /* Subtle Champagne glow on hover */
}

body, html { font-family: var(--font-primary); color: var(--color-text); overflow-x: hidden; background-color: #fcfcfc; }

/* 1. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-hero); color: var(--color-dark); font-weight: 800; }
p { line-height: 1.7; margin-bottom: 1.5rem; opacity: 0.9; }

.ls-1 { letter-spacing: 1px; }
.fw-black { font-weight: 900; }
.fw-light { font-weight: 300; }
.tiny { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
/* Gives the navbar more vertical space to accommodate the larger logo */
.navbar {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Colors */
.text-primary { color: var(--color-primary) !important; }
.bg-primary-color { background-color: var(--color-primary) !important; }
.bg-dark-color { background-color: var(--color-dark) !important; }

/* 2. BUTTONS & NAV */
.btn-primary { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-dark); transition: 0.3s; font-weight: 800; }
.btn-primary:hover { background-color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px); color: var(--color-dark); }
.btn-outline-dark { color: var(--color-dark); border-color: var(--color-dark); }
.btn-outline-dark:hover { background-color: var(--color-dark); color: white; border-color: var(--color-dark); }

.transition-nav { transition: background-color 0.4s ease, padding 0.4s ease; background-color: transparent; }
.transition-nav.scrolled { background-color: rgba(28, 28, 28, 0.98); padding-top: 10px !important; padding-bottom: 10px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* 3. HERO (Index) */
.hero-section { position: relative; overflow: hidden; background: #000; }
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; }
.hero-slide.active { opacity: 1; z-index: 1; }
.overlay-light { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 2; transition: opacity 0.5s ease; }

.hero-text-box { display: inline-block; padding: 40px; padding-right: 60px; border-right: 2px solid; border-bottom: 2px solid; z-index: 3; transition: all 0.5s ease; }
.fade-text { transition: opacity 0.5s ease, transform 0.5s ease; opacity: 1; transform: translateY(0); }
.fade-text.hiding { opacity: 0; transform: translateY(10px); }

.hero-title { font-size: 4rem; line-height: 0.9; letter-spacing: -2px; font-weight: 900; }
.hero-subtitle { font-size: 1.25rem; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; }

.text-white .hero-title, .text-white .hero-subtitle { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.text-white.hero-text-box { border-color: white; }
.text-dark .hero-title, .text-dark .hero-subtitle { text-shadow: none; color: var(--color-dark) !important; }
.text-dark.hero-text-box { border-color: var(--color-dark); }

.hero-arrow-link { display: inline-flex; align-items: center; transition: 0.3s; opacity: 1; text-decoration: none !important; }
.hero-arrow-link.text-white { color: white !important; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero-arrow-link.text-dark { color: var(--color-dark) !important; }
.hero-arrow-link:hover { transform: translateY(5px); opacity: 0.8; color: var(--color-primary) !important; }

/* 4. HUB (Glass Cards - NOW DARK CHARCOAL) */
.glass-overlap-wrapper { position: relative; z-index: 20; padding: 0 20px; }
.glass-card-feature { background: var(--color-dark); margin-top: -80px; border-radius: 4px; box-shadow: var(--shadow-hover); max-width: 1000px; margin-left: auto; margin-right: auto; border: 1px solid rgba(230, 211, 168, 0.3); }
.hub-item { padding: 30px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: all 0.3s ease; cursor: pointer; min-height: 150px; }
.hub-item:hover { background-color: rgba(230, 211, 168, 0.05); } /* Subtle Champagne glow on hover */
.hub-icon { font-size: 2rem; margin-bottom: 10px; color: var(--color-primary); } /* Icons are now Gold */
.hub-item:hover .hub-icon { transform: scale(1.1); }

/* 5. MERCH CARDS */
.merch-card { display: block; text-decoration: none; border-radius: 12px; overflow: hidden; position: relative; height: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease; }
.merch-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.merch-info { position: absolute; bottom: 25px; left: 25px; width: auto; max-width: 80%; padding: 15px 25px; background: #ffffff; color: var(--color-dark); border-radius: 50px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); transition: transform 0.4s ease, box-shadow 0.4s ease; z-index: 2; }
.merch-info h6 { margin: 0; font-weight: 800; font-size: 0.95rem; color: var(--color-dark); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; }
.merch-info h6::after { content: '→'; font-weight: 300; transition: transform 0.3s ease; color: var(--color-primary); } 
.merch-card:hover .merch-img { transform: scale(1.1); }
.merch-card:hover .merch-info { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.merch-card:hover .merch-info h6::after { transform: translateX(5px); }

/* 6. SERVICE CARDS */
.service-standoff-card { display: block; position: relative; height: 500px; text-decoration: none; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: translateZ(0); }
.service-standoff-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); filter: brightness(0.9); }
.service-standoff-content { position: absolute; bottom: 30px; left: 30px; right: 30px; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(0); transition: transform 0.4s ease, box-shadow 0.4s ease; z-index: 2; }
.service-standoff-card h3 { color: var(--color-dark) !important; font-size: 1.8rem; margin-bottom: 5px; font-weight: 800; text-shadow: none; }
.service-standoff-card p { color: var(--color-text) !important; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin: 0; font-weight: 600; opacity: 0.7; }
.service-standoff-card:hover .service-standoff-bg { transform: scale(1.1); filter: brightness(1); }
.service-standoff-card:hover .service-standoff-content { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); border-bottom: 3px solid var(--color-primary); } 

/* 7. WORKFLOW TEASER */
.process-industrial-card { background: white; border-radius: 12px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; border: none; margin-top: 40px; overflow: visible !important; }
.proc-ind-img { width: 100%; height: 220px; background-size: cover; background-position: center; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.proc-ind-body { padding: 30px; position: relative; background: white; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.proc-ind-num { position: absolute; top: -40px; right: 20px; width: 70px; height: 70px; background: var(--color-dark); color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; box-shadow: 0 10px 20px rgba(0,0,0,0.2); border: 5px solid white; z-index: 10; } 
.process-industrial-card:hover { transform: translateY(-10px); box-shadow: 0 30px 50px rgba(0,0,0,0.15); }

/* 8. PROCESS PAGE */
.manifesto-section { min-height: 50vh; padding-top: 120px; padding-bottom: 50px; }
.pinned-process-wrapper { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.process-panel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%); }
.panel-1 { z-index: 1; }
.panel-2 { z-index: 2; transform: translateY(100%); }
.panel-3 { z-index: 3; transform: translateY(100%); }
.huge-number { font-size: 20rem; font-weight: 900; line-height: 0.8; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; opacity: 0.05; pointer-events: none; user-select: none; }
.panel-2 .huge-number, .panel-3 .huge-number { opacity: 0.1; color: white; }
.panel-content { position: relative; z-index: 2; background: #ffffff; padding: 60px; border-radius: 12px; box-shadow: 0 40px 80px rgba(0,0,0,0.2); border-top: 6px solid var(--color-dark); width: 100%; }
.panel-1 .panel-content { border-top-color: var(--color-dark); }
.panel-2 .panel-content { border-top-color: var(--color-primary); }
.panel-3 .panel-content { border-top-color: var(--color-accent); }
.panel-content h2 { font-size: 2.5rem; letter-spacing: -1px; }
.panel-content p { font-size: 1rem; line-height: 1.6; }

/* 9. FOOTER & UTILITIES */
.footer-minimal { background-color: white; border-top: 1px solid #eee; padding: 30px 0; font-size: 0.9rem; }
.footer-link-underline { color: var(--color-text); text-decoration: none; font-weight: 700; border-bottom: 2px solid rgba(230, 211, 168, 0.3); transition: 0.3s; }
.footer-link-underline:hover { border-bottom-color: var(--color-primary); color: var(--color-primary); }

.section-padding { padding: 100px 0; }
.bg-light { background-color: #f8f9fa !important; }
.client-slider-wrapper { display: flex; gap: 30px; overflow-x: auto; padding: 60px 0; align-items: center; justify-content: center; }
.client-card { min-width: 180px; height: 100px; background: white; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 1; filter: grayscale(100%); transition: all 0.3s ease; }
.client-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.client-card:hover { filter: grayscale(0%); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.simple-dot { width: 10px; height: 10px; background: rgba(0,0,0,0.5); position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999; }

/* 10. SERVICES PAGE (SWISS SWATCHES RESTORED) */
.bg-pastel-blue { background-color: #DAE3E5; }
.bg-pastel-peach { background-color: #F3D8C7; }
.bg-pastel-sage { background-color: #D6EADF; }
.bg-pastel-cream { background-color: #F7F0DE; }
.bg-pastel-grey { background-color: #E8E9EB; }
.bg-pastel-lavender { background-color: #E6E1EB; }

.swatch-card { display: flex; flex-direction: column; justify-content: space-between; height: 350px; padding: 35px; text-decoration: none !important; border-radius: 16px; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; border: 1px solid rgba(0,0,0,0.03); }
.swatch-header { display: flex; justify-content: space-between; align-items: flex-start; }
.swatch-num { font-family: var(--font-hero); font-size: 1.5rem; font-weight: 800; color: var(--color-dark); opacity: 0.2; }
.swatch-arrow { font-size: 1.5rem; color: var(--color-dark); transform: rotate(0deg); transition: transform 0.3s ease; }
.swatch-title { font-size: 2rem; line-height: 1; margin-bottom: 15px; color: var(--color-dark); letter-spacing: -1px; }
.swatch-desc { font-size: 1rem; color: var(--color-dark); opacity: 0.8; margin-bottom: 0; font-weight: 500; line-height: 1.5; }
.swatch-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.swatch-card:hover .swatch-arrow { transform: rotate(45deg); color: var(--color-primary); } 
.swatch-card.bg-dark-color:hover { background-color: #242424 !important; }

/* 11. PROJECT SUB-PAGES */
.project-header { padding-top: 150px; padding-bottom: 50px; }
.placeholder-hero { width: 100%; height: 500px; border-radius: 0; border: 2px dashed rgba(0,0,0,0.1); }
.placeholder-card { width: 100%; height: 400px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(0,0,0,0.1); transition: all 0.3s ease; }
.placeholder-card:hover { border-color: var(--color-primary); background-color: #f0f0f0; }
.placeholder-content { text-align: center; color: var(--color-text); opacity: 0.4; }
.tech-spec-table { border-top: 2px solid var(--color-dark); }
.spec-row { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.1); transition: background-color 0.2s ease; }
.spec-row:hover { padding-left: 10px; padding-right: 10px; background-color: #f8f9fa; }
.spec-label { font-weight: 700; color: var(--color-dark); width: 40%; }
.spec-value { font-weight: 400; color: var(--color-text); width: 60%; text-align: right; }
@media (max-width: 768px) { .placeholder-hero { height: 300px; } .placeholder-card { height: 250px; } }

/* --- MOBILE UI OPTIMIZATIONS --- */

/* 1. Sticky Mobile Quote Bar */
.mobile-sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1050; /* Above everything else */
    display: none; /* Hidden on desktop */
}

@media (max-width: 991px) {
    .mobile-sticky-cta {
        display: block;
    }
    
    /* 2. Larger Touch Targets for the hamburger menu */
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Better spacing for cards on mobile */
    .swatch-card, .merch-card, .service-standoff-card {
        margin-bottom: 10px;
    }

    /* 3. Disable custom cursor dot on mobile */
    .simple-dot {
        display: none !important;
    }
}

/* Floating Action Button (FAB) Style */
.btn-mobile-fab {
    box-shadow: 0 10px 25px rgba(230, 211, 168, 0.4);
    border: 2px solid #fff;
}

/* --- APP DASHBOARD TILES (Mobile Only) --- */
.mobile-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Makes them perfect squares */
    border-radius: 16px;
    text-decoration: none !important;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Give the tile a "pressed" effect when tapped */
.mobile-tile:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mobile-tile i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--color-dark);
    opacity: 0.9;
}

.mobile-tile span {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure the gold button keeps high-contrast dark text */
.mobile-tile.bg-primary-color i,
.mobile-tile.bg-primary-color span {
    color: var(--color-dark) !important;
}

/* --- MOBILE SWIPE GALLERIES --- */
.mobile-swipe-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    padding-left: 15px; /* Matches bootstrap container edge */
    padding-right: 15px;
}

.mobile-swipe-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.mobile-swipe-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-bottom: 0 !important; /* Overrides the desktop card margin */
    border-radius: 12px;
}

/* Specific Mobile Card Heights */
@media (max-width: 991px) {
    .merch-card.mobile-swipe-card { 
        height: 250px; 
    }
    .service-standoff-card.mobile-swipe-card { 
        height: 320px; 
    }
}

/* --- MOBILE MENU TRANSPARENCY FIX --- */
@media (max-width: 991px) {
    /* Gives the dropdown menu a solid charcoal background */
    .navbar-collapse {
        background-color: #1C1C1C;
        padding: 15px 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    /* Ensures the links inside the mobile menu stay white/readable */
    .navbar-collapse .nav-link {
        color: #ffffff !important;
    }
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: #E6D3A8 !important; /* Champagne gold hover */
    }
}

/* --- DARK MODE CLIENT LOGOS --- */
.dark-mode-logo {
    opacity: 0.4;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(200%); /* Helps dark logos show up on dark backgrounds */
}

.dark-mode-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

/* --- RESPONSIVE BOTTOM SECTIONS (Dark Mobile / Light Desktop) --- */
@media (min-width: 992px) {
    /* Desktop (Light Mode) */
    .responsive-slider-bg { background-color: #f8f9fa; border-top: 1px solid #dee2e6; }
    .responsive-footer { background-color: #ffffff; }
    .responsive-footer-border { border-top: 1px solid #dee2e6; }
    .footer-text-muted { color: #6c757d; }
}

@media (max-width: 991px) {
    /* Mobile (Dark Mode) */
    .responsive-slider-bg { background-color: #151515; border-top: 1px solid #222; }
    .responsive-footer { background-color: #111111; color: #ffffff; }
    .responsive-footer-border { border-top: 1px solid rgba(255,255,255,0.05); }
    .footer-text-muted { color: rgba(255,255,255,0.5); }
    
    /* Make logos pop on the dark mobile background */
    .responsive-client-logo {
        opacity: 0.4;
        filter: grayscale(100%) brightness(200%);
        transition: all 0.3s ease;
    }
    .responsive-client-logo:hover {
        opacity: 1;
        filter: grayscale(0%) brightness(100%);
    }
}

/* --- 12. COOKIE BANNER --- */
.cookie-banner-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background-color: var(--color-dark);
    border: 1px solid rgba(230, 211, 168, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1060; 
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner-container.show {
    transform: translateY(0);
}

@media (max-width: 991px) {
    .cookie-banner-container {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding-bottom: env(safe-area-inset-bottom, 20px); /* iPhone notch support */
    }
}

/* --- MOBILE PROCESS SNAPPING & DASHBOARD FIXES (991px and below) --- */
@media (max-width: 991px) {
    /* Process Page Snapping Fix */
    html, body {
        scroll-snap-type: y mandatory;
    }

    /* Release the fixed height wrapper so mobile can scroll normally */
    .pinned-process-wrapper {
        height: auto !important;
        overflow: visible !important;
    }

    .process-panel {
        scroll-snap-align: start;
        height: 100vh !important; /* Force full screen for each step */
        position: relative !important;
        transform: none !important; /* Disables GSAP movement on mobile */
        display: flex !important;
        align-items: center;
    }

    .huge-number {
        font-size: 10rem !important;
        opacity: 0.1 !important;
        top: 15% !important;
        left: 5% !important;
        transform: none !important;
    }
    
    .panel-content { padding: 30px !important; }
    .panel-content .border-end { border-right: none !important; border-bottom: 1px solid #eee; padding-bottom: 30px; margin-bottom: 30px; }
    .ps-lg-5 { padding-left: 0 !important; }

    /* App Dashboard Tiles (Services Page) */
    .swatch-card {
        height: 100% !important;
        min-height: 180px !important;
        padding: 25px 10px !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }
    
    .swatch-header { justify-content: center !important; margin-bottom: 10px !important; }
    .swatch-num { display: none !important; }
    
    /* BIG CHARCOAL ICONS */
    .mobile-dash-icon { 
        font-size: 3.2rem !important; 
        color: var(--color-dark) !important; 
        opacity: 1 !important; 
        margin: 0 !important;
    }
    
    /* Gold icon for dark CTA card */
    .bg-dark-color .mobile-dash-icon { color: var(--color-primary) !important; }

    .swatch-title { font-size: 1rem !important; margin: 0 !important; line-height: 1.2 !important; font-weight: 800 !important; }
    .swatch-desc { display: none !important; }
}

/* Push content down so it doesn't hide under the fixed header */
body {
    padding-top: 100px; 
}

/* Exception for Home Page where the header sits on top of the hero */
.nz-theme:has(.hero-section) body {
    padding-top: 0 !important;
}