/*
========================================
The Creation Conservation Group, LLC
style.css
========================================
*/

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS Variables (Color Palette & Fonts) --- */
:root {
    --dark-green: #164A41;
    --light-green: #4D774E;
    --tan-gold: #F1B24A;
    --off-white-bg: #F5F5F5;
    --white: #FFFFFF;
    --dark-text: #333333;
    --light-text: #555555;
    --font-primary: 'Inter', sans-serif;
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--off-white-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--tan-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-green);
}

/* --- Layout Containers --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    border-bottom-color: var(--tan-gold);
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    border-radius: 5px;
    overflow: hidden;
    padding: 0.5rem 0;
    width: 280px;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: var(--off-white-bg);
}


/* --- Utility Classes --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--tan-gold);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d89934; /* Darker gold */
    color: var(--white);
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

/* --- Hero Section (Homepage & Service Pages) --- */
.hero, .service-hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    position: relative;
}

.hero::after, .service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(22, 74, 65, 0.6); /* Dark green overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .logo {
    height: 120px;
    margin-bottom: 1rem;
}

.hero h1, .service-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2rem;
}

/* --- Sections Styling --- */
section {
    padding: 4rem 0;
}
.why-us-section, section:nth-of-type(even) {
    background-color: var(--white);
}

/* --- Why Choose Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-us-card {
    padding: 2rem;
    text-align: center;
}

.icon-container {
    background-color: var(--tan-gold);
    color: var(--white);
    height: 80px;
    width: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
}

.why-us-card h3 {
    color: var(--light-green);
}

/* --- Services Overview Section (Homepage) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: var(--light-green);
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* --- About Us Summary (Homepage) --- */
.about-summary {
    background-color: var(--dark-green);
    color: var(--white);
    text-align: center;
}

.about-summary h2, .about-summary p {
    color: var(--white);
}
.about-summary p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-green);
    color: var(--off-white-bg);
    padding: 3rem 5%;
    text-align: center;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--white);
    font-weight: 600;
}
.footer-nav a:hover {
    color: var(--tan-gold);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- About Page --- */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-green);
}

.contact-info h3 {
    color: var(--light-green);
    border-bottom: 2px solid var(--tan-gold);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--dark-green);
}

/* Contact Form Pop-up */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-content {
    background-color: var(--white);
    padding: 2rem 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

/* --- Service Pages --- */
.service-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.key-components-list {
    list-style-type: none;
    padding-left: 0;
}

.key-components-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--off-white-bg);
    border-left: 5px solid var(--tan-gold);
    font-weight: 600;
    border-radius: 0 5px 5px 0;
}

.cta-section {
    background-color: var(--light-green);
    text-align: center;
    border-radius: 8px;
}
.cta-section h2, .cta-section p {
    color: var(--white);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .header {
        flex-direction: column;
        padding: 1rem 2%;
    }
    
    .nav-menu {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero, .service-hero {
        height: 70vh;
    }
    
    .about-content-grid, .contact-grid, .service-details-grid, .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        grid-row: 1; /* Puts image on top on mobile */
    }
}

