/* --- Google Fonts & Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #725e53; /* Professional Blue */
    --secondary-color: #0cc0df; /* Accent Teal/Green */
    --dark-color: #452c1e; /* Dark Blue/Grey */
    --light-color: #ECF0F1; /* Light Grey */
    --white-color: #FFFFFF;
    --text-color: #555;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #004a80;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* --- Header & Navbar --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 90, 156, 0.7), rgba(44, 62, 80, 0.7)), url('images/hero.png') no-repeat center center/cover;
    height: 90vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}
.hero-buttons .btn-secondary {
    color: var(--white-color);
    border-color: var(--white-color);
}
.hero-buttons .btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

/* --- Shared Section Styles --- */
.about-section, .services-section, .testimonials-section, .faq-section, .contact-section {
    padding: 80px 0;
}

.services-section, .faq-section {
    background-color: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- About Section --- */
.about-text h2 { text-align: left; }
.about-text .about-points {
    list-style: none;
    margin-top: 20px;
}
.about-text .about-points li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.about-text .about-points i {
    color: var(--secondary-color);
    margin-right: 10px;
}
.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    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.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 15px;
    text-align: left;
    padding-left: 20px;
}

.service-card ul li {
    position: relative;
    margin-bottom: 5px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: var(--secondary-color);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--dark-color);
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion details {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.faq-accordion summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--dark-color);
}

.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.faq-accordion p {
    padding: 0 20px 20px;
    border-top: 1px solid #ddd;
}

/* --- Contact Section --- */
.contact-info h2 { text-align: left; }
.contact-info ul {
    list-style: none;
    margin-top: 20px;
}
.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.contact-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
}
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}
.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* General Newsletter Section */
.newsletter-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.3s ease;
}
.newsletter-section:hover {
    transform: translateY(-3px);
}

.newsletter-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.newsletter-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Form */
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.newsletter-form input {
    flex: 1 1 250px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s ease;
}
.newsletter-form input:focus {
    border-color: #452c1e;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

/* Button */
.newsletter-form button {
    flex: 1 1 180px;
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #452c1e, #0056b3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.newsletter-form button:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-2px);
}

/* Footer */
.newsletter-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}
.unsubscribe-link {
    color: #452c1e;
    text-decoration: none;
    font-weight: 500;
}
.unsubscribe-link:hover {
    text-decoration: underline;
}

/* Success Message */
.success-message {
    display: none;
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(45deg, #28a745, #20c997, #17a2b8);
    color: #fff;
    animation: fadeInScale 0.7s ease forwards;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.success-message h4 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: bold;
}

@keyframes fadeInScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin: 10px 0 20px;
    position: relative;
    padding-left: 28px;
    text-align: left;
    flex: 1 1 100%;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 18px;
    width: 18px;
    background-color: #f0f0f0;
    border: 2px solid #452c1e;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #452c1e;
    border-color: #452c1e;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



/* --- Footer (REVISED & IMPROVED) --- */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    /* Explicit 3-column layout for desktop: 1st column is wider */
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 50px; /* Increased gap for better separation */
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--white-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

/* Underline effect for headings */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    color: #ccc;
}

.footer-col-1 p {
    max-width: 350px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Adds a nice indent effect on hover */
}

/* Styles for contact info section */
.footer-contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact-info a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--secondary-color);
}

.footer-contact-info i {
    margin-right: 10px;
    width: 20px;
    color: var(--secondary-color);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    color: var(--light-color);
    background-color: #4A5C6E; /* A slightly lighter shade than the footer bg */
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #ccc;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .footer-grid {
        /* On tablets, switch to a 2-column layout */
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }

    .nav-menu { display: none; } /* Simplified for this example. A real site would use JS for a hamburger menu. */

    .content-grid {
        grid-template-columns: 1fr;
    }

    .about-image { order: -1; margin-bottom: 30px; }
    .about-text h2, .contact-info h2 { text-align: center; }

    .newsletter-form {
        flex-direction: column; /* Stacks input and button on small screens */
    }

    .footer-grid {
        /* On mobile, stack to a single column */
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline */
    }
    .footer-col-1 p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-contact-info p {
        justify-content: center; /* Center contact items */
    }
}

/* --- Success Message Styling --- */
.success-message {
    display: none; /* Hidden by default */
    padding: 25px;
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}
.success-message h4 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* --- Unsubscribe Section --- */
.unsubscribe-section {
    padding: 80px 0;
    background-color: var(--white-color); /* Kept white to separate from light grey sections */
    border-top: 1px solid var(--light-color);
}

.unsubscribe-form-container {
    max-width: 600px;
    margin: 30px auto 0 auto;
}

.unsubscribe-form {
    display: flex;
    gap: 10px;
}

.unsubscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.unsubscribe-form input[type="email"]:focus {
    outline: none;
    border-color: #c0392b; /* Reddish border on focus */
}

.btn-unsubscribe {
    background-color: #7f8c8d; /* A neutral, serious grey */
    color: var(--white-color);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-unsubscribe:hover {
    background-color: #95a5a6;
    transform: translateY(-2px);
}