/* Reset and Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --primary-color: #23595C; /* Updated primary color */
    --primary-dark: #1A4245; /* Darker version of the new primary color */
    --primary-light: #2D706E; /* Lighter version of the new primary color */
    --text-color: #333333;
    --light-text: #FFFFFF;
    --background-color: #F5F5F5;
    --accent-color: #F0C987;
    --accent-color-dark: #E6B964;
    --primary-color-light: #f5f5f5;
    --primary-color-dark: #f5f5f5;
    --secondary-color-light: #fafafa;
    --text-color-on-light: #333333;
    --text-color-on-dark: #FFFFFF;
    --navbar-height: 60px;
}

/* Global Styles */
body {
    font-family: 'Garamond', 'Baskerville', 'Baskerville Old Face', 'Hoefler Text', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Garamond', 'Book Antiqua', Palatino, serif;
    color: var(--primary-color);
}

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

html {
    scroll-behavior: smooth;
}

/* Header and Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
}

header.scrolled {
    background-color: rgba(35, 92, 75, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--navbar-height);
    font-family: 'Open Sans', sans-serif;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-text);
    font-weight: bold;
}

/* Add these new styles for the hamburger menu */
.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

/* Update the media query for mobile navigation */
@media (max-width: 768px) {
    .menu-button-container {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: var(--navbar-height); /* Adjust based on your header height */
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        background-color: var(--primary-color);
        display: none;
    }
    
    #menu-toggle:checked + .menu-button-container + .nav-links {
        display: flex;
        flex-direction: column;
    }
    
    .nav-links > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
    }
    
    .nav-links > li:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0.5em 0;
        text-align: center;
    }

    /* Add this to close menu when a link is clicked */
    .nav-links a:focus ~ #menu-toggle {
        display: none;
    }

    .nav-links a:focus ~ #menu-toggle + .menu-button-container + .nav-links {
        display: none;
    }
}


/* Hero Section */
.hero {
    background-image: url('./img/bridge.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 80%;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero .cta-button {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    border-radius: 5px;
    font-size: 1.3rem;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero .cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        max-width: 90%;
    }
}

/* General section styles */
.scroll-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5%;
    scroll-margin-top: var(--navbar-height); /* Adjust this value to match your header height */
}

/* Even-numbered sections (including "What We Are Looking For") */
.scroll-section:nth-of-type(even) {
    background-color: var(--primary-color-light);
}

/* Odd-numbered sections */
.scroll-section:nth-of-type(odd) {
    background-color: var(--secondary-color-light);
}

.scroll-section:last-of-type {
    min-height: calc(100vh - 20px - 2 * var(--navbar-height)); /* Show footer */
}

/* Ensure text color is consistent and visible on all backgrounds */
.scroll-section .section-content {
    color: var(--text-color);
    font-size: 1.1rem;
}

.scroll-section h2 {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-section h2 {
        font-size: 2rem;
    }

    .scroll-section p,
    .scroll-section ul {
        font-size: 1.1rem;
        max-width: 90%;
    }
}

/* Specific styles for contact email */
.contact-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--primary-dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content, #about h2, #about p {
    animation: fadeIn 1s ease-out;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0 5%; /* Remove vertical padding */
    font-family: 'Open Sans', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
}

.footer-copyright, .footer-links {
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
    padding: 10px 0; /* Add vertical padding to links */
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 15px 0; /* Add some vertical padding for mobile */
    }

    .footer-copyright, .footer-links {
        font-size: 0.8rem;
    }

    .footer-links {
        margin-top: 0.5rem;
    }
}

/* Privacy Policy Page */
#privacy-policy {
    max-width: 90%;
    min-height: calc(100vh - var(--navbar-height));
    margin: 0 auto;
    padding: 20px 10px;
}

#privacy-policy h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#privacy-policy h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#privacy-policy p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Add this to all main content areas */
main {
    padding-top: var(--navbar-height); /* Match the navbar height */
}

/* General paragraph styling */
p {
    margin-bottom: 1.5rem; /* Adds space below each paragraph */
}

/* Specific styling for sections */
.scroll-section .section-content p {
    margin-bottom: 1.5rem; /* Consistent spacing in all sections */
}

/* Remove margin from the last paragraph in a section to avoid extra space at the bottom */
.scroll-section .section-content p:last-child {
    margin-bottom: 0;
}

/* General paragraph and list styling */
.scroll-section .section-content p,
.scroll-section .section-content ul,
.scroll-section .section-content ol {
    max-width: 90%;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

/* Specific list styling */
.scroll-section .section-content ul,
.scroll-section .section-content ol {
    padding-left: 1.5em; /* Add padding to align bullets with paragraph text */
    list-style-position: outside; /* Keep bullets outside of text flow */
}

.scroll-section .section-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5em; /* Small padding to separate bullet from text */
}

/* Remove margin from the last list item */
.scroll-section .section-content li:last-child {
    margin-bottom: 0;
}

/* Ensure nested lists maintain proper indentation */
.scroll-section .section-content li > ul,
.scroll-section .section-content li > ol {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .scroll-section {
        padding: 3rem 5%; /* Further reduced for mobile */
    }
}

/* Ensure the first section doesn't have extra padding at the top due to the fixed navbar */
.scroll-section:first-of-type {
    padding-top: calc(4rem); /* 4rem + height of navbar */
}

@media (max-width: 768px) {
    .scroll-section:first-of-type {
        padding-top: calc(3rem); /* 3rem + height of navbar for mobile */
    }
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-fit with a minimum width */
    gap: 2rem;
}

/* Limit to a maximum of 3 columns */
@media (min-width: 768px) {
    .approach-grid {
        grid-template-columns: repeat(3, 1fr); /* Maximum of 3 columns */
    }
}

.approach-item {
    position: relative;
    background-color: var(--primary-color-dark);
    border-radius: 8px;
    padding: 1rem; /* Increased padding for more space */
    text-align: center;
    transition: transform 0.5s ease;
    overflow: hidden; /* Prevent overflow */
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    justify-content: center;
}

.approach-item:focus-within .approach-description,
.approach-item:hover .approach-description {
    display: block; /* Show description on hover or focus */
}

.approach-description {
    display: none; /* Hide description by default */
    padding-top: 1rem; /* Add some space above the description */
}

@media (min-width: 768px) {
    .approach-item {
        min-height: 300px; /* Adjust based on content */
    }
}

.approach-item:hover {
    transform: translateY(-5px);
}

.approach-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    /* margin-bottom: 1rem; */
}

.approach-item h3 {
    padding-top: 2rem;
}

.read-more {
    display: block; /* Show the read more text */
    margin-top: 0.5rem; /* Space between h3 and read more */
    font-size: 1.5rem; /* Adjust size as needed */
    color: #007bff; /* Change color to indicate interactivity */
    cursor: pointer; /* Change cursor to pointer */
}

/* Hide icon and read more text on hover */
.approach-item:hover i,
.approach-item:hover .read-more {
    display: none; /* Hide icon and text on hover */
}