* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font: 16px/1.6 "Poppins", Arial, sans-serif;
    color: #1c1c1c;
    background: #f2f2f2;
}
/* ====== Layout Wrappers shared across pages ====== */
.container {
    width: min(95%, 1100px);
    margin: 0 auto;
}

.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Our Story - Pricing frame layout with side rails */
.frame {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    min-height: 100svh;
}

.center {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center>.hero {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
}

.center>.site-header,
.center>.section {
    width: min(95%, 1100px);
    margin-inline: auto;
}

/* ====== Header ====== */
header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    padding: 14px 12px 0;
    width: min(95%, 1100px);
    margin: 0 auto;
    margin-bottom: 20px;
}

/* Nav element affects all <nav> tags */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: min(95%, 1100px);
    margin-inline: auto;
}

.brand .logo {
    width: 60px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #6b7755;
}

/* The Lulu League title */
.brand h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #6b7755; 
}

/* Top nav links */
.main-nav {
    width: min(95%, 1100px);
    margin: 8px auto 0;
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid #dcdcdc;
}

.main-nav a {
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 2px;
    border-color: #6b7755; 
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: #6b7755;
    border-color: #6b7755;
}  

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 0;
    width: 100%;
    text-align: center;
}

/* ====== Hero Section & Main content blocks ====== */
.hero {
    display: block;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
    border-top: 4px solid #6b7755;
    border-bottom: 4px solid #6b7755;
    border-left: 4px solid #6b7755;
    border-right: 4px solid #6b7755; 
}

.hero h2 {
    color: #505a3c;
}

.section {
    width: min(95%, 1100px);
    background: #ffffff;
    margin: 26px auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    padding: 22px 18px;
}

.section h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #6b7755; 
}

.lead {
    margin: 0;
}

/* Lists inside scetions */
.section ul {
    padding-left: 20px;
}

.section li {
    margin-bottom: 4px;
}

/* ====== Home Page: Info bar under "Who We Are" ====== */
.info-bar {
    display: grid;
    gap: 12px;
    align-items: center;
    grid-template-columns: 1fr auto;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #dcdcdc;
}

.info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-left img {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #6b7755;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* "The Lulu League" wordmark under the logo on index */
.wordmark {
    font-weight: 600;
    letter-spacing: 3px;
    color: #6b7755;
}  

.info-right {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.info-right .link {
    color: #6b7755;
    font-weight: 800;
    text-decoration: none;
}

.info-right .link:hover {
    color: #505a3c;
    text-decoration: underline;
}

/* email link in Booking section */
.email-green {
    color: #6b7755;
    text-decoration: none;
}

/* ====== Reference & Pricing pages - Card - Button ====== */
.ref-stack {
    width: min(95%, 1100px);
    margin: 40px auto;
}

.ref-box {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    margin-bottom: 35px;
}

.card {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.btn {
    padding: 8px 14px;
    border: none;
    background: #6b7755;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}

/* ====== Footer for all pages ====== */
.site-footer {
    background: #ffffff;
    border-top: 2px solid #6b7755;
    border-left: 2px solid #6b7755;
    border-bottom: 2px solid #6b7755;
    border-right: 2px solid #6b7755;
    padding: 10px 0;
    margin-top: 30px;
    width: min(95%, 1100px);
    margin: 0 auto;
}

.site-footer .brand.mini {
    width: min(95%, 1100px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.icon-small {
    width: 15px;
    height: 15px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 5px;
}

.site-footer .link {
    text-decoration: none;
}

/* ====== Side Rails for Our Story & Pricing pages ====== */
.rail {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #6b7755;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    justify-content: space-between;
    overflow: hidden;
}

.rail.left {
    border-left: 1px solid #dcdcdc;
}

.rail.right {
    border-right: 1px solid #dcdcdc;
}

/* Decor items floating in the rails */
.rail .decor {
    font-size: 22px;
    line-height: 1;
    margin: 25px 0;
    user-select: none;
    position: relative;
    animation: floatAround 7s ease-in-out infinite;
}

.rail .decor:nth-of-type(2) {
    animation-duration: 8s;
    animation-delay: 0.3s;
}

.rail .decor.decor:nth-of-type(3) {
    animation-duration: 9s;
    animation-delay: 0.6s;
}

.rail .decor.decor:nth-of-type(4) {
    animation-duration: 7.5s;
    animation-delay: 1s;
}

.rail .decor.decor:nth-of-type(5) {
    animation-duration: 8.5s;
    animation-delay: 1.4s;
}

/* Photos inside the rails */
.rail-image {
    width: 100px;
    height: auto;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 100;
}

/* Centered bottom image on left rail */
.left-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
}

/* Corner image on right rail */
.right-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 100px;
}

/* ====== Images on References & Booking pages ====== */
/* Reference page floating decor items */
.reference-icon {
    width: 100px;
    height: auto;
    border: 2px solid #6b7755;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 100;
}

.page-references .ref-brownie {
    position: fixed;
    top: 20px;
    left: 30px;
    transform: none;
}

.page-references .ref-coffee {
    position: fixed;
    right: 30px;
    bottom: 20px;
    z-index: 100;
}

/* Booking page floating decor items */
.page-booking .book-ragnar {
    position: fixed;
    top: 20px;
    left: 30px;
    transform: none;
}

.page-booking .book-hairy {
    position: fixed;
    border-radius: 10px;
    right: 30px;
    bottom: 20px;
    z-index: 100;
}

/* Booking form grid aligment */
.page-booking .booking-grid {
    align-items: flex-start;
}

.page-booking .form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.page-booking .form textarea,
.page-booking .form .btn {
    grid-column: 1/-1;
}

.page-booking .form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ====== Floating decor background for all pages ====== */
.site-header,
.section,
.hero,
footer {
    position: relative;
    z-index: 1;
}

.moving-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.m-icon {
    position: absolute;
    font-size: 38px;
    opacity: 0.4;
    animation: drift 18s ease-in-out infinite;
}

/* Floating decor around the index page */
.page-index .m-icon:nth-child(1) {
    top: 10%;
    left: 3%;
    animation-duration: 22s;
}

.page-index .m-icon:nth-child(2) {
    top: 35%;
    left: 6%;
    animation-duration: 27s;
}

.page-index .m-icon:nth-child(3) {
    top: 60%;
    left: 3%;
    animation-duration: 22s;
}

.page-index .m-icon:nth-child(4) {
    top: 85%;
    left: 4%;
    animation-duration: 24s;
}

.page-index .m-icon:nth-child(5) {
    top: 10%;
    left: 92%;
    animation-duration: 26s;
}

.page-index .m-icon:nth-child(6) {
    top: 35%;
    left: 93%;
    animation-duration: 20s;
}

.page-index .m-icon:nth-child(7) {
    top: 60%;
    left: 92%;
    animation-duration: 28s;
}

.page-index .m-icon:nth-child(8) {
    top: 85%;
    left: 93%;
    animation-duration: 27s;
}

/* Floating decor around Reference page */
.page-references .m-icon:nth-child(1) {
    top: 25%;
    left: 15%;
    animation-duration: 20s;
}

.page-references .m-icon:nth-child(2) {
    top: 25%;
    left: 60%;
    animation-duration: 23s;
}

.page-references .m-icon:nth-child(3) {
    top: 20%;
    left: 35%;
    animation-duration: 21s;
}

.page-references .m-icon:nth-child(4) {
    top: 30%;
    left: 80%;
    animation-duration: 24s;
}

.page-references .m-icon:nth-child(5) {
    top: 5%;
    left: 92%;
    animation-duration: 22s;
}

.page-references .m-icon:nth-child(6) {
    top: 40%;
    left: 5%;
    animation-duration: 25s;
}

.page-references .m-icon:nth-child(7) {
    top: 20%;
    left: 3%;
    animation-duration: 26s;
}

.page-references .m-icon:nth-child(8) {
    top: 80%;
    left: 95%;
    animation-duration: 26s;
}

.page-references .m-icon:nth-child(9) {
    top: 90%;
    left: 5%;
    animation-duration: 26s;
}

.page-references .m-icon:nth-child(10) {
    top: 30%;
    left: 92%;
    animation-duration: 25s;
}

.page-references .m-icon:nth-child(11) {
    top: 55%;
    left: 94%;
    animation-duration: 26s;
}

.page-references .m-icon:nth-child(12) {
    top: 65%;
    left: 3%;
    animation-duration: 27s;
}

/* Floating decor around Booking page */
.page-booking .m-icon:nth-child(1) {
    top: 60%;
    left: 3%;
    animation-duration: 20s;
}

.page-booking .m-icon:nth-child(2) {
    top: 28%;
    left: 60%;
    animation-duration: 23s;
}

.page-booking .m-icon:nth-child(3) {
    top: 30%;
    left: 35%;
    animation-duration: 21s;
}

.page-booking .m-icon:nth-child(4) {
    top: 10%;
    left: 93%;
    animation-duration: 24s;
}

.page-booking .m-icon:nth-child(5) {
    top: 45%;
    left: 95%;
    animation-duration: 22s;
}

.page-booking .m-icon:nth-child(6) {
    top: 28%;
    left: 5%;
    animation-duration: 25s;
}

.page-booking .m-icon:nth-child(7) {
    top: 80%;
    left: 92%;
    animation-duration: 26s;
}

.page-booking .m-icon:nth-child(8) {
    top: 90%;
    left: 6%;
    animation-duration: 24s;
}

/* ====== Rails & Moving decor ====== */

@keyframes floatAround {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(3px, -25px);
    }

    50% {
        transform: translate(0px, -45px);
    }

    75% {
        transform: translate(-3px, -25px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, -30px);
    }

    50% {
        transform: translate(0, -55px);
    }

    75% {
        transform: translate(-10px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* ====== Price table on Pricing page ====== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.price-table th,
.price-table td {
    border: 1px solid #dcdcdc;
    padding: 8px;
    text-align: left;
}

.price-table th {
    background: #6b7755;
    color: #ffffff;
}

/* ====== Phone screens ====== */
@media screen and (max-width: 768px) {

    /* Make main content full-width on phones */
    .container,
    header,
    .section,
    .hero,
    .ref-stack,
    .site-footer {
        width: 100%;
        margin: 0 auto 20px;
    }

    /* show hamburger button on small screens */
    .menu-toggle {
        display: block;
        cursor: pointer;
        color: #6b7755;
    }

    /* hide nav by default on small screens */
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        border-top: none;
    }

    /* show nav when JS adds .open */
    .main-nav.open {
        display: flex;
    }

    /* stack info bar on home */
    .info-bar {
        grid-template-columns: 1fr;
    }

    .info-right {
        justify-content: center;
    }

    /* Remove side rails and make layout single-column */
    .frame {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .decor {
        font-size: 20px;
        margin: 16px 0;
    }

    .rail {
        display: none;
    }

    /* Turn off rails & fixed decor & photos */
    .rail-image,
    .left-image,
    .right-image,
    .page-references .ref-brownie,
    .page-references .ref-coffee,
    .page-booking .book-ragnar,
    .page-booking .book-hairy {
        display: none;
    }

    /* No overlapping */
    img {
        max-width: 100%;
        height: auto;
        position: static;
    }

    /* Booking page stack the inputs in one column */
    .page-booking .form .row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        text-align: center;
    }
}