/* =========================================
   VARIABLES (SCSS-like architecture)
   ========================================= */
:root {
    /* Colors */
    --primary: #0056b3; /* Medical Blue */
    --primary-light: #e6f0fa;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

/* =========================================
   UTILITIES & GRID
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.align-center { align-items: center; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #004494;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo i { font-size: 1.8rem; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.5rem; }

.nav-link { font-weight: 500; }
.nav-link:hover { color: var(--primary); }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: inherit;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover { color: var(--primary); }

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

/* =========================================
   SECTIONS
   ========================================= */
/* Hero */
.hero { padding-top: 120px; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 0.25rem; }
.hero-content .subtitle { font-size: 1.25rem; color: var(--text-muted); font-weight: 400; margin-bottom: 1.5rem; }

/* About */
.max-width-text { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }

/* Services */
.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}
.icon-large {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Profile */
.profile-image img { object-fit: cover; height: 100%; max-height: 400px; width: 100%; }

/* Contact */
.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.contact-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.map-placeholder {
    background: var(--bg-light);
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    color: var(--text-muted);
}
.map-placeholder i { font-size: 3rem; margin-bottom: 1rem; color: var(--border); }

/* =========================================
   IFRAME & APPOINTMENT STYLES
   ========================================= */
.iframe-container {
    position: relative;
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.iframe-container iframe {
    display: block;
    width: 100%;
    /* You can adjust the height based on your form's length */
    min-height: 600px;
}

/* Adjust map iframe specifically since it was in your code */
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (Mobile First approach adjustment)
   ========================================= */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
    
    .mobile-toggle { display: block; }
    
    .nav-menu {
        display: none; /* Hide by default on mobile */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { display: flex; }
    .nav-list { flex-direction: column; width: 100%; text-align: center; }
    .lang-switcher { margin-top: 1rem; }
    
    .hero-content { text-align: center; order: 2; }
    .hero-image { order: 1; }
    .hero-content h1 { font-size: 2rem; }
}