:root {
    --primary-color: #000000;
    --background-color: #FFFFFF;
    --accent-blue: #507892;
    --accent-dark: #1C1C1C;
    --accent-light: #E3F2F3;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 300; /* Light */
    color: var(--primary-color);
    line-height: 1.6;
    background-color: var(--background-color);
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 70px; /* Space for floating button on mobile */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--background-color);
    color: var(--accent-dark);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 10px rgba(0, 255, 225, 0.05);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

header.header-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    min-height: 70px;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    max-height: 70px;
    width: auto;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    width: 30px;
    height: 24px;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-dark);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.nav-links {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links.active {
    visibility: visible;
    opacity: 1;
}

.nav-links li {
    padding: 1.5rem;
    border-bottom: none;
    width: 100%;
}

.nav-links a {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 2px;
}

.alt-bg {
    background-color: var(--accent-light);
}

/* Welcome Section */
#welcome {
    text-align: left;
    padding-top: 80vw;
    padding-bottom: 5rem;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0) 55vw, rgba(255,255,255,1) 90vw), url('images/baby_top_shot_compressed.jpg');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
}

.welcome-content h2 {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.welcome-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 2rem;
}

.welcome-content p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.team-member {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--accent-blue);
}

.team-member h4 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 600;
}

.qualifications {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 400;
}

.specialty {
    font-weight: 600;
    color: var(--accent-dark);
}

/* Opening Hours */
.subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-top: -1.5rem;
    color: #666;
}

.hours-table {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 0.8rem 0.8rem;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.0rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    font-weight: 700;
    width: 15%;
    color: var(--accent-blue);
}

.hours-row .time {
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hours-row .time:nth-child(2) {
    width: 35%;
}

.hours-row .time:nth-child(3),
.hours-row .time:nth-child(4) {
    width: 22%;
}

/* .hours-row .time:not(:empty)::before {
    content: "•";
    color: var(--accent-dark);
    font-size: 0.5em;
    margin-right: 4px;
    line-height: 1;
} */

.hours-row.header-row {
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.hours-row.header-row .time::before {
    content: none;
}

.hours-notes {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: left;
    font-size: 0.9rem;
}

.hours-notes .note {
    margin-bottom: 0.5rem;
    color: #000000;
}

/* Opening Hours Header */
.opening-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.sun-img-wrapper img {
    width: 210px;
    height: auto;
    display: block;
}

.opening-titles .section-title {
    margin-bottom: 0.5rem;
}

.opening-titles .subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-card h3 {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.contact-card a {
    color: var(--accent-blue);
    font-weight: 600;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: calc(100% + 60px);
    border: 0;
    margin-top: -59px;
}

/* Footer */
footer {
    background-color: var(--accent-dark);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    padding-bottom: 5rem; /* Space for floating button */
}

/* Floating Call Button */
.floating-call-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    width: auto;
    height: auto;
    pointer-events: none; /* Allow clicks through empty space */
}

.floating-call-bar * {
    pointer-events: auto; /* Re-enable clicks on children */
}

.call-now-btn {
    position: relative;
    z-index: 2002;
    background-color: #25d366; /* Old school green */
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.call-now-btn:hover {
    transform: none;
    background-color: #20bd5a;
}

.call-now-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.clinic-list {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
    transform-origin: bottom right;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    visibility: visible;
    z-index: 2001;
}

.clinic-list.hidden {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    pointer-events: none;
}

.clinic-list a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--accent-dark);
    text-align: center;
    font-weight: 600;
    display: block;
}

.clinic-list a:hover {
    background-color: var(--accent-light);
}

.clinic-list a:last-child {
    border-bottom: none;
}

/* Desktop Styles */


@media (min-width: 824px) {
    .opening-header {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .opening-titles {
        text-align: left;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hours-row {
        font-size: 1.2rem;
    }

    .hours-notes {
        font-size: 1.1rem;
    }
}

@media (min-width: 1068px) {
    body {
        padding-bottom: 0;
    }

    .mobile-menu-btn {
        display: none;
    }

    .header-container {
        justify-content: space-between;
        align-items: center;
        min-height: 80px;
    }

    .logo {
        position: static; /* Let it flow naturally */
        transform: none;
        left: auto;
        margin-right: auto; /* Push everything else to the right, just in case */
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        box-shadow: none;
        height: auto;
        visibility: visible;
        opacity: 1;
        justify-content: flex-end; /* Align nav items to the right */
        margin-left: auto; /* Push nav to the right */
    }

    .nav-links li {
        border-bottom: none;
        padding: 0 1.5rem;
        width: auto;
    }
    
    .nav-links li:last-child {
        padding-right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .logo-image {
        max-height: 80px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem; /* Increased gap */
    }

    .team-member {
        padding: 2rem; /* Increased padding inside card */
    }    .welcome-content h2 {
        font-size: 3rem;
    }

    .welcome-content h3 {
        font-size: 1.8rem;
    }

    .welcome-content p {
        font-size: 1.3rem;
    }
    
    .team-member h3 {
        font-size: 1.3rem;
    }

    .team-member h4 {
        font-size: 1.2rem;
    }
    
    .qualifications {
        font-size: 1.2rem;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .contact-card p, .contact-card a {
        font-size: 1.2rem;
    }

    .opening-titles .subtitle {
        font-size: 1.5rem;
    } 

    .hours-row {
        font-size: 1.4rem;
    }

    .hours-row.header-row {
        font-size: 1.4rem;
    }

    .hours-notes {
        font-size: 1.3rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem; /* Increased gap */
    }
    
    /* Hide floating button on desktop */
    .floating-call-bar {
        display: none;
    }

    /* Restore Welcome Section for Desktop */
    #welcome {
        padding-top: 5rem;
        background-image: linear-gradient(to right, rgba(255,255,255,0) 30%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%), url('images/baby_top_shot_compressed.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 80vh;
    }

    .welcome-content {
        width: 50%;
        margin-left: auto;
        padding-left: 5rem;
    }
    
    footer {
        padding-bottom: 2rem;
    }
}