/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
}

/* ========================================
   GENERAL STYLES
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--primary-bg);
}

/* PT Sans for headings and navigation */
h1, h2, h3, h4, h5, h6,
.navbar,
.navbar-brand,
.nav-link,
.dropdown-item,
.services-submenu {
    font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
    min-height: calc(100vh - 200px);
}

/* ========================================
   NAVIGATION
   ======================================== */
/* Main navbar */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-secondary);
}

.navbar-nav .nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Dropdown menu */
.navbar-nav .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.navbar-nav .dropdown-item:active {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Services submenu (practitioner page navigation) */
.services-submenu {
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.services-submenu .nav-pills .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.services-submenu .nav-pills .nav-link:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.services-submenu .nav-pills .nav-link.active {
    background-color: var(--text-primary);
    color: var(--primary-bg);
}

/* ========================================
   HOMEPAGE SECTIONS
   ======================================== */
/* Welcome section */
.welcome-section {
    padding: 3rem 0;
}

.welcome-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.welcome-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Services section */
.service-card {
    text-align: center;
    padding: 1rem;
}

.service-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* General content sections */
.page-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
}

.content-section .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-list {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

.service-list li {
    margin-bottom: 0.5rem;
}

/* ========================================
   STAFF PAGES
   ======================================== */
/* Quick navigation overlay */
.staff-quick-nav {
    position: fixed;
    right: 20px;
    width: 200px;
    background-color: var(--primary-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.3rem;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem;
    transition: top 0.1s ease-out, opacity 0.3s ease;
}

.staff-quick-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.staff-quick-nav-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
    text-align: center;
    grid-column: 1 / -1;
}

.staff-quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.15rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
    border-radius: 6px;
}

.staff-quick-nav-item:hover {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.staff-quick-nav-item.active {
    background-color: var(--border-color);
}

.staff-quick-nav-item.active .staff-quick-nav-name {
    font-weight: 600;
}

.staff-quick-nav-img-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 20%;
    overflow: hidden;
    margin-bottom: 0.1rem;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-quick-nav-item:hover .staff-quick-nav-img-wrapper {
    border-color: var(--text-primary);
}

.staff-quick-nav-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
}

.staff-quick-nav-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

/* Staff cards */
.staff-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--primary-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 100px;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.staff-image-placeholder {
    width: 200px;
    height: 200px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-image {
    width: 250px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: cover;
    object-position: center;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.staff-company {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.staff-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.staff-contact {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.staff-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Staff list heading - for headings that introduce lists */
.staff-list-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Staff competence list */
.staff-competence-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.staff-competence-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
    padding-left: 1.75rem;
    position: relative;
}

.staff-competence-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.staff-competence-list.bullet-style {
    padding-left: 1.25rem;
}

.staff-competence-list.bullet-style li {
    padding-left: 0;
}

.staff-competence-list.bullet-style li::before {
    content: "•";
    font-weight: 400;
    font-size: 1rem;
    left: -1.25rem;
    top: 0;
}

.staff-competence-list li.no-bullet::before {
    content: none;
}

/* Online booking section */
.online-booking-section {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.staff-card .btn-primary {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.staff-card .btn-primary:hover {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* Booking form */
.booking-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.show-booking-form-btn {
    margin-top: 1.5rem;
}

.booking-form {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.booking-form-hidden {
    display: none;
}

.booking-form .form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.booking-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.booking-form .form-control:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.1);
}

/* ========================================
   CONTACT/LOCATION PAGES
   ======================================== */
.address-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    border-left: 4px solid var(--text-primary);
}

.address-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.parking-info {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.map-container {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Navigation */
    .logo {
        height: 40px;
    }

    .services-submenu .nav-pills .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        margin: 0.25rem;
    }

    /* Homepage sections */
    .welcome-section {
        padding: 2rem 0;
    }

    .welcome-heading {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-text {
        font-size: 0.95rem;
    }

    .page-heading {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .content-section .lead {
        font-size: 1.1rem;
    }

    .service-list {
        font-size: 1rem;
    }

    /* Staff quick navigation */
    .staff-quick-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100px;
        right: 10px;
        padding: 0.2rem;
        gap: 0.1rem;
    }

    .staff-quick-nav-title {
        display: none;
    }

    .staff-quick-nav-item {
        padding: 0.1rem;
    }

    .staff-quick-nav-img-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 0.05rem;
    }

    .staff-quick-nav-img {
        width: 32px;
        height: 32px;
    }

    .staff-quick-nav-name {
        font-size: 0.6rem;
    }

    /* Staff cards */
    .staff-image-placeholder {
        width: 150px;
        height: 150px;
    }

    .staff-image {
        width: 150px;
        height: 150px;
    }

    .staff-name {
        font-size: 1.2rem;
    }

    .staff-company {
        font-size: 0.9rem;
    }

    .staff-contact {
        font-size: 0.85rem;
    }

    .phone-link {
        color: var(--text-primary);
        text-decoration: underline;
        text-decoration-style: dotted;
    }

    .staff-description {
        font-size: 0.9rem;
    }

    .staff-list-heading {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .staff-competence-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .staff-competence-list li::before {
        font-size: 0.9rem;
    }

    .staff-competence-list.bullet-style li::before {
        font-size: 0.95rem;
    }

    .show-booking-form-btn {
        margin-top: 1rem;
    }

    .booking-heading {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .booking-form {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .booking-form .form-label {
        font-size: 0.85rem;
    }

    .booking-form .form-control {
        font-size: 0.85rem;
    }

    /* Contact/Location pages */
    .address-section {
        padding: 1.5rem;
    }

    .address-text {
        font-size: 1.1rem;
    }

    .parking-info {
        font-size: 0.95rem;
    }

    .map-container iframe {
        height: 300px;
    }
}
