/* ==========================================================================
   1. CSS VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    /* Colors */
    --primary: #1b3322;        /* Warm, Classic British Forest Green */
    --accent: #b5945b;         /* Soft Gold accent for links/buttons */
    --text-dark: #2a2c2a;      /* Soft charcoal for easy reading */
    --text-light: #5a5d5a;     /* Lighter text for secondary details */
    --bg-cream: #faf8f5;       /* Premium off-white background */
    --bg-white: #ffffff;       /* Pure white for cards/sections */
    
    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary);
    color: var(--bg-white);
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid var(--primary);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent);
}

/* ==========================================================================
   3. NAVIGATION BAR STYLING
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    height: auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 65px;
    width: auto;
    border-radius: 50%;
}

.logo-text .logo-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-serif);
}

.logo-text span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

/* Underline effect for Desktop Active Page Indicator */
nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul a:hover::after, nav ul a.active::after {
    width: 100%;
}

nav ul a:hover, nav ul a.active {
    color: var(--accent);
}

/* Animated Hamburger Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   10. FOOTER STYLING
   ========================================================================== */
footer {
    background-color: #112116;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-socials a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 500;
}

.footer-socials a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (MOBILE ADAPTABILITY)
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Optimize header layout to prevent slogan wrapping overflow in mobile landscape */
    .nav-container {
        min-height: 90px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    nav ul {
        gap: 16px;
    }
    .logo-text .logo-title {
        font-size: 1.2rem;
    }
    .logo-text span {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
    }
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        height: 85px;
        min-height: 85px;
        padding: 0 24px;
    }
    
    /* Hamburger Trigger Node Appear */
    .menu-toggle {
        display: flex;
    }

    /* Cross transition animation for menu toggle state */
    .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);
    }

    /* Expandable absolute drop menu wrapper */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    }

    nav.open {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        padding: 30px 0;
        gap: 22px;
        align-items: center;
    }

    nav ul a::after {
        display: none; /* Disable layout underline trackers on mobile viewports */
    }
    
    /* Custom Mobile Footer Layout Optimization */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-grid .footer-links:last-child {
        grid-column: span 2;
    }
}
