/* ==========================================================================
   NEURODIVERSE HEALTH - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & RESETS --- */
:root {
    --primary-font: 'PT Serif', serif;
    --secondary-font: 'Pontano Sans', sans-serif;
    --text-dark: #666666; 
    --text-light: #D2CFC6;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: var(--secondary-font);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .logo {
    font-family: var(--primary-font);
    font-weight: normal;
}

/* --- 2. NAVIGATION & HEADER --- */
header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 180px; 
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.logo {
    color: var(--text-light);
    font-size: 1.8rem;
    text-decoration: none;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 50px; 
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

.nav-btn-book {
    font-size: 1.05rem; 
    padding: 10px 22px;
    border: 1px solid rgba(210, 207, 198, 0.4); 
    border-radius: 4px;
    background: rgba(210, 207, 198, 0.08); 
    transition: all 0.3s ease;
}

.nav-btn-book:hover {
    background: rgba(210, 207, 198, 0.15);
    opacity: 1;
}

/* --- 3. SECTION LAYOUTS --- */
section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.full-page-section {
    min-height: 100vh;
    padding: 180px 20px 80px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

.full-page-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* Base overlay for readability */
    z-index: 1;
}

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

.bg-image {
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    position: relative;
}

.bg-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.bg-image > * {
    position: relative;
    z-index: 2;
}

.bg-white {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* --- 4. TYPOGRAPHY & DIVIDERS --- */
.hero-text {
    font-size: 2.5rem;
    max-width: 1000px;
    margin-top: auto; 
    padding-bottom: 10vh;
}

.page-title {
    font-family: var(--primary-font);
    font-size: 3.5rem; 
    margin-bottom: 25px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    color: var(--text-light);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: inherit;
}

.form-subtitle {
    font-family: var(--primary-font);
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: var(--text-light);
}

.body-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.body-text-large {
    font-size: 1.2rem; 
    margin-bottom: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.doctor-text {
    font-family: var(--primary-font);
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(210, 207, 198, 0.3);
    margin: 60px 0;
}

/* --- 5. BUTTONS & LINKS --- */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    border: 2px solid var(--text-light);
    border-radius: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--primary-font);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--text-light);
    color: #333;
}

.btn-dark {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.btn-dark:hover {
    background: var(--text-dark);
    color: #fff;
}

.text-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

/* --- 6. FORMS --- */
.contact-container {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}

.contact-form label, .form-group label {
    color: inherit;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.sub-label {
    color: inherit;
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-form input[type="text"], 
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.contact-form textarea,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(210, 207, 198, 0.4);
    background: #ffffff; 
    color: #333;
    border-radius: 4px;
    font-family: var(--secondary-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: 2px solid var(--text-light);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    gap: 12px;
    margin: 10px 0;
}

.checkbox-label, .checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem !important;
    cursor: pointer;
    margin-bottom: 15px;
    color: inherit;
}

.checkbox-label input[type="checkbox"], .checkbox-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #555555;
}

.submit-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 6px; 
    color: #ffffff;
    background-color: #3b4954; 
    font-family: var(--primary-font);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start; 
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2a353d;
}

/* --- 7. PAGE-SPECIFIC COMPONENTS --- */

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    position: relative;
}

.service-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0; right: -20px; height: 100%; width: 1px;
    background-color: var(--border-color);
}

.service-icon {
    width: 160px; height: 160px; object-fit: contain; 
    margin-bottom: 20px; opacity: 0.8; transition: transform 0.3s ease;
}

.service-icon:hover { transform: scale(1.05); }
.service-icon-large { width: 120px; margin-bottom: 30px; }

/* Bio Layout */
.bio-container {
    display: flex; align-items: flex-start; gap: 60px;
    text-align: left; width: 100%;
}
.bio-image {
    width: 350px; flex: 0 0 350px; height: auto;
    border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.bio-text-content { flex: 1; }

/* Accordions & FAQs */
.accordion, .faq-container {
    text-align: left; margin-top: 40px;
    border-top: 1px solid var(--border-color);
}
.accordion-item, .faq-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-header, .faq-question {
    width: 100%; background: none; border: none; padding: 25px 0;
    font-family: var(--primary-font); font-size: 1.5rem; color: var(--text-dark);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    text-align: left; transition: color 0.3s ease;
}
.accordion-header:hover, .faq-question:hover { color: #333; }
.accordion-icon, .faq-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s ease; }
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-content, .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content-inner, .faq-answer-inner { padding-bottom: 25px; font-size: 1.1rem; color: var(--text-dark); white-space: pre-line;}

/* Centered Modals (Services Page) */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    background: #fff; padding: 50px; border-radius: 8px;
    max-width: 800px; width: 90%; max-height: 80vh;
    overflow-y: auto; position: relative; text-align: left; color: var(--text-dark);
}
.close-btn {
    position: absolute; top: 15px; right: 25px;
    font-size: 2rem; cursor: pointer; color: #999;
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    header {
        flex-direction: column; padding: 15px; background: rgba(0,0,0,0.7); gap: 20px;
    }
    nav ul {
        margin-top: 5px; flex-wrap: wrap; justify-content: center; gap: 20px;
    }
    .hero-text, .section-title { font-size: 1.8rem; }
    .page-title { font-size: 2.5rem; }
    .form-subtitle { font-size: 1.3rem; }
    .full-page-section { padding-top: 180px; }
    
    /* Layout Breakdowns */
    .services-grid, .form-row { grid-template-columns: 1fr; }
    .service-item:not(:last-child)::after {
        top: auto; bottom: -20px; right: 10%; height: 1px; width: 80%;
    }
    .bio-container { flex-direction: column; align-items: center; }
    .bio-image { flex: 0 0 auto; width: 100%; max-width: 400px; }
    .accordion-header, .faq-question { font-size: 1.3rem; }
    .submit-btn { align-self: center; }
}
/* --- TOOLTIPS --- */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--text-light);
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 15px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-family: var(--secondary-font);
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}