:root {
    --primary-color: #1e3d59;     /* Deep blue */
    --secondary-color: #ff6e40;   /* Accent color for CTAs */
    --cream-color: #ffefd5;       /* Soft cream background */
    --cream-color-rgb: 255, 239, 213; /* RGB values for cream color */
    --light-blue: #17c3b2;        /* Light blue for highlights */
    --text-dark: #2b2b2b;         /* Dark text color */
    --text-light: #ffffff;        /* Light text color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Keep some gap so logo and nav don't overlap */
.nav-container {
    gap: 1rem;
}

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap; /* ensure logo text stays on one line */
}

.logo-img {
    display: inline-block;
    vertical-align: middle;
    height: 34px;
    max-width: 140px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto; /* push nav to the right */
    flex-shrink: 1; /* allow nav to shrink if space is tight */
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-top: 0; /* ensure header does not overlap hero */
    padding-top: 100px; /* space for fixed header */
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slideshow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 61, 89, 0.6), rgba(30, 61, 89, 0.6));
    z-index: 0; /* keep overlay behind hero content */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Doctors Section Styles */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns for the two doctors */
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.doctor-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-image {
    /* remove fixed container so full images can display */
    height: auto;
    overflow: visible;
    background: transparent;
    width: 100%;
    flex: 0 0 auto;
}

.doctor-image img {
    /* Show full image, responsive to container width */
    width: 100%;
    height: auto; /* preserve natural aspect ratio */
    object-fit: contain;
    display: block;
    transition: transform 0.12s ease, opacity 120ms ease;
    margin: 0 auto;
}

.doctor-card:hover .doctor-image img {
    transform: none; /* disable zoom on hover so full image remains visible */
}

/* ensure doctor info sits below the image */
.doctor-info {
    order: 2;
}

/* Doctor info under the image and centered */
.doctor-info {
    padding: 0.9rem 1rem 1.25rem;
    text-align: center;
}

@media (max-width: 768px) {
    .doctors-grid { grid-template-columns: 1fr; }
    /* Let images keep their natural height on small screens so they push
       the info block down instead of overflowing and overlapping text. */
    .doctor-image { height: auto; overflow: visible; }
    /* Ensure the card stretches full width and info sits below the image */
    .doctor-card { align-items: stretch; }
    .doctor-info { padding: 1rem; }
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.specialty {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.credentials {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doctor-contact {
    margin-top: 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column; /* center text since hero image removed */
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 1rem;
    position: relative;
    z-index: 2; /* ensure hero content sits above slideshow */
}

.hero-text {
    width: 100%;
    max-width: 900px;
}

/* Keep hero-image block in case used elsewhere, but hide it here */
.hero-image {
    display: none;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.02;
    margin-bottom: 0.8rem;
    color: var(--cream-color); /* stronger contrast than pure white */
    text-transform: none;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.hero-de {
    color: var(--light-blue);
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 4.4rem;
}

.hero-sub {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.95);
    margin-top: 0.4rem;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    color: rgba(255,255,255,0.95);
    text-align: center;
}

/* CTA center styling */
.cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.btn.cta {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(30,61,89,0.18);
    transform-origin: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn.cta:active,
.btn.cta.pop {
    transform: scale(0.96);
}

/* Attention animation */
@keyframes ctaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.btn.cta.attention {
    animation: ctaPulse 2.2s ease-in-out infinite;
}

/* Modal button adjustments for more options */
.modal .btn {
    padding: 0.6rem 0.9rem;
}
/* Section Backgrounds - use gradients so backgrounds work even if images are missing */
#services {
    background: linear-gradient(135deg, var(--cream-color) 0%, #fff5e6 100%);
    position: relative;
}

#equipment {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7f4 100%);
    position: relative;
}

#laboratory {
    background: linear-gradient(135deg, var(--cream-color) 0%, #fff5e6 100%);
    position: relative;
}

#booking {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7f4 100%);
    position: relative;
}

/* Add some depth to cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

@keyframes floatIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Card Styles */
.card {
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
}

/* Modal styles for service chooser */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: #ffffff;
    color: var(--text-dark);
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    width: 95%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

/* modal entrance animation */
@keyframes modalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.995); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal[aria-hidden="false"] .modal-content {
    animation: modalIn 260ms cubic-bezier(.2,.9,.2,1);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
    justify-items: stretch;
    margin-top: 1rem;
}

.modal .btn {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    background: #f3f3f3;
    color: var(--text-dark);
}

.modal .btn.btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* small icon sizing in modal buttons */
.modal .btn i,
.modal-actions .btn i{
    font-size: 1.05rem;
    line-height: 1;
}

/* prevent background scroll when modal open */
body.modal-open{
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero {
        text-align: center;
        padding: 0 1rem;
    }


    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-de {
        font-size: 2.6rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
}

/* Footer map styles */
.footer .grid.footer-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}
.footer .footer-left h4 {
    margin-top: 0.6rem;
}
.footer .footer-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    .footer .grid.footer-grid { grid-template-columns: 1fr; }
    .footer .footer-map iframe { height: 200px; }
}


