/* --- DESIGN SYSTEM & HARVEST COLORS --- */
:root {
    --stucco-white: #F9F8F6;  /* Soft stucco cream from exterior */
    --deep-wood: #3A2312;     /* Rich roof timber and porch beams */
    --linen-beige: #E6DFD3;   /* Interior curtains and bed quilt */
    --harvest-ochre: #D9A05B; /* Accent cushion and harvest theme gold */
    --vineyard-earth: #7A3E26; /* Terracotta soil and wine country rust */
    --text-dark: #2B2520;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--stucco-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- STICKY TOP NAVIGATION AREA --- */
header {
    background-color: var(--stucco-white);
    border-bottom: 1px solid var(--linen-beige);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

header nav a:first-of-type {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-wood);
    text-decoration: none;
}

header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

header nav ul li:not(:last-child)::after {
    content: "|";
    margin: 0 1rem;
    color: var(--linen-beige);
    font-weight: 300;
}

header nav ul a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

header nav ul a:hover {
    color: var(--harvest-ochre);
}

header nav a[href="#calculator"] {
    display: inline-block;
    background-color: var(--vineyard-earth);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: background-color 0.3s;
}

header nav a[href="#calculator"]:hover {
    background-color: var(--deep-wood);
}

/* --- NATIVE IMAGE HERO STYLES --- */
.hero-container {
    position: relative;
    height: 85vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Forces the native HTML image to act as a full-bleed cover background */
.hero-native-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Creates a tinted barrier so white text pops clearly over light images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(58, 35, 18, 0.45), rgba(58, 35, 18, 0.25));
    z-index: 2;
}

/* Places text content safely above the image and tint layout layers */
.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-content a {
    display: inline-block;
    background-color: var(--vineyard-earth);
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.hero-content a:hover {
    background-color: var(--deep-wood);
}


/* --- ALTERNATING PROPERTY DETAILS --- */
#about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

#about > div {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    gap: 4rem;
}

#about > div:nth-child(even) {
    flex-direction: row-reverse;
}

#about > div > div {
    flex: 1;
    min-width: 300px;
}

#about img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

#about h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--deep-wood);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

#about p {
    color: #554e48;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* --- NO-GAP IMAGERY GRID --- */
#gallery h2 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--deep-wood);
    margin-bottom: 3rem;
}

#gallery > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Strictly zero gap layout for high-end feel */
    gap: 0; 
    width: 100%;
    padding: 0;
}

#gallery > div > div {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

#gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#gallery > div > div:hover img {
    transform: scale(1.05);
}

/* --- CALCULATOR WIDGET --- */
#calculator {
    background-color: var(--linen-beige);
    padding: 5rem 2rem;
}

#calculator > div {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(58, 35, 18, 0.08);
    border-top: 4px solid var(--harvest-ochre);
}

#calculator h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--deep-wood);
    margin-bottom: 1.5rem;
    text-align: center;
}

#calculator > div > div:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

#calculator label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

#calculator input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--linen-beige);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}

#calculator input:focus {
    border-color: var(--harvest-ochre);
}

#calculator > div > div:last-of-type {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--linen-beige);
}

#calculator > div > div:last-of-type > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

#calculator > div > div:last-of-type > div:last-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vineyard-earth);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--linen-beige);
}

#calculator button {
    display: block;
    width: 100%;
    background-color: var(--vineyard-earth);
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calculator button:hover {
    background-color: var(--deep-wood);
}

#calculator input[type="text"],
#calculator input[type="email"],
#calculator input[type="tel"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--linen-beige);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}
#calculator input[type="text"]:focus,
#calculator input[type="email"]:focus,
#calculator input[type="tel"]:focus {
    border-color: var(--harvest-ochre);
}





/* --- LOCAL GUIDE & MAP SECTION --- */
#location {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#location h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--deep-wood);
    margin-bottom: 1rem;
}

#location p:first-of-type {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #554e48;
}

#location > div {
    width: 100%;
    height: 450px;
    background-color: var(--linen-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--deep-wood);
    border-radius: 2px;
    border: 1px solid rgba(58, 35, 18, 0.1);
}

#location > div p:first-of-type {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#location > div p:last-of-type {
    font-size: 0.85rem;
    max-width: 400px;
    padding: 0 1rem;
    color: var(--text-dark);
}


/* --- SIMPLE LOCATION STYLING --- */
.location-simple {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.location-simple h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--deep-wood);
    margin-bottom: 1rem;
}

.location-intro {
    font-size: 1.1rem;
    color: #554e48;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.location-btn-wrapper {
    margin-bottom: 3.5rem;
}

/* Reuses your core template primary button style rules */
.location-simple .btn-primary {
    display: inline-block;
    background-color: var(--vineyard-earth);
    color: #ffffff;
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.location-simple .btn-primary:hover {
    background-color: var(--deep-wood);
}

.location-highlights {
    text-align: left;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(58, 35, 18, 0.04);
}

.location-highlights h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--deep-wood);
    margin-bottom: 1.2rem;
}

.location-highlights ul {
    list-style: none;
    padding: 0;
}

.location-highlights li {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Simple mobile adjustment to prevent tight screen squeezing */
@media (max-width: 600px) {
    .location-simple {
        padding: 3rem 1.5rem;
    }
    .location-highlights {
        padding: 1.5rem;
    }
}



/* --- FOOTER --- */
/* Your preferred footer design */
footer {
    background-color: var(--deep-wood);
    color: var(--stucco-white);
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    
    /* Adds flex layout to center the block contents vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Clean spacing between text and icon row */
}

/* Ensure your copyright text has no default browser margin issues */
.footer-copyright {
    margin: 0;
}

/* Icon Row Container */
.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Icon Link Circles */
.footer-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent glass effect */
    color: var(--stucco-white);                /* Uses your custom stucco white */
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Interaction over deep wood */
.footer-icons a:hover {
    background-color: var(--stucco-white);
    color: var(--deep-wood);                  /* Inverts colors cleanly on hover */
    transform: translateY(-3px);
}

/* Mobile responsive padding and touch targets */
@media (max-width: 480px) {
    footer {
        padding: 2.5rem 1rem;
        gap: 1.8rem;
    }
    .footer-icons {
        gap: 20px;
    }
    .footer-icons a {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}


/* --- AMENITIES LAYOUT STYLING --- */
.amenities-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--linen-beige);
}

.amenities-container h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--deep-wood);
    margin-bottom: 1rem;
    font-weight: 600;
}

.amenities-list {
    list-style: none; /* Removes messy default black bullet points */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Splits lists evenly into a clean 2-column grid */
    gap: 0.8rem 1.5rem;
    padding: 0;
}

.amenities-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Puts a soft gap between the visual icon and the text */
}

/* Flattens the layout grid into a single clean column on narrow mobile device windows */
@media (max-width: 480px) {
    .amenities-list {
        grid-template-columns: 1fr;
    }
}


/* --- RESPONSIVE HEADER & LOGO SYSTEM --- */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Logo wrapper configuration */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    /* margin: 0 auto 15px auto; */
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--deep-wood); */
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-wood);
    letter-spacing: 0.5px;
}

/* Nav links list defaults (Desktop) */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li:not(.nav-cta-li):not(:last-of-type)::after {
    content: "|";
    margin: 0 1rem;
    color: var(--linen-beige);
    font-weight: 300;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--harvest-ochre);
}

/* CTA Navigation Button styling */
.btn-nav-cta {
    display: inline-block;
    background-color: var(--vineyard-earth);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem !important;
    letter-spacing: 2px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-nav-cta:hover {
    background-color: var(--deep-wood);
}

/* Hidden Mobile Menu Toggle Trigger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--deep-wood);
    transition: all 0.3s ease;
}

/* --- MOBILE RESPONSIVE MEDIA BREAKPOINT (768px and below) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Reveal mobile hamburger toggle button */
    }

    /* Transform the links into a full-width vertical dropdown */
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; /* Drop right below the header line */
        left: 0;
        width: 100%;
        background-color: var(--stucco-white);
        border-bottom: 1px solid var(--linen-beige);
        padding: 1.5rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    /* Remove the vertical layout line dividers on mobile view screens */
    .nav-links li:not(.nav-cta-li):not(:last-of-type)::after {
        content: "";
        margin: 0;
    }

    /* Show links when the script toggles the active class wrapper */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .nav-cta-li {
        width: 80%;
        margin: 0 auto;
    }
    
    .btn-nav-cta {
        text-align: center;
    }

    /* Dynamic X Transformation for the Hamburger Button when open */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}



/* --- CONTACT DIRECTORY CARD LAYOUT SYSTEM --- */
.contact-section-wrapper {
    background-color: var(--stucco-white);
    padding: 5rem 2rem;
    border-top: 1px solid var(--linen-beige);
}

.contact-grid-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.contact-card-box {
    flex: 1;
    background-color: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(58, 35, 18, 0.04);
    border-radius: 2px;
    border-left: 3px solid var(--vineyard-earth); /* Fine harvest rust left border line */
}

.contact-card-box h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--deep-wood);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-line-item {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-icon-anchor {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    display: inline-block;
}

.contact-card-box a {
    color: var(--vineyard-earth);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.contact-card-box a:hover {
    color: var(--deep-wood);
    text-decoration: underline;
}

/* Fluid responsive breakdown wrapping rules for small screens */
@media (max-width: 768px) {
    .contact-grid-container {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-card-box {
        padding: 2rem;
    }
}


/* --- MOBILE LAYOUT OPTIMIZATIONS --- */
@media (max-width: 768px) {
    header nav ul {
        display: none; /* Collapses menu links cleanly on small touch devices */
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    #about > div, #about > div:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    #gallery > div {
        grid-template-columns: repeat(2, 1fr);
    }
    #about {
        padding: 3rem 1.5rem;
    }
    #calculator > div {
        padding: 1.5rem;
    }
}
