/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000048; /* Blue */
    --secondary-color: #c047e4; /* Green */
    --accent-color: #6c757d; /* Grey */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: #000048;
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #000048;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    margin-right: 15px;
}

.btn-secondary:hover {
    background-color: #c047e4;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar .nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed);
}

.navbar .nav-links a.btn-primary {
    padding: 8px 20px;
}

.navbar .nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

.navbar .nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.navbar .nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-navbar {
    display: none; /* Hidden by default */
    background-color: var(--primary-color);
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
}

.mobile-navbar.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    padding: 15px 20px;
}

.mobile-nav-links li {
    margin-bottom: 10px;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.1em;
    display: block;
    padding: 10px 0;
    transition: background-color var(--transition-speed);
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Common Section Styles */
.common-section {
    padding: 80px 0;
    position: relative;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    margin-bottom: 15px;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 1.1em;
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: url('../img/hero.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.8em;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #eee;
}

/* About, Health Plans Sections - Layout */
.about-content,
.plan-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text,
.plan-text {
    flex: 1;
}

.about-image,
.plan-image {
    flex: 1;
    text-align: center;
}

.about-image img,
.plan-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px var(--shadow);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Why Choose Us Section */
.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.choice-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: background-color var(--transition-speed);
}

.choice-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.choice-item:hover .choice-icon,
.choice-item:hover h3 {
    color: var(--white);
}

.choice-icon {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color var(--transition-speed);
}

.choice-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    font-style: italic;
}

.testimonial-card p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.testimonial-card h4 {
    font-style: normal;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-card .rating {
    color: gold;
    font-size: 1.2em;
}

/* Forms (Appointment, Newsletter) */
.appointment-form,
.newsletter-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    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 input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
    background-color: #fcfcfc;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color); /* Changes checkbox color */
}

/* Confirmation Messages */
.confirmation-message {
    margin-top: 25px;
    padding: 15px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: bold;
}

/* Contact Section */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.contact-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-item p {
    font-size: 1.1em;
    color: #555;
}
.contact-item a {
    color: #555;
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    margin: 0 15px;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: #e0f2f7;
    text-decoration: underline;
}

.social-icons {
    margin: 15px 0;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color var(--transition-speed);
}

.social-icons a:hover {
    color: #e0f2f7;
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close-button {
    color: var(--accent-color);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.modal p, .modal ul {
    font-size: 0.95em;
    line-height: 1.8;
}

.modal h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.modal ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar .nav-links li:not(:last-child) {
        display: none; /* Hide most nav links on smaller screens */
    }
    .navbar .nav-links .btn-primary {
        display: block; /* Keep appointment button visible in header for smaller screens if needed */
        margin-left: auto; /* Push it to the right */
    }
    .navbar .nav-links {
        gap: 15px;
    }
    .hamburger {
        display: block;
    }

    .header .container {
        justify-content: space-between;
    }

    .hero-content h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .navbar {
        display: none; /* Hide desktop nav */
    }

    .about-content,
    .plan-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .plan-image {
        margin-top: 30px;
    }

    .services-grid,
    .choose-us-grid,
    .testimonials-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 100px 0;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    .common-section {
        padding: 60px 0;
    }
    .section-subtitle {
        margin-bottom: 40px;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .modal-content {
        margin: 10% 10px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content .btn {
        display: block;
        width: 90%;
        margin: 15px auto;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .logo {
        font-size: 1.5em;
    }
}