/* Reset and Base Styles */
:root {
    --primary-colour: #c6a75e;
    --secondary-colour: #1f5c4b;
    --dark-colour: #2e2e2e;
    --light-colour: #f6f6f4;
    --background-colour: #f9f9f9;
    --alt-background-colour: #d2d2d2;
    --text-color: #2e2e2e;
    --hero-background: url(./Images/herobg.svg) no-repeat center center/cover;
}

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

body {
    font-family: 'Montserrat', Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-colour);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-colour);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    border-radius: 3px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 2rem;
    }

    .navbar-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.3rem;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 2rem;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--secondary-colour);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        margin-top: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-colour);
}

/* Hero Section */
.hero {
    background: var(--hero-background);
    color: white;
    padding: 100px 2rem;
    text-align: center;
}

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

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

.cta-button {
    background-color: var(--primary-colour);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-colour);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 60px 2rem;
    background-color: var(--background-colour);
    margin-bottom: 2rem;
}

.index-section {
    padding: 60px 2rem;
    background-color: var(--background-colour);
    margin-bottom: 2rem;
}

.index-section h2{
    color: var(--secondary-colour);
    text-align: center;

}

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

.section p {
    font-size: 1.1rem;
    color: var(--primary-colour);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--light-colour);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-colour);
}

/* View More Link */
.view-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--dark-colour);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: var(--primary-colour);
}

/* Footer */
.footer {
    background-color: var(--secondary-colour);
    color: white;
    padding: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-elements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    display: block;
}

.footer-container h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-colour);
}

#footer-socials p {
    text-align: center;
    font-size: 1.2rem;
    display: inline-block;
    gap: 1rem;
    justify-content: center;
}

#copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #bdc3c7;
    text-align: center;
}

#copyright-divider {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-elements {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .divider {
        width: 80%;
        height: 1px;
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 1rem;
    }
}

/* Index Page */

#aboutus {
    background-color: var(--alt-background-colour);
    padding: 2% 25%;
}

#horizontal-grid{

    display: grid;
    grid-template-columns: repeat(1, 300px); /* Forces all 3 to be identical */
    /* Define many columns or use auto-flow */
    grid-auto-flow: column;
    grid-auto-columns: 300px; /* Each item is 250px wide */
    gap: 20px;

    /* The Magic Bits */
    overflow-x: auto;       /* Enables horizontal scrolling */
    overscroll-behavior-x: contain; /* Prevents "bounce" on mobile */
    padding-bottom: 15px;   /* Space for the scrollbar */
}


/* Contact Page */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    background-color: var(--dark-colour);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-colour);
}

.info-item p {
    font-size: 1rem;
    color: var(--light-colour);
}