/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;700&display=swap');
@import url('animations.css');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: auto;
}

/* 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 */
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
}

/* Header & Navigation */
header {
    background-color: var(--dark-grey);
    color: var(--accent-cream);
    padding: 1rem 0;
    border-bottom: 4px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* Logo Styling */
.header-logo {
    max-height: 60px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Hide text title as logo is present, but keep for SEO/Accessibility */
.site-title-hidden {
   position: absolute;
   left: -9999px;
}

/* Navigation */
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;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-red);
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-red);
    color: var(--white-text);
}

/* Mobile Navigation Toggle */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-cream);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section (Homepage) */
.hero {
    background: linear-gradient(rgba(45, 41, 38, 0.7), rgba(45, 41, 38, 0.7)), url('../images/hero_house.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white-text);
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    color: var(--white-text);
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white-text);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: var(--primary-green);
    color: var(--white-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--dark-grey);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Main Content Area */
main {
    padding: 50px 0;
}

main h2 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: 10px;
    display: inline-block;
}

/* Section Styling */
.content-section {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.text-center p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--light-grey);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-grey);
    padding: 60px 0;
    margin: 60px 0;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--white-text);
    border-radius: 8px;
    padding: 30px;
    max-width: 350px;
    box-shadow: var(--shadow-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-red);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--dark-grey);
}

/* About Page Specific */
.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.team-section {
    margin-top: 60px;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
}

.team-member h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Plans Section */
.plans-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background-color: var(--white-text);
    border: 1px solid #ddd;
    border-top: 5px solid var(--primary-green);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.plan-card h3 {
    color: var(--dark-grey);
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.plan-card .plan-description {
    margin-bottom: 20px;
    flex-grow: 1;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 2;
}

.plan-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.plan-card ul li::before {
    content: '✓';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.plan-card .btn {
    margin-top: auto;
}

/* Contact Form & Info */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.contact-info {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-info strong {
    color: var(--dark-grey);
    display: block;
    margin-bottom: 5px;
}

.contact-info a {
    color: var(--primary-red);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.contact-form-container {
    background-color: var(--white-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    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;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form textarea:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.2);
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* Error and Success Messages */
.error-message {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 15px;
}

.success-message {
    background-color: rgba(0, 132, 61, 0.1);
    color: var(--primary-green);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--accent-cream);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 4px solid var(--primary-green);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer-nav ul li a {
    color: var(--accent-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.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);
}

footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

footer a {
    color: var(--primary-red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.text-primary { color: var(--primary-red); }
.text-secondary { color: var(--primary-green); }
.text-dark { color: var(--dark-grey); }
.text-light { color: var(--accent-cream); }

.bg-primary { background-color: var(--primary-red); }
.bg-secondary { background-color: var(--primary-green); }
.bg-dark { background-color: var(--dark-grey); }
.bg-light { background-color: var(--light-grey); }

/* Responsive Design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    #nav-toggle {
        display: block;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-grey);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        margin: 0;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .header-logo {
        max-height: 50px;
        margin-bottom: 0;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    main h2 {
        font-size: 1.8rem;
    }
    
    .plans-container {
        flex-direction: column;
        align-items: center;
    }
    
    .plan-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
    
    .plan-card h3 {
        font-size: 1.6rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    #contact-form button[type="submit"] {
        padding: 12px;
    }
    
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 400px;
    }
}

@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: 100%;
    }
    
    .feature-card {
        padding: 20px;
    }
}
