/* --- VARIABLES --- */
:root {
    /* Colors */
    --primary: #0F766E;      /* Teal 700 - Medical trustworthy color */
    --primary-light: #14B8A6;/* Teal 500 */
    --primary-dark: #0F5A54;
    --secondary: #F59E0B;    /* Amber 500 for attention/warmth */
    
    --bg-main: #FAFAFA;
    --bg-secondary: #F0FDF4; /* Very light green tint */
    --surface: #FFFFFF;
    
    --text-main: #1F2937;    /* Gray 800 */
    --text-muted: #6B7280;   /* Gray 500 */
    --text-light: #F9FAFB;   /* Gray 50 */
    
    --border: #E5E7EB;       /* Gray 200 */

    /* Typography */
    --font-family: 'Outfit', sans-serif;
    
    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-color: 0 20px 25px -5px rgba(20, 184, 166, 0.1), 0 8px 10px -6px rgba(20, 184, 166, 0.1);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed header */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mt-4 { margin-top: 2rem; }

/* --- TYPOGRAPHY & UTILS --- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(20, 184, 166, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.highlight-light {
    color: var(--surface);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--surface);
    backdrop-filter: blur(4px);
}

.section {
    padding: 6rem 5%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    box-shadow: 0 4px 14px 0 rgba(15, 118, 110, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-light {
    background-color: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 5%;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo ion-icon {
    font-size: 2rem;
}

.navbar nav ul {
    display: flex;
    gap: 2rem;
}

.navbar nav a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    gap: 2rem;
    background: radial-gradient(circle at top left, var(--bg-secondary) 0%, transparent 50%),
                radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--radius-lg);
    width: 80%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-color);
    z-index: 2;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    z-index: 1;
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

.floating-card ion-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.top-left {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.bottom-right {
    bottom: 10%;
    right: 0;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

.service-link ion-icon {
    transition: transform 0.3s;
}

.service-link:hover ion-icon {
    transform: translateX(5px);
}

/* --- ABOUT SECTION --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 2rem;
    border-radius: var(--radius-full);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--bg-main);
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.about-content {
    flex: 1;
}

.features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
}



/* --- REVIEWS SECTION --- */
.reviews {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    overflow: hidden;
    position: relative;
    padding: 8rem 5%;
}

.review-bg-elements .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -100px;
}

.reviews h2, .reviews p {
    color: rgba(255, 255, 255, 0.9);
}

.review-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 2rem;
    right: 3rem;
}

.stars {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.review-text {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    font-size: 1.125rem;
}

.author-info span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- CONTACT SECTION --- */
.contact-container {
    display: flex;
    gap: 4rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 4rem;
}

.contact-info-panel {
    flex: 1;
}

.info-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item .icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.primary-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.contact-map-panel {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-marker {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    position: relative;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* --- FOOTER --- */
footer {
    background: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* --- ANIMATIONS (Micro-interactions) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .experience-badge {
        bottom: 10px;
        right: 10px;
        width: 120px;
        height: 120px;
        padding: 1rem;
    }
    
    .experience-badge .number {
        font-size: 1.75rem;
    }
    
    .contact-container {
        flex-direction: column;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        display: none;
        flex-direction: column;
        text-align: center;
    }
    
    .navbar nav.open {
        display: flex;
    }
    
    .navbar nav ul {
        flex-direction: column;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-btn {
        display: none;
    }

    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
