/* ========================================================
   THE APEX MOTION ENGINE - PREMIUM BARBER ARCHITECTURE
   ======================================================== */

:root {
    /* Barbershop Luxury Design Tokens */
    --bg-canvas: #121212;            /* Deep industrial charcoal */
    --bg-surface-dark: #0a0a0a;      /* Pure void black for structural contrast */
    --surface-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.06);
    
    --accent-brand: #d1a153;         /* Raw vintage brass / gold */
    --text-primary: #ffffff;         /* Crisp header and focus text */
    --text-muted: #999999;           /* Steel gray for subtext and descriptions */

    /* Bold, Masculine Typography Rules */
    --font-display: 'Oswald', sans-serif;       /* Sharp, architectural headlines */
    --font-body: 'Montserrat', sans-serif;      /* Clean geometric interface text */

    /* Cinematic Motion Parameters */
    --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);  
    --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);  
    
    --t-ui-fast: 200ms;
    --t-ui-medium: 500ms;
    --t-transition-curtain: 1000ms; 
}

/* ========================================================
   GLOBAL RESETS & CANVAS SETUP
   ======================================================== */
html, body {
    margin: 0; padding: 0; width: 100%;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* ========================================================
   CINEMATIC SWEEP ENTRANCE CURTAIN (ON INITIAL LOAD ONLY)
   ======================================================== */
.transition-curtain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #0b0b0b; z-index: 10000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    transform-origin: top;
    transform: scaleY(1);
    transition: transform var(--t-transition-curtain) var(--ease-cinematic);
    border-bottom: 2px solid var(--accent-brand);
}
.curtain-logo {
    font-family: var(--font-display); font-size: 3.5rem; letter-spacing: 6px;
    color: var(--accent-brand); opacity: 1; transition: opacity 0.4s ease;
    text-transform: uppercase; font-weight: 700;
}

/* Opening Lift (Wipe UP on page paint) */
.transition-curtain.is-opening { transform: scaleY(0); }
.transition-curtain.is-opening .curtain-logo { opacity: 0; }

/* ========================================================
   HARDWARE SCROLL REVEALS
   ======================================================== */
.reveal {
    opacity: 0; transform: translateY(30px) translateZ(0);
    will-change: transform, opacity;
    transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
}
.reveal-fade { transform: translateY(0) translateZ(0); }
.reveal.in-view { opacity: 1; transform: translateY(0) translateZ(0); }

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* ========================================================
   GLASS HEADER & NAVIGATION
   ======================================================== */
.glass-header {
    position: fixed; top: 0; left: 0; width: 100%;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000; padding: 1.8rem 0;
    transition: background-color var(--t-ui-medium) var(--ease-ui), transform var(--t-ui-medium) var(--ease-cinematic), padding var(--t-ui-medium) ease;
}
.glass-header.nav-scrolled { background-color: rgba(10, 10, 10, 0.95); border-bottom-color: rgba(209, 161, 83, 0.2); padding: 1.2rem 0; }
.glass-header.nav-hidden { transform: translateY(-100%); }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1400px; margin: 0 auto; }
.brand-logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 2px; color: var(--text-primary); font-weight: 700; }
.logo-sub { font-size: 0.65rem; letter-spacing: 4px; color: var(--accent-brand); font-weight: 600; text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; gap: 3.5rem; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
    position: relative; padding: 0.4rem 0; font-weight: 600; transition: color var(--t-ui-medium) ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background-color: var(--accent-brand); transition: width var(--t-ui-medium) var(--ease-cinematic), left var(--t-ui-medium) var(--ease-cinematic);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* ========================================================
   HERO ENGINE
   ======================================================== */
.homepage-hero {
    height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; overflow: hidden;
}
.parallax-wrapper {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%; z-index: 0;
}
.parallax-bg {
    width: 100%; height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}
.hero-background-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.4) 0%, rgba(18,18,18,0.95) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 950px; padding: 0 2rem; }
.hero-tagline { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 5px; color: var(--accent-brand); font-weight: 600; display: block; margin-bottom: 1.5rem; }
.hero-title { font-family: var(--font-display); font-size: 6.5rem; font-weight: 700; line-height: 0.95; margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: -1px; }
.hero-lead { font-size: 1.2rem; color: #bbbbbb; font-weight: 300; margin: 0 auto 3.5rem; max-width: 700px; line-height: 1.7; letter-spacing: 0.5px; }
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; }

/* ========================================================
   INDUSTRIAL HOVER BUTTONS
   ======================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.3rem 3rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
    position: relative; overflow: hidden; z-index: 1; transition: transform var(--t-ui-medium) var(--ease-cinematic);
}
.btn-text { position: relative; z-index: 2; pointer-events: none; transition: color 0.4s ease; }
.btn-hover-fill {
    position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    z-index: 1; transform-origin: top center; transition: transform 0.5s var(--ease-cinematic);
}

.btn-solid { background-color: var(--accent-brand); color: #000000; border-color: var(--accent-brand); }
.btn-solid .btn-hover-fill { background-color: var(--bg-canvas); transform: scaleY(0); }
.btn-solid:hover .btn-text { color: white; }
.btn-solid:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }

.btn-outline { border-color: rgba(255, 255, 255, 0.3); color: var(--text-primary); }
.btn-outline .btn-hover-fill { background-color: var(--text-primary); transform: scaleY(0); }
.btn-outline:hover .btn-text { color: orange; }
.btn-outline:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }

/* ========================================================
   THE RITUAL PROFILE / BANNER SECTION
   ======================================================== */
.philosophy-section { padding: 12rem 0; border-top: 1px solid var(--border-glass); background: linear-gradient(to bottom, #121212, #0d0d0d); }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.phil-image { position: relative; height: 650px; overflow: hidden; border: 1px solid var(--border-glass); }
.phil-image img { width: 100%; height: 100%; object-fit: cover; }
.phil-text h2 { font-family: var(--font-display); font-size: 4.5rem; line-height: 1.0; margin: 0 0 2rem; font-weight: 700; text-transform: uppercase; }
.phil-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; font-weight: 400; }

/* ========================================================
   LOOKBOOK & GRID MODULES
   ======================================================== */
.subpage-wrapper { padding: 12rem 0 8rem; min-height: 60vh; }
.section-intro { text-align: center; max-width: 650px; margin: 0 auto 6rem; }
.tagline { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-brand); display: block; margin-bottom: 1rem; font-weight: 600; }
.section-intro h2 { font-family: var(--font-display); font-size: 5rem; font-weight: 700; margin: 0 0 1.5rem; line-height: 1.0; text-transform: uppercase; }
.section-intro p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 2.5rem; }
.portfolio-card {
    position: relative; height: 580px; background: var(--bg-surface-dark);
    border: 1px solid var(--border-glass); overflow: hidden; transition: transform var(--t-ui-medium) var(--ease-ui);
    text-decoration: none; color: inherit; display: block; cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-8px); border-color: rgba(209, 161, 83, 0.4); }

.card-media-box { width: 100%; height: 100%; position: relative; overflow: hidden; background-color: #000; }
.card-media-box img, .card-media-box video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-cinematic), filter 0.8s ease; }
.portfolio-card:hover .card-media-box img, .portfolio-card:hover .card-media-box video { transform: scale(1.05); filter: brightness(0.5) contrast(1.1); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 4rem 2.5rem; box-sizing: border-box;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 60%, transparent 100%);
    transform: translateY(20px); opacity: 0; transition: transform 0.6s var(--ease-cinematic), opacity 0.6s ease;
}
.portfolio-card:hover .card-overlay { transform: translateY(0); opacity: 1; }

.card-tag { font-size: 0.8rem; text-transform: uppercase; color: var(--accent-brand); letter-spacing: 2px; display: block; margin-bottom: 0.5rem; font-weight: 600; }
.card-overlay h3 { font-family: var(--font-display); font-size: 2.5rem; margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Interactive Lookbook Customizer Slot */
.upload-slot { border: 2px dashed rgba(209, 161, 83, 0.3); background: rgba(209, 161, 83, 0.01); height: 580px; }
.upload-slot:hover { background: rgba(209, 161, 83, 0.03); border-color: var(--accent-brand); }
.upload-label { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; box-sizing: border-box; text-align: center; cursor: pointer; }
.upload-icon-box { width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--accent-brand); display: flex; align-items: center; justify-content: center; color: var(--accent-brand); font-size: 1.8rem; margin-bottom: 1.5rem; transition: background-color 0.4s ease, color 0.4s ease; }
.upload-slot:hover .upload-icon-box { background-color: var(--accent-brand); color: #000000; }
.upload-label h3 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 0.8rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; }
.upload-label p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 320px; }

.animate-entry { animation: cardRevealEntry 0.6s var(--ease-cinematic) forwards; }
@keyframes cardRevealEntry {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   BOOKING CHAIR PORTAL FORM
   ======================================================== */
.contact-image { position: relative; height: 100%; min-height: 650px; border: 1px solid var(--border-glass); }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.floating-form .form-row { position: relative; margin-bottom: 3.5rem; }
.floating-form input, .floating-form textarea, .floating-form select {
    width: 100%; padding: 1rem 0; background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15); color: var(--text-primary);
    font-family: var(--font-body); font-size: 1.05rem; box-sizing: border-box;
}
.floating-form select { color: var(--text-muted); font-weight: 500; cursor: pointer; -webkit-appearance: none; appearance: none; }
.floating-form select option { background-color: var(--bg-canvas); color: var(--text-primary); }
.floating-form input:focus, .floating-form textarea:focus, .floating-form select:focus { outline: none; border-color: transparent; }
.input-bar { position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--accent-brand); transition: width 0.5s var(--ease-cinematic), left 0.5s var(--ease-cinematic); }
.floating-form input:focus ~ .input-bar, .floating-form textarea:focus ~ .input-bar, .floating-form select:focus ~ .input-bar { width: 100%; left: 0; }
.floating-form label {
    position: absolute; left: 0; top: 1rem; color: var(--text-muted); font-size: 1.05rem;
    transition: transform 0.4s var(--ease-cinematic), color 0.4s ease; pointer-events: none; transform-origin: left top;
}
.floating-form input:focus ~ label, .floating-form input:not(:placeholder-shown) ~ label,
.floating-form textarea:focus ~ label, .floating-form textarea:not(:placeholder-shown) ~ label,
.floating-form select:focus ~ label, .floating-form select:valid ~ label {
    transform: translateY(-2rem) scale(0.8); color: var(--accent-brand); letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.block-btn { width: 100%; padding: 1.5rem 0; font-size: 0.95rem; }

/* ========================================================
   GLOBAL STUDIO FOOTER
   ======================================================== */
.site-footer { background-color: var(--bg-surface-dark); padding: 8rem 0 4rem; position: relative; z-index: 10; border-top: 1px solid var(--border-glass); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5rem; margin-bottom: 5rem; }
.footer-col h3 { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-brand); margin-bottom: 2rem; font-weight: 700; }
.footer-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.8; max-width: 380px; margin-top: 1.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 1.2rem; }
.footer-col ul li a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--text-primary); }
.contact-item { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; }
.contact-item strong { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.3rem; }
.contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--accent-brand); }
.footer-divider { border: none; height: 1px; background: var(--border-glass); margin-bottom: 3rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 4rem; }
.legal-wrapper { max-width: 75%; }
.copyright { font-size: 0.9rem; margin-bottom: 0.8rem; font-weight: 500; }
.uk-statutory { font-size: 0.8rem; color: #555555; line-height: 1.7; margin: 0; }
.privacy-links { display: flex; gap: 2rem; }
.privacy-links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.privacy-links a:hover { color: var(--accent-brand); }

/* ========================================================
   RESPONSIVE HARDWARE MEDIA QUERY PROFILE
   ======================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
    .grid-half { grid-template-columns: 1fr; gap: 4rem; }
    .phil-image { height: 450px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 2rem; }
    .legal-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 3.2rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .phil-text h2 { font-size: 3rem; }
    .nav-links { display: none; }
}