/* =====================
   Global Reset & Vars
   ===================== */

* {
    box-sizing: border-box;
    --scrollbar-width: 0px;
    --site-content-max-width: 1920px;
    --site-content-max-width-redesign: 1920px;
    --site-content-width: 1800px;
    --vert-scrollbar-width: 50px;
}

:root {
    --top-bar-height: 44px;
    --navbar-height: 64px;
    --header-stack: calc(var(--top-bar-height) + var(--navbar-height));
}

/* ---------------------
   Email CTA Button
   --------------------- */
.email-section {
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    font-family: 'SackersGothic', serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.email-section hr {
    width: 100%;
    height: 2px;
    border: none;
    background-color: white;
    margin: 8px 0 0;
    transform: translateY(8px);
    transition: transform 0.5s ease;
}

/* ---------------------
   Base Body Styling
   --------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'FoundersGrotesque', sans-serif, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    text-align: center;
    min-height: 100vh;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

body.top-bar-hidden {
    padding-top: 0;
}

/* ---------------------
   Custom Font Faces
   --------------------- */
@font-face {
    font-family: 'LeJeuneDeck';
    src: url('fonts/LeJeuneDeck-Regular-Web.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'FoundersGrotesque';
    src: url('fonts/FGWM-light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SackersGothic';
    src: url('fonts/SackersGothic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NationalParks';
    src: url('fonts/NationalsParks.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BigShoulders';
    src: url('fonts/BigShoulders.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ephesis';
    src: url('fonts/Ephesis-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'tiempos';
    src: url('fonts/tiempos.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

a {
    /* Global link style */
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    color: white;
}

.navbar a:hover {
    color: #5c3b2e;
}

p {
    /* Default paragraph style */
    font-family: 'SackersGothic', 'Courier New';
    margin-left: 60px;
    margin-right: 60px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background-color: #0C1D37;
    color: #fff;
    font-size: small;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.875rem;
    letter-spacing: 0.08rem;
    z-index: 40;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar.top-bar--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.top-bar a {
    /* Links inside the announcement bar */
    color: #fff;
    margin: 0;
    font-weight: normal;
    transition: color 0.3s ease;
    letter-spacing: normal;
}

.top-bar a:hover {
    /* Hover color for announcement links */
    color: #DF8E36;
}

.navbar {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    width: 100%;
    height: var(--navbar-height);
    line-height: var(--navbar-height);
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    color: #ffffff;
    transition: top 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    font-family: 'SackersGothic', serif;
    z-index: 35;
    backdrop-filter: blur(0px);
}

.navbar:not(.is-stuck):hover {
    background-color: rgba(12, 29, 55, 0.12);
}

.navbar.is-stuck {
    top: 0;
    background-color: rgba(255, 255, 255, 0.96);
    color: #041e3a;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(4, 30, 58, 0.08);
    backdrop-filter: blur(12px);
}

.navbar .navbar-links a,
.navbar .logo {
    color: currentColor;
}



.navbar .navbar-links a {
    color: currentColor;
    cursor: auto;
    font-family: 'FoundersGrotesque', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    height: 39px;
    letter-spacing: 0.2px;
    word-spacing: 0px;
    line-height: 10px;
    list-style: none;
    overflow: visible;
    padding: 15px 0;
    margin-right: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
}

.navbar.is-stuck .navbar-links a {
    color: #041e3a;
}

.navbar .navbar-links a:last-child {
    margin-right: 0;
}

a:second-child {
    padding-left: 20px;
}

.navbar .logo {
    color: currentColor;
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 0.2em;
    font-family: 'LeJeuneDeck';
    text-transform: uppercase;
    background-attachment: scroll;
    background-clip: border-box;
    background-image: none;
    background-origin: padding-box;
    background-position: 0% 0%;
    background-repeat: repeat;
    background-size: auto;
    box-sizing: border-box;
    background-color: currentColor;
    cursor: auto;
    display: block;
    position: relative;
    z-index: 1;
    font-family: "FoundersGrotesque", Helvetica, Arial, sans-serif;
    letter-spacing: 0.3px;
    opacity: 1;
    outline: none;
    overflow: hidden;
    text-decoration: underline;

    width: 292.5px;
    height: 36.725px;
    mask-size: 100% 100%; 
    mask-position: center center; 
    -webkit-mask-size: 100% 100%;
    -webkit-mask-position: center center;

    mask-image: url('/static/logo.svg');
    mask-repeat: no-repeat;
    mask-size: contain;

    -webkit-mask-image: url('/static/logo.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}
.hero {
    /* Large hero section with background image */
    --hero-bg: url('images/AGimages19.jpeg');
    height: calc(80vh); 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: calc(var(--navbar-height) / 2) 20px 80px;
    margin-top: 0;
    color: white;
    font-family: 'LeJeuneDeck';
    position: relative;
}

.hero::before {
    /* Background image wrapper */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg, url('images/AGimages19.jpeg'));
    
    background-position: var(--hero-bg-pos, center center);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    filter: contrast(115%) saturate(120%) brightness(80%) hue-rotate(-8deg);
}

.hero::after {
    /* Overlay for subtle darkening */
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0));
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    /* Container for hero text */
    max-width: 700px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.tiempos {
    /* Serif paragraph utility */
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2f1d18;
    font-size: large; 
    text-align: left; 
    font-family: 'tiempos'; 
    letter-spacing: normal;
}

.button-wrapper {
    /* Positions order button under hero text */
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.order-button {
    /* CTA button in hero */
    background-color: #8C2C1A;
    color: white;
    padding: 19px 37px;
    border: none;
    border-radius: 32px;
    font-family: 'SackersGothic', 'FoundersGrotesque', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.order-button:hover {
    /* Hover animation */
    background-color: rgba(0, 0, 0, 0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    color: #000000;
    transform: translateY(-2px) scale(1.03);
}

/* Arrows used to cycle hero images */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    /* Lighter background on hover */
    background: rgba(255, 255, 255, 0.4);
}

.left-arrow { left: 20px; }   /* previous image */
.right-arrow { right: 20px; }  /* next image */

.scroll-section {
    /* White section used below hero */
    background-color: white;
    color: #5c3b2e;
    padding: 80px 20px;
}

.slide-in-right {
    /* Animation helper */
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    /* Triggered when element is in view */
    opacity: 1;
    transform: translateX(0);
}

.bio-wrapper {
    /* Container for biography text */
    max-width: 2000px;
    margin: 0 auto;
    padding: 38px;
    padding-bottom: 100px;
}

.waitlist-section {
    /* Signup section colours */
    color: #fff;
    padding: calc(var(--navbar-height) / 2) 20px 80px;
    padding-bottom: 70px;
    text-align: center;
    margin-left: 200px;
    margin-right: 200px;
    margin-top: calc(44px + 64px + 24px);
    border-radius: 12px;
}

.waitlist-form {
    /* Wrapper for waitlist input/button */
    margin-top: 40px;
}

.waitlist-input {
    /* Email input styling */
    padding: 12px 18px;
    background-color: rgba(0, 0, 0, 0);
    font-family: 'FoundersGrotesque', sans-serif;
    font-size: 1rem;
    border: 1px solid #fff;
    border-radius: 8px;
    width: 300px;
    max-width: 90%;
}

.waitlist-button {
    /* Submit button */
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    font-family: 'SackersGothic', serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px 12px 24px;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.waitlist-button hr {
    /* Underline animation */
    width: 100%;
    height: 2px;
    border: none;
    background-color: white;
    margin: 8px 0 0;
    transform: translateY(8px);
    transition: transform 0.5s ease;
}

.waitlist-button:hover hr {
    /* Lift underline on hover */
    transform: translateY(-4px);
}

.waitlist-row {
    /* Layout container for input and button */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

  /* Animation for elements to fade and move up */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

/* --------- Responsive tweaks --------- */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    body.top-bar-hidden {
        padding-top: 0;
    }

    p {
        margin-left: 18px;
        margin-right: 18px;
    }

    .hero {
        min-height: 50vh; /* reduce more to clearly shorten the hero */
        padding: calc(var(--navbar-height) + 12px) 15px 60px; /* ensure content clears header */
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        background-image: url('images/AGimages20_m.jpeg');
        background-size: cover;
        background-position: center 30%; /* shifted upwards */
        background-repeat: no-repeat;
        filter: contrast(115%) saturate(120%) brightness(80%) hue-rotate(-8deg);
    }

    .hero-content {
        max-width: 90vw;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .button-wrapper {
        position: static;
        transform: none;
        margin-top: 20px;
    }

    .hero-arrow {
        display: none; /* hide arrows */
    }

    .tiempos {
        font-size: 1rem;
        line-height: 1.5;
        margin: 10px;
    }

    .waitlist-section {
        margin: calc(var(--navbar-height) + 16px) 12px 24px;
        padding: 24px 14px;
        width: auto;
    }

    .navbar {
        padding: 0 24px;
        height: var(--navbar-height);
        line-height: var(--navbar-height);
        align-items: center;
        top: var(--top-bar-height);
    }

    body.top-bar-hidden .navbar {
        top: 0;
    }

    .navbar .logo {
        width: 240px;
    }

    .navbar .navbar-links {
        padding-left: 0;
    }

    .navbar .navbar-links a {
        padding: 4px 2px; /* even smaller padding for better fit */
        margin-right: 1px; /* minimal margin to ensure fitting */
        font-size: 12px; /* smaller font to guarantee one-line fit */
        white-space: nowrap;
    }

    /* Hide home link on smaller screens */
    .navbar .navbar-links a[href="/"] {
        display: none;
    }

    .hero::after {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: transparent;
        z-index: -1;
        pointer-events: none;
    }

    .order-button {
        background-color: #8C2C1A;
        color: white;
        padding: 15px 25px; /* slightly smaller padding for better fit */
        border: none;
        border-radius: 32px;
        font-family: 'SackersGothic', 'FoundersGrotesque', sans-serif;
        font-size: 0.9rem; /* slightly smaller font size for mobile fit */
        font-weight: bold;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
        width: auto;
        display: inline-block;
        white-space: nowrap; /* prevent wrapping */
    }

    .waitlist-input {
        min-width: 0;
        width: 100%;
    }

    .waitlist-row {
        width: 100%;
    }
}
