/**
Theme Name: Common Ground Sales Child
Theme URI: https://www.commongroundsales.com
Author: Gianluca Mario Filice
Description: A child theme for Common Ground Sales Agency.
Version: 1.0
*/


/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000; /* Ensure it stays on top */
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
}

header nav {
    margin-right: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

/* Hamburger Menu Icon (Mobile) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: #fff;
    margin-right: 20px;
}

.hamburger-menu span {
    display: block;
    height: 4px;
    width: 25px;
    background: #fff;
    margin: 5px 0;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding-top: 50px;
    text-align: center;
    z-index: 999;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.mobile-menu a:hover {
    background: #444;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('background.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    flex-direction: column;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
    margin: 0;
}

.hero h1 {
    font-size: 60px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero p {
    font-size: 30px;
    font-weight: lighter;
    margin-top: 10px;
}

/* Content Sections */
.section {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
}

.section img {
    width: auto;
    height: auto;
    max-height: 540px;
    max-width: 360px;
    object-fit: cover;
    display: block;
}

.section .text {
    width: calc(100% - 380px);
    padding: 20px;
    box-sizing: border-box;
}

.section:nth-child(odd) img {
    order: -1;
}

.section h2 {
    margin-top: 0;
    color: #333;
}

.section p {
    margin: 0;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #333;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sticky-header + .container {
    margin-top: 80px; /* To prevent content from hiding behind the sticky header */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 20px;
    }

    .section {
        flex-direction: column;
    }

    .section img {
        max-width: 100%;
    }

    .section .text {
        width: 100%;
        padding: 10px;
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu on small screens */
    }

    .header nav {
        display: none; /* Hide regular menu on mobile */
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }

    header .logo {
        font-size: 18px;
    }

    header nav {
        font-size: 14px;
    }

    header nav a {
        margin: 0 10px;
    }
}

/* Further small-screen adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .section img {
        max-width: 90%;
        margin: 0 auto;
    }

    .section .text {
        padding: 15px;
    }

    footer {
        font-size: 12px;
    }
}
