/* --- Base Reset --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    font-family: 'Lato', sans-serif;
    background-color: #000; 
}
h1, h2, h3, h4, h5{
  font-family: 'Rufina', serif;
}

/* --- Elegant Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #000;
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Layout Wrappers --- */
#fullpage-wrapper {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.fp-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;  
    height: 100dvh; 
}

.fp-section.ready-to-animate {
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* --- Background Video Styles --- */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* --- Sticky Side Navigation (HIDDEN ON MOBILE, VISIBLE ON DESKTOP) --- */
#fp-nav {
    display: none; /* HIDDEN BY DEFAULT ON MOBILE */
    position: fixed;
    top: 50%;
    right: 30px; 
    transform: translateY(-50%); 
    z-index: 9999; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    gap: 15px; 
}

/* DESKTOP MEDIA QUERY: Show nav on screens wider than 768px */
@media (min-width: 768px) {
    #fp-nav {
        display: flex; 
    }
}

.fp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.fp-dot:hover { 
    background-color: rgba(255, 255, 255, 0.9); 
    transform: scale(1.2); 
}

.fp-dot.active { 
    background-color: #ffffff; 
    transform: scale(1.4); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); 
}
/* ----------------------------------------------------------- */

/* --- Staggered Text, Button, & Image Animations --- */
.fp-section h1, 
.fp-section h2,
.fp-section h3,
.fp-section p,
.fp-section .fp-btn,
.fp-section .fp-image {
    opacity: 0;
    transition: opacity 0.3s ease-in; 
    transform: translateY(20px); 
}

.fp-section.is-active h1 { opacity: 1; transform: translateY(0); transition: all 0.8s ease 0.5s; }
.fp-section.is-active h2 { opacity: 1; transform: translateY(0); transition: all 0.8s ease 0.8s; }
.fp-section.is-active h3 { opacity: 1; transform: translateY(0); transition: all 0.8s ease 1.1s; }

.fp-section.is-active p,
.fp-section.is-active .fp-btn,
.fp-section.is-active .fp-image {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 1.4s; 
}

/*styles from juno*/
:root {
  --lead-color-01: rgba(176, 189, 162, 1); /* Sage Green */
  --lead-color-02: rgba(237, 181, 161, 1); /* Dusty Peach */
  --lead-color-03: black;
  --lead-color-04: white;
  --lead-color-05: rgba(154, 171, 181, 1); /* Dusty Slate Blue */
  --lead-color-06: rgba(245, 240, 234, 1); /* Warm Cream */
}

.background-lead-01{ background: var(--lead-color-01); }
.background-lead-02{ background: var(--lead-color-02); }
.background-lead-03{ background: var(--lead-color-03); }
.background-lead-04{ background: var(--lead-color-04); }
.background-lead-05{ background: var(--lead-color-05); }
.background-lead-06{ background: var(--lead-color-06); }
.text-lead-01, .text-lead-01:hover { color: var(--lead-color-01); }
.text-lead-02, .text-lead-02:hover{ color: var(--lead-color-02); }
.text-lead-03, .text-lead-03:hover{ color: var(--lead-color-03); }
.text-lead-04, .text-lead-04:hover{ color: var(--lead-color-04); }

/*MOUSE*/
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 1.5s infinite;
}

.scroll-text {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    letter-spacing: 3px;
    font-family: sans-serif;
    text-transform: uppercase;
}

@keyframes scroll-dot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/*P ANIMATE scroll*/
.animate-scroll {
    display: inline-block; 
    animation: smoothFloat 2s ease-in-out infinite;
}

@keyframes smoothFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

/*animating index*/
.heading-animate{
    opacity: 0;
    transform: translateY(-150%);
    transition: all 1s;
}

.heading-animate-on{
    opacity: 1;
    transform: translateY(0%);
}

.index-logo{
  transform: translateY(-100%);
  transition: all 1s;
}
.index-logo-on{
  transform: translateY(0%);
}

/* --- Floating Logo (Mobile First: 30% Smaller) --- */
.floating-logo {
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 100; 
    width: 126px; 
    height: 60px;
    opacity: 1;
    transition: all .5s;
}

.floating-logo.scrolled {
    width: 105px; 
    height: 50px;
    opacity: .6;
    transition: all .5s;
}

.floating-logo svg {
    width: 126px; 
    height: 60px;
    transition: all .5s;
}

.floating-logo.scrolled svg {
    width: 105px; 
    height: 50px;
    transition: all .5s;
}

/* --- Desktop Override (Original Sizes) --- */
@media (min-width: 768px) {
    .floating-logo {
        width: 180px; 
        height: 85px;
    }
    .floating-logo.scrolled {
        width: 150px; 
        height: 71px;
    }
    .floating-logo svg {
        width: 180px; 
        height: 85px;
    }
    .floating-logo.scrolled svg {
        width: 150px; 
        height: 71px;
    }
}

.logo-colour { 
    fill: rgb(0, 0, 0 1); 
}

@media (min-width: 768px) { 
    .logo-colour { fill: rgb(0, 0, 0 1); }
}

/* --- PURE CSS FLOATING HAMBURGER --- */

.floating-menu {
    position: fixed; 
    top: 0; 
    right: 0; 
    z-index: 9999; 
    width: 60px; 
    height: 60px;
    opacity: 1;
    transition: all .5s;
}

.pure-hamburger {
    position: block;
    top: 25px;
    right: 5vw; /* Keeps it safely inside the screen on mobiles */
    z-index: 999999; /* Highest layer possible */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pure-hamburger input {
    display: none; /* Hides the actual checkbox */
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
}

.hamburger-lines .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background-color: #fff; /* Default color */
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out, background-color 0.5s ease-in-out;
}

/* Active State: Transforms lines into an X */
.pure-hamburger input:checked ~ .hamburger-lines .line1 {
    transform: translateY(10.5px) rotate(45deg);
}
.pure-hamburger input:checked ~ .hamburger-lines .line2 {
    opacity: 0;
}
.pure-hamburger input:checked ~ .hamburger-lines .line3 {
    transform: translateY(-10.5px) rotate(-45deg);
}
/* ------------------------------------- */

/*+++++++++++++++ full screen menu +++++++++++++++*/
:root { --fsm-height: 25%; }
@media (min-width: 768px) { :root { --fsm-height: 50%; } }

.full-screen-menu{
    z-index: 9999; 
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100vw; 
    background: rgba(255, 255, 255, .8); 
    z-index: 100;
    transform:translateX(100%);
    opacity: .8;
    transition: all .5s ease;
}

.full-screen-menu.shown{
    transform:translateX(0%);
    background: rgba(255, 255, 255, 1); 
    transition: all 0.5s ease;
}
.shown.opacity{
    opacity: 1;
    transition: all 1s ease;
}

.square01, .square02, .square03, .square04{
    height: 1.2rem;
    width: 2.5rem;
    margin-right: 1.2rem;
    float: left;
    opacity: .5;
    transition: all .5s;
}
.menu-tile-after{
    position: absolute;
    bottom: 1rem;
    left: 3rem;
    width: 100%;
    height: 1rem;
}

@media (min-width: 768px) { 
    .menu-tile-after{
        position: absolute;
        bottom: 3rem;
        left: 3rem;
        width: 100%;
        height: 3rem;
    }
}

.menu-tile-before{
    position: absolute;
    top: 0;
    left: 3rem;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .0;
    transition: all .5s;
    display: none;
}
@media (min-width: 768px) {
    .menu-tile-before{
        display:block;
    }
}
.menu-tile-before.opacity{ opacity: .3; }
.menu-tile-before h1{
    font-family: 'Rufina', serif;
    padding: 0, 0, 0, 0!important;
    font-size: 12rem;
    font-weight: 400;
}
@media (min-width: 768px) {
    .menu-tile-before h1{ font-size: 20rem; }
}

.full-menu-heading{ margin-left: 3rem; }
.full-menu-heading h1{
    font-family: 'Rufina', serif;
    font-size: 3rem;
    transition: all .5s;
}
.full-menu-heading h2{
    font-family: 'Rufina', serif;
    font-size: 3rem;
}
@media (min-width: 768px) { 
    .full-menu-heading h1{ font-size: 5rem; }
}

.top-left{
    background: var(--lead-color-01);
    height: var(--fsm-height);
    position: relative;
    opacity: .5;
    transform:translateY(-100%);
    transition: all 0.5s ease;
    cursor: pointer;
}
.top-left.opened{
    opacity: 1;
    transform:translateY(0%);
}
.top-left:hover .square01{ opacity:1; transition-delay: 0s; }
.top-left:hover .square02{ opacity:1; transition-delay: .2s; }
.top-left:hover .square03{ opacity:1; transition-delay: .3s; }
.top-left:hover h1{ text-decoration: none; letter-spacing: .1rem; }

.top-right{
    background: var(--lead-color-02);
    height: var(--fsm-height);
    position: relative;
    opacity: .5;
    transform:translateY(-100%);
    transition: all 0.5s ease;
    cursor: pointer;
}
.top-right.opened{
    opacity: 1;
    transform:translateY(0%);
}
.top-right:hover .square01{ opacity:1; transition-delay: 0s; }
.top-right:hover .square02{ opacity:1; transition-delay: .2s; }
.top-right:hover .square03{ opacity:1; transition-delay: .3s; }
.top-right:hover h1{ text-decoration: none; letter-spacing: .1rem; }

.bottom-left{
    background: var(--lead-color-03);
    height: var(--fsm-height);
    position: relative;
    cursor: pointer;
    opacity: .5;
    transform:translateY(100%);
    transition: all 0.5s ease;
}
.bottom-left.opened{
    opacity: 1;
    transform:translateY(0%);
}
.bottom-left:hover .square01{ opacity:1; transition-delay: 0s; }
.bottom-left:hover .square02{ opacity:1; transition-delay: .2s; }
.bottom-left:hover .square03{ opacity:1; transition-delay: .3s; }
.bottom-left:hover h1{ text-decoration: none; letter-spacing: .1rem; }

.bottom-right{
    background: var(--lead-color-04);
    height: var(--fsm-height);
    position: relative;
    opacity: .5;
    transform:translateX(100%);
    transition: all 0.5s ease;
    cursor: pointer;
}
.bottom-right.opened{
    opacity: 1;
    transform:translateX(0%);
}
.bottom-right:hover .square01{ opacity:1; transition-delay: 0s; }
.bottom-right:hover .square02{ opacity:1; transition-delay: .2s; }
.bottom-right:hover .square03{ opacity:1; transition-delay: .3s; }
.bottom-right:hover h1{ text-decoration: none; letter-spacing: .1rem; }


/* --- Mobile Typography & Spacing Fixes --- */
@media (max-width: 767.98px) {
    /* 
       Enforce a minimum top boundary so content never overlaps the logo.
       Logo height (60px) + 20px clearance = 80px minimum.
    */
    .fp-section {
        padding-top: 120px; 
        padding-bottom: 120px; /* Prevents text from hitting the very bottom */
    }
    
    /* Scale down large headings */
    .fp-section h1.display-1 {
        font-size: 2.0rem !important; /* Overrides Bootstrap's massive display-1 */
        margin-bottom: 0.75rem !important;
    }
    
    .fp-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Adjust line height and size for heavy text sections */
    .fp-section p.lead,
    .fp-section p.section-desc {
        font-size: 1.05rem !important; /* Scales down Bootstrap's default lead size */
        line-height: 1.4 !important; /* Tighter line height for easier mobile reading */
        margin-bottom: 1rem !important;
    }
}