/* --- Global Styles & Variables --- */
:root {
    --main-color: #07523B;
    --secondary-color: #F3C02F;
    --h1-color: #000000;
    --h2-color: #000000;
    --text-color: #000000;
    --text-on-dark: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: var(--main-color);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --container-width: 1140px;
    --padding-standard: 60px 20px;
    --padding-mobile: 40px 15px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; /* Padding for smaller screens */
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    color: var(--h1-color);
    font-size: 2.5rem; /* Adjust as needed */
}

h2 {
    color: var(--h2-color);
    font-size: 2rem; /* Adjust as needed */
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    color: var(--h2-color); /* Using H2 color for consistency */
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--padding-mobile);
}

.section-padding-dark {
    padding: var(--padding-mobile);
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

.section-padding-dark h2,
.section-padding-dark h3 {
    color: var(--text-on-dark);
}
.section-padding-dark p,
.section-padding-dark li {
     color: var(--text-on-dark);
}
.section-padding-dark a {
    color: var(--secondary-color); /* Link color on dark background */
}
.section-padding-dark a:hover {
    color: var(--background-light);
}


.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.cta-button-secondary {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
}

.cta-button-secondary:hover {
     background-color: var(--main-color);
     color: var(--secondary-color);
     border-color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--background-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--main-color);
}
.logo {
    display: block; /* Removes the default blue color and underline */
    max-width: 200px; /* Adjust as needed */
    height: auto;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo:hover {
    color: var(--main-color); /* Keep logo color consistent */
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: none; /* Hidden on mobile by default */
    list-style: none;
    margin-right: 1.5rem; /* Space between nav items and button */
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 700;
}
.nav-list a:hover {
    color: var(--main-color);
}

.nav-toggle {
    display: block; /* Show hamburger on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000; /* Above nav */
    stroke: var(--main-color); /* Hamburger color */
    transition: stroke 0.3s ease;
}

.nav-toggle:hover {
    stroke: var(--secondary-color);
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--main-color);
    transition: background-color 0s 0.3s; /* Delay hiding */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    transition: transform 0.3s ease-in-out, top 0.3s 0.3s ease-in-out; /* Animate transform first, then top */
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger animation when nav is open */
.nav-open .hamburger {
    background-color: transparent; /* Hide middle line */
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    transition: top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out; /* Animate top first, then transform */
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
    transition: top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out; /* Animate top first, then transform */
}

/* Mobile Nav Menu Styles */
.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    right: 0;
    background-color: var(--background-light);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-open .nav-list li {
    margin: 1rem 0;
}

.nav-open .cta-button {
    display: none; /* Hide header CTA when mobile menu is open */
}


/* --- Hero Section --- */
.hero {
    background-image: url('images/template_top.jpg'); /* Use background image */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    color: var(--text-on-dark);
    padding: 100px 20px; /* More padding */
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: var(--text-on-dark);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

/* --- Why Us Section --- */
.why-us .features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center; /* Center text on mobile */
}

/* --- Services Section --- */
.services .service-categories {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.service-category ul {
    padding-left: 1rem; /* Indent list items */
}

.service-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-category li::before {
    content: '✓'; /* Checkmark or other icon */
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- References Section --- */
.references .reference-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.reference-category h3 {
    color: var(--main-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.reference-category ul {
    padding-left: 0;
}

.reference-category li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.reference-category img {
    max-width: 100%;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 200px;
    object-fit: cover;
}

/* --- Contact Section --- */
.contact .contact-details {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.contact .address p,
.contact .phone p,
.contact .legal p {
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    background-color: #f8f9fa; /* Light grey background */
    color: #6c757d; /* Muted text color */
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav li {
    margin: 0 0.75rem 0.5rem; /* Add bottom margin for wrapping */
}

.footer-nav a {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--main-color);
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* --- Responsive Design (Mobile First) --- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-padding,
    .section-padding-dark {
        padding: var(--padding-standard);
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }

    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: none; /* Hide hamburger */
    }

    .nav-list {
        display: flex; /* Show nav items */
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-list li { margin: 0 0 0 1.5rem; } /* Reset mobile margin */

    .nav .cta-button {
        display: inline-block; /* Show header CTA */
    }

    .hero h1 { font-size: 3.5rem; }

    .why-us .features {
        grid-template-columns: repeat(3, 1fr);
        text-align: left; /* Align text left on larger screens */
    }

    .services .service-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .references .reference-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for references */
    }

    .contact .contact-details {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-nav ul { margin-bottom: 0; }
    .footer-nav li { margin-bottom: 0; } /* Reset bottom margin */
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }

    .hero h1 { font-size: 4rem; }

    .references .reference-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for references */
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
     .references .reference-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns for references */
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
     .references .reference-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns for references */
    }
}

/* --- Logoslider Section --- */
.logoslider {
    overflow: hidden;
    position: relative;
    background: #f1f1f1;
}

.logoslider .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.logoslider-track {
    display: flex;
    width: calc(250px * 14); /* Adjust based on logo width and number */
    animation: logoslider-scroll 20s linear infinite;
}

.logoslider-slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.logoslider-slide img {
    max-width: 100%;
    max-height: 70px;
    transition: transform 0.2s ease;
}

.logoslider-slide img:hover {
    transform: scale(1.1);
}

@keyframes logoslider-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7)); /* Adjust based on half the number of logos */
    }
}
/* --- Global Styles & Variables --- */
:root {
    --main-color: #07523B;
    --secondary-color: #F3C02F;
    --h1-color: #000000;
    --h2-color: #000000;
    --text-color: #000000;
    --text-on-dark: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: var(--main-color);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --container-width: 1140px;
    --padding-standard: 60px 20px;
    --padding-mobile: 40px 15px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; /* Padding for smaller screens */
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    color: var(--h1-color);
    font-size: 2.5rem; /* Adjust as needed */
}

h2 {
    color: var(--h2-color);
    font-size: 2rem; /* Adjust as needed */
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    color: var(--h2-color); /* Using H2 color for consistency */
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--padding-mobile);
}

.section-padding-dark {
    padding: var(--padding-mobile);
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

.section-padding-dark h2,
.section-padding-dark h3 {
    color: var(--text-on-dark);
}
.section-padding-dark p,
.section-padding-dark li {
     color: var(--text-on-dark);
}
.section-padding-dark a {
    color: var(--secondary-color); /* Link color on dark background */
}
.section-padding-dark a:hover {
    color: var(--background-light);
}


.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.cta-button-secondary {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
}

.cta-button-secondary:hover {
     background-color: var(--main-color);
     color: var(--secondary-color);
     border-color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--background-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--main-color);
}
.logo {
    display: block; /* Removes the default blue color and underline */
    max-width: 200px; /* Adjust as needed */
    height: auto;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo:hover {
    color: var(--main-color); /* Keep logo color consistent */
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: none; /* Hidden on mobile by default */
    list-style: none;
    margin-right: 1.5rem; /* Space between nav items and button */
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 700;
}
.nav-list a:hover {
    color: var(--main-color);
}

.nav-toggle {
    display: block; /* Show hamburger on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above nav */
    stroke: var(--main-color); /* Hamburger color */
    transition: stroke 0.3s ease;
}

.nav-toggle:hover {
    stroke: var(--secondary-color);
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--main-color);
    transition: background-color 0s 0.3s; /* Delay hiding */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    transition: transform 0.3s ease-in-out, top 0.3s 0.3s ease-in-out; /* Animate transform first, then top */
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger animation when nav is open */
.nav-open .hamburger {
    background-color: transparent; /* Hide middle line */
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    transition: top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out; /* Animate top first, then transform */
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
    transition: top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out; /* Animate top first, then transform */
}

/* Mobile Nav Menu Styles */
.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    right: 0;
    background-color: var(--background-light);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-open .nav-list li {
    margin: 1rem 0;
}

.nav-open .cta-button {
    display: none; /* Hide header CTA when mobile menu is open */
}


/* --- Hero Section --- */
.hero {
    background-image: url('images/template_top.jpg'); /* Use background image */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    color: var(--text-on-dark);
    padding: 100px 20px; /* More padding */
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: var(--text-on-dark);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

/* --- Why Us Section --- */
.why-us .features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center; /* Center text on mobile */
}

/* --- Services Section --- */
.services .service-categories {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.service-category ul {
    padding-left: 1rem; /* Indent list items */
}

.service-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-category li::before {
    content: '✓'; /* Checkmark or other icon */
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* --- References Section --- */
.references .reference-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.reference-category h3 {
    color: var(--main-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.reference-category ul {
    padding-left: 0;
}

.reference-category li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.reference-category li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Contact Section --- */
.contact .contact-details {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.contact .address p,
.contact .phone p,
.contact .legal p {
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    background-color: #f8f9fa; /* Light grey background */
    color: #6c757d; /* Muted text color */
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav li {
    margin: 0 0.75rem 0.5rem; /* Add bottom margin for wrapping */
}

.footer-nav a {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--main-color);
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* --- Responsive Design (Mobile First) --- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-padding,
    .section-padding-dark {
        padding: var(--padding-standard);
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }

    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: none; /* Hide hamburger */
    }

    .nav-list {
        display: flex; /* Show nav items */
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-list li { margin: 0 0 0 1.5rem; } /* Reset mobile margin */

    .nav .cta-button {
        display: inline-block; /* Show header CTA */
    }

    .hero h1 { font-size: 3.5rem; }

    .why-us .features {
        grid-template-columns: repeat(3, 1fr);
        text-align: left; /* Align text left on larger screens */
    }

    .services .service-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .references .reference-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for references */
    }

    .contact .contact-details {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-nav ul { margin-bottom: 0; }
    .footer-nav li { margin-bottom: 0; } /* Reset bottom margin */
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }

    .hero h1 { font-size: 4rem; }

    .references .reference-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for references */
    }
}

/* --- Global Styles & Variables --- */
:root {
    --main-color: #07523B;
    --secondary-color: #F3C02F;
    --h1-color: #000000;
    --h2-color: #000000;
    --text-color: #000000;
    --text-on-dark: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: var(--main-color);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --container-width: 1140px;
    --padding-standard: 60px 20px;
    --padding-mobile: 40px 15px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; /* Padding for smaller screens */
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    color: var(--h1-color);
    font-size: 2.5rem; /* Adjust as needed */
}

h2 {
    color: var(--h2-color);
    font-size: 2rem; /* Adjust as needed */
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    color: var(--h2-color); /* Using H2 color for consistency */
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--padding-mobile);
}

.section-padding-dark {
    padding: var(--padding-mobile);
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

.section-padding-dark h2,
.section-padding-dark h3 {
    color: var(--text-on-dark);
}
.section-padding-dark p,
.section-padding-dark li {
     color: var(--text-on-dark);
}
.section-padding-dark a {
    color: var(--secondary-color); /* Link color on dark background */
}
.section-padding-dark a:hover {
    color: var(--background-light);
}


.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.cta-button-secondary {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
}

.cta-button-secondary:hover {
     background-color: var(--main-color);
     color: var(--secondary-color);
     border-color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--background-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--main-color);
}
.logo {
    display: block; /* Removes the default blue color and underline */
    max-width: 200px; /* Adjust as needed */
    height: auto;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo:hover {
    color: var(--main-color); /* Keep logo color consistent */
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: none; /* Hidden on mobile by default */
    list-style: none;
    margin-right: 1.5rem; /* Space between nav items and button */
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 700;
}
.nav-list a:hover {
    color: var(--main-color);
}

.nav-toggle {
    display: block; /* Show hamburger on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above nav */
    stroke: var(--main-color); /* Hamburger color */
    transition: stroke 0.3s ease;
}

.nav-toggle:hover {
    stroke: var(--secondary-color);
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--main-color);
    transition: background-color 0s 0.3s; /* Delay hiding */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    transition: transform 0.3s ease-in-out, top 0.3s 0.3s ease-in-out; /* Animate transform first, then top */
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger animation when nav is open */
.nav-open .hamburger {
    background-color: transparent; /* Hide middle line */
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    transition: top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out; /* Animate top first, then transform */
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
    transition: top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out; /* Animate top first, then transform */
}

/* Mobile Nav Menu Styles */
.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    right: 0;
    background-color: var(--background-light);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-open .nav-list li {
    margin: 1rem 0;
}

.nav-open .cta-button {
    display: none; /* Hide header CTA when mobile menu is open */
}


/* --- Hero Section --- */
.hero {
    background-image: url('images/template_top.jpg'); /* Use background image */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    color: var(--main-color);
    padding: 100px 20px; /* More padding */
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: var(--main-color);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

/* --- Why Us Section --- */
.why-us .features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center; /* Center text on mobile */
}

/* --- Services Section --- */
.services .service-categories {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.service-category ul {
    padding-left: 1rem; /* Indent list items */
}

.service-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-category li::before {
    content: '✓'; /* Checkmark or other icon */
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* --- References Section --- */
.references .reference-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.reference-category h3 {
    color: var(--main-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.reference-category ul {
    padding-left: 0;
}

.reference-category li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.reference-category li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Contact Section --- */
.contact .contact-details {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.contact .address p,
.contact .phone p,
.contact .legal p {
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    background-color: #f8f9fa; /* Light grey background */
    color: #6c757d; /* Muted text color */
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav li {
    margin: 0 0.75rem 0.5rem; /* Add bottom margin for wrapping */
}

.footer-nav a {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--main-color);
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* --- Responsive Design (Mobile First) --- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-padding,
    .section-padding-dark {
        padding: var(--padding-standard);
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }

    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: none; /* Hide hamburger */
    }

    .nav-list {
        display: flex; /* Show nav items */
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-list li { margin: 0 0 0 1.5rem; } /* Reset mobile margin */

    .nav .cta-button {
        display: inline-block; /* Show header CTA */
    }

    .hero h1 { font-size: 3.5rem; }

    .why-us .features {
        grid-template-columns: repeat(3, 1fr);
        text-align: left; /* Align text left on larger screens */
    }

    .services .service-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .references .reference-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for references */
    }

    .contact .contact-details {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-nav ul { margin-bottom: 0; }
    .footer-nav li { margin-bottom: 0; } /* Reset bottom margin */
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }

    .hero h1 { font-size: 4rem; }

    .references .reference-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for references */
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
     .references .reference-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns for references */
    }
}
