/* Custom Bowhouse font definitions */
@font-face {
    font-family: 'Bowhouse';
    src: url('../fonts/Bowhouse-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Custom Oonelle font definition for all paragraph text */
@font-face {
    font-family: 'Oonelle';
    src: url('../fonts/Oonelle-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bowhouse';
    src: url('../fonts/Bowhouse-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bowhouse';
    src: url('../fonts/Bowhouse-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/*
 * Custom IT‑Oonelle font definitions
 *
 * The user requested that all paragraph text use the “it‑oonelle” typeface.
 * We include the regular and italic demo fonts supplied with the project
 * and make them available to the stylesheet. The font‑face definitions
 * reference the OTF files placed in the site’s fonts directory.  Font
 * display is set to swap so that text renders with a fallback font
 * immediately and swaps to the custom font once it has loaded.
 */
@font-face {
    font-family: 'it-oonelle';
    src: url('../fonts/ITOonelleDemo-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'it-oonelle';
    src: url('../fonts/ITOonelleDemo-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Root variables for easy theming */
:root {
    --bg-color: #0A0A23;
    --overlay-color: rgba(10, 10, 35, 0.6);
    --primary: #756AB6;
    --secondary: #A18FD8;
    --text-color: #F5F5F5;
    --heading-font: 'Bowhouse', sans-serif;
    --transition-duration: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--heading-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

/*
 * Paragraph styling
 *
 * Override the default font family for all paragraph elements on the site to
 * use the custom it‑oonelle typeface requested by the user. The Bowhouse
 * heading font remains the primary font for headings and other UI text,
 * while paragraphs adopt the elegant serif styling. A generic sans‑serif
 * fallback is provided in case the custom font fails to load.
 */
p {
    font-family: 'it-oonelle', sans-serif;
}


/* Use Oonelle for all paragraph text throughout the site */
p {
    font-family: 'Oonelle', serif;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Use local building image for hero background */
    background-image: url('../images/building.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* Smaller hero for secondary pages */
.hero.small {
    min-height: 60vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
}

.nav {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Rolling logo animation: duplicate the text and slide */
.rolling-logo {
    position: relative;
    overflow: hidden;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
}
.rolling-logo::before,
.rolling-logo::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    display: block;
    transition: transform 0.5s ease;
}
.rolling-logo::before {
    color: var(--secondary);
    transform: translateY(0%);
}
.rolling-logo::after {
    color: var(--primary);
    transform: translateY(100%);
}
.rolling-logo:hover::before {
    transform: translateY(-100%);
}
.rolling-logo:hover::after {
    transform: translateY(0%);
}

/* Menu toggle (hamburger) */
.menu-toggle {
    position: relative;
    width: 28px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 3;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.nav.open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav.open .menu-toggle span:nth-child(2) {
    opacity: 0;
}
.nav.open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/*
 * Deprecated overlay menu styles from an earlier implementation.
 * The menu overlay now uses the `.menu-overlay` class defined later in this file.
 * This block has been intentionally commented out to prevent it from affecting
 * the current push-right menu behaviour.
 */
/*
.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 35, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 2;
}
.nav.open .menu-overlay {
    transform: translateX(0);
}
.menu-overlay li a {
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.menu-overlay li a:hover {
    color: var(--primary);
}
*/

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

/* Menu styling with hover sliding effect */
.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.menu li {
    overflow: hidden;
    height: 1.6rem;
    position: relative;
}
.menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    position: relative;
    height: 100%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.menu li a span {
    display: block;
    line-height: 1.6rem;
    transition: transform var(--transition-duration) ease;
}
.menu li a span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
}
.menu li:hover a span:nth-child(1) {
    transform: translateY(-100%);
}
.menu li:hover a span:nth-child(2) {
    transform: translateY(0%);
}

/* CTA button */
.cta {
    display: inline-block;
    background: var(--primary);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    margin-left: 2rem;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-duration);
}

/* ------------------------------------------------------------------ */
/*  Custom menu inspired by CodePen push-right menu
    The fixed left menu stays on screen while a full-screen overlay
    slides in from the left when opened.  The page content shifts
    rightward to accommodate the menu.  The menu button animates
    into an X on open, and the NeueHouse title rotates vertically.
*/

/* Fixed left menu styling */
.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(5, 15, 30, 0.97));
    border-right: 1px solid var(--primary);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

 @media screen and (max-width:860px) {
      .fixed-menu {
       background:none !important;
       border: none !important;
      }
      div.middle-section {
        display:none !important;
      }

      div.bottom-section {
        display:none !important;
      }

      .subhead {

        font-size: 2.0rem !important;
        padding-bottom: 21px;
      }

      div.hero-content {
        margin-bottom: 6rem !important;
      }
    }


/* Menu button (hamburger) */
.menu-button {
    background: none;
    border: none;
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.menu-button .line {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.menu-button.is-active .line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}
.menu-button.is-active .line:nth-child(2) {
    opacity: 0;
}
.menu-button.is-active .line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Middle section rotated title */
.middle-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-90deg);
    transform-origin: center;
}
.menu-title {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--text-color);
    text-decoration: none;
}

/* Bottom section */
.bottom-section {
    font-size: 0.8rem;
    color: var(--text-color);
    transform: rotate(-90deg);
}

/* Fullscreen overlay menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 35, 0.95);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* When the body has menu-open class, slide the overlay into view */
body.menu-open .menu-overlay {
    transform: translateX(0);
}

/* Overlay content list */
/* Layout the overlay list as a column to evenly distribute items vertically */
.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;

    /* Shift the menu items upward slightly so all links are visible without scrolling */
    margin-top: -5vh;
}

/* Ensure the overlay content can scroll if its content exceeds the viewport height */
.overlay-content {
    /* Provide vertical padding so the overlay links are centered vertically without clipping */
    padding-top: 15vh;
    padding-bottom: 15vh;
    overflow-y: auto;
}
/* Reduce margin so all menu items fit in view */
.overlay-content li {
    margin: 0.6rem 0;
}
/* Menu link styling with slightly smaller font so all items fit */
.overlay-content li a {
    font-size: 1.6rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
}
body.menu-open .overlay-content li a {
    transform: translateY(0);
    opacity: 1;
}
body.menu-open .overlay-content li:nth-child(1) a { transition-delay: 0.1s; }
body.menu-open .overlay-content li:nth-child(2) a { transition-delay: 0.2s; }
body.menu-open .overlay-content li:nth-child(3) a { transition-delay: 0.3s; }
body.menu-open .overlay-content li:nth-child(4) a { transition-delay: 0.4s; }
body.menu-open .overlay-content li:nth-child(5) a { transition-delay: 0.5s; }
.overlay-content li a:hover {
    color: var(--primary);
}

/* Container push when menu open */
.container {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    left: 0;
}
body.menu-open .container {
    transform: translateX(120px);
}

/* ------------------------------------------------------------------ */
/* Offset the page content to the right on larger screens so that
   the left‑hand navigation does not overlap the first feature box.  On
   mobile the navigation collapses and no margin is needed. */
@media screen and (min-width: 861px) {
    .container {
        margin-left: 120px;
    }
    
    /* When the menu is opened on desktop, leave the container in place.
       The full‑screen overlay still covers the page so additional
       translation is unnecessary. */
    body.menu-open .container {
        transform: none;
    }
}

/* Rolling text hover effect for logo/title */
.rolling-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: 700;
}
.rolling-text .block {
    display: flex;
    white-space: nowrap;
}
/* Position second block absolutely so it overlaps the first */
.rolling-text .block:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
}
.rolling-text .letter {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    color: var(--text-color);
}
.rolling-text .block:nth-child(2) .letter {
    color: var(--secondary);
}
.rolling-text.play .letter,
.rolling-text:hover .letter {
    transform: translateY(-100%);
}

/* Gradient animation for hero headline */
.headline {
    background-image: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 4s linear infinite;
}

/* Apply gradient text effect to each split letter */
.headline span {
    background-image: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.cta:hover {
    background: var(--secondary);
}

/* Hero content */
.hero-content {
    z-index: 2;
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: auto;
    margin-bottom: 10rem !important;
}

.headline {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 3rem;
    position: relative;
}
.headline span {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
.subhead {
    font-size: 3.2rem;
    color: #d0cde1;
    padding-bottom: 30px;
    font-weight: bold;
}

/* Intro section */
.intro {
    padding: 4rem 2rem;
    text-align: center;
}
.intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    color: #ccc;
        font-size: 24px;
    text-align: left;
}
.button-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    padding: 0.6rem 1.4rem;
    color: var(--primary);
    border-radius: 24px;
    text-decoration: none;
    transition: all var(--transition-duration);
}
.button-outline:hover {
    background: var(--primary);
    color: var(--text-color);
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

/*
 * On larger viewports the vertical navigation occupies a fixed width of
 * approximately 120px on the left side of the screen. Without additional
 * offset the first feature card on the home page can slide beneath the
 * navigation panel. To prevent this, a left margin is applied to the
 * features container when the screen width is greater than 860px (matching
 * the breakpoint where the nav becomes transparent on smaller devices).
 */
@media screen and (min-width: 861px) {
    .page-home .features {
        margin-left: 140px;
    }
}
.feature {
    flex: 1 1 250px;
    background: #1A1832;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform var(--transition-duration);
}
.feature:hover {
    transform: translateY(-5px);
}
.feature h3 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.feature p {
    font-size: 1.45rem;
    color: #bbb;
}

/* Space cards */
.spaces {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.space-card {
    display: flex;
    flex-wrap: wrap;
    background: #1A1832;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.space-card img {
    flex: 1 1 300px;
    min-width: 300px;
    object-fit: cover;
}
.space-info {
    flex: 1 1 300px;
    padding: 1.5rem;
}
.space-info h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.space-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 20px;
}
.availability {
    font-style: italic;
    color: #999;
}
.book-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    border: none;
    border-radius: 24px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 1000;
    transition: background var(--transition-duration);
}
.book-btn:hover {
    background: var(--secondary);
}

/* Modal for booking */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity var(--transition-duration);
}
.modal.hidden {
    visibility: hidden;
    opacity: 0;
}
.modal-content {
    background: #1A1832;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}
.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Available slots list */
.slot-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.slot-option {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 24px;
    background: var(--primary);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-duration);
}
.slot-option:hover {
    background: var(--secondary);
}
.no-slots {
    color: #aaa;
    margin-top: 1rem;
}
.modal-content label {
    display: block;
    margin: 0.5rem 0 0.2rem;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: #2B2748;
    color: var(--text-color);
}
.button-primary {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 24px;
    background: var(--primary);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-duration);
}
.button-primary:hover {
    background: var(--secondary);
}

/* Info section styling */
.info-section {
    background-image: url('../images/texture.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}
.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 35, 0.7);
}
.info-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    color: #ddd;
}
.info-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.info-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 22px;
}

/* Contact page */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-info,
.contact-form {
    flex: 1 1 300px;
    background: #1A1832;
    padding: 2rem;
    border-radius: 12px;
}
.contact-info h2,
.contact-form h2 {
    margin-bottom: 1rem;
    color: var(--secondary);
}
.contact-info p {
    margin-bottom: 1rem;
    color: #ccc;
    line-height: 1.4;
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2B2748;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.contact-form button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 24px;
    background: var(--primary);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-duration);
}
.contact-form button:hover {
    background: var(--secondary);
}

/* Gallery styling */
.gallery-section {
    padding: 4rem 2rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform var(--transition-duration);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    padding: 2rem;
    text-align: center;
    background: #0A0920;
    color: #666;
        font-size: 1.2rem;
}

@media (max-width: 768px) {
    .headline {
        font-size: 2.6rem;
    }
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu {
        margin-top: 0.5rem;
        gap: 1rem;
    }
}