/* Layout styles - Container, Sections, Header, Footer */

/* CONTAINER AND SECTIONS */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 1rem 0;
    margin: 0 1rem;
}

.section-alt {
    background: var(--white);
    border-radius: 16px;
    margin: 2rem 1rem;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* GRID LAYOUTS */
.plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 93, 42, 0.3), rgba(74, 144, 164, 0.25));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    color: #fff !important;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    color: #fff !important;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* HEADER */
.site-header {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(234,231,222,0.7);
    padding: 0.15rem 0; /* reduced ~2x from previous 0.3rem */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

/* Emergency override — force header visible (temporary) */
.site-header {
    transform: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    top: 0 !important;
    z-index: 99999 !important;
}

/* Prevent header-hidden from moving header off-screen */
.site-header.header-hidden {
    transform: none !important;
}

/* Ensure mobile menu can't hide header */
.main-navigation.mobile-menu-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* End emergency override */

/* Remove per-page override — site-header now consistent across site */

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0; /* reduced ~2x from previous 0.5rem */
}

.site-branding img {
    max-height: 60px; /* logo enlarged 2x */
    width: auto;
}

.main-navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: var(--green-900) !important; /* logo green */
    font-family: 'Roboto', sans-serif; /* Roboto Bold loaded in style.css */
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a {
    background: var(--green-300);
    color: var(--white) !important;
}

.nav-menu li { 
    position: relative; 
    list-style: none;
}

.nav-menu li ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid #ECE8DD;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 120;
    padding-left: 0; /* remove default browser indent */
}

.nav-menu li ul li {
    padding: 0;
    margin: 0;
}

.nav-menu li ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--green-900);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 1rem; /* visual indent for submenu items */
}

.nav-menu li ul li a:hover {
    background: var(--green-300);
    color: var(--white);
}

/* Show submenu on hover/focus for desktop */
@media (min-width: 769px) {
    .nav-menu li:hover > ul,
    .nav-menu li:focus-within > ul {
        display: block;
    }
}

/* Mobile: make submenus toggleable (they remain hidden until JS toggles 'open' class) */
@media (max-width: 768px) {
    .nav-menu li ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
    }
    .nav-menu li.open > ul {
        display: block;
    }
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--green-900);
    transition: all 0.3s ease;
}

/* FOOTER */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 0 0 2rem;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer-top {
    /* Remove gradient, use solid high-contrast background */
    background: var(--green-900); /* dark brand green */
    background-image: none !important;
    padding: 2.5rem 0;
}

.footer-top-text h3 {
    color: #fff;
}

.footer-top-text p {
    color: rgba(255,255,255,0.95);
}

/* Make action buttons clearly visible on dark background */
.footer-top .footer-top-actions .btn {
    background: #ffffff;
    color: var(--green-900);
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: none;
}

.footer-top .footer-top-actions .btn:hover {
    background: #f2f2f2;
    color: var(--green-900);
}

/* Secondary button (phone) - keep compact but high contrast */
.footer-top .footer-top-actions .btn.btn-secondary {
    background: #ffffff;
    color: var(--green-900);
    border: 2px solid rgba(255,255,255,0.9);
}

/* Ensure links inside footer-top are white where needed */
.footer-top a { color: inherit; }

.footer-top-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-top-text h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-top-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.footer-top-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-content {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-column {
    color: #fff;
}

.footer-column h4 {
    color: var(--green-300);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--green-300);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--green-300);
    transition: 0.3s;
    text-decoration: none;
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
    filter: brightness(1.3) contrast(1.1);
}

.company-info {
    color: #ccc;
}

.company-details {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}

.footer-menu, .services-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li, .services-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a, .services-menu a {
    color: var(--green-300);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover, .services-menu a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--green-300);
    color: var(--ink);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-separator {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0 0 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copyright {
    color: #999;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--green-300);
    font-size: 0.9rem;
    text-decoration: none;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .container {
        padding: 0 0 rem;
    }
    
    .section {
        margin: 0 1rem;
    }
    
    .section-alt {
        margin: 1.5rem 1rem;
    }
    
    .footer-top-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
        margin: 0 0.75rem;
    }
    
    .section-alt {
        margin: 1rem 0.75rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .plots-grid,
    .features-grid,
    .services-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-top-grid {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-top-actions {
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 2rem 0;
        margin: 0 0.5rem;
    }
    
    .section-alt {
        margin: 1rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .footer-bottom-content {
        padding: 0 0.75rem;
    }
    
    .footer-top-text h3 {
        font-size: 1.5rem;
    }
}
