/*
Theme Name: BrandaDoc
Theme URI: https://brandadoc.com
Author: BrandaDoc
Author URI: https://brandadoc.com
Description: Professional WordPress theme designed specifically for doctors and medical professionals. Features appointment scheduling, services showcase, team profiles, photo gallery, FAQ, testimonials, and complete practice management. Built to scale across 50+ doctor websites via child themes.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brandadoc
Tags: medical, doctor, healthcare, professional, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

:root {
    /* Colors - Override these in child theme */
    --primary-color: #0066cc;
    --secondary-color: #00a896;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #999999;
    --white: #ffffff;
    --black: #1a1a1a;

    /* Typography - Override in child theme */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: Georgia, serif;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 10px;
    --border-radius-sm: 5px;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 10px 30px rgba(0,0,0,0.15);

    /* Header & Footer */
    --header-bg: var(--white);
    --footer-bg: #1a1a1a;
    --hero-overlay: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--secondary-color); }

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* Grid Layout for content + sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
}

.contact-item a { color: var(--white); }
.contact-item a:hover { opacity: 0.85; }

.header-social .brandadoc-social-links {
    display: flex;
    gap: 12px;
}

.header-social .social-link {
    color: var(--white);
    font-size: 0.85rem;
    opacity: 0.9;
}

.header-social .social-link:hover { opacity: 1; }

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
}

.site-title a { color: var(--primary-color); }

.site-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: var(--hero-overlay);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-section.has-bg-image {
    background-size: cover;
    background-position: center;
}

.hero-section.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-color);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-grid,
.brandadoc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.brandadoc-services-grid {
    grid-template-columns: repeat(var(--cols, 3), 1fr);
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.credentials {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.credential-item {
    flex: 1;
    min-width: 120px;
}

.credential-item h4 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.credential-item p {
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Appointment Section
   ========================================================================== */

.appointment-section {
    padding: 80px 0;
    background: var(--hero-overlay);
    color: var(--white);
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.appointment-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.appointment-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.appointment-form,
.brandadoc-appointment-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.appointment-form h3 {
    color: var(--text-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.submit-btn,
.brandadoc-booking-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover { background: var(--secondary-color); }

.booking-response {
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.booking-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating { color: #ffc107; }

.brandadoc-star-rating {
    display: inline-flex;
    gap: 2px;
}

.brandadoc-star-rating .star.filled { color: #ffc107; }
.brandadoc-star-rating .star.empty { color: var(--medium-gray); }

/* ==========================================================================
   Team Section
   ========================================================================== */

.brandadoc-team-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.team-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-card-image img {
    transform: scale(1.05);
}

.team-card-info {
    padding: 25px;
}

.team-card-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-card-info .designation {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.team-card-info .specialization {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-card .brandadoc-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-card .social-link {
    color: var(--text-light);
    font-size: 0.85rem;
}

.team-card .social-link:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.brandadoc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-zoom {
    font-size: 2rem;
    color: var(--white);
    width: 50px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery-caption {
    color: var(--white);
    font-size: 0.9rem;
}

/* Gallery Lightbox */
.brandadoc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.brandadoc-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.brandadoc-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 20px 15px;
    border-radius: var(--border-radius-sm);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.brandadoc-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question[aria-expanded="true"] {
    background: var(--primary-color);
    color: var(--white);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer.open {
    padding: 20px 25px;
    max-height: 500px;
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.blog-image {
    width: 100%;
    height: 250px;
    background: var(--medium-gray);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-content h3 { margin-bottom: 15px; }
.blog-content h3 a { color: var(--text-color); }
.blog-content h3 a:hover { color: var(--primary-color); }

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover { gap: 10px; }

/* ==========================================================================
   Office Hours Shortcode
   ========================================================================== */

.brandadoc-office-hours {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.office-hours-title {
    color: var(--primary-color);
    margin-top: 0;
}

.office-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.office-hours-table tr {
    border-bottom: 1px solid var(--medium-gray);
}

.office-hours-table tr:last-child {
    border-bottom: none;
}

.office-hours-table td {
    padding: 10px 0;
}

.office-hours-table .day {
    font-weight: 600;
}

.office-hours-table .hours {
    text-align: right;
}

.office-hours-table .closed {
    color: var(--accent-color);
}

.emergency-note {
    margin: 20px 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Doctor Card Shortcode
   ========================================================================== */

.brandadoc-doctor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    max-width: 400px;
    text-align: center;
}

.doctor-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doctor-card-info {
    padding: 25px;
}

.doctor-card-info h3 {
    margin-bottom: 5px;
}

.doctor-specialization {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.doctor-contact p {
    margin-bottom: 5px;
}

/* ==========================================================================
   Widget Styles
   ========================================================================== */

.brandadoc-disclaimer-box {
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

.brandadoc-disclaimer-box p { margin: 0; }

.brandadoc-emergency-box {
    margin-top: 15px;
    padding: 15px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: var(--border-radius-sm);
}

.brandadoc-emergency-box p {
    margin: 0;
    font-weight: 600;
    color: #721c24;
}

.brandadoc-office-hours-list {
    list-style: none;
    padding: 0;
}

.brandadoc-office-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.brandadoc-office-hours-list li:last-child {
    border-bottom: none;
}

.brandadoc-doctor-profile-widget {
    text-align: center;
}

.brandadoc-doctor-profile-widget .profile-name {
    margin: 10px 0 5px;
    font-size: 1.2rem;
}

.brandadoc-doctor-profile-widget .profile-specialization {
    color: var(--text-light);
    font-size: 0.9rem;
}

.brandadoc-appointment-cta-widget {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.brandadoc-appointment-cta-widget h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.brandadoc-appointment-cta-widget p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.brandadoc-cta-btn {
    display: block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    margin-bottom: 10px;
}

.brandadoc-cta-btn:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.brandadoc-cta-btn-secondary {
    display: block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.brandadoc-cta-btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.brandadoc-emergency-widget {
    background: #f8d7da;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid #dc3545;
}

.brandadoc-emergency-widget .emergency-text {
    color: #721c24;
    margin-bottom: 10px;
}

.brandadoc-emergency-widget .emergency-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
}

/* Social Links */
.brandadoc-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.brandadoc-social-links .social-link {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.brandadoc-social-links .social-link:hover {
    color: var(--primary-color);
}

/* Social Share */
.brandadoc-social-share {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid var(--medium-gray);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-widget ul { list-style: none; }

.footer-widget ul li { margin-bottom: 12px; }

.footer-widget a { color: #ccc; }

.footer-widget a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--dark-gray);
}

.footer-social {
    margin-top: 15px;
}

.footer-social .brandadoc-social-links {
    justify-content: center;
}

.footer-social .social-link {
    color: #ccc;
}

.footer-social .social-link:hover {
    color: var(--white);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */

.page-header {
    background: var(--hero-overlay);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.breadcrumbs a { color: rgba(255,255,255,0.9); }
.breadcrumbs a:hover { color: var(--white); }

.content-area {
    padding: 60px 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
}

/* Entry Tags */
.entry-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

/* Featured Image */
.featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar */
.sidebar {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
}

.widget {
    margin-bottom: 40px;
}

.widget:last-child { margin-bottom: 0; }

.widget h3,
.widget-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
}

.widget ul { list-style: none; }

.widget ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.widget ul li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-info-box .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-box h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-box p {
    margin: 0;
    color: var(--text-light);
}

.google-map-embed {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-content {
    text-align: center;
    padding: 60px 0;
}

.error-404-number {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        display: none;
    }

    .main-navigation.active ul { display: flex; }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--medium-gray);
    }

    .menu-toggle { display: block; }

    .hero-content h1 { font-size: 2rem; }

    .about-content,
    .appointment-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .brandadoc-team-grid,
    .brandadoc-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brandadoc-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .credentials { flex-direction: column; }

    .hero-buttons { flex-direction: column; align-items: center; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .brandadoc-team-grid,
    .brandadoc-services-grid,
    .brandadoc-gallery-grid {
        grid-template-columns: 1fr;
    }

    .header-social { display: none; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.hidden { display: none; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
