/*
 * Global styles and layout for the Gebäudeservice Babic website.
 * Inspired by the clean, modern aesthetic found on the company's Instagram profile.
 */

/* Colour palette */
:root {
    --primary-color: #2e8b57; /* green accent used in logo */
    --secondary-color: #f5f5f5; /* light grey background */
    --text-color: #333333;     /* dark text colour for readability */
}

/* Reset some default spacing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container used for consistent horizontal padding */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: bold;
    color: var(--text-color);
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero .overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
}

.btn:hover {
    background: #246f48;
}

section {
    padding-top: 100px; /* account for fixed header */
}

/* Services section */
.services h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    min-height: 180px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Projects section */
.projects h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-item img {
    width: 100%;
    border-radius: 8px;
}

.project-item h3 {
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.project-item p {
    margin-top: 5px;
}

/* About section */
.about h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

.team-photo {
    flex: 1 1 300px;
    max-width: 400px;
    border-radius: 8px;
}

.about-content div {
    flex: 1 1 300px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Contact section */
.contact h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.contact-info li {
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background: #246f48;
}

/* Footer */
footer {
    background: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .service-item,
    .project-item {
        min-height: auto;
    }
}