:root {
    --primary-color: #2a7de1;
    --secondary-color: #1a5dab;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --subtle-grey: #e9ecef;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- LOADER (FAILSAFE) --- */
@keyframes fadeOutLoader { to { opacity: 0; pointer-events: none; } }
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; display: flex; justify-content: center; align-items: center;
    z-index: 9999; animation: fadeOutLoader 0.5s ease-out 0.5s forwards;
}
.loader {
    width: 60px; height: 60px; border: 5px solid var(--subtle-grey);
    border-top: 5px solid var(--primary-color); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- PROGRESS BAR --- */
.progress-bar {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: var(--primary-color); z-index: 9998;
    transition: width 0.2s ease-out;
}

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--subtle-grey); color: var(--dark-color);
    padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: all 0.3s ease;
}
.header-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--dark-color); }
.logo span { color: var(--primary-color); }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav a { color: var(--dark-color); text-decoration: none; transition: color 0.3s ease; font-weight: 500; position: relative; padding: 0.5rem 0; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; }
nav a:hover { color: var(--primary-color); }
nav a:hover::after { width: 100%; }
.mobile-menu { display: none; background: none; border: none; color: var(--dark-color); font-size: 1.5rem; cursor: pointer; }
header .logo {
  text-decoration: none !important;
}

/* --- HERO --- */
.hero {
    background-color: var(--light-color); height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--dark-color); position: relative; overflow: hidden;
    border-bottom: 1px solid var(--subtle-grey);
}
.hero-bg-network {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="%23e9ecef"><circle cx="20" cy="20" r="1.5"/><circle cx="80" cy="80" r="1.5"/><circle cx="50" cy="50" r="1.5"/><circle cx="20" cy="80" r="1.5"/><circle cx="80" cy="20" r="1.5"/></g><path d="M20 20l30 30-30 30m60-60L50 50l30 30" stroke="%23e9ecef" stroke-width="1.5" fill="none" /></svg>');
    opacity: 0.5; animation: backgroundFloat 30s linear infinite;
}
@keyframes backgroundFloat { from { transform: translate(0, 0); } to { transform: translate(100px, 100px); } }
.hero-content { position: relative; z-index: 2; padding: 0 1rem; }
.hero-content h1, .hero-content p, .hero-content .cta-button {
    opacity: 0; animation: initial-fade-in 1s ease-out 0.7s forwards;
}
.hero-content p { animation-delay: 0.9s; }
.hero-content .cta-button { animation-delay: 1.1s; }
@keyframes initial-fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content h1 { font-size: 3.8rem; margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.hero-content p { font-size: 1.3rem; max-width: 900px; margin: 0 auto 2.5rem auto; font-weight: 300; color: #555; }
.cta-button { background-color: var(--primary-color); color: white; padding: 1rem 2.5rem; border: none; border-radius: 50px; font-size: 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(42, 125, 225, 0.3); }
.cta-button:hover { background-color: var(--secondary-color); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(42, 125, 225, 0.4); }

/* --- SECTIONS & ANIMATIONS --- */
.section { padding: 6rem 0; position: relative; }
.section-light { background-color: #ffffff; }
.section-grey { background-color: var(--light-color); }
.section-dark { background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%); color: white; }
.section h2 { font-size: 2.8rem; margin-bottom: 1.5rem; text-align: center; font-weight: 700; position: relative; letter-spacing: -0.5px; }
.section-dark h2 { color: white; }
.section h2::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 70px; height: 3px; background: var(--primary-color); border-radius: 2px; }
.section-intro { text-align: center; font-size: 1.15rem; margin-bottom: 4rem; color: #666; max-width: 800px; margin-left: auto; margin-right: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.slide-up { transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-up.is-animatable { opacity: 0; transform: translateY(40px); }
.slide-up.is-animatable.visible { opacity: 1; transform: translateY(0); }

/* --- OTHER STYLES --- */
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; margin-top: 4rem; }
.doctor-card { background: white; padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.07); text-align: left; }
.doctor-photo { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.doctor-card h3 { color: var(--dark-color); font-size: 1.5rem; margin-bottom: 0.5rem; }
.doctor-card p.title { font-weight: 600; color: var(--primary-color); margin-bottom: 1rem; }
.doctor-card .philosophy { font-style: italic; color: #555; padding-left: 1rem; border-left: 3px solid var(--subtle-grey); }
.approach-text h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--secondary-color); }
.tech-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.tech-feature { background: white; padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.07); text-align: center; }
.tech-feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.tech-feature h4 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--dark-color); }
.conditions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.condition-card { background: var(--light-color); padding: 2rem; border-radius: 15px; border: 1px solid var(--subtle-grey); }
.condition-card h4 { color: var(--secondary-color); margin-bottom: 1rem; font-size: 1.3rem; }
.condition-card ul { list-style: none; padding: 0; }
.condition-card li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; color: #555; }
.condition-card li:before { content: "✓"; color: var(--primary-color); font-weight: bold; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 1000px; margin: 3rem auto 0 auto; }
.stat-item h3 { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 0.5rem; font-weight: 700; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.testimonial-card { background: white; padding: 2.5rem; border-radius: 15px; border-left: 5px solid var(--primary-color); box-shadow: 0 10px 40px rgba(0,0,0,0.07); }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 1rem; }
.testimonial-card .patient-name { font-weight: bold; color: var(--secondary-color); text-align: right; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.contact-card { background: var(--light-color); padding: 2rem; border-radius: 15px; border: 1px solid var(--subtle-grey); }
.contact-card h4 { color: var(--dark-color); margin-bottom: 1rem; font-size: 1.3rem; display: flex; align-items: center; }
.contact-card h4 span { font-size: 1.8rem; margin-right: 10px; color: var(--primary-color); }
footer { background: var(--dark-color); color: white; text-align: center; padding: 3rem 0; }
footer p { opacity: 0.8; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .section { padding: 4rem 0; }
    .section h2 { font-size: 2rem; }
    .approach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
        height: 60px;
    }
    .header-content { 
        padding: 0 1rem;
        height: 100%;
    }
    .section {
        padding: 3rem 0;
        padding-top: 30px !important;
        margin-top: -60px;
    }
    .hero {
        display: flex !important;
        padding-top: 60px;
        margin-top: 0;
        box-sizing: border-box;
        height: 110vh !important;
        min-height: auto;
        position: relative;
        align-items: center !important;
        padding-bottom: 2rem;
    }
    .hero-content {
        position: relative;
        padding-top: 3rem;
        padding-bottom: 8rem;
        z-index: 2;
        width: 100%;
    }
    nav ul { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: white; 
        flex-direction: column; 
        padding: 0.25rem;
        border-bottom: 1px solid var(--subtle-grey); 
    }
    nav ul.active { display: flex; }
    nav ul li { 
        margin: 0.25rem 0;
        text-align: center; 
        font-size: 1rem;
        line-height: 1.2;
    }
    nav a { 
        padding: 0.25rem 0; /* Reduced padding */
        font-size: 1rem; /* Reduced font size */
    }
    .mobile-menu { display: block; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.2rem; }
    .container { padding: 0 1.5rem; }
    .section { padding: 3rem 0; }
}
/* --- Floating Buttons --- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row; /* Stack horizontally */
    gap: 20px; /* Increased the gap from 10px to 20px */
}

.whatsapp-button, .call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background-color: transparent; 
    border: 0px solid #000; 
    animation: pulse 3s infinite, floatUp 1s ease-out forwards;
    animation-delay: 3s; 
    opacity: 0; 
    transform: translateY(60px); 
}

.whatsapp-icon, .call-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-button:hover, .call-button:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 30, 30, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(85, 85, 85, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(60px); 
    }
    100% {
        opacity: 1;
        transform: translateY(0); 
    }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform .3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
  color: var(--dark-color);
}

.blog-content p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.5;
}
.journey-steps { list-style: none; counter-reset: step; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #f8f9fa;
}
.step .icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.step h4 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.step p  { margin: 0; color: #555; line-height: 1.5; }

#faq .accordion {
  max-width: 800px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.accordion-item {
  border-bottom: 1px solid var(--subtle-grey);
  margin-bottom: 0.5rem;
}

.accordion-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.15rem;           
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.3s;
  list-style: none;             
  outline: none;
}

.accordion-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary-color);
}

.accordion-item[open] summary::after {
  content: '−';
}

.accordion-item summary:hover {
  color: var(--primary-color);
}

.accordion-item[open] summary {
  color: var(--secondary-color);
}

.accordion-item p,
.accordion-item ul {
  padding: 0 0 1.5rem 0;
  margin: 0;
  font-size: 1.05rem;           
  line-height: 1.7;
  color: #555;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}
