:root {
    --header-height: 85px;
    --footer-height: 60px;
    --primary-color: #1a4d2e;
    --secondary-color: #4f6f52;
    --accent-color: #d4af37;
    --bg-color: #fefaf6;
    --text-color: #2c3333;
    --transition-speed: 0.8s;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Philosopher', sans-serif;
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --footer-height: 50px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow: hidden; 
    width: 100vw;
    height: 100vh;
    position: fixed;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .section-subtitle {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 2px solid var(--accent-color);
}

@media (min-width: 768px) {
    header { padding: 0 4rem; }
}

.branding-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.main-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
    transition: transform 0.3s ease;
}

.branding-container:hover .main-logo {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .main-logo {
        height: 45px;
    }
}

nav ul { display: none; list-style: none; gap: 2.5rem; }
@media (min-width: 768px) { nav ul { display: flex; } }
nav a { text-decoration: none; color: var(--primary-color); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; transition: color 0.3s; }
nav a:hover { color: var(--accent-color); }

.menu-toggle { display: block; background: none; border: none; cursor: pointer; padding: 10px; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--primary-color); margin: 4px 0; border-radius: 2px; }

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {
    .menu-toggle { padding: 12px; }
    .nav-btn { width: 48px; height: 48px; }
    .dot { width: 14px; height: 14px; }
    .close-modal { width: 48px; height: 48px; font-size: 2rem; }
    .uniform-card { min-height: 80px; }
}

.viewport {
    width: 100vw;
    height: 100dvh;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    margin-top: var(--header-height);
    overflow: hidden;
    position: relative;
}

#scroll-container {
    display: flex;
    height: 100%;
    width: fit-content;
    transition: transform var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

section {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    section {
        display: block; /* Better for vertical long content */
        overflow-y: auto;
        padding-bottom: 120px; /* Space for footer and safety */
    }
}

#home { background-image: linear-gradient(rgba(255,250,246,0.88), rgba(255,250,246,0.88)), url('../images/home-bg.jpg'); }
#services { background-image: linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)), url('../images/services-bg.jpg'); }
#practitioners { background-image: linear-gradient(rgba(254,250,246,0.96), rgba(254,250,246,0.96)), url('../images/practitioners-bg.jpg'); }
#contact { background-image: linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)), url('../images/contact-bg.jpg'); }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#home h1 { font-size: clamp(2.5rem, 6vw, 4rem); color: var(--primary-color); margin-bottom: 1.5rem; line-height: 1.1; font-weight: 700; }
#home p { font-size: 1.1rem; color: var(--secondary-color); max-width: 650px; margin: 0 auto; line-height: 1.7; font-weight: 500; }

.uniform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
}

.flex-centered-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 100%;
}

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .clinic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clinic-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.uniform-card {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    align-items: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(26, 77, 46, 0.05);
    backdrop-filter: blur(8px);
    width: 340px;
    cursor: pointer;
    flex-shrink: 0;
}

.uniform-card:hover,
.uniform-card:active {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.12);
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0 40px;
    margin-bottom: -40px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 50;
    display: none; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(26, 77, 46, 0.3);
    transition: all 0.3s;
}

.nav-btn:hover,
.nav-btn:active { background: var(--secondary-color); transform: translateY(-50%) scale(1.1); }
.nav-btn.visible { display: flex; }
.nav-prev { left: -60px; }
.nav-next { right: -60px; }

@media (max-width: 1200px) {
    .nav-prev { left: -20px; }
    .nav-next { right: -20px; }
}

/* Mobile navigation button positioning */
@media (max-width: 768px) {
    .nav-prev { left: 0; }
    .nav-next { right: 0; }
}

.uniform-thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: #f0f4f2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: 0.3s;
}

.uniform-card:hover .uniform-thumbnail {
    border-color: var(--accent-color);
    background: white;
}

.uniform-info h3 { color: var(--primary-color); font-size: 1.05rem; margin-bottom: 4px; text-align: left; font-weight: 700; }
.info-tag { font-family: var(--font-main); font-weight: 700; color: var(--accent-color); font-size: 0.7rem; margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 1.5px; text-align: left; }
.info-desc { font-size: 0.85rem; color: #666; line-height: 1.5; font-weight: 400; text-align: left; }

.section-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 1rem 0 0.8rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 6px;
    font-weight: 700;
}

#doctor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 30, 18, 0.9);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: white;
    max-width: 460px;
    width: 100%;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    animation: modalFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-portrait {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-portrait::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(transparent, rgba(255,255,255,1));
}

.modal-portrait .portrait-img {
    width: 130px;
    height: 130px;
    border-radius: 40px;
    background: white;
    border: 6px solid white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
    z-index: 2;
    transform: translateY(30px);
    font-family: var(--font-heading);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}
.close-modal:hover,
.close-modal:active { background: rgba(255, 255, 255, 1); color: var(--primary-color); }

.modal-info-body { padding: 4rem 2.5rem 2.5rem; text-align: center; }
.modal-info-body h3 { color: var(--primary-color); font-size: 1.6rem; margin-bottom: 10px; font-weight: 700; }

#modal-specialty { 
    text-align: center; 
    display: block; 
    font-size: 1.05rem; 
    margin-bottom: 2rem; 
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-section-title { font-family: var(--font-main); color: var(--accent-color); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 3px; font-weight: 800; margin-bottom: 1rem; display: block; }
.modal-quals { font-size: 0.95rem; line-height: 1.8; color: #555; margin-bottom: 2rem; font-weight: 400; }
.modal-time-badge { background: #f0f4f0; color: var(--primary-color); display: inline-block; padding: 12px 24px; border-radius: 18px; font-size: 0.9rem; font-weight: 700; border: 1px solid rgba(212, 175, 55, 0.4); }

/* Unified Contact Layout */
.contact-layout { 
    display: flex; 
    gap: 2rem; 
    align-items: stretch;
    width: 100%;
    height: 480px; 
}

.contact-details { 
    flex: 1; 
    background: rgba(255,255,255,0.9); 
    padding: 3rem; 
    border-radius: 30px; 
    border: 1px solid rgba(212, 175, 55, 0.2); 
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.map-wrapper {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 50px rgba(26, 77, 46, 0.1);
    width: 50%;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f4f2;
}

.map-placeholder:hover {
    filter: brightness(0.95);
}

.map-placeholder:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: -3px;
}

.map-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f2 0%, #e8ede8 100%);
    color: var(--primary-color);
    padding: 2rem;
}

.map-preview svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.map-preview span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.map-overlay svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    margin-left: 4px;
}

.map-placeholder:hover .map-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

#google-map {
    width: 100%;
    height: 100%;
}

@media (max-width: 850px) { 
    .contact-layout { flex-direction: column; height: auto; } 
    .contact-details, .map-wrapper { width: 100%; flex: none; }
    .map-wrapper { min-height: 300px; }
}

.contact-details h2 { color: var(--primary-color); margin-bottom: 1.5rem; font-size: 2.2rem; font-weight: 700; }
.contact-item { margin-bottom: 1.2rem; }
.contact-item strong { font-family: var(--font-main); color: var(--accent-color); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 4px; font-weight: 800; }
.contact-item p, .contact-item span { font-size: 0.95rem; color: var(--text-color); line-height: 1.5; font-weight: 500; }

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
}

.scroll-indicator {
    position: fixed;
    bottom: 100px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 101;
}

.dot { width: 10px; height: 10px; border: 2px solid var(--accent-color); border-radius: 4px; cursor: pointer; transition: 0.4s; transform: rotate(45deg); }
.dot.active { background: var(--accent-color); transform: scale(1.6) rotate(45deg); }
.dot:hover,
.dot:active { transform: scale(1.4) rotate(45deg); }

.mobile-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 77, 46, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { color: white; font-size: 2.2rem; text-decoration: none; font-family: var(--font-heading); font-weight: 700; }
