/* --- Global Styles & Typography --- */
:root {
    --navy: #0A2540;
    --gold: #D4AF37;
    --white: #ffffff;
    --gray: #f4f4f4;
    --dark-gray: #555;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: var(--white);
    color: var(--dark-gray);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.primary-btn {
    background: var(--gold);
    color: var(--navy);
}

.primary-btn:hover {
    background: #c3a133;
}

.secondary-btn {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
}

.secondary-btn:hover {
    background: #081d32;
}

/* --- Header & Navigation --- */
header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 3px solid var(--gold);
    position: relative;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 80px;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--gold);
}

/* Menu button (hidden by default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero, .page-hero, .about-hero {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 30px;
}

.hero h1, .page-hero h1, .about-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p, .page-hero p, .about-hero p {
    font-size: 1.2rem;
}

/* --- Services & Cards --- */
.services-overview, .service-details, .about-intro {
    padding: 40px 0;
    text-align: center;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 2rem;
}

.service-cards .card {
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out;
    text-align: center;
    flex: 1;
}

.service-cards .card h3,
.service-cards .card p {
    transition: color 0.3s ease-in-out;
}

.service-cards .card:hover {
    transform: translateY(-5px);
    background: var(--navy);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-cards .card:hover h3,
.service-cards .card:hover p {
    color: var(--white);
}

.service-cards .card img {
    height: 60px;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    margin-top: 2rem;
}

.service-item {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out;
}

.service-item h3,
.service-item p {
    transition: color 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
    background: var(--navy);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item:hover h3,
.service-item:hover p {
    color: var(--white);
}

/* --- Testimonials --- */
.testimonials {
    background: var(--navy);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.testimonials h2 {
    color: var(--gold);
}

.testimonial-wrapper {
    position: relative;
}

.reviews-container {
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}

.testimonial-quotes {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
}

.testimonial-quotes blockquote {
    flex: 0 0 100%;
    min-width: 100%;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    scroll-snap-align: start;
    margin-right: 2rem; /* Add margin for spacing between reviews */
}

.testimonial-quotes cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: bold;
    color: var(--gold);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

/* --- Blog Section --- */
.blog-preview {
    padding: 40px 0;
    text-align: center;
}

.blog-posts {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
}

.blog-posts article {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out;
}

.blog-posts article a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-posts article h3,
.blog-posts article p {
    transition: color 0.3s ease-in-out;
}

.blog-posts article:hover {
    transform: translateY(-5px);
    background: var(--navy);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-posts article:hover h3,
.blog-posts article:hover p {
    color: var(--white);
}

.blog-posts h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.read-more {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

/* --- About Us --- */
.company-intro, .mission-values {
    padding: 40px 0;
    text-align: left;
}

.mission-statement {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--navy);
}

.values-list {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.value-item {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.value-item h4,
.value-item p,
.value-item i {
    transition: color 0.3s ease-in-out;
}

.value-item:hover {
    transform: translateY(-5px);
    background: var(--navy);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.value-item:hover h4,
.value-item:hover p,
.value-item:hover i {
    color: var(--white);
}

/* --- Calculators --- */
.calculator-section {
    background: var(--navy);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.calculator-section h2 {
    color: var(--gold);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 2rem auto;
    max-width: 400px;
}

/* Change the color of all labels in the calculator form */
.calculator-form label {
    align-self: flex-start;
    font-weight: 600;
    color: var(--white);
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.result-box {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

/* This is the key change for the result box */
.result-box p,
.result-box span {
    color: var(--white);
}

.result-box p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- FAQs --- */
.faq-section {
    padding: 50px 0;
}

.faq-accordion .faq-item {
    border-bottom: 1px solid var(--gray);
    padding: 20px 0;
    cursor: pointer;
    text-align: left;
}

.faq-question {
    font-weight: 600;
    position: relative;
    padding-right: 30px;
    color: var(--navy);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-top: 10px;
    font-style: italic;
}

.faq-item.active .faq-answer {
    display: block;
}

/* --- Contact Page --- */
.contact-details {
    text-align: center;
    padding: 40px 0;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
}

.contact-item {
    flex: 1;
    background: var(--gray);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 2rem;
    box-sizing: border-box;
}

.contact-item a:hover {
    color: var(--white);
}

.contact-item h3 {
    margin-top: 0;
}

.contact-item h3,
.contact-item p {
    transition: color 0.3s ease-in-out;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--navy);
}

.contact-item:hover h3,
.contact-item:hover p {
    color: var(--white);
    font-weight: 600;
}

.small-text {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px !important;
}

.contact-form-section {
    background: var(--gray);
    padding: 40px 0;
}

.contact-form-section .container {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
}

form label {
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--navy);
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- Footer --- */
footer {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* --- Mobile-Specific Styles (for screens up to 768px wide) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header & Nav */
    header .container {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    header .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navy);
        padding: 1rem 0;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }
    
    header .main-nav.active {
        display: block;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }
    
    header nav ul li a {
        color: var(--white);
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero, .page-hero, .about-hero {
        padding: 50px 0;
    }

    .hero h1, .page-hero h1, .about-hero h1 {
        font-size: 2.5rem;
    }

    /* Multi-column Sections */
    .service-cards, 
    .values-list, 
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }

    .testimonial-quotes,
    .blog-posts {
        flex-direction: column;
        gap: 20px;
        overflow-x: auto;
    }

    .testimonial-quotes blockquote {
        flex: 0 0 100%;
        min-width: 100%;
        margin-right: 20px;
    }

    .blog-posts article {
        flex: 0 0 100%;
    }
    
    /* Buttons for scrolling on mobile */
    .reviews-container {
        padding: 0;
    }
    
    .scroll-btn {
        display: none;
    }
    
}