/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif; /* Using Roboto for body text */
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* White background */
    color: #333; /* Dark text for readability */
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    overflow: auto; /* Helps contain floating elements if any */
}

/* Color Variables from Logo */
:root {
    --primary-red: #C8102E;    /* Strong Red from logo */
    --primary-green: #00843D;  /* Deep Green from logo */
    --accent-cream: #F8F8F0;   /* Off-white/Cream from logo text/siding */
    --dark-grey: #2D2926;    /* Dark Grey/Black from logo outlines */
    --light-grey: #f4f4f4;   /* Keeping for subtle backgrounds */
    --white-text: #ffffff;   /* Pure white for specific uses */
}

/* Header & Navigation */
header {
    background-color: var(--dark-grey); /* Dark background */
    color: var(--accent-cream);
    padding: 0.5rem 0; /* Slightly reduced padding */
    border-bottom: 4px solid var(--primary-red); /* Red border */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* Logo Styling */
.header-logo {
    max-height: 60px; /* Adjust as needed */
    width: auto;
    vertical-align: middle; /* Align logo nicely with nav */
}

/* Hide text title as logo is present, but keep for SEO/Accessibility */
.site-title-hidden {
   position: absolute;
   left: -9999px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--accent-cream);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Roboto', sans-serif; /* Use standard font for nav */
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active { /* Style for the active page link */
    background-color: var(--primary-red); /* Red background on hover/active */
    color: var(--white-text);
}

/* Hero Section (Homepage) */
.hero {
    background: var(--light-grey);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.hero h2 {
    color: var(--dark-grey); /* Dark heading */
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem; /* Larger heading font */
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-red); /* Red button */
    color: var(--white-text); /* White text on button */
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Oswald', sans-serif; /* Bolder font for button */
    letter-spacing: 0.5px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-green); /* Green button on hover */
    color: var(--white-text);
}

/* Main Content Area */
main {
    padding: 30px 0;
}

main h2 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif; /* Oswald for main headings */
    font-size: 2.2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-green); /* Green underline */
    padding-bottom: 10px;
    display: inline-block; /* Make border only wrap text */
}

/* Section Styling */
.content-section {
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.text-center p {
    max-width: 800px; /* Limit width for centered text */
    margin-left: auto;
    margin-right: auto;
}

/* About Page Specific */
.about-content p {
    margin-bottom: 15px;
}

/* Plans Section */
.plans-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.plan-card {
    background-color: var(--light-grey);
    border: 1px solid #ddd;
    border-top: 5px solid var(--primary-green); /* Green top border */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    flex: 1; /* Allow cards to grow */
    min-width: 280px; /* Minimum width before wrapping */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for card structure */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push button to bottom */
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.plan-card h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.plan-card .plan-description { /* Specific class for description */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take space */
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    flex-grow: 2; /* Allow list to take more space */
}

.plan-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.plan-card ul li::before {
    content: '✓';
    color: var(--primary-green); /* Green checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.plan-card .btn {
    margin-top: auto; /* Push button to bottom */
}

/* Contact Form & Info */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px; /* Space between columns */
    align-items: start; /* Align items to the top */
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px; /* Increased spacing */
}
.contact-info strong {
    color: var(--dark-grey);
}
.contact-info a {
    color: var(--primary-red); /* Red links */
    text-decoration: none;
    word-break: break-all; /* Prevent long emails/links from overflowing */
}
.contact-info a:hover {
    text-decoration: underline;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-grey);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 12px; /* Slightly larger padding */
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
    font-family: 'Roboto', sans-serif; /* Ensure form fields use body font */
    font-size: 1rem;
}

#contact-form textarea {
    height: 150px;
    resize: vertical; /* Allow vertical resizing */
}

#contact-form button[type="submit"] {
    /* Uses .btn styles */
    width: 100%; /* Make button full width */
    padding: 15px; /* Larger button */
}

.form-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--accent-cream);
    text-align: center;
    padding: 25px 0; /* Increased padding */
    margin-top: 40px;
    border-top: 4px solid var(--primary-green); /* Green top border */
}

footer p {
    margin: 8px 0; /* Increased spacing */
    font-size: 0.95rem;
}
footer a {
    color: var(--primary-red); /* Red links in footer */
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .header-logo {
      max-height: 50px; /* Slightly smaller logo on mobile */
      margin-bottom: 10px;
    }

    nav ul {
        margin-top: 10px; /* Reduced margin */
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    main h2 {
        font-size: 1.8rem;
    }

    .plans-container {
        flex-direction: column; /* Stack plan cards vertically */
        align-items: center; /* Center cards when stacked */
    }

    .plan-card {
       width: 90%; /* Make cards wider on small screens */
       max-width: 400px; /* Optional max width */
       margin-bottom: 20px;
       min-height: auto; /* Reset min-height */
    }
     .plan-card h3 {
        font-size: 1.4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    #contact-form button[type="submit"] {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    header { padding: 0.8rem 0;}
    .header-logo { max-height: 40px; }
    nav ul li a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    main h2 { font-size: 1.6rem; }
    .hero h2 { font-size: 1.8rem; }
     .plan-card { width: 95%; }
}
/* CAM Page Specific Styles */
.cam-intro {
    background-color: var(--accent-cream);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-category {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.service-icon {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-red);
}

.service-category h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-category > p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.service-details li::before {
    content: '•';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cam-benefits {
    background-color: var(--light-grey);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.cam-benefits h3 {
    text-align: center;
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.benefit-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-red);
}

.benefit-item h4 {
    color: var(--dark-grey);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.benefit-item h4 i {
    color: var(--primary-red);
    margin-right: 8px;
}

.cam-types {
    margin-bottom: 40px;
}

.cam-types h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.community-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.community-type {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    border-top: 4px solid var(--primary-green);
}

.community-type h4 {
    color: var(--dark-grey);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.community-type h4 i {
    color: var(--primary-green);
    margin-right: 10px;
}

.cam-process {
    margin-bottom: 40px;
}

.cam-process h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.process-step {
    text-align: center;
    padding: 25px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.process-step h4 {
    color: var(--dark-grey);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cam-cta {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cam-cta h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.cam-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-red);
}

/* Footer navigation update for CAM */
.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.footer-nav ul li {
    margin: 5px 15px;
}

.footer-nav ul li a {
    color: var(--accent-cream);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav ul li a:hover {
    color: var(--primary-red);
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 15px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--accent-cream);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Responsive adjustments for CAM page */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cam-intro {
        padding: 20px;
    }
    
    .cam-benefits {
        padding: 25px;
    }
    
    .cam-cta {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .service-category {
        padding: 20px;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .cam-benefits h3,
    .cam-cta h3 {
        font-size: 1.6rem;
    }
}
