/* 1. Global Variables & Reset */
:root {
    --bg: #f9f8f6;
    --earth: #3c3f2f;
    --moss: #8a9a5b; 
    --card: #ffffff;
    --text: #1a1a1a;
    --accent: #d4a373;
}

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

html { 
    scroll-behavior: smooth; 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
}

/* 2. Navigation */
header {
    position: sticky; 
    top: 0;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 10%;
    background: rgba(249, 248, 246, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(60, 63, 47, 0.1);
}

.logo { 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: var(--earth); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

nav a { 
    text-decoration: none; 
    color: var(--earth); 
    margin-left: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    transition: color 0.3s ease;
}

nav a:hover { color: var(--accent); }

/* 3. Layout */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

section { 
    padding: 100px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

h1 { 
    font-size: 3.5rem; 
    color: var(--earth); 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero-sub { 
    font-size: 1.2rem; 
    color: var(--moss); 
    max-width: 600px; 
    margin-bottom: 40px; 
}

.section-title { margin-bottom: 40px; color: var(--earth); }

/* 4. Bento Grid Components */
.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.card { 
    background: var(--card); 
    padding: 40px; 
    border-radius: 30px; 
    box-shadow: 0 10px 30px rgba(60, 63, 47, 0.05); 
    transition: transform 0.3s ease;
    overflow: hidden; 
    
    display: flex; /* Ensures the text and image sit nicely */
    flex-direction: column; 
    justify-content: space-between;
}

.card:hover { transform: translateY(-5px); }

.card.wide { grid-column: span 2; 
    flex-direction: row; 
    align-items: center;
    gap: 30px;
}

.card-image {
    width: 100%;       /* Takes full width of its half of the card */
    max-width: 100%;   /* Prevents it from pushing the card wider */
}

.card-image img {
    width: 100%;       /* Fills the container */
    height: 250px;     /* Sets a consistent height */
    object-fit: cover; /* Crops the image so it doesn't squish */
    display: block;    /* Removes weird white space at the bottom */
    border-radius: 20px; /* Optional: gives the image its own rounded corners */
}

.dark-card { 
    background: var(--earth); 
    color: white; 
}

.quote { font-size: 1.5rem; line-height: 1.4; }

.step-number { 
    font-size: 0.75rem; 
    font-weight: bold; 
    color: var(--accent); 
    text-transform: uppercase; 
    display: block;
    margin-bottom: 10px;
}

/* 5. Forms & UI */
form { 
    display: flex; 
    flex-direction: column; 
    max-width: 500px; 
    margin-top: 30px; 
}

input, textarea {
    padding: 15px; 
    margin-bottom: 15px; 
    border-radius: 15px;
    border: 1px solid #ddd; 
    background: #fff;
    font-size: 1rem;
}

button {
    padding: 15px 30px; 
    background: var(--earth); 
    color: white;
    border: none; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 600;
    transition: background 0.3s ease;
}

button:hover { background: var(--moss); }

.success-msg { 
    display: none; 
    color: var(--moss); 
    margin-top: 20px; 
    font-weight: bold;
}

/* Mobile Adjustments (Phones and small Tablets) */
@media (max-width: 768px) {
    
    /* 1. Adjust the Header */
    header {
        flex-direction: column; /* Stacks Logo and Nav */
        padding: 1rem 5%;
        text-align: center;
    }

    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap; /* Allows links to wrap to a new line if needed */
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin-left: 0; /* Remove the large left margin from desktop */
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    /* 2. Fix the Grid */
    .bento-grid {
        grid-template-columns: 1fr; /* Switches from 3 columns to 1 */
        gap: 15px;
    }

    .card.wide {
        grid-column: span 1; /* Reset wide cards to take full width of the single column */
    }

    /* 3. Scale down the Typography */
    h1 {
        font-size: 2.2rem; /* Shorter header for small screens */
    }

    section {
        padding: 60px 0; /* Less padding so user doesn't have to scroll forever */
    }

    .container {
        padding: 0 1.5rem;
    }
}


/* Contact Page Specifics */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.contact-wrapper {
    max-width: 600px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.contact-link {
    background: var(--earth);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.contact-link:hover {
    background: var(--moss);
}

.success-msg {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Footer Styles */
footer {
    background-color: #ffffff;
    padding: 80px 0 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 50px;
}

.footer-brand p {
    color: var(--moss);
    font-size: 0.9rem;
    margin-top: 10px;
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--earth);
    margin-bottom: 15px;
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .footer-brand p {
        margin: 10px auto;
    }
}

/* Back to Top Button */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--earth);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Circular button */
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#backToTop:hover {
    background-color: var(--moss);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.hero-image {
    width: 100%;            /* Fills the width of the container */
    max-height: 500px;      /* Prevents it from being too tall on desktop */
    object-fit: cover;      /* Crops the image perfectly without stretching it */
    border-radius: 30px;    /* Matches your Bento card style */
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(60, 63, 47, 0.1);
}

/* Mobile adjustment for the image */
@media (max-width: 768px) {
    .hero-image {
        max-height: 300px;  /* Smaller height for phone screens */
        border-radius: 20px;
    }
}

.container {
    max-width: 1200px;      /* The "sweet spot" for modern websites */
    margin: 0 auto;         /* Centers the content on the screen */
    padding: 0 2rem;        /* Prevents text from touching the edges on mobile */
}

@media (max-width: 768px) {
    .card.wide {
        flex-direction: column; /* Stacks text on top of image */
        padding: 20px;          /* Tighter padding for small screens */
    }
    
    .card-image img {
        height: 200px;          /* Shorter height for mobile */
    }
}

/* Lightbox Background */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above the header */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark backdrop */
    backdrop-filter: blur(5px);
}

/* The Expanded Image */
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 15px;
    animation: zoom 0.3s;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Make card images look clickable */
.card-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-image img:hover {
    transform: scale(1.02);
}

.logo-img {
    /* Adjust this number until it looks right to you */
    height: 55px; 
    width: auto; /* Keeps the aspect ratio from stretching */
    display: block;
    object-fit: contain;
}

/* Optional: Add a little breathing room around the logo */
.logo-wrapper {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

/* --- 2. Navigation (Cleaned & Aligned) --- */
header {
    display: flex;
    justify-content: space-between; 
    align-items: center; /* This centers Logo and Hamburger/Nav vertically */
    padding: 0.8rem 5%;
    background: #f9f8f6;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: 80px; /* Gives a consistent height for centering */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Standard professional size */
    width: auto;
    display: block;
    object-fit: contain;
}

/* 1. The Container that holds both images */
.hero-image-group {
    display: flex;
    gap: 20px;              /* Spacing between the two images */
    width: 100%;
    margin-top: 20px;
}

/* 2. Modified styles for the individual images */
.hero-image {
    flex: 1;                /* Forces both images to take up equal width (50/50 split) */
    width: 50%;             /* Fallback width */
    max-height: 450px;      /* Slightly reduced height so they don't look too stretched vertically */
    object-fit: cover;      /* Crops the images perfectly without squishing them */
    border-radius: 30px;    /* Keeps your beautiful Bento card style rounding */
    box-shadow: 0 20px 40px rgba(60, 63, 47, 0.1);
}

/* 3. Mobile Responsiveness (Stack them vertically on phones) */
@media (max-width: 768px) {
    .hero-image-group {
        flex-direction: column; /* Stacks image 1 on top of image 2 on mobile */
        gap: 15px;
    }
    
    .hero-image {
        width: 100%;        /* Makes them full width on mobile screens */
        max-height: 300px;  /* Keeps them from consuming the entire mobile viewport */
    }
}

