/* --- CSS STYLES --- */
:root {
    --light-brown: #E4C8A6;
    --dark-brown: #6A451A;
    --accent-gold: #FFD700;
    --text-color: #333;
    --white: #fff;
    --bg-grey: #f9f9f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-grey);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    /* Default to block display for Desktop */
    display: block;
}

h1,
h2,
h3 {
    font-family: 'Pacifico', cursive;
    color: var(--dark-brown);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

a {
    text-decoration: none;
    color: inherit;
}


/* Screen Reader Only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--dark-brown);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    margin-bottom: 80px;
    /* <--- DESKTOP SPACE BELOW BUTTON */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #e6c200;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(66, 40, 14, 0.7), rgba(66, 40, 14, 0.7));
    background-size: cover;
    background-position: center;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

.hero-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- DESKTOP STYLES: Recreating original side-by-side look --- */

/* Wrapper to display H and V images side-by-side on desktop */
.desktop-box-images-wrapper {
    /* This mimics the original .original-box-images-wrapper properties */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

/* Elements that should be hidden on desktop but shown on mobile for reordering */
.mobile-only-img {
    display: none;
}

.hero-content-text {
    display: block;
}

/* Text is always visible, so no display rule here */

/* Style for H-image */
.hero-box-img-h {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Style for V-image (snackit-V-BR) when displayed beside H-box */
.hero-box-img-v-top {
    display: block;
    max-height: 345px;
    width: auto;
}

/* Style for image below button (now cj.webp) */
.hero-box-img-v-bottom {
    display: block;
    margin: 0 auto 15px auto;
    /* Added margin below for the caption */
    max-height: 345px;
    /* Size maintained from original V-box CSS */
    width: auto;
}

/* NEW STYLE FOR CAPTION */
.image-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 auto 30px auto;
    /* Space below caption */
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- END NEW STYLES --- */

.tagline {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 600;
}

/* NEW TAGLINE STYLE */
.hero-secondary-tagline {
    font-size: 1.3rem;
    /* Slightly smaller than main tagline */
    font-weight: 600;
    color: var(--white);
    margin: 30px auto 0 auto;
    /* Space above and centered */
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}


/* Features Section */
#features {
    padding: 80px 20px;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-grey);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--light-brown);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--dark-brown);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin: 0;
}

/* Contact Section */
#contact {
    padding: 80px 20px;
    background-color: var(--light-brown);
    color: var(--dark-brown);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 69, 26, 0.2);
}

.contact-info h3 {
    margin-top: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.info-item {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.info-icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--dark-brown);
}

.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
footer {
    background: var(--dark-brown);
    color: var(--light-brown);
    text-align: center;
    padding: 30px;
    font-weight: 600;
}

/* MEDIA QUERY FOR MOBILE (<= 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 20px;
    }

    /* 1. Make the container a column flexbox to enable ordering */
    .hero>.container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 2. Control visibility: Hide desktop image wrapper, show individual mobile images */
    .desktop-box-images-wrapper {
        display: none;
    }

    .mobile-only-img {
        display: block;
    }

    /* 3. Apply the specific order */
    /* Logo is first due to HTML position */

    /* H image (Order 1, after logo) */
    .h-image-wrapper {
        order: 1;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    /* Text Block (Order 2) */
    .hero-content-text {
        order: 2;
    }

    /* V image (Order 3) */
    .v-image-wrapper {
        order: 3;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    /* CTA Button (Order 4) */
    .btn-wrapper {
        order: 4;
        margin-bottom: 30px;
    }

    /* cj.webp image (Order 5) */
    .cj-image-wrapper {
        order: 5;
    }

    /* Caption (Order 6) */
    .image-caption {
        order: 6;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    /* Secondary Tagline (Order 7) */
    .hero-secondary-tagline {
        order: 7;
        margin-top: 20px;
    }

    /* --- Mobile Sizing --- */
    .hero-logo {
        max-width: 250px;
    }

    .mobile-only-img img {
        max-width: 250px;
        max-height: 250px;
        width: auto;
    }

    .hero-box-img-v-bottom {
        max-height: 250px;
    }

    .image-caption {
        font-size: 0.9rem;
    }
}

/* MEDIA QUERY FOR DESKTOP (> 768px) */
@media (min-width: 769px) {

    /* Hide the individual mobile-only image wrappers on desktop */
    .h-image-wrapper,
    .v-image-wrapper,
    .btn-wrapper {
        display: none !important;
    }
}