/* Service Page Styles - Complete Optimized Version */

/* Base Variables and Reset */
:root {
    /* Color Palette */
    --sunny-yellow: #ffc107;
    --dental-blue: #2a3990;
    --light-blue: #e7f1fb;
    --light-blue-accent: #e0ebf9;
    --button-blue: #3450d9;
    --text-blue: #2a3990;
    --light-gray: #f8f9fa;
    --border-color: #e1e1e1;
    --error-color: #dc3545;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Container width */
    --container-width: 1200px;
    
    /* Navigation heights */
    --header-height: 70px;
    --header-height-mobile: 60px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-blue);
    background-color: var(--light-blue);
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--button-blue);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: var(--dental-blue);
}

button, 
input[type="submit"], 
input[type="button"], 
.button {
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dental-blue);
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-lg);
}

/* Utility Classes */
.bg-white {
    background-color: white;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--button-blue);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--button-blue);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section Styling */
section {
    padding: var(--spacing-xxl) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }
}

.section-label {
    display: inline-block;
    background-color: var(--light-blue-accent);
    color: var(--text-blue);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Header Styles - Fixed Spacing */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-height);
}

@media (max-width: 768px) {
    .site-header {
        height: var(--header-height-mobile);
    }
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 20px;
}

@media (min-width: 992px) {
    .site-header .container {
        gap: 40px;
    }
}

.logo {
    margin-right: auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .sunny {
    color: var(--sunny-yellow);
}

.logo .side {
    color: var(--dental-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 110;
    padding: 0;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dental-blue);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before, 
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dental-blue);
    transition: transform var(--transition-fast);
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Main Navigation */
.main-nav {
    margin-left: 20px;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-xl);
}

.main-nav a {
    color: var(--text-blue);
    font-weight: 500;
    position: relative;
    padding: var(--spacing-sm) 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sunny-yellow);
    transition: width var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* Dropdown Menu - Row Format */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 500px;
    max-width: 800px;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Dropdown visible on hover for desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu,
    .dropdown-menu:focus-within {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu a {
    flex: 0 0 auto;
    width: calc(33.333% - 10px);
    padding: 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    border-radius: var(--border-radius-md);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--light-blue-accent);
}

.dropdown-icon {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown a[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.call-button, 
.contact-button {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    gap: var(--spacing-sm);
}

.call-button {
    color: var(--text-blue);
    background: white;
    border: 1px solid var(--border-color);
}

.call-button:hover, 
.call-button:focus {
    background: var(--light-gray);
}

.contact-button {
    color: white;
    background: var(--button-blue);
    padding: var(--spacing-md) var(--spacing-xl);
    display: inline-block;
    text-align: center;
}

.contact-button:hover, 
.contact-button:focus {
    background: var(--dental-blue);
    color: white;
}

/* Service Hero Section */
.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background-color: var(--light-blue);
    position: relative;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(231, 241, 251, 0) 0%, rgba(231, 241, 251, 1) 100%);
    pointer-events: none;
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
    text-align: center;
}

.service-badge {
    display: inline-block;
    background-color: var(--dental-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--dental-blue);
    line-height: 1.2;
}

.service-hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.service-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.learn-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--button-blue);
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.learn-more-link:hover,
.learn-more-link:focus {
    color: var(--dental-blue);
}

.learn-more-link svg {
    transition: transform 0.3s;
}

.learn-more-link:hover svg,
.learn-more-link:focus svg {
    transform: translateX(5px);
}

/* Key Benefits Section */
.key-benefits {
    padding: 50px 0;
}

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

.benefit-card {
    padding: 25px 20px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-blue-accent);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--dental-blue);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--text-blue);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 15px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-blue);
    opacity: 0.9;
}

/* What Is Section */
.service-what-is {
    padding: 50px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dental-blue);
}

.service-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.service-action {
    margin-top: 20px;
}

.service-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.service-image:hover img {
    transform: scale(1.03);
}

/* Treatments Section */
.treatments-section {
    padding: 50px 0;
}

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

.treatment-card {
    padding: 25px 20px;
    background-color: var(--light-blue);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.treatment-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    color: var(--dental-blue);
}

.treatment-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.treatment-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--text-blue);
}

/* Process Section */
.service-process {
    padding: 50px 0;
    background-color: var(--light-blue);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.process-step {
    background-color: white;
    padding: 25px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--dental-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.process-step p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--text-blue);
}

/* Before & After Gallery - Mobile Optimized */
.before-after {
    padding: 50px 0;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    background-color: var(--light-blue);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.before-after-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.before, .after {
    position: relative;
    aspect-ratio: 4 / 3;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-caption {
    padding: 15px;
    text-align: center;
}

.gallery-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--text-blue);
}

.gallery-action {
    text-align: center;
    margin-top: 30px;
}

.view-more-button {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    background-color: var(--button-blue);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
}

.view-more-button:hover,
.view-more-button:focus {
    background-color: var(--dental-blue);
    color: white;
}

/* Testimonials - Improved Mobile Experience */
.service-testimonials {
    padding: 50px 0;
    position: relative;
}

.testimonials-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden;
}

.testimonial-card {
    background-color: var(--light-blue);
    border-radius: var(--border-radius-lg);
    padding: 25px 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    line-height: 1.3;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-procedure {
    font-size: 0.875rem;
    color: var(--text-blue);
    opacity: 0.9;
    margin-bottom: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.prev-button,
.next-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dental-blue);
    transition: background-color 0.3s, color 0.3s;
}

.prev-button:hover,
.next-button:hover,
.prev-button:focus,
.next-button:focus {
    background-color: var(--dental-blue);
    color: white;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    transition: background-color 0.3s;
    padding: 0;
}

.dot.active {
    background-color: var(--dental-blue);
}

.dot:hover,
.dot:focus {
    background-color: var(--button-blue);
}

/* FAQ Section - Fixed Accordion Functionality */
.service-faq {
    padding: 50px 0;
    background-color: var(--light-blue);
}

.faq-accordion {
    max-width: 900px;
    margin: 30px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.faq-question:hover,
.faq-question:focus {
    background-color: var(--light-blue-accent);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

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

.faq-answer {
    background-color: white;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

/* Fixed FAQ accordion functionality */
.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1000px;
    padding: 0 20px 20px;
    opacity: 1;
}

.faq-answer p {
    padding-bottom: 15px;
    margin-bottom: 0;
}

/* CTA Section - Mobile Optimized */
.service-cta {
    padding: 50px 0;
    text-align: center;
}

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

.service-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 15px;
}

.service-cta p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 300px;
    margin: 0 auto;
}

.contact-button,
.call-cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
}

.contact-button {
    background-color: var(--button-blue);
    color: white;
}

.call-cta-button {
    background-color: white;
    color: var(--dental-blue);
    border: 1px solid var(--border-color);
    gap: 10px;
}

.contact-button:hover,
.contact-button:focus {
    background-color: var(--dental-blue);
    color: white;
}

.call-cta-button:hover,
.call-cta-button:focus {
    background-color: var(--light-gray);
}

/* Location & Contact - Optimized */
.location-info {
    padding: 50px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    min-height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background-color: var(--light-blue-accent);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-item .icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--border-radius-md);
    color: var(--dental-blue);
}

.contact-item .details {
    flex: 1;
}

.contact-item .details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item .details p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.hours-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(42, 57, 144, 0.1);
}

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

.hours-item .day {
    font-weight: 600;
    min-width: 120px;
}
.map-container {
    height: 450px; /* Just add this line to your existing CSS */
}
/* Footer */
.site-footer {
    background: var(--dental-blue);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.footer-logo .sunny {
    color: var(--sunny-yellow);
}

.footer-logo .side {
    color: white;
}

.footer-about p {
    margin-bottom: var(--spacing-lg);
    font-size: 0.9375rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background var(--transition-normal);
}

.social-icons a:hover, 
.social-icons a:focus {
    background: var(--sunny-yellow);
    color: var(--dental-blue);
}

.footer-links h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: white;
    opacity: 0.9;
    font-size: 0.9375rem;
    transition: opacity var(--transition-normal);
}

.footer-links a:hover, 
.footer-links a:focus {
    opacity: 1;
    color: var(--sunny-yellow);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: var(--spacing-sm);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Tablet and Desktop Styles */
@media (min-width: 576px) {
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero-buttons {
        flex-direction: row;
        max-width: none;
    }
    
    .cta-buttons {
        flex-direction: row;
        max-width: none;
    }
    
    .contact-button,
    .call-cta-button {
        width: auto;
        min-width: 180px;
    }
    
    .process-step {
        padding: 30px 25px;
    }
    
    .treatment-card,
    .benefit-card {
        padding: 30px 25px;
    }
    
    .view-more-button {
        width: auto;
        min-width: 200px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
}

@media (min-width: 768px) {
    .site-header {
        height: var(--header-height);
    }
    
    .service-hero {
        min-height: calc(80vh - 70px);
        padding: 0;
    }
    
    .service-hero-content {
        padding: 50px 0;
    }
    
    .treatments-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid {
        gap: 40px;
    }
    
    .before-after-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(100% - 40px);
        scroll-snap-align: center;
    }
    
    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
    
    .map-container {
        min-height: 350px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    /* Mobile menu styles */
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block !important;
        height: auto;
        position: static;
        width: auto;
        box-shadow: none;
    }
    
    .main-nav ul {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .service-hero {
        min-height: calc(90vh - 70px);
    }
    
    .service-hero::after {
        height: 50px;
    }
    
    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: center;
    }
    
    .treatments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        gap: 30px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .footer-content {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
    
    .footer-about {
        grid-column: 1;
    }
    
    .contact-item {
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .contact-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }
    
    .map-container {
        min-height: 400px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        width: 100%;
        height: 0;
        background: white;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .main-nav.active {
        height: calc(100vh - var(--header-height-mobile));
        overflow-y: auto;
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    /* Mobile Dropdown - Adjusted for row layout */
    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        transition: max-height 0.3s ease;
        display: block;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 800px;
        padding: 5px 10px;
        background-color: rgba(231, 241, 251, 0.5);
    }
    
    .dropdown-menu a {
        width: 100%;
        padding: 8px 30px;
        text-align: left;
    }
    
    /* Hide desktop CTA buttons on mobile */
    .cta-buttons {
        display: none;
    }
    
    /* Mobile CTA */
    .mobile-cta {
        display: flex;
        width: 100%;
        padding: 1rem 1.5rem;
        background-color: var(--light-blue);
        justify-content: center;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
    
    .service-image:hover img {
        transform: none;
    }
    
    .benefit-card:hover,
    .treatment-card:hover {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .benefit-card,
    .treatment-card,
    .service-card {
        transform: none !important;
    }
    
    .service-image img {
        transition: none;
    }
    
    .learn-more-link:active svg {
        transform: translateX(5px);
    }
}

/* Form Validation Styles */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Safari-specific fix for dropdown menu */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .dropdown-menu {
            transform: translateX(-50%) translateY(10px) translateZ(0);
        }
        
        .dropdown:hover .dropdown-menu,
        .dropdown:focus-within .dropdown-menu,
        .dropdown-menu:focus-within {
            transform: translateX(-50%) translateY(0) translateZ(0);
        }
        
        @media (max-width: 767px) {
            .dropdown-menu {
                transform: none;
            }
            
            .dropdown:hover .dropdown-menu,
            .dropdown:focus-within .dropdown-menu,
            .dropdown-menu:focus-within {
                transform: none;
            }
        }
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    nav, 
    .cta-buttons, 
    .view-all-button, 
    .social-icons,
    video, 
    audio {
        display: none !important;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .service-grid,
    .benefits-grid,
    .treatments-grid,
    .process-steps,
    .gallery,
    .location-grid,
    .footer-content {
        display: block;
    }
    
    .benefit-card,
    .treatment-card,
    .process-step,
    .testimonial-card,
    .gallery-item,
    .contact-item {
        page-break-inside: avoid;
        margin-bottom: 1cm;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .site-footer {
        background: white;
        color: black;
        border-top: 1px solid #ddd;
    }
    
    .footer-logo .side {
        color: black;
    }
    
    .footer-links a {
        color: black;
    }
}


