/*
 * Global stylesheet for the Liermanns website
 *
 * Colours and typography are kept deliberately simple and modern
 * with a primary green tone to match the corporate identity and
 * contrasting dark accents for text and backgrounds. The layout
 * is responsive and adapts gracefully to smaller screens.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4CAF50; /* main green tone */
    --secondary-color: #212121; /* dark grey/black for footer and text accents */
    --background-color: #ffffff; /* clean white background */
    --light-grey: #f5f5f5; /* subtle section background */
    --text-color: #333333; /* body text colour */
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Basic container for consistent width */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styling */
header {
    background-color: var(--primary-color);
    color: #fff;
}

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

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.6);
}

.hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    max-width: 90%;
}

.hero .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #45a049;
}

/* General section styling */
section {
    padding: 60px 0;
}

section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

section p {
    margin-bottom: 15px;
}

/* Cards for services and testimonials */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-member {
    text-align: center;
    padding: 15px;
    background-color: var(--light-grey);
    border-radius: 8px;
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-member h4 {
    margin: 5px 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.team-member span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

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

/* Blog images */
.blog-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    filter: brightness(0.95);
}

/* Blog card headings: center align and bold in black */
/* We target h3 within a card to ensure other headings are unaffected */
.card h3 {
    text-align: center;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0;
}
.card h3 a {
    color: inherit;
    text-decoration: none;
}
.card h3 a:hover {
    text-decoration: underline;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

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

.contact-form button {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #45a049;
}

/*
 * Blog post article headings
 *
 * The long-form blog articles use h1 for the main title (within the hero section)
 * and h2 for the major subsections. To improve readability and visual hierarchy,
 * centre the headings and use our dark secondary colour. The font sizes are
 * adjusted for prominence and spacing is added above and below each heading.
 */
.blog-post h1,
.blog-post h2 {
    text-align: center;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 40px;
}
.blog-post h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.blog-post h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 40px 0;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

footer h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
}

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

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

footer ul li a:hover {
    text-decoration: underline;
}

footer .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #bbb;
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.85);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: none;
    font-size: 0.9rem;
}

#cookie-banner button {
    margin-left: 10px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

#cookie-banner button:hover {
    background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero .hero-content h2 {
        font-size: 2rem;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    footer .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}