/* ========================================
   Page-Specific Styles
   ======================================== */

/* Page Hero */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
    text-align: center;
}

.page-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Practice Page
   ======================================== */

/* Practice Office Section */
.practice-office {
    padding: var(--space-2xl) 0;
}

.practice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.practice-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.practice-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.practice-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.gallery-thumbs img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background: var(--color-cream-dark);
}

.slideshow-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    border-radius: 4px;
}

.slideshow-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slideshow-prev {
    left: 12px;
}

.slideshow-next {
    right: 12px;
}

.slideshow-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.slideshow-dot.active {
    background: #fff;
}

/* Doctor Section */
.practice-doctor {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

.doctor-images {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.doctor-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.doctor-image-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.doctor-image-secondary {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    align-self: start;
}

.doctor-image-secondary img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.doctor-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.doctor-content h3 {
    font-size: 1.25rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.doctor-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* Values Section */
.practice-values {
    padding: var(--space-2xl) 0;
}

.values-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.values-header h2 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.values-header p {
    color: var(--color-text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.value-card {
    text-align: center;
    padding: var(--space-lg);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-cream);
    border-radius: 50%;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* ========================================
   Services Page
   ======================================== */

/* Services Intro */
.services-intro {
    padding: var(--space-xl) 0;
    text-align: center;
}

.intro-text {
    font-size: 1.1875rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Service Category */
.service-category {
    padding: var(--space-2xl) 0;
}

.service-category.alt-bg {
    background: var(--color-cream);
}

.category-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.category-header h2 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.category-header p {
    color: var(--color-text-light);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
}

.service-item {
    flex: 0 0 calc((100% - 2 * var(--space-lg)) / 3);
}

.service-item {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.service-category.alt-bg .service-item {
    background: var(--color-white);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.service-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Technology Section */
.service-technology {
    padding: var(--space-2xl) 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.tech-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.tech-content > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.tech-list {
    list-style: none;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-cream-dark);
}

.tech-list li strong {
    color: var(--color-text);
    margin-bottom: 4px;
}

.tech-list li span {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.tech-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tech-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Emergency Section */
.service-emergency {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.emergency-card {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.emergency-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #FEE2E2;
    border-radius: 50%;
    color: #DC2626;
}

.emergency-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.emergency-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.emergency-cta {
    font-weight: 600;
    color: var(--color-text);
}

.emergency-cta a {
    color: var(--color-primary);
}

.emergency-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

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

.contact-main {
    padding: var(--space-2xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-cream);
    border-radius: var(--radius-md);
}

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

.contact-details h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.contact-details address {
    font-style: normal;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.contact-details p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.hours-card {
    background: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    height: 100%;
}

.hours-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-cream-dark);
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hours-table .hours-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.hours-table .day {
    font-weight: 500;
}

.hours-table .time {
    color: var(--color-text-light);
}

.hours-table .closed .time {
    color: var(--color-text-muted);
}

.hours-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Map Section */
.contact-map {
    padding: 0 0 var(--space-2xl);
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* New Patients Section */
.new-patients {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.new-patients-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.new-patients-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.new-patients-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.new-patients-image {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.new-patients-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item {
        flex: 0 0 calc((100% - var(--space-lg)) / 2);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .practice-grid,
    .doctor-grid,
    .tech-grid,
    .contact-grid,
    .new-patients-card {
        grid-template-columns: 1fr;
    }
    
    .doctor-images {
        position: static;
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex: 0 0 100%;
    }
    
    .emergency-card {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-icon {
        margin: 0 auto;
    }
    
    .new-patients-image {
        order: -1;
    }

    .slideshow-container {
        aspect-ratio: 16/9;
        border-radius: var(--radius-md);
    }

    .slideshow-arrow {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .slideshow-prev {
        left: 8px;
    }

    .slideshow-next {
        right: 8px;
    }

    .slideshow-dots {
        bottom: 10px;
        gap: 6px;
    }

    .slideshow-dot {
        width: 8px;
        height: 8px;
    }
}
