/* Sticky footer layout */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
}

/* Header with background image */
header.has-background-image {
    background-image: url('/public/top-image.jpg');
    background-size: cover;
    background-position: bottom center;
    background-attachment: scroll;
    position: relative;
}

header.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

header.has-background-image .container {
    position: relative;
    z-index: 1;
}

/* Logo text contrast */
header.has-background-image h1,
header.has-background-image h2 {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Reduce footer height */
.footer {
    padding: 1.5rem 1.5rem 2rem !important;
}

/* Footer styling */
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

/* Footer grid layout for mobile */
@media screen and (max-width: 770px) {
    #footer-columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
    }
    
    .footer-services {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .footer-company {
        grid-column: 1;
        grid-row: 2;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .footer-social {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .footer-contact {
        grid-column: 1 / 3;
        grid-row: 3;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Mobile responsive header */
@media screen and (max-width: 768px) {
    header.has-background-image {
        padding: 1.5rem 0 !important;
    }
    
    header.has-background-image h1 {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    header.has-background-image h2 {
        font-size: 0.85rem !important;
        margin-bottom: 2rem !important;
        margin-top: 0.5rem !important;
    }
    
    header.has-background-image .navbar {
        justify-content: center !important;
        gap: 1rem !important;
        font-size: 0.9rem;
        padding: 0.75rem !important;
        width: 100%;
        max-width: 100%;
    }
    
    header.has-background-image .navbar-item {
        padding: 0.5rem 0.5rem !important;
    }
}

/* Footer mobile layout */
@media screen and (max-width: 768px) {
    .footer .column {
        padding: 0.75rem !important;
    }
}
