/* GLOBAL LAYOUT */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 58px;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #000000;
}

.page-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* INFO BOXES */
.info-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: 0.25s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.info-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.info-box-content {
    padding: 15px 18px;
}

.info-box-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.info-box-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* FEATURES SECTION */
.features-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.feature-list {
    background: #fff;
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 25px;
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.feature-grid div {
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* CTA BOX */
.cta-box {
    background: #0a2a43;
    color: white;
    padding: 40px 25px;
    text-align: center;
    margin: 60px auto;
    border-radius: 14px;
    max-width: 900px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-box h2 {
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.cta-box p {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.cta-button {
    padding: 12px 28px;
    background: white;
    color: #0a2a43;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s;
}

.cta-button:hover {
    background: #e1ebf3;
}

/* FOOTER */
footer {
    background: #0A2A43;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: auto;
}

/* HOME PAGE OVERRIDES */

/* Old version — causes layout bugs, kept for reference
body.home {
    display: block !important;
}
*/
body.home {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* removes scroll */
}

/* Old version — breaks layout, kept for reference
body.home .page-wrapper {
    display: block !important;
    min-height: auto !important;
}
*/
body.home .page-wrapper {
    height: 100%;
    overflow: hidden;
}

/* Footer override — correct, but old kept as comment 
body.home footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}
*/

/* Updated footer override (old version — kept for reference)
body.home footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}
*/

/* Updated footer override (correct for fullscreen map layout) */
body.home footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38px;         /* MATCHES bottom: 38px in .map-container */
    line-height: 38px;    /* vertical alignment */
    padding: 0;           /* prevents footer resizing */
    z-index: 9999;
}


