/* General Body & Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #1a7431; /* New Primary Green */
}

/* Header & Navigation */
header {
    background: #f7f7f7;
    color: #333;
    padding: 0;
    border-bottom: 3px solid #1a7431;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.brand img {
    width: 200px;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header #branding h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #1a7431;
}

header #branding h1 .highlight {
    color: #28a745; /* New Accent Green */
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav a:hover, header .current a {
    color: #ae2a28;
    text-decoration: underline;
}

/* Login/Register Button Style */
.btn-nav a {
    background: #ae2a28;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

.btn-nav a:hover {
    background: #691318;
    color: #ffffff !important;
}
/* Hero Section (Homepage) */
#hero {
    background: url('https://images.unsplash.com/photo-1620714223084-86c9df242d60?q=80&w=2070') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(214 56 47 / 88%);
}
#hero .hero-content {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: #181918;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background: #77171b;
}

/* Main Content & Cards */
.main-content {
    padding: 40px 0;
    background: #fff;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    flex: 1 1 280px; /* Flex properties for responsiveness */
  
    /* Animation properties */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;
}

/* Staggered animation delay for each card */
.card:nth-child(2) {
    transition-delay: 0.1s;
}
.card:nth-child(3) {
    transition-delay: 0.2s;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card .icon {
    font-size: 3rem;
    color: #1a7431;
    margin-bottom: 15px;
}

/* NEW: Style for images in service cards */
.card .service-img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* About Us Page */
#about-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Specific styles for the h2 and button within the about section */
#about-info .about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

#about-info .about-text .btn-primary {
    margin-top: 10px;
}


#about-info .about-text {
    flex: 1;
}

#about-info .about-image {
    flex: 1;
    text-align: center;
}

#about-info .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* Redesigned Services Section */
.services-section {
    padding: 60px 0;
    background: #9f0009;
    color: #ffffff;
}
/* Make the heading white in this section */
.services-section h2 {
    color: #ffffff;
}

.services-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 40px;
    margin-top: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
}

.service-item .service-img {
    width: 60px; /* Slightly smaller icon for this layout */
    height: 60px;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.service-item-text h3 {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.service-item-text p {
    margin: 0;
    color: #e0e0e0; /* Lighter text color for readability */
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials-section {
    padding: 40px 0;
    background: #ffffff; /* White background to contrast with the grey services section */
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.testimonial-card {
    background: #f4f7f6;
    border-left: 5px solid #84333a;
    padding: 25px 30px;
    flex: 1 1 300px;
    max-width: 380px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Adds a large decorative quote mark in the background */
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: #1a7431;
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card p.quote {
    margin: 0 0 15px 0;
    font-style: italic;
    color: #555;
    position: relative; /* To keep it above the pseudo-element */
    z-index: 2;
}

.testimonial-card p.author {
    margin: 0;
    font-weight: bold;
    text-align: right;
    color: #333;
}

.testimonial-card p.author span {
    color: #1a7431;
    font-weight: bold;
}

/* Contact Page */
#contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important for padding and width */
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #77171b;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s, opacity 0.3s;
}
#back-to-top:hover {
    background-color: #6f131a;
}

/* Footer */
footer {
    background: #2c3e50; /* A darker, more modern color */
    color: #bdc3c7; /* Lighter grey for text */
    padding-top: 40px;
    text-align: left;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-about, .footer-links {
    flex: 1;
    min-width: 220px; /* Minimum width for responsiveness */
}

.footer-about img {
    width: 194px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.2s ease-in-out;
}

.social-media a:hover {
    transform: translateY(-3px);
}

.social-media img {
    width: 30px;
    height: 30px;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links ul.footer-contact-info li span {
    margin-top: 2px;
}

.footer-links ul a:hover {
    color: #ffffff;
}

.footer-bottom {
    background: #233140; /* Even darker for contrast */
    color: #95a5a6;
    padding: 15px 0;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
}

.footer-bottom p {
    margin: 5px 0;
    text-align: center;
}

.footer-legal-links {
    margin: 5px 0;
    text-align: center;
}

.footer-legal-links a {
    color: #95a5a6;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Responsive Design */
@media(max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    header nav.show {
        max-height: 500px; /* Adjust as needed */
    }

    header nav ul li {
        display: block;
        text-align: center;
        margin: 0;
    }

    header nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    header nav ul li:last-child a {
        border-bottom: none;
    }
    
    .btn-nav {
        margin-top: 15px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #about-info {
        flex-direction: column;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }
}

/* Remove the old flex-direction rule that is no longer needed */
@media(max-width: 768px) {
    header .container {
        /* flex-direction: column; This is no longer needed */
    }
}

/* Loader Styles */
#loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8) url('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.9/ajax-loader.gif') center no-repeat; /* Using a simple GIF loader */
    /* You can replace the GIF with a CSS spinner for better performance/customization */
    /* Example CSS spinner below: */
    /*
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f7f6;
    */
}

/* Example CSS Spinner (if you prefer not to use a GIF) */
/*
#loader::after {
    content: '';
    border: 6px solid #f3f3f3;
    border-top: 6px solid #1a7431;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
*/
