/* --- Global Variables and Reset --- */
:root {
    --primary-color: #5D9C9C; /* Muted Teal */
    --secondary-color: #F2A29D; /* Soft Coral */
    --accent-color-darker: #4A7C7C; /* Darker Teal for hover states */
    --text-color: #333333;
    --light-bg-color: #F8F8F8;
    --white-color: #FFFFFF;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white-color);
    padding: 1rem 0; 
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; 
}

header .container { 
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center;
}
.header-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}


header .logo-title {
    font-family: var(--heading-font);
    font-size: 2.2rem; 
    color: var(--primary-color);
    margin: 0 0 0.2rem 0; 
}

header .tagline {
    font-size: 0.9rem; 
    color: #777;
    margin-bottom: 0.5rem; 
}

nav#mainNav { 
   /* Flex properties will be handled by ul for items */
}

nav#mainNav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; 
    justify-content: center;
}

nav#mainNav ul li {
    margin: 0 10px; 
}

nav#mainNav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem; 
    padding: 10px 5px; 
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-block; 
}

nav#mainNav ul li a:hover,
nav#mainNav ul li a.active-nav-link { 
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.mobile-nav-toggle {
    display: none; 
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 10px;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--light-bg-color); 
    background-image: url('images/Home_IndexBlossoms.png'); 
    background-size: cover;
    background-position: center center;
    padding: 80px 0; 
    text-align: center;
    color: var(--text-color); 
}

.hero .container { 
    padding-top: 20px;
    padding-bottom: 20px;
}


.hero h1 { 
    font-family: var(--heading-font);
    font-size: 2.8rem;
    color: var(--primary-color); 
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.7); 
}

.hero p {
    font-size: 1.15rem; 
    margin-bottom: 1.5rem; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: var(--text-color); 
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5); 
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color) !important; 
    padding: 14px 28px; 
    text-decoration: none;
    border-radius: 30px; 
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #E08A83; 
    transform: translateY(-3px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cta-button.primary {
    background-color: var(--primary-color);
}

.cta-button.primary:hover {
    background-color: var(--accent-color-darker);
}


/* --- General Section Styling --- */
section {
    padding: 60px 0; 
    scroll-margin-top: 80px; 
}

section:nth-child(even) {
   /* background-color: var(--light-bg-color); */ 
}

section h2.section-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 2.4rem; 
    color: var(--primary-color);
    margin-bottom: 50px; 
    position: relative;
}

section h2.section-title::after {
    content: '';
    display: block;
    width: 70px; 
    height: 4px; 
    background-color: var(--secondary-color);
    margin: 15px auto 0; 
}

/* --- About Section --- */
#about .about-content {
    display: flex;
    flex-wrap: wrap; 
    align-items: stretch; 
    gap: 40px; 
}

#about .about-image-container {
    flex: 1 1 300px; 
    max-width: 350px; 
    margin: 0 auto 20px auto; 
    display: flex; 
}

#about .about-image { 
    width: 100%;
    height: 100%; 
    border-radius: 12px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.12); 
    object-fit: cover; 
}

#about .about-text {
    flex: 2 1 400px; 
    min-width: 300px; 
}
#about .about-text h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.8rem; 
    margin-top: 0;
    margin-bottom: 0.5rem;
}
#about .about-text .qualifications {
    display: block;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}


/* --- Services Section (on index.html) --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px; 
}
.service-item-wrapper {
    background-color: var(--light-bg-color);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none; 
    color: var(--text-color);
    border-left: 6px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
}
.service-item-wrapper:hover { 
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-item { 
    padding: 0; 
    text-decoration: none;
    color: inherit;
    display: flex; 
    flex-direction: column;
    flex-grow: 1; 
}


.service-item h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.5rem; 
    margin-top: 0;
    margin-bottom: 10px; 
}

.service-item p {
    font-size: 0.95rem; 
    line-height: 1.6;
    margin-bottom: 0; 
    flex-grow: 1; 
}

/* --- Patient Info Section (on index.html) --- */
.info-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.info-summary-item {
    background-color: var(--light-bg-color);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    border-left: 6px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-summary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.info-summary-item h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}
.info-summary-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}


/* Testimonials Section Specific Styles */
.testimonial-scroll-container {
    height: 250px; 
    overflow: hidden;
    position: relative;
    background-color: var(--light-bg-color); 
    padding: 10px;
    border-radius: 8px;
    border-left: 6px solid var(--secondary-color); 
}

.testimonial-scroller {
    display: flex;
    flex-direction: column;
    animation: scroll-testimonials 20s linear infinite; 
}
.testimonial-scroller:hover {
    animation-play-state: paused; 
}

.testimonial-item {
    background-color: transparent; 
    padding: 15px; 
    margin-bottom: 15px; 
    border-radius: 5px; 
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px; 
    font-size: 1.05rem; 
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%); 
    }
}


/* --- Contact Section --- */
#contact {
    background-color: var(--light-bg-color); 
}
.contact-details-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; 
    margin-bottom: 30px; 
}
.contact-details {
    flex: 1;
    min-width: 280px;
}
.contact-details h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.contact-details p {
    margin-bottom: 1rem; 
    font-size: 1rem; 
    line-height: 1.6;
}
.contact-details p strong {
    color: var(--text-color); 
}
.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
    color: var(--accent-color-darker);
}

.contact-form-container {
    flex: 1.5; 
    min-width: 300px;
}
.contact-form-container h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
}
.contact-form .form-group {
    margin-bottom: 15px; 
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    font-family: var(--body-font);
    font-size: 1rem;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 156, 156, 0.2); 
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form button[type="submit"] {
    width: auto; 
    display: inline-block;
    margin-top: 10px; 
}
.contact-form button[type="submit"]:disabled { 
    background-color: #ccc;
    cursor: not-allowed;
}
.error-message {
    color: #D8000C; 
    background-color: #FFD2D2; 
    border: 1px solid #D8000C;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none; 
}
.contact-form input.input-error,
.contact-form textarea.input-error {
    border-color: #D8000C; 
    background-color: #FFF0F0; 
}
p.hidden {
    display: none; 
}
[data-netlify-recaptcha="true"] {
    margin-top: 15px;
    margin-bottom: 20px;
}


.map-container { 
    margin-top: 30px; 
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.map-container iframe {
    display: block; 
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px; 
    background-color: var(--text-color);
    color: var(--light-bg-color);
    margin-top: 40px; 
}
footer .container {
    padding: 0 20px; 
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white-color); 
    text-decoration: underline;
}

/* --- Styles for Detail Pages --- */
.page-header {
    background-image: url('images/Home_IndexSunFlower.png'); 
    background-size: cover;
    background-position: center center;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 0; 
    position: relative; 
}

.page-header.services-page-banner { 
    background-image: url('images/Home_IndexTree.png'); 
}


.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5); 
    z-index: 0; 
}

.page-header.services-page-banner::before {
    background-color: rgba(255, 255, 255, 0.5); 
}


.page-header .container { 
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-color); 
    margin: 0;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.7); 
}
.page-header p {
    font-size: 1.1rem;
    color: var(--text-color); 
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5); 
}

.service-detail-item, .patient-care-section { 
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}
.service-detail-item:last-child, .patient-care-section:last-child {
    border-bottom: none;
}
.service-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.service-text-content { flex: 3; min-width: 300px; }
.service-image-sidebar { flex: 2; min-width: 280px; max-width: 450px; margin: 0 auto; }
.service-image-sidebar img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 15px rgba(0,0,0,0.12); }
.service-detail-item h2, .patient-care-section h2 { font-family: var(--heading-font); color: var(--primary-color); font-size: 2.2rem; margin-bottom: 20px; }
.service-detail-item h3, .patient-care-section h3 { font-family: var(--heading-font); color: var(--accent-color-darker); font-size: 1.6rem; margin-top: 25px; margin-bottom: 15px; }
.service-detail-item ul, .patient-care-section ul { list-style: none; padding-left: 0; }
.service-detail-item ul li, .patient-care-section ul li { padding-left: 25px; position: relative; margin-bottom: 10px; line-height: 1.6; }
.service-detail-item ul li::before, .patient-care-section ul li::before { content: '✓'; color: var(--secondary-color); position: absolute; left: 0; font-weight: bold; }
.service-detail-item p, .patient-care-section p { margin-bottom: 15px; line-height: 1.7; }
.inline-link { 
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}
.inline-link:hover {
    color: var(--accent-color-darker);
    text-decoration: none;
}
.document-download-summary {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-bg-color);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.document-download-summary h4 { 
    font-family: var(--heading-font);
    color: var(--accent-color-darker);
    font-size: 1.3rem; 
    margin-top: 0;
    margin-bottom: 15px;
}
.document-download-summary ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.document-download-summary ul li {
    padding-left: 0; 
    margin-bottom: 8px;
}
.document-download-summary ul li::before {
    display: none; 
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: none;
    transition: opacity 0.3s, visibility 0.3s; 
    z-index: 999;
    opacity: 0; 
    visibility: hidden; 
}
.back-to-top.visible { 
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover { background-color: var(--accent-color-darker); }

/* --- Services Sub-Navigation (for services_detail.html & patient_care.html) --- */
.services-sub-nav { 
    background-color: var(--light-bg-color); 
    padding: 15px 0;
    border-bottom: 1px solid #d0d0d0;
    position: sticky; 
    top: 0; 
    z-index: 990; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.services-sub-nav .container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.sub-nav-item {
    display: inline-block;
    padding: 8px 15px; 
    background-color: var(--white-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sub-nav-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.sub-nav-item.active { 
    border-color: var(--primary-color); 
    font-weight: 600; 
}

/* --- Blog Page Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
}
.blog-card {
    background-color: var(--light-bg-color); 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid var(--secondary-color);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.blog-card h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.blog-card h2 a {
    text-decoration: none;
    color: inherit;
}
.blog-card h2 a:hover {
    color: var(--accent-color-darker); 
}
.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-card .inline-link {
    align-self: flex-start; 
}

/* --- Blog Article Page Styles --- */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto; 
}
.blog-post-content h3 {
    font-family: var(--heading-font);
    color: var(--accent-color-darker);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
}
.blog-post-content h4 {
    font-family: var(--heading-font);
    color: var(--text-color);
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
}
.blog-post-content p, .blog-post-content li {
    font-size: 1.05rem;
    line-height: 1.8;
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 20px; 
}
.blog-post-content ul li {
    list-style-type: disc; 
    padding-left: 10px;
    margin-bottom: 10px;
}
.blog-post-content ul li::before {
    display: none; 
}
.soft-cta {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    background-color: var(--light-bg-color);
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}
.soft-cta p {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
}


/* --- Responsive Design Adjustments --- */
@media (min-width: 600px) { 
    .services-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .info-summary-grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) { 
    header .logo-title { font-size: 2rem; } 
    nav#mainNav ul li a { font-size: 0.9rem; margin: 0 8px; } 
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    section h2.section-title { font-size: 2.1rem; }

    .services-sub-nav .container {
        justify-content: flex-start; 
        overflow-x: auto; 
        padding-bottom: 10px; 
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .services-sub-nav .container::-webkit-scrollbar { 
        display: none;
    }
    .sub-nav-item {
        white-space: nowrap; 
    }
}


@media (max-width: 768px) { 
    .container { width: 95%; padding: 0 15px; } 

    header .container {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        padding-top: 0.5rem; 
        padding-bottom: 0.5rem;
    }
     .header-text-content {
        flex-grow: 1; 
        margin-right: 10px; 
    }
    header .logo-title {
        font-size: 1.6rem; 
        margin-bottom: 0.1rem;
    }
    header .tagline {
        font-size: 0.75rem; 
        margin-bottom: 0;
    }

    .mobile-nav-toggle {
        display: block; 
        flex-shrink: 0; 
    }

    nav#mainNav {
        width: 100%; 
        order: 1; 
        flex-basis: 100%; 
    }

    nav#mainNav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: var(--white-color);
        position: absolute; 
        top: 100%; 
        left: 0;
        box-shadow: 0 3px 5px rgba(0,0,0,0.1);
        padding: 0.5rem 0; 
        z-index: 999; 
    }

    nav#mainNav ul.active {
        display: flex; 
    }

    nav#mainNav ul li {
        display: block;
        margin: 0; 
        width: 100%; 
        text-align: center;
    }
    nav#mainNav ul li a {
        padding: 12px 20px; 
        border-bottom: 1px solid #eee; 
    }
    nav#mainNav ul li:last-child a {
        border-bottom: none; 
    }
    nav#mainNav ul li a:hover,
    nav#mainNav ul li a.active-nav-link {
        background-color: var(--light-bg-color); 
        border-bottom-color: var(--secondary-color); 
    }


    .hero { padding: 50px 0; } 
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    section { padding: 40px 0; scroll-margin-top: 70px; }
    section h2.section-title { font-size: 1.9rem; margin-bottom: 35px; }
    section h2.section-title::after { width: 50px; height: 3px; margin-top: 10px; }


    #about .about-content { 
        flex-direction: column; 
        gap: 25px; 
    }
    #about .about-image-container { 
        order: -1; 
        margin-bottom: 20px; 
        max-width: 80%; 
    }

    .service-item-wrapper { padding: 25px; }
    .service-item h3 { font-size: 1.5rem; margin-bottom: 10px;} 
    .service-item p { font-size: 0.95rem; } 


    .cta-button { padding: 12px 24px; font-size: 0.95rem; }

    /* Contact Section Mobile Adjustments */
    .contact-details-form-wrapper {
        flex-direction: column; 
    }


    /* Services Detail Page Specific Mobile Adjustments */
    .page-header { padding: 30px 15px; margin-bottom: 0; }
    .page-header h1 { font-size: 2.2rem; }
    .page-header p { font-size: 1rem; }

    .service-content-wrapper { flex-direction: column; gap: 25px; }
    .service-image-sidebar { order: -1; margin-bottom: 25px; max-width: 100%; } 
    .service-detail-item h2, .patient-care-section h2 { font-size: 1.9rem; }
    .service-detail-item h3, .patient-care-section h3 { font-size: 1.4rem; }
    .document-download-summary h4 { font-size: 1.1rem; }


    .services-sub-nav {
        top: 0; 
        padding: 10px 0;
    }
     .services-sub-nav .container {
        padding-left: 15px; 
        padding-right: 15px;
    }
    .sub-nav-item {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}
