/* ----------------- RESET & GLOBAL ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, Helvetica, sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #f8f7f4;
}

/* ----------------- NAVBAR ----------------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* transparent over hero */
    transition: background-color 0.3s;
}

.navbar-logo img {
    height: 50px;
    flex-shrink: 0;
}

.navbar-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
}

.navbar-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.navbar-menu a:hover {
    color: #ff5151;
}

.navbar-hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    z-index: 1010;
}

body.menu-open {
    overflow: hidden;
}

/* Mobile menu */
@media (max-width: 768px) {

    /* Keep logo and hamburger above the menu */
    .navbar {
        position: absolute;
        z-index: 1002;
    }

    .navbar-logo {
        position: relative;
        z-index: 1003;
    }

    .navbar-hamburger {
        display: block;
        position: relative;
        z-index: 1003;
        font-size: 1.5rem;
        cursor: pointer;
        color: #ffffff;
    }

    /* Dropdown menu */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;

        /* background-color: #171717; */
        background-color: #1b1b1b;


        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        padding-top: 82px; /* Height of navbar */
        padding-bottom: 0;

        transform: translateY(-100%);
        transition: transform 0.3s ease;

        z-index: 1001;
    }

    .navbar-menu.active {
        transform: translateY(0);
    }

    .navbar-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .navbar-menu li {
        width: 100%;
        border-top: 1px solid #333;
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        color: #ffffff;
        text-decoration: none;
        text-align: center; /* Change to center if preferred */
    }

    .navbar-menu a:hover {
        background-color: #222;
        color: #ff5151;
    }
}

/* ----------------- HERO (HOME & SUBPAGES) ----------------- */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-full {
    height: 100vh; /* home page */
}

.hero-half {
    height: 40vh; /* subpages */
}

#hero-background, #hero-background-partial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#hero-background {
    object-position: center;
}

#hero-background-partial {
    object-position: top;
}

#hero-title {
    position: relative;
    z-index: 2;
    width: clamp(250px, 70%, 600px);
    height: auto;
}

#contact-us-btn {
    position: relative;
    display: inline-block;
    z-index: 2;
    height: auto;
    width: clamp(80px, 50%, 140px);
    margin-top: 1rem;
}

#contact-us-img {
    max-width: 100%;
    height: auto;
    transition: filter 0.2s ease;
}

#contact-us-img:hover { 
    filter: brightness(120%);
}

#landing-arrow {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s;
}

#landing-arrow:hover {
    transform: translateX(-50%) translateY(5px);
}

/* ----------------- MAIN CONTENT ----------------- */
main {
    background-color: #f8f7f4;
}

h1, h2, h3 {
    color: #5F292E;
    margin-bottom: 1rem;
}

p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    color: #5F292E;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----------------- INTRO ----------------- */

.subpage-body {
    background-image: url("/images/background.jpg");
}

.intro {
    background-image: url("/images/background.jpg");
    padding: 5rem;
    padding-left: 20%;
    padding-right: 20%;
    min-height: 60vh;
}

.section-title {
    color: #455602;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Italianno', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 200;
}

.section-text {
    color: rgb(96, 96, 96);
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1rem, 1.2vw, 2rem);
    margin: 0px;
    padding: 0px;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.section-divider {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 5rem;
    margin-bottom: 0.1rem;
}

#color-divider {
    width: 100%;
    padding: 2rem;
    background-color: #5e673c;
}

.pricing {
    text-align: center;
    color: rgb(235, 235, 235);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1rem, 1.2vw, 2rem);
    font-weight: 100;
    margin: 0;
}

.pricing > a {
    color: rgb(235, 235, 235);
}

/* ------------- FLOATING IMAGES ------------- */

.section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 7rem auto;
    max-width: 1100px;
    position: relative;
    min-height: 420px; /* controls overall visual height */
}

/* IMAGE */
.imagebox {
    width: 60%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.imagebox img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* IMPORTANT: makes image fill height cleanly */
    display: block;
}

/* TEXT */
.textbox {
    width: 40%;
    aspect-ratio: 1 / 1;
    background: white;
    padding: 2rem;
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    outline: 1px solid #b8c48e;
    outline-offset: -15px; 
}

.subpage-textbox {
    background: white;
    text-align: center;
    width: min(100%, 700px);
    margin: 4rem auto;
    padding: 2rem;
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: 1px solid #b8c48e;
    outline-offset: -15px; 
}

.textbox-title {
    font-weight: bold;
    font-size: 3rem;
    font-family: 'Italianno', cursive;
    color: #363636;
}

.textbox-text {
    margin-top: 1.5rem;
    padding: 1rem;
    font-weight: normal;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
}

.textbox-text > a {
    color: #A1362A;
    font-weight: bold;
}

.imagebox.left {
    order: 1;
}

.imagebox.right {
    order: 2;
}

.textbox.right {
    order: 2;
    margin-left: -140px;  /* stronger overlap */
}

.textbox.left {
    order: 1;
    margin-right: -140px;
}

.textbox > hr {
    border: none;
    border-top: 1px solid #A1362A;
}

/* ----------------- FOOTER ----------------- */
footer {
    background-color: #A1362A;
    color: #1b1b1b;
    padding: 2rem;
    font-family: 'Oswald', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 1rem;
}

.footer-section {
    flex: 0 0 250px;
    text-align: left;
}

.footer-section h1,
.footer-section p,
.footer-section a {
    color: #f8f7f4;
    margin: 0;
    font-weight: 100;
    font-size: 1rem;
}

.footer-section h1 {
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: normal;
    font-size: 1.5rem;
}

.footer-copyright {
    margin-top: 2.5rem;
    text-align: center;
    color: #212121;
    font-size: 0.7rem;
}


/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-section {
        width: 100%;
        max-width: 300px;
        height: auto;
        flex: 0 0 100px;
    }

    .footer-section > h1 {
        margin-top: 1rem;
    }

    .footer-section > p, .footer-section > p > a {
        font-size: 0.9rem;
    }
}

/* ----------------- RESPONSIVE CONTENT ----------------- */
@media (max-width: 768px) {
    .subpage-textbox {
        width: 140%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .section {
        flex-direction: column;
        min-height: auto;
        margin: 2rem 2rem;
    }

    .imagebox,
    .textbox {
        width: 100%;
        height: auto;
    }

    .imagebox img {
        height: auto;
    }

    /* kill overlap on mobile */
    .textbox {
        margin: 0 !important;
        height: auto;
    }

    /* ensure correct order: image then text */
    .imagebox {
        order: 1 !important;
    }

    .textbox {
        order: 2 !important;
    }
}

/* Initial state */
.imagebox,
.textbox {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Image starts from its own side */
.imagebox.left {
    transform: translateX(20px);
}

.imagebox.right {
    transform: translateX(-20px);
}

/* Text starts from the OPPOSITE side */
.textbox.left {
    transform: translateX(20px);
}

.textbox.right {
    transform: translateX(-20px);
}

/* Animate in */
.section.animate .imagebox,
.section.animate .textbox {
    opacity: 1;
    transform: translateX(0);
}

.blurb {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

#about-img {
    width: 50%;
    align-items: right;
}

.contact-info {
    color: rgb(42, 42, 42);
    margin-top: 1rem;
    margin-bottom: 0;
}

.contact-info > a {
    font-weight: bold;
    color: #A1362A;
    margin: 0;
    white-space: nowrap;
    hyphens: none;
}

.contact-info > a:hover {
    text-decoration: none;
}

#contact-intro{
    margin-bottom: 0px;
}

.unselectable {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none; 
}

.hoverclick {
    user-select: none;
    -webkit-user-drag: none;
}

/* ----------------- GALLERY ----------------- */

#gallery {
    padding: 4rem 0;
}

/* container gives side margins */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* side breathing room */
}

/* responsive breakpoints */
@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* square thumbnails */
.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------- MODAL ----------------- */

.gallery-modal {
    opacity: 0;
    visibility: hidden;

    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.85);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 2rem;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-img {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;

    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-modal.active .gallery-modal-img {
    transform: scale(1);
    opacity: 1;
}

.gallery-caption {
    color: white;
    margin-top: 1rem;
    font-family: 'Oswald', sans-serif;
    text-align: center;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease 0.05s,
                transform 0.25s ease 0.05s;
}

.gallery-modal.active .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    user-select: none;

    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-modal.active .gallery-close {
    opacity: 1;
}