/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Colors */
:root {
    --primary-color: #8FAF8D;    /* Soft green */
    --secondary-color: #A3C6A6;  /* Light green */
    --accent-color: #5A7761;     /* Darker green */
    --text-color: #3F3F37;       /* Dark grey */
    --background-color: #f4f3ee; /* Light beige */
    --white-color: #ffffff;
}

html, body {
    height: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

body {
    min-height: 100vh;
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scroll when menu is open */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styling */
header {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    color: var(--text-color);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    flex: 1;
}

/* Hamburger Icon */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 28px;
    color: var(--text-color);
    z-index: 1001; /* Above the menu */
    background: none;
    border: none;
    padding: 10px;
}

/* Navigation Menu (Horizontal for Large Screens) */
.navigation {
    /* Displayed by default */
}

.navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navigation ul li {
    margin: 0 15px;
}

.navigation ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navigation ul li a:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 10px;
}

.navigation ul li a.active {
    background-color: var(--primary-color);
    border-radius: 15px;
    color: var(--white-color);
    padding: 10px 15px;
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0; /* Set to 0 */
    width: 250px;
    height: 100%;
    background-color: var(--secondary-color);
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(-100%); /* Start off-screen */
    z-index: 1000;
}

.off-canvas-menu.open {
    transform: translateX(0);
}

.off-canvas-menu ul {
    list-style: none;
    padding: 80px 20px; /* Adjusted top padding to avoid overlap with header */
}

.off-canvas-menu ul li {
    margin: 20px 0;
}

.off-canvas-menu ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
    display: block;
    padding: 15px 0;
	text-align: center;
    transition: color 0.3s ease;
}

.off-canvas-menu ul li a:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 10px;
    padding-left: 10px;
}

.off-canvas-menu ul li a.active {
    color: var(--white-color);
    background-color: var(--primary-color);
    padding: 15px 0;
    border-radius: 10px;
}

/* Main Content Shift */
#main-content.shift {
    transform: translateX(250px);
    transition: transform 0.3s ease;
}

/* Content Sections */
.content-section {
    padding: 100px 0;
    margin-bottom: 50px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    visibility: hidden;
}

.content-section.active-section {
    position: relative;
    opacity: 1;
    z-index: 1;
    visibility: visible;
}

.content-section:nth-child(even) {
    background-color: var(--background-color);
}

.content-section h2 {
    font-size: 2em;
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Image Section */
.hero-image {
    position: relative;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4)), url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    color: #3F3F37; /* Dark text color */
    text-align: center;
    padding: 150px 0;
}

.hero-image h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); /* Subtle light shadow */
}

.hero-image p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}


/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.profile-img {
    flex: 1 1 250px;
    width: 100%;
    max-width: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.about-text p {
    text-align: left;
}

/* Services Section */
.services-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    text-align: center;
    width: 200px;
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1.1em;
    font-weight: bold;
}

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

footer p {
    font-size: 14px;
}

/* Links Focus Styles for Accessibility */
.navigation a,
.off-canvas-menu a {
    outline: none;
}

.navigation a:focus,
.off-canvas-menu a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.75em;
    }
}

@media (max-width: 768px) {
    /* Hide horizontal navigation menu */
    .navigation {
        display: none;
    }

    /* Show hamburger icon */
    .hamburger {
        display: block;
    }

    /* Adjust header content alignment */
    .header-content {
        justify-content: space-between;
    }

    header h1 {
        font-size: 1.75em;
    }

    /* Adjust main content when menu is open */
    #main-content.shift {
        transform: translateX(250px);
    }

    /* Adjust content sections */
    .content-section {
        padding: 60px 0;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin: 0 auto 20px;
    }

    .about-text p {
        text-align: center;
    }

    .hero-image {
        padding: 100px 0;
    }

    .service-item {
        width: 45%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 1.25em;
    }

    .hero-image h2 {
        font-size: 1.5em;
    }

    .hero-image p {
        font-size: 1em;
    }

    .service-item {
        width: 100%;
    }
}

/* Ensure Images are Responsive */
img {
    max-width: 100%;
    height: auto;
}
