/*
Theme Name: Lucid Architecture
Description: Child theme, based on the Generatepress WordPress theme.
Author: Keen Studio
Author URI: https://keen-studio.com/
Template: generatepress
Version: 1.0
*/

/* ============================================================
   FULLSCREEN HERO SYSTEM — LUCID ARCHITECTURE
   Replaces all previous hero/video/header-over-hero CSS
   ============================================================ */

/* ----- 1. Hide GP header on first paint (homepage only) ----- */
.home .site-header,
.front-page .site-header {
    opacity: 0;
}

/* ============================================================
   HERO WIDTH OVERRIDE (fix GP container width issue)
   ============================================================ */

/* Remove GP max-width around hero ONLY */
.home .site.grid-container, .home-projects {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Keep all homepage sections constrained EXCEPT the hero */
.home .home-section {
    max-width: 1750px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
	left:auto !important;
}

/* Allow true full-width stretched WPBakery rows to still behave properly */
.home .home-section .vc_row[data-vc-stretch-content="true"],
.home .home-section .vc_row.vc_row-fluid {
    max-width: 1750px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .vc_row.wpb_row.slider-container {
	max-width: none !important;
}

/* ============================================================
   3. HERO VIDEO – ALWAYS COVER, NEVER SHOW BACKGROUND IMAGE
   ============================================================ */

.home .home-hero video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    width: 100vw !important;
    height: 100vh !important;

    min-width: 100% !important;
    min-height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: translate(-50%, -50%);
    display: block !important;
    z-index: 1;
}

/* ============================================================
   4. HERO BAR (bottom navigation overlay)
   ============================================================ */

.home .hero-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 10;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility 0s linear .25s;
}

/* Show hero bar when hero visible */
.js-ready .home.over-hero .hero-bar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Hide when scrolled past hero */
.home:not(.over-hero) .hero-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Default: header hidden once past hero 
.home:not(.over-hero) .site-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

*/

/* Show header ONLY when scrolling up after hero 
body.scrolling-up.home:not(.over-hero) .site-header {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
} */

/* HOME: show header on scroll UP after hero */
body.home.scrolling-up:not(.over-hero) .site-header {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
} 

/* Layout */
.home .hero-bar__inner {
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 0 50px;
}

.home .hero-bar__logo img {
    display: block;
    height: 34px;
    width: auto;
}

.home .hero-bar__menuwrap {
    justify-self: center;
	transform: translatex(-50px);
}

.home .hero-bar__menu {
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .hero-bar__menu > li {
    display: inline-flex;
}

.home .hero-bar__menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'TradeGothicX';
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 8px 0;
}

/* Right side actions */
.home .hero-bar__actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.home .hero-bar__btn {
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    padding: 14px 16px 10px;
    font-family: 'TradeGothicX';
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

.home .hero-bar__hamburger {
    width: 38px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.6);
    background: transparent;
    position: relative;
}

.home .hero-bar__hamburger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: #fff;
}

.home .hero-bar__hamburger span:first-child {
    top: 12px;
}
.home .hero-bar__hamburger span:last-child {
    bottom: 12px;
}

/* ============================================================
   5. SITE HEADER
   - HOME: fixed (hero system controls visibility)
   - INTERIOR: normal on load; becomes “smart fixed” only after scroll
   ============================================================ */

/* HOME: keep fixed */
.home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition:
        opacity .25s ease,
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
    background: rgba(227,227,227,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* HOME + FRONT PAGE: keep header fixed (JS controls visibility) */
.home .site-header,
.front-page .site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition:
        opacity .25s ease,
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
    background: rgba(227,227,227,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* HOME + FRONT PAGE: when hero is visible, ALWAYS hide header */
body.home.over-hero .site-header,
body.front-page.over-hero .site-header{
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
}

/* HOME + FRONT PAGE: past hero (smart-fixed) default = hidden */
body.home.smart-fixed:not(.scrolling-up) .site-header,
body.front-page.smart-fixed:not(.scrolling-up) .site-header{
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
}

/* HOME + FRONT PAGE: past hero + scrolling up = show */
body.home.smart-fixed.scrolling-up .site-header,
body.front-page.smart-fixed.scrolling-up .site-header{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Admin bar adjustment (home/front-page fixed header) */
body.admin-bar.home.smart-fixed.scrolling-up .site-header,
body.admin-bar.front-page.smart-fixed.scrolling-up .site-header{
    top: 32px;
}


/* INTERIOR: default (in-flow, visible on load) */
body:not(.home) .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(227,227,227,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* INTERIOR: once scrolled past header, it becomes fixed but hidden by default 
body.smart-fixed:not(.home) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;

    transition:
        transform .25s ease,
        opacity .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}
*/

/* INTERIOR: default fixed state (hidden, but non-animated) */
body.smart-fixed:not(.home) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;

    transition: none;
}

/* INTERIOR: show ONLY on scroll up */
body.smart-fixed.scrolling-up:not(.home) .site-header {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
	position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
	transition:.25s;
}
body.admin-bar.smart-fixed.scrolling-up:not(.home) .site-header {
	top:32px;
}

/* Prevent layout jump when the interior header switches to fixed */
body.smart-fixed:not(.home) .site.grid-container {
    padding-top: var(--header-h, 80px);
}

/* Admin bar adjustment (home + interior when fixed) 
@media (min-width: 783px) {
    .admin-bar.home .site-header {
        top: 32px;
    }
    .admin-bar.smart-fixed:not(.home) .site-header {
        top: 32px;
    }
    .admin-bar.smart-fixed:not(.home) .site.grid-container {
        padding-top: calc(var(--header-h, 80px) + 32px);
    }
}*/

/* ============================================================
   6. Parallax Functions
   ============================================================ */

/* Base setup */
.parallax-elem {
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
  transition: transform 0.1s linear;
}

/* Fixed-position effects */
.parallax-fixed {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.parallax-hold {
  position: relative;
  z-index: 1;
}

.parallax-underlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Optional fade/scale effects */
.scroll-fade {
  opacity: 1;
  transition: opacity 0.2s linear;
}

.scroll-scale {
  transform-origin: center center;
  transition: transform 0.2s linear;
}

/* ---------- Fonts ---------- */
@font-face{
  font-family: 'TradeGothicX';
  src: url('fonts/tradegothicltstd-extended.woff2') format('woff2'),
       url('fonts/tradegothicltstd-extended.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'TradeGothicX';
  src: url('fonts/tradegothicltstd-boldext.woff2') format('woff2'),
       url('fonts/tradegothicltstd-boldext.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'DraftA';
  src: url('fonts/yellowdesignstudio-drafta-light.woff2') format('woff2'),
       url('fonts/yellowdesignstudio-drafta-light.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root{
  --font-sans-ui:  'DraftA', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading:  'TradeGothicX', 'Helvetica Neue', Arial Black, Impact, system-ui, sans-serif;
}

body{ font-family: var(--font-sans-ui); }
h1,h2,h3,.is-heading{ font-family: var(--font-heading); font-weight: 400; letter-spacing:.01em; }
