/* Global Resets & Typography */
:root {
    --primary-blue: #005A9C;
    --darker-primary-blue: #004A7C;
    --accent-red: #D9534F;
    --light-bg: #FDFDFD;
    --alt-light-bg: #F4F8FC; /* Slightly different light for alternating sections */
    --text-color: #4A4A4A;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 25px rgba(0,0,0,0.12);
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-family: var(--heading-font);
    font-weight: 700; /* Playfair Display is often bold */
    margin-top: 0;
}

.main-headline { font-size: 3em; margin-bottom: 0.5em; line-height: 1.2; }
.sub-headline { font-size: 1.3em; margin-bottom: 1.5em; font-family: var(--body-font); font-weight: 300;}
.section-title { font-size: 2.5em; margin-bottom: 0.8em; text-align: center; position: relative; padding-bottom: 15px; }
.section-title::after { /* Decorative underline for section titles */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: var(--primary-blue); /* Changed from Link Blue for consistency */
    transition: color 0.3s ease, transform 0.2s ease;
}

a.link-styled {
    font-weight: 500;
    color: var(--accent-red);
    position: relative;
}
a.link-styled::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}
a.link-styled:hover::after {
    width: 100%;
}

a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

.section-padding {
    padding: 70px 0; /* Increased padding */
}

.alt-bg {
    background-color: var(--alt-light-bg);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.98); /* Slightly more opaque */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 55px;
    margin-right: 12px;
    border-radius: 0; 
}

.clinic-name {
    font-size: 1.6em;
    font-weight: 700;
    font-family: var(--heading-font); /* Use heading font for clinic name */
    color: var(--darker-primary-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px; /* Increased spacing */
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 500;
    padding: 8px 4px; /* Adjust padding */
    margin: 0 5px; /* Add horizontal margin */
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

.nav-links a.active::after, /* Keep underline for active, make hover more subtle or different */
.nav-links a:hover::after {
    content: '';
    position: absolute;
    width: 70%; /* Adjust width of underline */
    height: 2px;
    bottom: -3px; /* Position underline */
    left: 15%;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}
.nav-links a:not(.active):hover::after {
    width: 50%; /* Smaller underline for non-active hover */
    left: 25%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Easier to tap */
}

.menu-toggle span {
    display: block;
    width: 28px; /* Slightly wider */
    height: 3px;
    background-color: #005A9C;
    margin: 6px 0; /* Increased spacing */
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
}

/* Animated Burger Icon (Optional - JS toggles .open class) */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.full-height-hero {
    min-height: 95vh; /* Slightly less than full to account for header potentially */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    background: linear-gradient(rgba(0, 90, 156, 0.65), rgba(0, 50, 110, 0.85)), url('gallery/WhatsApp Image 2025-06-02 at 12.15.44 PM.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.hero-content h1.main-headline {
    font-size: 3.8em; /* Even larger */
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.hero-content p.sub-headline {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    color: #f0f0f0; /* Slightly off-white for softer look */
}

.btn-hero {
    padding: 18px 40px !important; /* More prominent */
    font-size: 1.1em !important;
}

/* Buttons */
.btn {
    padding: 14px 30px;
    border-radius: 30px; /* Fuller rounding */
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--card-hover-shadow);
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
}

.btn-primary:hover {
    background-color: #C9302C; /* Darker Accent */
    color: #fff;
}

.btn-secondary {
    background-color: var(--alt-light-bg); /* Use alt background */
    color: var(--primary-blue);
    border: 1px solid #B0D7F8; /* Lighter blue border */
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.btn-form {
    width: 100%;
    padding: 15px;
    font-size: 1.05em;
}

/* Card Style */
.card-style {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%; /* Ensure cards in a grid take full height of their cell */
}

.card-style:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-5px);
}

/* About Us Section Specifics */
.about-text {
    text-align: left; /* Or center if preferred for this block */
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px; /* Space before the doctor presentation */
    max-width: 800px; /* Optional: constrain width if it's too wide */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 15px;
}

.doctor-presentation {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Or specify different ratios e.g., 1.2fr 0.8fr */
    gap: 30px;
    align-items: stretch; /* Changed from center to stretch for equal height cards */
    margin-top: 30px;
}

.doctor-info h3 {
    font-size: 1.8em; 
    margin-bottom: 10px;
    color: var(--darker-primary-blue);
}
.doctor-info h4 {
    font-size: 1.4em; 
    margin-bottom: 15px;
    font-family: var(--body-font);
    font-weight: 600;
}
.doctor-info hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.doctor-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1em;
}
.doctor-info p i {
    margin-right: 10px;
    color: var(--primary-blue);
    font-size: 1.2em;
    width: 20px; /* Give icon a fixed width for alignment */
    text-align: center;
}

.doctor-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Reduce padding if image itself is the content */
}

.doctor-image-container img {
    width: 100%;
    max-height: 400px; /* Adjust as needed */
    object-fit: cover; /* Or 'contain' if you don't want cropping */
    border-radius: var(--border-radius-sm);
}

/* Services Section - Slider & Tiles */
.services-slider-container {
    display: flex; /* Arrange tiles in a row */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Hide vertical scrollbar if any */
    padding: 20px 10px; /* Padding around the scrollable area */
    gap: 25px; /* Space between tiles */
    scroll-snap-type: x mandatory; /* Snap scrolling to tiles */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--primary-blue) var(--alt-light-bg); /* For Firefox */
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari) */
.services-slider-container::-webkit-scrollbar {
    height: 8px;
}
.services-slider-container::-webkit-scrollbar-track {
    background: var(--alt-light-bg);
    border-radius: 10px;
}
.services-slider-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 10px;
    border: 2px solid var(--alt-light-bg);
}

.service-tile {
    flex: 0 0 auto; /* Prevent tiles from shrinking, allow them to maintain their width */
    width: 300px; /* Fixed width for each tile */
    height: 380px; /* Fixed height for each tile */
    border-radius: var(--border-radius-md);
    overflow: hidden; /* Crucial for the overlay and image fitting */
    position: relative; /* For positioning content and overlay */
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    scroll-snap-align: start; /* Align tiles to the start of the scroll container */
    background-color: #fff; /* Fallback if image doesn't load / for content area */
}

.service-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.service-tile-image {
    width: 100%;
    height: 100%; /* Image covers the entire tile */
    object-fit: cover; /* Cover the area, cropping if necessary */
    transition: transform 0.5s ease;
}

.service-tile:hover .service-tile-image {
    transform: scale(1.1); /* Subtle zoom on tile hover */
}

.service-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7)); /* Gradient for text readability */
    z-index: 2;
    transition: opacity 0.4s ease; /* Added transition for opacity */
}

.service-tile:hover .service-tile-content {
    opacity: 0; /* Hide the name and its gradient on hover */
}

.service-tile-name {
    font-family: var(--heading-font);
    color: #fff;
    font-size: 1.5em;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.service-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent; /* Changed from blue to transparent */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 3;
    text-align: center;
}

.service-tile:hover .service-tile-overlay {
    opacity: 1;
    visibility: visible;
    /* No background color change needed here, it's already transparent */
}

.service-tile-description {
    font-family: var(--body-font);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7); /* Added/Enhanced text shadow for readability */
}

/* Gallery Page Styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden; /* Ensures images conform to border radius */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Crop images to fit, maintaining aspect ratio */
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Scroll Reveal / Animation Helpers */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section Specifics for Single Page */
.contact-grid-single-page {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Give more space to form */
    gap: 40px;
    align-items: stretch; /* Changed from flex-start for better height matching */
}

.contact-details-sp h3, .contact-form-container-sp h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--darker-primary-blue);
}

.contact-details-sp p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.6;
}

.contact-details-sp p i {
    margin-right: 12px;
    color: var(--primary-blue);
    font-size: 1.3em; /* Slightly larger icon */
    width: 22px; 
    text-align: center;
}

.contact-details-sp hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.contact-details-sp h4 { /* For "Consultation Hours:" */
    font-size: 1.2em;
    font-family: var(--body-font);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.contact-details-sp small {
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 10px;
}

/* Form Styling */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--primary-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DDE6ED; /* Softer border */
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    font-family: var(--body-font);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form ::placeholder {
    color: #9AAAB9; /* Corrected Light placeholder text */
    font-style: italic;
    font-size: 0.95em;
}

/* Booking iframe styling */
.booking-iframe-container {
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.booking-iframe-container iframe {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* Footer */
footer {
    background-color: var(--darker-primary-blue);
    color: #EAEAEA;
    padding: 50px 0 0; /* Padding top, bottom will be from footer-bottom */
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--heading-font);
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-logo-link {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo {
    height: 50px;
    margin-right: 10px;
}

.footer-clinic-name {
    font-size: 1.5em;
    font-weight: 700;
    font-family: var(--heading-font);
    color: #fff;
}

.footer-tagline {
    font-style: italic;
    color: #B0D7F8; /* Light blue from palette */
    font-size: 0.95em;
    margin-top: 5px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.7;
    display: flex; /* For icon alignment */
    align-items: flex-start; /* Align icon with start of text */
}

.footer-col p i {
    margin-right: 10px;
    color: var(--accent-red); /* Use accent for icons */
    font-size: 1.1em;
    margin-top: 4px; /* Adjust icon vertical alignment */
    min-width: 16px; /* Ensure icons have some space */
}

.footer-col a {
    color: #B0D7F8; /* Lighter blue for links */
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-quicklinks ul, .footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-quicklinks li, .footer-services li {
    margin-bottom: 10px;
}

.footer-services li {
    font-size: 0.95em;
    color: #C0C0C0; /* Slightly lighter than main footer text for list items */
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #004A7C; /* Darker shade of primary for separator */
    margin-top: 30px; /* Space above the bottom bar */
    font-size: 0.85em;
}

.footer-bottom p {
    margin: 0;
    color: #A0A0A0;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #C9302C;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }
    
    .container {
        width: 95%;
    }
}

/* Responsive Design */
@media (max-width: 992px) { /* Tablet and below */
    .main-headline { font-size: 2.8em; }
    .section-title { font-size: 2.2em; }
    /* .about-content no longer exists in this form */
    .doctor-presentation {
        grid-template-columns: 1fr; /* Stack doctor info and image */
    }
    .doctor-image-container {
        margin-top: 30px; /* Add space when stacked */
        max-height: 350px; /* Adjust for mobile */
    }
    .doctor-info { margin-top: 0; } /* Reset from previous general rule if any */
    .contact-grid-single-page {
        grid-template-columns: 1fr; /* Stack contact sections on smaller screens */
    }
} 