/* --- General Setup & Variables --- */
:root {
    --primary-color: #206A83; /* A sophisticated, deep teal */
    --secondary-color: #16495B; /* A darker teal for hover states */
    --accent-color: #F5A623; /* A warm, vibrant orange/gold */
    --bg-color-light: #FDFBF8; /* A very light, warm beige */
    --bg-color-white: #FFFFFF;
    --bg-color-dark: #2C3E50; /* Dark charcoal blue */
    --text-color-dark: #34495E; /* Dark blue-gray for text */
    --text-color-light: #ECF0F1;
    --text-color-secondary: #7F8C8D;
    --border-color: #EAEAEA;
    --shadow-color: rgba(44, 62, 80, 0.1);
    --font-family: 'Montserrat', sans-serif;
    --font-family-special: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 5rem 0; }
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 1rem; color: var(--text-color-dark); }
.section-subtitle { font-size: 1.1rem; text-align: center; color: var(--text-color-secondary); margin-bottom: 3.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 14px 0 rgba(32, 106, 131, 0.39);
}
.btn:hover { background-color: var(--secondary-color); transform: translateY(-3px); box-shadow: 0 6px 20px 0 rgba(32, 106, 131, 0.45); }

/* --- PRELOADER STYLES --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color-white); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.75s ease, visibility 0.75s ease; }
.spinner { width: 50px; height: 50px; border: 5px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-content { opacity: 0; transition: opacity 0.75s ease-in-out; }
body.loaded .preloader { opacity: 0; visibility: hidden; }
body.loaded .site-content { opacity: 1; }

/* --- SECTION 1: HERO & NAVBAR --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background-image: linear-gradient(90deg, rgba(253, 251, 248, 0.95) 0%, rgba(253, 251, 248, 0.8) 50%, transparent 100%), url('hero.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    color: var(--text-color-dark);
}

#navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.3s ease-in-out; background: transparent; }
#navbar.scrolled { background: var(--bg-color-white); box-shadow: 0 2px 10px var(--shadow-color); }
.nav-container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; transition: padding 0.3s ease-in-out; }
#navbar.scrolled .nav-container { padding: 1rem 0; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-color-dark); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-color-secondary); font-weight: 600; font-size: 1rem; transition: color 0.3s; position: relative; padding-bottom: 5px; }
.nav-links a:hover { color: var(--primary-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary-color); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.btn-nav { padding: 10px 24px; }
.menu-toggle { display: none; }

.hero-content { flex-grow: 1; display: flex; align-items: center; width: 90%; max-width: 1200px; margin: 0 auto; gap: 2rem; }
.content-left { flex: 1; max-width: 600px; }
.content-right { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.intro-text { font-size: 1rem; font-weight: 600; display: flex; align-items: center; color: var(--primary-color); }
.intro-text i { margin-right: 0.75rem; }
h1 { font-size: 3.8rem; font-weight: 700; line-height: 1.2; margin: 1rem 0 2rem 0; }
.description-text { color: var(--text-color-secondary); max-width: 480px; line-height: 1.7; }
.filter-buttons { margin: 2rem 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-color-secondary); padding: 0.6rem 1.3rem; border-radius: 50px; cursor: pointer; transition: all 0.3s; font-weight: 500; }
.filter-btn.active, .filter-btn:hover { background-color: var(--primary-color); color: var(--text-color-light); border-color: var(--primary-color); }

.card-implant { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(222, 226, 230, 0.5); border-radius: 20px; padding: 2rem; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 8px 32px 0 var(--shadow-color); width: 300px; }
.card-implant p { margin: 0 0 1.5rem 0; font-weight: 500; line-height: 1.6; }
.btn-learn-more { text-decoration: none; color: var(--primary-color); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; transition: gap 0.3s; }
.btn-learn-more:hover { gap: 0.8rem; }

/* --- SECTION 2: OFFER BANNER --- */
.offer-section { background: linear-gradient(45deg, var(--secondary-color), var(--primary-color)); color: var(--text-color-light); }
.offer-container { text-align: center; padding: 4rem 1rem; }
.offer-tag { display: inline-block; background: var(--accent-color); color: var(--text-color-dark); padding: 0.5rem 1rem; border-radius: 50px; font-weight: 700; margin-bottom: 1rem; }
.offer-content h2 { font-size: 2.5rem; margin: 0 0 1rem 0; }
.offer-subtitle { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; opacity: 0.9; }
.btn-offer { background: var(--bg-color-white); color: var(--primary-color); }
.btn-offer:hover { background: var(--accent-color); color: var(--text-color-dark); }
.terms { margin-top: 1.5rem; font-size: 0.8rem; opacity: 0.7; }

/* --- SECTION 3: METRICS --- */
.metrics-section .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.metric-item { text-align: center; }
.metric-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.metric-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--text-color-dark); }
.metric-label { font-size: 1rem; color: var(--text-color-secondary); }

/* --- SECTION 4: ABOUT --- */
.about-section { background-color: var(--bg-color-white); }
.about-container { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px var(--shadow-color); }
.about-content { flex: 1; min-width: 300px; }
.about-content .section-title { text-align: left; }
.about-content p { line-height: 1.8; margin-bottom: 2rem; color: var(--text-color-secondary); }

/* --- SECTION 5: TESTIMONIALS --- */
.testimonials-section { background-color: var(--bg-color-light); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--bg-color-white); padding: 2rem; border-radius: 10px; border: 1px solid var(--border-color); }
.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.testimonial-header img { width: 60px; height: 60px; border-radius: 50%; }
.reviewer-info h4 { margin: 0 0 0.25rem 0; font-size: 1.1rem; }
.rating { color: var(--accent-color); }
.testimonial-card p { font-style: italic; line-height: 1.7; margin: 0; color: var(--text-color-secondary); }

/* --- SECTION 6: GALLERY --- */
.gallery-section { background-color: var(--bg-color-white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.gallery-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; transition: transform 0.3s, box-shadow 0.3s; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- SECTION 7: TREATMENTS --- */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.treatment-card { background: var(--bg-color-white); padding: 2rem; border: 1px solid var(--border-color); border-radius: 10px; text-align: center; transition: all 0.3s; position: relative; }
.treatment-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); border-color: var(--primary-color); }
.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: #e9f8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}
.icon-wrapper svg { width: 28px; height: 28px; stroke: var(--primary-color); }
.treatment-card h3 { font-size: 1.3rem; margin: 0 0 0.5rem 0; color: var(--text-color-dark); }
.treatment-card p { color: var(--text-color-secondary); margin-bottom: 1.5rem; }
.arrow-link {
    text-decoration: none;
    color: var(--text-color-secondary);
    font-weight: 600;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    transition: all 0.3s;
}
.treatment-card:hover .arrow-link {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* --- SECTION 8: SPOTLIGHT --- */
.spotlight-section { background-color: var(--bg-color-white); }
.spotlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-item { border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; transition: all 0.3s; }
.news-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--shadow-color); }
.news-item img { width: 100%; height: 200px; object-fit: cover; }
.news-item span { display: block; padding: 1rem; font-weight: 600; text-align: center; }

/* --- SECTION 9: FEATURED SERVICE (CBCT) --- */
.featured-service-section { background-color: var(--bg-color-light); }
.featured-service-container { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.featured-image { flex: 1; min-width: 300px; }
.featured-image img { width: 100%; border-radius: 15px; }
.featured-content { flex: 1; min-width: 300px; }
.tagline { color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; }
.featured-content h2 { font-size: 2.8rem; margin: 0.5rem 0 1.5rem; }
.featured-content p { line-height: 1.7; margin-bottom: 2rem; color: var(--text-color-secondary); }

/* --- SECTION 10: CORE VALUES --- */
.core-values-section .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.value-item { text-align: center; }
.value-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.value-item h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; line-height: 1.6; color: var(--text-color-secondary); }

/* --- SECTION 11: CTA BANNER --- */
.cta-section { background: var(--bg-color-dark); color: var(--text-color-light); text-align: center; }
.cta-section .container { padding: 5rem 1rem; }
.cta-section h2 { font-size: 2.2rem; }
.cta-section p { color: var(--text-color-secondary); margin: 1rem 0 2rem; }
.btn-cta { background-color: var(--accent-color); color: var(--text-color-dark); }
.btn-cta:hover { background-color: var(--bg-color-white); }

/* --- SECTION 12: APPOINTMENT FORM --- */
.appointment-section { background-color: var(--bg-color-white); }
.form-container { max-width: 800px; margin: 0 auto; background: var(--bg-color-white); border-radius: 15px; box-shadow: 0 10px 40px var(--shadow-color); border: 1px solid var(--border-color); overflow: hidden; }
.form-steps { display: flex; justify-content: space-between; padding: 2rem 2rem 1.5rem; }
.step { display: flex; flex-direction: column; align-items: center; color: var(--text-color-secondary); position: relative; }
.step-number { width: 36px; height: 36px; line-height: 36px; border-radius: 50%; background: var(--bg-color-light); border: 1px solid var(--border-color); color: var(--text-color-secondary); text-align: center; font-weight: 600; transition: all 0.3s; }
.step-label { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 500; }
.step.active .step-number { background: var(--primary-color); color: var(--text-color-light); border-color: var(--primary-color); }
.step.active .step-label { color: var(--text-color-dark); }
.step-connector { flex-grow: 1; height: 2px; background: var(--border-color); margin: 18px 0; }
.form-content-wrapper { padding: 2.5rem; border-top: 1px solid var(--border-color); }
.form-content { display: none; }
.form-content.active { display: block; }
.form-content h4 { text-align: center; margin: 0 0 2rem 0; font-size: 1.5rem; }
.branch-selection, .treatment-selection { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.branch-btn, .treatment-btn { padding: 1rem 2rem; border: 2px solid var(--border-color); background: transparent; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-weight: 600; font-size: 1rem; }
.branch-btn.active, .branch-btn:hover, .treatment-btn.active, .treatment-btn:hover { border-color: var(--primary-color); background-color: #e9f8f5; color: var(--primary-color); }
.btn-next { display: block; margin: 0 auto; }
.form-input { width: 100%; padding: 1rem; margin-bottom: 1rem; border-radius: 8px; border: 1px solid var(--border-color); font-size: 1rem; box-sizing: border-box; }

/* --- SECTION 13: WHY CHOOSE US --- */
.why-choose-us-section { background-color: var(--bg-color-white); }
.why-choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.why-item { background: var(--bg-color-light); padding: 2rem; border-radius: 10px; text-align: center; border: 1px solid var(--border-color); }
.why-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.why-item h4 { font-size: 1.2rem; }
.why-item p { color: var(--text-color-secondary); line-height: 1.6; }

/* --- SECTION 14: FAQS --- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem 1rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: var(--primary-color); }
.faq-question::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-answer p { padding: 0 1rem 1.5rem; line-height: 1.7; color: var(--text-color-secondary); }

/* --- SECTION 15: FOOTER --- */
.footer-section { background: var(--bg-color-dark); color: var(--text-color-secondary); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.footer-col h4 { color: var(--text-color-light); font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-col p { line-height: 1.8; }
.social-icons { margin-top: 1rem; display: flex; gap: 1rem; }
.social-icons a { color: var(--text-color-secondary); width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--text-color-secondary); border-radius: 50%; text-decoration: none; transition: all 0.3s; }
.social-icons a:hover { color: var(--text-color-light); background-color: var(--primary-color); border-color: var(--primary-color); }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border-radius: 5px; border: 1px solid #444; background: #333; color: white; box-sizing: border-box; }
.map-link { color: var(--accent-color); text-decoration: none; display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.footer-bottom { text-align: center; padding: 2rem 0 1.5rem; border-top: 1px solid #444; margin-top: 2rem; font-size: 0.9rem; }
.doobydev-credit {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color-secondary);
    border: 1px solid var(--text-color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.doobydev-credit:hover {
    box-shadow: 0 0 15px var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color-light);
}
.doobydev-credit span { font-weight: normal; }
.doobydev-credit b { font-family: var(--font-family-special); font-weight: 700; }
.doobydev-credit .dooby { color: var(--accent-color); }
.doobydev-credit .dev { color: var(--text-color-light); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-color-white); flex-direction: column; text-align: center; padding: 1rem 0; box-shadow: 0 4px 6px var(--shadow-color); }
    .nav-links.active { display: flex; }
    .nav-links li { padding: 1rem 0; }
    .nav-links a { color: var(--text-color-dark); }
    .btn-nav { display: none; }
    .menu-toggle { display: block; background: none; border: none; color: var(--text-color-dark); font-size: 1.5rem; cursor: pointer; }
    .hero-content { flex-direction: column; text-align: center; padding-top: 100px; justify-content: center; }
    .hero-section { background-image: linear-gradient(rgba(253, 251, 248, 0.9), rgba(253, 251, 248, 0.9)), url('hero.jpg'); }
    .content-left { max-width: 100%; }
    .content-right { display: none; }
    .about-content .section-title { text-align: center; }
    .treatments-grid, .spotlight-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.8rem; }
    .form-steps { flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.5rem; }
    .step { flex-direction: row; gap: 1rem; }
    .step-connector { display: none; }
    .treatments-grid, .spotlight-grid { grid-template-columns: 1fr; }
}