/* ============================================
   LAYOUT STYLES - Header, Footer, Sections
   ============================================ */

/* Header and Navigation */
.header {
    /* Eco dark green header */
    background: linear-gradient(135deg, #0F2E1D 0%, #24543A 60%, #2F6B4A 100%);
    color: var(--white);
    padding: 0;
    /* Prevent header from covering content while scrolling */
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
    /* Make only the navbar sticky, not the whole header */
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(245, 240, 230, 0.72); /* elegant beige, more transparent */
    box-shadow: 0 4px 12px rgba(15, 46, 29, 0.08);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 0.5rem 0; /* shrink on scroll */
    background: rgba(245, 240, 230, 0.88);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 6px 16px rgba(15, 46, 29, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Header Hero */
.header-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0 1.25rem;
}

/* remove overlay since we use an <img> */
.header-hero::after { display: none; }

.header-hero .container {
    position: relative;
    z-index: 1;
}

.header-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    color: var(--white);
    padding: 0.75rem 0;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.site-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.site-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: clamp(2.4rem, 3.6vw, 3.8rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: inherit;
}

.site-tagline {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 500;
    color: inherit;
    margin: 0;
}

@media (min-width: 768px) {
    .site-title { font-size: 3.5rem; }
    .site-tagline { font-size: 1.35rem; }
}

@media (min-width: 1024px) {
    .site-title { font-size: 4rem; }
    .site-tagline { font-size: 1.5rem; }
}

/* Header hero image sizing */
.header-hero-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.header-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 768px) {
    .header-hero-image { height: 520px; }
}

@media (min-width: 1024px) {
    .header-hero-image { height: 600px; }
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Hero Section */
/* Old hero styles removed; header now serves as hero */

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}
