/* --- BROOM MILL FARM - MASTER STYLE SHEET --- */
:root {
    --logo-blue: #006da0; 
    --logo-black: #1a1a1b;
    --warm-cream: #fdfcf9;
    --text-gray: #222; 
    --heritage-orange: #E65100;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    color: var(--text-gray);
    background-color: var(--warm-cream);
    line-height: 1.6;
    overflow-x: hidden; 
}

/* --- HEADER & NAVIGATION --- */
header { 
    background: white; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    border-bottom: 4px solid var(--logo-blue); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo-container img { 
    height: 70px; 
    width: auto; 
    display: block;
    object-fit: contain;
}

nav a { 
    margin: 0 10px; 
    text-decoration: none; 
    color: var(--logo-black); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.82rem; 
    transition: color 0.3s ease;
}
nav a:hover, nav a.nav-active { color: var(--logo-blue); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO BANNERS (GLOBAL) --- */
.hero-600, .history-hero-bg, .trail-hero-bg, .about-hero-bg {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

/* Specific Hero Backgrounds */
.hero-600 { 
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Images/broommill-farm-Bishop-auckland.webp'); 
    min-height: 600px;
}
.history-hero-bg { 
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('Images/county-durham-countryside-broo-mill-farm.webp'); 
}
.trail-hero-bg { 
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Images/the-first-iron-bridge-in-th-world-st-helens-bisop-auckland.webp'); 
}
.about-hero-bg { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('Images/broommill-farm-Bishop-auckland.webp'); 
}

/* --- GRID & SECTION LAYOUTS --- */
.section { padding: 60px 5%; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.grid img {
    width: 100%;
    height: 400px; 
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- SHOP PAGE --- */
.thumb-box {
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin: 10px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

/* --- MILL KITCHEN --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.menu-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-top: 5px solid var(--logo-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

/* --- GALLERY --- */
.gallery-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }

/* --- HERITAGE TRAIL --- */
.waypoint-card { display: flex; gap: 25px; margin-bottom: 40px; position: relative; }
.waypoint-card::before {
    content: ""; position: absolute; left: 22px; top: 50px; width: 2px; height: 100%; background: #ddd; z-index: 1;
}
.waypoint-card:last-child::before { display: none; }
.waypoint-number {
    width: 45px; height: 45px; background: var(--logo-blue); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; z-index: 2;
}
.waypoint-content { background: white; padding: 25px; border-radius: 15px; flex-grow: 1; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* --- FOOTER & BUTTONS --- */
footer { background: var(--logo-black); color: white; padding: 60px 5%; text-align: center; }
footer a { color: white; }

.btn-primary, .btn-trail {
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-block; 
    transition: 0.3s;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #ffffff !important;
}

.btn-primary { background-color: var(--logo-blue); }
.btn-primary:hover { background-color: var(--logo-black); transform: translateY(-2px); }

.btn-trail { background-color: var(--heritage-orange); }
.btn-trail:hover { background-color: #bf4300; transform: translateY(-2px); }

.floating-btn {
    position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white;
    padding: 15px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#backToTop {
    position: fixed; bottom: 20px; left: 20px; display: none; background: var(--logo-blue);
    color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    nav { 
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; 
        width: 100%; background: white; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav.active { display: flex; }
    .hero-600, .history-hero-bg, .trail-hero-bg { min-height: 350px; }
    .grid img { height: 300px; }
}