/* --- Global Styles & Variables --- */
/* --- Global Styles & Variables --- */
:root {
    --primary-color: #4a6a8a;    /* This is your new muted blue */
    --secondary-color: #e8a838; /* This is your new mustard yellow */
    --dark-grey: #333333;       /* This is your main text color */
    --light-grey: #f5f5f7;    /* This is your new off-white background */
    --white-color: #ffffff;
    --body-font: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--dark-grey);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
}

.logo {
    display: flex; /* This is the magic that aligns items horizontally */
    align-items: center; /* This vertically centers them */
    gap: 0.75rem; /* This adds a nice space between the image and the text */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
}

.logo img {
    height: 40px; /* You can adjust this value to make the logo bigger or smaller */
    width: auto; /* This keeps the logo's proportions correct */
    vertical-align: middle; /* This helps align it nicely with the text links */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 6rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--dark-grey);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* --- Services Overview Section --- */
.services-overview {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light-grey);
}

.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-basis: 300px; /* Each card will have a base width */
    flex-grow: 1; /* Allows cards to grow and fill space */
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* --- Footer Redesign --- */
footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 4rem 2rem 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* 3 columns: first one is twice as wide */
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Adds the little accent line under the headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-logo img {
    height: 45px;
}

.tagline {
    font-weight: 300;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a svg {
    width: 28px;
    height: 28px;
    fill: var(--light-grey);
    transition: fill 0.3s ease;
}

.social-icons a:hover svg {
    fill: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
}

/* --- Responsiveness for the new footer --- */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stacks all columns on mobile */
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        /* On mobile, the links are hidden by default */
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Position it right below the header */
        left: 0;
        background-color: white;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }

    /* THIS IS THE NEW PART! */
    .nav-links.active {
        /* When the 'active' class is added by JavaScript, we show the menu */
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid var(--light-grey);
    }
    
    .hamburger-menu {
        display: flex; /* Show hamburger icon */
        flex-direction: column;
        gap: 4px;
    }

    .hamburger-menu div {
        width: 25px;
        height: 3px;
        background-color: var(--dark-grey);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- About Page Styles --- */

.about-hero {
    /* We can reuse the hero style but make it a bit smaller */
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 4rem 2rem;
}

.about-content {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex-basis: 40%; /* The image container will take up 40% of the width */
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-text {
    flex-basis: 60%; /* The text container will take up 60% of the width */
}

/* Make the about page stack on mobile */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
}
/* --- Services Page Styles --- */

.page-header {
    background-color: var(--light-grey);
    text-align: center;
    padding: 3rem 2rem;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-top: 0;
}

.services-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.service-section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.service-section h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--dark-grey);
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-grey);
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '✓'; /* A checkmark symbol */
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-list li:last-child {
    border-bottom: none;
}

.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-top: 0;
}

.cta-section p {
    font-weight: 300;
}



/* --- Blog Page Styles --- */

.blog-list-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden; /* Ensures the card contains its children */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.article-excerpt {
    margin-bottom: 1.5rem;
}

.read-more-btn {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Single Post Styles --- */
.post-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.post-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin: 1rem 0 2rem 0;
}

.back-to-blog-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Contact Page Styles --- */

.contact-section {
    padding: 3rem 2rem;
    background: var(--light-grey);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 90, 156, 0.3);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- Thank You Page Styles --- */

.thank-you-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    min-height: 60vh; /* Make it take up a good portion of the screen */
}

.thank-you-content h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* --- Services Redesign Section --- */
.services-redesign {
    background-color: #25384C; /* <<< THIS IS THE UPDATED LINE */
    color: var(--light-grey);
    padding: 5rem 2rem;
    text-align: center;
}

.services-redesign h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid */
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--primary-color); /* <<< THIS IS THE UPDATED LINE */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Adds a little "lift" on hover */
    background: rgba(255, 255, 255, 0.1);
}

.service-card .card-icon svg {
    width: 56px;   /* <<< UPDATED: Made the icon bigger */
    height: 56px;  /* <<< UPDATED: Made the icon bigger */
    stroke: var(--secondary-color); /* <<< UPDATED: Changed color to mustard */
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ffffff; /* White text for the card headings */
}

/* --- Responsiveness for the new section --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}

/* --- About Teaser Section --- */
.about-teaser {
    background-color: var(--light-grey); /* Using the light background to create contrast */
    padding: 5rem 2rem;
}

.teaser-content {
    display: flex;
    align-items: center; /* This vertically aligns the image and the text block */
    gap: 4rem; /* Creates space between the image and text */
    max-width: 1100px;
    margin: 0 auto;
}

.teaser-image {
    flex-basis: 40%; /* The image takes up 40% of the width */
    min-width: 300px; /* Prevents the image from getting too squished */
}

.teaser-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.teaser-text {
    flex-basis: 60%; /* The text takes up 60% of the width */
}

.teaser-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.teaser-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Responsiveness for the teaser section --- */
@media (max-width: 768px) {
    .teaser-content {
        flex-direction: column; /* Stacks the image on top of the text on mobile */
        gap: 2rem;
    }
}
/* --- FAQ Section --- */
.faq-section {
    padding: 5rem 2rem;
    background-color: #ffffff; /* A clean white background */
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-grey);
}

.faq-toggle {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0; /* This is the key to our animation: hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 1rem;
}

.faq-answer p {
    line-height: 1.7;
    padding-bottom: 1.5rem;
}

/* --- Active state for the accordion --- */
.faq-item.active .faq-answer {
    max-height: 200px; /* Animate to this height when active. Adjust if answers are very long */
    padding: 0 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg); /* Rotates the "+" into an "x" */
}

/* --- Final CTA Section --- */
.final-cta {
    background-color: var(--primary-color); /* <<< THIS IS THE UPDATED LINE */
    color: var(--white-color);
    padding: 5rem 2rem;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem auto; /* Centers the paragraph block */
    line-height: 1.7;
}

/* The .cta-button style we wrote earlier will automatically apply here! */