/* "Polished Forest" Final Theme v2 -- CSS Reset & Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-body: #f4f7f9;
    --bg-surface: #FFFFFF;
    --bg-section-alt: #eaf6f1;
    --card-bg-default: #fff;
    --card-bg-alt: #f7faf9;
    --text-charcoal: #2F3E46;
    --text-secondary: #526775;
    --accent-forest-green: #2C5A4A;
    --soft-shadow: rgba(47, 62, 70, 0.08);
    --section-v-spacing: 2rem; /* Consistent vertical space between all boxes */
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-charcoal);
    background-color: var(--bg-body);
    padding: var(--section-v-spacing) 0; /* Space at very top and bottom */
}

/* Base container for content width */
.container {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography Consistency */
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--text-charcoal); margin-bottom: 1rem; }
h2.section-title {
    font-size: 2.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-forest-green);
    margin-bottom: 2rem;
    margin-top: 0;
    font-weight: 800;
    position: relative;
    z-index: 1;
}
p { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1rem; }

/* Uniform Button Styles */
.btn {
    display: inline-block;
    padding: 0.75em 1.75em;
    border-radius: 5px;
    background: var(--accent-forest-green);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--accent-forest-green);
    cursor: pointer;
    text-align: center;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(44, 90, 74, 0.25);
}

/* Header & Navigation */
#navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: var(--bg-surface);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--soft-shadow);
    margin-bottom: var(--section-v-spacing);
    position: relative;
}
h1.logo {
    margin-bottom: 0;
}
.logo {
    margin-right: auto;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-charcoal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    color: var(--accent-forest-green);
    stroke-width: 2.5px;
}
.logo-icon { color: var(--accent-forest-green); stroke-width: 2.5px; }
.main-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}
.nav__list {
    list-style: none !important;
    display: flex;
    gap: 3rem;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    padding: 0;
}
.nav__link {
    color: var(--accent-forest-green);
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5em 1.25em 0.5em 1.25em;
    transition: color 0.2s, border-bottom 0.2s;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
}
.nav__link:hover, .nav__link:focus {
    color: var(--text-charcoal);
    border-bottom: 2.5px solid var(--accent-forest-green);
    background: none;
}

/* Style the Contact button in the header for emphasis as a rounded rectangle */
.header-contact-btn {
    margin-left: 0;
    height: 48px;
    padding: 0.75em 1.75em;
    font-size: 1rem;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 8px; /* Rectangle with slightly rounded edges */
    background: var(--accent-forest-green);
    color: #fff;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid var(--accent-forest-green);
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44,90,74,0.10);
    cursor: pointer;
}
.header-contact-btn:hover, .header-contact-btn:focus {
    background: #fff;
    color: var(--accent-forest-green);
    border: 2px solid var(--accent-forest-green);
    box-shadow: 0 4px 16px rgba(44,90,74,0.18);
}


/* Main Content Sections */
/* All sections inside main get a consistent bottom margin */
main > section {
    margin-bottom: var(--section-v-spacing);
}

/* Hero Section - FIXED */
#hero .container {
    background-image: linear-gradient(rgba(47, 62, 70, 0.6), rgba(47, 62, 70, 0.6)), url('../images/forest-hero.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: 6rem 3rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--soft-shadow);
}
#hero h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
#hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
#hero .btn { text-transform: uppercase; letter-spacing: 1px; }
#hero .btn:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }


/* --- Card Styles for Services and About Sections (Vertical, Unified Design) --- */
.card {
    background: var(--bg-surface);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(44,90,74,0.12);
    padding: 2.25rem 2rem 1.75rem 2rem;
    transition: transform 0.18s cubic-bezier(.4,1.5,.5,1), box-shadow 0.18s cubic-bezier(.4,1.5,.5,1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1.5px solid #e2ece7;
    width: 100%;
    max-width: 100%;
}
.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 36px rgba(44,90,74,0.20);
    border-color: var(--accent-forest-green);
    z-index: 2;
}
.service-icon-wrapper {
    margin-bottom: 1.5rem;
    background: #eaf6f1;
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(44,90,74,0.08);
    margin-left: auto;
    margin-right: auto;
    width: 88px;
    height: 88px;
}
.service-icon {
    width: 56px;
    height: 56px;
    color: var(--accent-forest-green);
}
.card h3 {
    position: relative;
    display: inline-block;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
}
.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2.5px;
    background-color: var(--accent-forest-green);
}
.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 1rem;
}
.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.98rem;
}
.card ul li {
    margin-bottom: 0.5rem;
}

/* Remove conflicting single-column grid for services and about cards */
.services-grid, .about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}
@media (min-width: 700px) {
    .services-grid, .about-content {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1000px) {
    .services-grid, .about-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* All Content Sections are now just .container with this styling */
#services.container,
#about.container {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Services Section */
.services-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; align-items: stretch; max-width: 1100px; margin: 0 auto; text-align: center; }

/* About Us Section */
.about-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
/* About content h3 styling is now handled by the unified .card h3 styles */

/* Contact Section */
.lead { max-width: 600px; margin: 0 auto 2rem auto; text-align: center; }
#contact-form { max-width: 600px; margin: auto; text-align: left; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ced4da; border-radius: 5px; font-size: 1rem; }
#contact-form button { width: 100%; text-transform: uppercase; letter-spacing: 1px; }
#contact-form input:focus, #contact-form textarea:focus { border-color: var(--accent-forest-green); box-shadow: 0 0 0 3px rgba(44, 90, 74, 0.25); outline: none;}

/* Footer */
footer .container {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-location {
    font-size: 1.1rem;
    color: var(--accent-forest-green);
    font-weight: 500;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
    opacity: 0.95;
}
.footer-copyright {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.2px;
    opacity: 0.85;
}
.footer-link {
    color: var(--accent-forest-green);
    text-decoration: underline dotted;
    margin-left: 0.5em;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--text-charcoal);
    text-decoration: underline solid;
}
.footer-contact {
    margin: 0.2rem 0 0.3rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}
.footer-email, .footer-phone {
    color: var(--accent-forest-green);
    font-weight: 500;
}
.footer-email {
    margin-right: 0.3em;
}


/* Responsive Hamburger Menu */
.nav-toggle, .hamburger { display: none; }
@media (max-width: 900px) {
    #navbar { width: 100%; border-radius: 0; margin-bottom: var(--section-v-spacing); }
    #navbar .container { border-radius: 0; }
    .main-nav, .btn-cta { display: none; }
    .nav-toggle { display: block; padding: .5em; background: transparent; border: 0; cursor: pointer; position: absolute; right: 1.5em; top: 50%; transform: translateY(-50%); z-index: 1001; }
    .hamburger { display: block; position: relative; }
    .hamburger, .hamburger::before, .hamburger::after { background: var(--text-charcoal); width: 2em; height: 3px; border-radius: 1em; transition: transform .3s ease-in-out; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; right: 0; }
    .hamburger::before { top: 6px; }
    .hamburger::after { bottom: 6px; }
    .nav-open .main-nav { display: block; position: absolute; top: calc(100% + 1rem); left: 0; right: 0; margin: 0 auto; width: 90%; background: var(--bg-surface); box-shadow: 0 5px 10px var(--soft-shadow); border-radius: 8px;}
    .nav-open .nav__list { flex-direction: column; align-items: center; padding: 1em 0; }
    .nav-open .nav__link { padding: 1em 0; }
    .nav-open .hamburger { transform: rotate(.625turn); }
    .nav-open .hamburger::before { transform: rotate(90deg) translateX(-6px); }
    .nav-open .hamburger::after { opacity: 0; }
}
@media (max-width: 600px) {
  /* Header: show only logo and hamburger, hide nav and contact button */
  #navbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
  }
  .main-nav, .nav__list, .header-contact-btn {
    display: none !important;
  }
  .nav-toggle {
    display: block !important;
    background: none;
    border: none;
    position: static;
    margin-left: auto;
    z-index: 1001;
  }
  .hamburger {
    display: block !important;
  }
  h1.logo {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  /* Hero section: reduce height, text size, and padding */
  #hero .container {
    padding: 3.5rem 1rem 2.5rem 1rem;
    min-height: 260px;
    background-size: cover;
    background-position: center;
  }
  #hero h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  #hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Section Specific Styles */
#services {
    background: var(--bg-section-alt);
    margin-top: 3rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-top: none;
}
#about {
    background: var(--bg-body);
    margin-top: 0;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-top: none;
}

/* Add a subtle background to alternate sections for separation */
#about {
    background: #f7faf9;
}

/* Center the contact card and ensure consistent card style */
.contact-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 2rem;
}
#contact .card {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 2rem 2rem 2rem;
    box-sizing: border-box;
}
#contact-form {
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#contact-form .form-group {
    width: 100%;
}
#contact-form button.btn.header-contact-btn {
    width: auto;
    min-width: 180px;
    align-self: center;
    text-transform: none;
    font-size: 1rem;
    padding: 0.75em 1.75em;
    height: 48px;
    margin-left: 0;
}

/* Contact card should not be hoverable */
.contact-card {
    box-shadow: 0 2px 16px rgba(44,90,74,0.12);
    border: 1.5px solid #e2ece7;
    transition: none;
}
.contact-card:hover {
    transform: none;
    box-shadow: 0 2px 16px rgba(44,90,74,0.12);
    border-color: #e2ece7;
    z-index: 1;
}

/* Expand the width of the middle card in the about section on desktop */
@media (min-width: 1000px) {
  .about-content {
    grid-template-columns: 1fr 1.3fr 1fr;
  }
  .about-content .card:nth-child(2) {
    grid-column: 2 / 3;
  }
}

/* Privacy Policy Card - Matches header width, left-aligned, no hover effect */
.privacy-policy-card {
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem;
    background: var(--card-bg-default);
    border-radius: 12px;
    box-shadow: 0 2px 16px var(--soft-shadow);
    text-align: left;
    transition: none !important;
    cursor: default !important;
    align-items: flex-start;
    display: block;
}
.privacy-policy-card:hover, .privacy-policy-card:focus, .privacy-policy-card:active {
    box-shadow: 0 2px 16px var(--soft-shadow) !important;
    background: var(--card-bg-default) !important;
    transform: none !important;
    border-color: #e2ece7 !important;
}
.privacy-policy-card h1, .privacy-policy-card h2, .privacy-policy-card h3 {
    text-align: left !important;
}
.privacy-policy-card ul, .privacy-policy-card p {
    text-align: left !important;
}