/* Base Styles */
:root {
    --primary-color: #2b2d42; /* Modern Navy Blue */
    --secondary-color: #ef233c; /* Bold Red Accent */
    --dark-color: #1c1c1c;
    --light-color: #f1f1f1;
    --white-color: #ffffff;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.bg-dark {
    background: var(--dark-color);
    color: var(--white-color);
}

.bg-light {
    background: var(--light-color);
}

.section-padding {
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background: #2b2d42;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background: #ef233c;
}

.btn-cta {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.btn-cta:hover {
    background: #ef233c;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}


/* 1. Header */
.main-header {
    background: var(--white-color);
    border-bottom: 1px solid var(--light-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.main-nav a {
    margin: 0 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* 2. Hero Section */
.hero-section {
    position: relative;
    color: var(--white-color);
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero.jpg') no-repeat center center/cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero.jpg');
    z-index: -1;
}

.hero-content {
    max-width: 500px;
    padding: 2rem 0;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 3. About Preview & 5. Services (Grids) */
.section-subtext {
    max-width: 800px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
}

.grid-5, .grid-3 {
    display: grid;
    gap: 20px;
    margin-top: 2rem;
}

.grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 4. Why Choose Us Card */
.feature-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 5. Services Card */
.service-card {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.full-services-list {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc;
}

/* 6. Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-top: 2rem;
}

.video-testimonial {
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.video-testimonial i {
    margin-bottom: 1rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reviewer {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 7. FAQ */
.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.faq-item summary {
    padding: 1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
}

.faq-item summary:after {
    content: '\25BC'; /* Downwards triangle */
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}

.faq-item[open] summary:after {
    content: '\25B2'; /* Upwards triangle */
}

.faq-item p {
    padding: 0 1rem 1rem;
}

/* 8. Get In Touch Form & 9. Newsletter */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.confirmation-message {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid var(--primary-color);
    background: #e6f0ff;
    border-radius: 8px;
    color: var(--primary-color);
}

.confirmation-message h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-section {
    padding: 3rem 0;
}

.newsletter-form-container {
    display: flex;
    gap: 15px;
    max-width: 900px;
    margin: 1.5rem auto;
    align-items: flex-end;
}

.newsletter-form-container .form-group {
    margin-bottom: 0;
    flex: 1;
}

.newsletter-form-container button {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* 10. Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-info h4, .footer-contact h4, .footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.footer-contact p, .footer-info p {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-color);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 10px;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

/* Modules (Modal Popups) */
.modal-module {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

.modal-content {
    background-color: var(--white-color);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    color: var(--dark-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--dark-color);
    text-decoration: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 900px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .main-nav {
        margin: 1rem 0;
    }
    .btn-cta {
        margin-top: 10px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form-container {
        flex-direction: column;
    }
    .newsletter-form-container .form-group {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-info {
        border-bottom: 1px solid #444;
        padding-bottom: 1.5rem;
    }
    .social-links {
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
}