/* --- VARIABLES --- */
:root {
    --black: #111;
    --gray-dark: #333;
    --gray-light: #f4f4f4;
    --white: #fff;
    --border: 1px solid rgba(0,0,0,0.1);
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

/* --- BASE RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden; /* This stops the side-scroll */
    position: relative; /* Keeps everything grounded */
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--black); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--black);
    color: var(--white);
}

/* --- HEADER & NAV --- */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    z-index: 1001; /* Keeps logo above mobile menu */
}

/* Container for Links + Widget */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-dark);
    position: relative;
}

.nav-links a.active { font-weight: 700; color: var(--black); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -4px; left: 0;
    background-color: var(--black);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Weather Widget */
.weather-widget {
    min-width: 100px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* --- HAMBURGER MENU (Hidden on Desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--black);
    transition: 0.3s;
}

/* Hamburger Animation */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* --- MOBILE STYLES (Max-Width 768px) --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 100%; /* or 80% for a side-drawer look */
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0; /* Slide in */
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .nav-links a {
        font-size: 1.2rem; /* Larger font for fingers */
    }

    .weather-widget {
        margin-top: 1rem;
        border-top: 1px solid #eee;
        padding-top: 2rem;
        width: 100px;
        justify-content: center;
    }
}

/* --- WEATHER WIDGET CONTAINER --- */
.weather-widget {
    display: flex;
    justify-content: flex-end;
}
.weather-icon {
    height: 30px;
    width: auto;
}
.weather-temp {
    font-size: 0.8rem;
}

/* --- HERO SECTION --- */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Ensure this path is correct relative to the CSS file */
    background-image: url('../img/francis.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1) brightness(1.2);
    opacity: 0.2;
}

.hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--serif);
}

/* --- SECTIONS --- */
.intro { padding: 6rem 0; text-align: center; }
.intro-text { max-width: 600px; margin: 0 auto; }
.section-label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 1rem; color: #888;
}

/* --- SERVICES GRID --- */
.services { padding: 0 0 6rem; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.grid-item {
    background-color: var(--white);
    padding: 3rem 2rem;
    transition: all 0.3s ease;
}

.grid-item:hover { background-color: #fafafa; }
.grid-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.grid-item p { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; }

.arrow-link {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 600; display: flex; align-items: center; gap: 0.5rem;
}
.arrow-link span { transition: transform 0.3s; }
.grid-item:hover .arrow-link span { transform: translateX(5px); }

/* --- NEWS --- */
.news { background-color: var(--gray-light); padding: 6rem 0; }
.news-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 3rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 1rem;
}
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-card {
    display: grid; grid-template-columns: 100px 1fr auto; align-items: center;
    background: var(--white); padding: 1.5rem 2rem; gap: 2rem;
    transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.news-date {
    font-family: var(--serif); font-size: 1.5rem; text-align: center; line-height: 1;
}
.news-date span {
    display: block; font-size: 0.7rem; font-family: var(--sans);
    text-transform: uppercase; margin-top: 0.2rem; letter-spacing: 1px;
}
.news-content h4 { font-size: 1.2rem; font-family: var(--serif); margin-bottom: 0.25rem; }
.news-content p { font-size: 0.9rem; color: #666; }

/* --- FOOTER --- */
footer { background-color: var(--black); color: var(--white); padding: 5rem 0 2rem; }
.footer-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem;
}
.footer-brand h2 { color: var(--white); margin-bottom: 1rem; }
.footer-links { display: flex; gap: 3rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { color: #aaa; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
/* --- MOBILE STYLES (Max-Width 768px) --- */
@media (max-width: 768px) {
    /* 1. Show the Hamburger */
    .hamburger { display: flex; }

    /* 2. The Pop-out Menu Container */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        
        /* Flexbox to center everything */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000; /* Ensure it sits on top of the page */
    }

    /* 3. Slide it in when active */
    .nav-menu.active {
        right: 0; 
    }

    /* 4. THE FIX: Force links to be visible and column-stacked */
    .nav-links {
        display: flex !important; /* Overrides the previous 'display: none' */
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .nav-links a {
        font-size: 1.5rem; /* Large font for easy tapping */
        color: var(--black);
        font-weight: 400;
    }

    /* 5. Weather Widget styling for mobile */
    .weather-widget {
        margin-top: 1rem;
        border-top: 1px solid #eee;
        padding-top: 2rem;
        width: 200px;
        justify-content: center;
    }
    .weather-temp {
        font-size: 1.2rem;
        font-weight: 600;
    }
}