/*
 * Global styles for the Erbar Catering website.
 *
 * This stylesheet defines a bright, professional look using a warm
 * orange accent colour, balanced neutrals and generous spacing.  It
 * provides a cohesive foundation for every page on the site and
 * includes responsive layouts that adapt gracefully to smaller
 * screens.  Feel free to adjust the colour variables at the top to
 * customise the theme.
 */

/* Colour and font variables */
:root {
    --primary-color: #f57c00;
    --primary-dark: #e65100;
    --secondary-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-family: 'Montserrat', sans-serif;
}

/* Reset and base styling */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility classes */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Header */
header {
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

header nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

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

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

/* Section headings */
section {
    padding: 60px 40px;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-cards .card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 280px;
    max-width: 320px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-cards .card:hover {
    transform: translateY(-4px);
}

.service-cards .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-cards .card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.service-cards .card p {
    padding: 0 1rem 1.5rem;
    font-size: 0.95rem;
}

/* About Preview Section */
.about-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-preview .text {
    flex: 1 1 400px;
}

.about-preview .text p {
    margin-bottom: 1.5rem;
}

.about-preview .image {
    flex: 1 1 400px;
}

.about-preview .image img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gallery Preview */
.gallery-preview {
    background-color: var(--light-bg);
    text-align: center;
}

.gallery-preview .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-preview .gallery-grid img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Call-to-Action */
.contact-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-cta .btn:hover {
    background-color: #f5f5f5;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Generic page content */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 60px; /* include top padding due to fixed header */
}

/* About Page specifics */
.about-banner {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.about-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.about-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
}

/* Services page specifics */
.service-section {
    margin-bottom: 60px;
}

.service-section .service-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Menu page specifics */
.menu-category {
    margin-bottom: 40px;
}

.menu-category h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.menu-item {
    flex: 1 1 300px;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.menu-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555555;
}

.menu-item .price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Gallery page specifics */
.gallery-container {
    columns: 3 300px;
    column-gap: 20px;
}

.gallery-container img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact page specifics */
.contact-info {
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

form textarea {
    resize: vertical;
    height: 150px;
}

form button {
    align-self: flex-start;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 10px;
    }
    .about-preview {
        flex-direction: column;
    }
    .service-cards .card {
        flex: 1 1 100%;
    }
    .gallery-container {
        columns: 2 200px;
    }
}
