/* GLOBAL SETTINGS */

:root{
--contact-email: "saspickard@icloud.com";

}

/* GLOBAL STYLES */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* Adding a light, nature-themed background image for the body */
    background-image: url('assets/burnham-overy-heraldry.jpg'); /* REPLACE with a soft, tiling background image */
    background-color: #f4f4f9; 
    background-attachment: fixed; /* Keeps background still when scrolling */
    background-size: cover;
    color: #333;
}

/* --- HEADER AND NAVIGATION --- */
header {
    background-color: #004d40; /* Dark Teal */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* KEY FIX: Ensure Flexbox is correctly centering the three children horizontally */
.header-content {
    display: flex;
    justify-content: center; /* Centers the whole block */
    align-items: center;    /* Vertically aligns the items (images and title) */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-title {
    flex-shrink: 0; /* Prevents title from shrinking */
    padding: 0 20px;
}

.header-image {
    width: 150px; /* Base size for image container */
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a7d6e; /* Placeholder background */
    display: block; /* Ensure container is properly treated */
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7; /* Make placeholder less distracting */
    display: block;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1em;
}

nav {
    background-color: #1a7d6e; /* Lighter Teal */
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-flex; /* Use flex for icon and text alignment */
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

nav a:hover,
nav a.active {
    background-color: #00332a; /* Darker on hover */
    color: #a3e7c8;
}

/* Navigation Icon Placeholders */
.nav-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background-color: white; /* Default icon color */
    border-radius: 3px;
}

nav a:hover .nav-icon,
nav a.active .nav-icon {
    background-color: #a3e7c8; /* Icon color change on hover/active */
}

/* --- MAIN CONTENT & GRAPHICAL SECTIONS --- */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Graphical Look for Sections (Transparent Box Effect) */
.graphical-box {
    background-color: rgba(255, 255, 255, 0.85); 
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 77, 64, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

section {
    /* Base section style, overridden by .graphical-box on the relevant pages */
    margin-bottom: 20px;
}

h2 {
    color: #004d40;
    border-bottom: 2px solid #a3e7c8;
    padding-bottom: 10px;
    margin-top: 0;
}

ul {
    padding-left: 20px;
}

/* HOME PAGE SPECIFIC STYLES */
.features-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.features-grid > div {
    flex: 1;
    min-width: 250px;
    background-color: rgba(0, 77, 64, 0.05); /* Very light, subtle green background */
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #1a7d6e;
}

.contact-note {
    font-size: 1.2em;
    font-weight: bold;
    color: #d9764f;
}

.contact-pricing {
    font-size: 1.2em;
    font-weight: bold;
    color: #d9764f;
}

.contact-availability {
    font-size: 1.2em;
    font-weight: bold;
    color: #d9764f;
}

.button {
    display: inline-block;
    background-color: #f0ad4e; /* Orange/Gold for CTA */
    color: #333;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #ec971f;
}

/* COTTAGE OVERVIEW STYLES */
.features-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.floor-plan {
    flex: 1;
    min-width: 300px;
}

.floor-plan h3 {
    color: #1a7d6e;
    border-bottom: 1px dashed #a3e7c8;
    padding-bottom: 5px;
}

/* PRICING TABLE STYLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1.1em;
}

table thead tr {
    background-color: #004d40;
    color: white;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.disclaimer {
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

/* TERMS PAGE STYLES */
.pdf-link {
    color: #d9534f;
    font-weight: bold;
    text-decoration: none;
}

.pdf-link:before {
    content: "↓ ";
}

/* GALLERY STYLES */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4/3; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- FOOTER --- */
footer {
    padding: 0;
    margin-top: 30px;
    background-image: url('assets/footer-cottage-landscape.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
}

.footer-content-wrapper {
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 20px;
}

.contact-footer a {
    color: #a3e7c8;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-top: 5px;
}

.contact-footer a:hover {
    text-decoration: underline;
    color: #f0ad4e;
}

/* --- MEDIA QUERY FOR MOBILE PHONES --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .header-content {
        flex-wrap: wrap; 
        justify-content: center;
    }

    /* Hide flanking images on very small screens to save space */
    .header-image {
        display: none !important; 
    }
    
    .header-title {
        padding: 0;
    }

    nav a {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid, .features-layout {
        flex-direction: column;
    }
    
    table th, table td {
        font-size: 0.9em;
        padding: 8px;
    }
}
