/* General Styling & Reset */
:root {
    --primary-color: #008c9e; /* Dark Blue */
    --secondary-color: #f0a500; /* Gold/Orange Accent */
    --light-bg: #f8f8f8;
    --dark-text: #333;
    --light-text: #fff;
    --border-color: #eee;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #f5b942; /* Slightly darker gold */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ccc;
    color: var(--dark-text);
}

.btn-secondary:hover {
    background-color: #bbb;
    transform: translateY(-2px);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Header & Navigation */
.header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
}

.logo a {
    color: var(--light-text);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-newsletter-btn {
    margin-left: 30px;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 140, 158, 0.7), rgba(0, 140, 158, 0.7)), url('../img/hero.webp') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 150px 0;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* About Section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.about-image {
    flex: 1;
    min-width: 400px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
}

/* Why Choose Us Section */
.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.choose-us-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.choose-us-item:hover {
    transform: translateY(-5px);
    background-color: var(--light-bg);
}

.choose-us-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.choose-us-item h4 {
    font-size: 1.3em;
    color: var(--primary-color);
}

.choose-us-item p {
    color: #666;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: scale(1.03);
}

.feature-item:hover .feature-icon-wrapper i,
.feature-item:hover h4,
.feature-item:hover p {
    color: var(--light-text);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: background-color 0.3s ease;
}

.feature-item:hover .feature-icon-wrapper {
    background-color: var(--primary-color); /* Kept primary color for visual contrast */
}

.feature-icon-wrapper i {
    font-size: 2.5em;
    color: var(--light-text);
    transition: color 0.3 ease;
}

.feature-item h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.feature-item p {
    color: #666;
    transition: color 0.3s ease;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    font-style: italic;
    font-size: 1.1em;
    position: relative;
}

.testimonial-card p::before {
    content: "\201C"; /* Left double quotation mark */
    font-size: 3em;
    color: var(--secondary-color);
    position: absolute;
    top: 5px;
    left: 20px;
    opacity: 0.2;
    z-index: 0;
}

.testimonial-card p {
    margin-bottom: 20px;
    color: #555;
    z-index: 1; /* Ensure text is above pseudo-element */
    position: relative;
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* Contact Section */
.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-info,
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info h4,
.contact-form-wrapper h4 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--dark-text);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between;
    gap: 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    justify-content: space-between;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px; /* Ensure columns don't get too narrow */
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer p {
    margin-bottom: 10px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact .social-links a {
    background-color: rgba(255,255,255,0.2);
    margin-top: 15px;
}

.footer-contact .social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    width: 100%;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh; /* Limit height for scrollable content */
    overflow-y: auto; /* Enable scroll if content overflows */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8em;
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.modal-body ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.modal-body ul li {
    margin-bottom: 5px;
}

.modal-body h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
}

.modal-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.modal-form .checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.modal-form .checkbox-group label {
    margin: 0;
    font-weight: 400;
    color: #555;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
    text-align: right;
}

.confirmation-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: 600;
}


/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide nav links on smaller screens */
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2em;
    }

    .nav-newsletter-btn {
        margin: 20px 0;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar {
        flex-grow: 1; /* Allow navbar to take space */
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Align newsletter button right */
    }
    .navbar .btn {
        margin-left: 0; /* Remove margin for newsletter button */
    }

    .hamburger {
        display: block;
        margin-left: 20px; /* Space between logo and hamburger */
    }

    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        flex-grow: 1;
    }

    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        min-width: unset;
        width: 100%;
    }

    .services-grid,
    .choose-us-grid,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-grid {
        flex-direction: column;
    }
    .contact-info,
    .contact-form-wrapper {
        min-width: unset;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-about,
    .footer-links,
    .footer-contact {
        min-width: unset;
        width: 100%;
    }
    .footer-links ul {
        padding-left: 0;
    }
    .footer-contact .social-links {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .service-card, .choose-us-item, .feature-item, .testimonial-card {
        padding: 25px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-header h3 {
        font-size: 1.5em;
    }
}