/*
Theme Name: Westbourne Gardens Associates
Author: Gemini
Description: A Bootstrap-based theme for Westbourne Gardens.
Version: 1.3
*/

:root {
    --wga-purple: #4a2c5a;
    --wga-gold: #c5a059;
    --wga-cream: #f9f7f2;
    --wga-dark: #2d2d2d;
}

/* Update all H2 headings to the WGA Purple */
h2, 
.card-title, 
.content-text h2 {
    color: var(--wga-purple) !important;
    font-family: 'Georgia', serif;
    font-weight: 700;
}

/* Optional: If you want the H2s to turn Gold when they are links (like on the Archive page) */
h2 a {
    color: var(--wga-purple) !important;
    transition: color 0.3s ease;
}

h2 a:hover {
    color: var(--wga-gold) !important;
}

body {
    background-color: var(--wga-cream);
    color: var(--wga-dark);
    font-family: 'Georgia', serif;
}

/* --- Navigation & Header --- */
.navbar {
    background-color: var(--wga-purple) !important;
    border-bottom: 3px solid var(--wga-gold);
    padding: 10px 0;
    transition: all 0.3s ease;
    overflow: hidden; /* Prevents stray animation lines */
}

.header-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

/* --- Navigation Links --- */
.navbar-nav li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 5px 15px !important;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    bottom: 0;
    left: 50%;
    background: var(--wga-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav li a:hover::after {
    width: 80%;
}

.navbar-nav li a:hover {
    color: var(--wga-gold) !important;
}

.navbar-nav li.current-menu-item a {
    color: var(--wga-gold) !important;
}

/* --- Fixed Animated Hamburger Toggle --- */
.navbar-toggler {
    border: none !important;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
    width: 45px; 
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    width: 24px; 
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px; 
    width: 100%; /* Now refers only to the 24px parent */
    background: #ffffff;
    border-radius: 2px;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }

/* Open State (The X) */
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
    top: 8px; /* Moves top line to middle */
    transform: rotate(135deg);
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -20px; 
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
    top: 8px; /* Moves bottom line to middle */
    transform: rotate(-135deg);
}

/* --- Hero, Sections & Cards --- */
.hero-section {
    position: relative;
}

.hero-section h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    font-size: 3.5rem;
}

.lead-text p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* --- Footer --- */
footer {
    background-color: var(--wga-purple);
    color: white;
    padding: 60px 0 30px 0;
    margin-top: 40px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
    margin-left: 15px;
}

.footer-nav a:hover {
    color: var(--wga-gold) !important;
}

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--wga-purple);
        padding: 20px;
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-nav li {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .header-logo {
        height: 60px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* --- Highlighting --- */
::-moz-selection { background: var(--wga-gold); color: #ffffff; }
::selection { background: var(--wga-gold); color: #ffffff; }
.hero-section ::selection { background: #ffffff; color: var(--wga-purple); }