/* Accessibility Styles */

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1F3B2C;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.3s;
}

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

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid #588068;
    outline-offset: 2px;
}

/* Improved focus for buttons */
.btn-appointment:focus,
.btn-primary:focus,
.btn-reviews:focus,
.btn-map:focus,
.btn-directions:focus,
.phone-button:focus,
.email-button:focus {
    outline: 3px solid #588068;
    outline-offset: 3px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('ToothBackground.jpeg');
    }
    
    .btn-appointment,
    .btn-primary,
    .btn-reviews,
    .btn-map,
    .btn-directions,
    .phone-button,
    .email-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reviews-slider {
        animation: none;
    }
    
    .btn-appointment:hover,
    .btn-primary:hover,
    .btn-reviews:hover,
    .btn-map:hover,
    .btn-directions:hover,
    .phone-button:hover,
    .email-button:hover {
        transform: none;
    }
}

/* Ensure sufficient color contrast */
.hero h1,
.hero h2,
.hero p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Make clickable areas larger for touch */
.nav-menu a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure form elements are accessible */
input,
textarea,
select,
button {
    font-size: 16px; /* Prevents zoom on iOS */
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.header-logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.practice-name {
    font-size: 28px;
    font-weight: bold;
    color: #0d4d4d;
    letter-spacing: 1px;
}

.practice-subtitle {
    font-size: 12px;
    color: #0d4d4d;
    font-weight: 500;
    letter-spacing: 2px;
    margin-top: 2px;
    white-space: nowrap;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-button {
    color: #F5F3F5;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    width: 100%;
}

.phone-button:hover {
    color: #E5B0A4;
}

.phone-button i {
    font-size: 16px;
}

.office-link {
    color: #20b2aa;
    text-decoration: none;
    font-weight: 500;
}

.office-link:hover {
    text-decoration: underline;
}

/* Navigation */
.nav {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.nav-menu a:hover {
    color: #20b2aa;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-appointment {
    background: #1F3B2C;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-appointment:hover {
    background: #908A76;
}

.google-link {
    color: #4285f4;
    font-size: 20px;
    text-decoration: none;
}

.rating-link {
    color: #ffc107;
    text-decoration: none;
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('ToothBackground.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn-primary {
    background: #1F3B2C;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #908A76;
}

/* Introduction Section */
.intro {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.intro-text {
    text-align: left;
}

.intro-text h2 {
    font-size: 36px;
    color: #0d4d4d;
    margin-bottom: 30px;
    text-align: left;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.intro-image {
    display: flex;
    justify-content: center;
}

.intro-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.module {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.module i {
    font-size: 48px;
    color: #20b2aa;
    margin-bottom: 20px;
}

.module h3 {
    font-size: 24px;
    color: #0d4d4d;
    margin-bottom: 15px;
}

.read-more {
    color: #20b2aa;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Dentists Section */
.dentists {
    padding: 60px 0;
    background: #f8f9fa;
}

.dentists h2 {
    text-align: center;
    font-size: 36px;
    color: #0d4d4d;
    margin-bottom: 50px;
}

.dentist-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.dentist-profile {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 700px;
    width: 100%;
}

.dentist-photo {
    flex-shrink: 0;
}

.dentist-photo .avatar-placeholder {
    width: 280px;
    height: 280px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dentist-info {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dentist-info h3 {
    font-size: 28px;
    color: #0d4d4d;
    margin-bottom: 20px;
    text-align: center;
}

.dentist-info p {
    color: #666;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
}

/* Services Section */
.services {
    padding: 60px 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    color: #0d4d4d;
    margin-bottom: 50px;
}

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

.service-module {
    text-align: center;
    padding: 30px;
}

.service-module i {
    font-size: 48px;
    color: #20b2aa;
    margin-bottom: 20px;
}

.service-module .service-icon-img {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 100%;
}

.service-module h3 {
    font-size: 24px;
    color: #0d4d4d;
    margin-bottom: 15px;
}

/* Reviews Section */
.reviews {
    padding: 60px 0;
    background: #f8f9fa;
}

.reviews h2 {
    text-align: center;
    font-size: 36px;
    color: #0d4d4d;
    margin-bottom: 50px;
}

.reviews-container {
    overflow: hidden;
    position: relative;
}

.reviews-slider {
    display: flex;
    gap: 30px;
    animation: reviewPause 48s linear infinite;
    width: fit-content;
}

@keyframes reviewPause {
    0% {
        transform: translateX(0);
    }
    6.25% {
        transform: translateX(0);
    }
    8.33% {
        transform: translateX(-380px);
    }
    14.58% {
        transform: translateX(-380px);
    }
    16.66% {
        transform: translateX(-760px);
    }
    22.91% {
        transform: translateX(-760px);
    }
    25% {
        transform: translateX(-1140px);
    }
    31.25% {
        transform: translateX(-1140px);
    }
    33.33% {
        transform: translateX(-1520px);
    }
    39.58% {
        transform: translateX(-1520px);
    }
    41.66% {
        transform: translateX(-1900px);
    }
    47.91% {
        transform: translateX(-1900px);
    }
    50% {
        transform: translateX(-2280px);
    }
    100% {
        transform: translateX(-2280px);
    }
}

.reviews-slider:hover {
    animation-play-state: paused;
}

.review-card {
    flex-shrink: 0;
    width: 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 20px;
}

.review-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card h4 {
    color: #0d4d4d;
    font-size: 16px;
    font-weight: bold;
}

.reviews-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-reviews {
    background: #1F3B2C;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(31, 59, 44, 0.3);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(144, 138, 118, 0.4);
    background: #908A76;
}

.btn-reviews i {
    font-size: 20px;
    background: white;
    color: #4285f4;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Duplicate reviews for seamless loop */
.reviews-slider::after {
    content: "";
    display: flex;
    gap: 30px;
}

/* Reviews Section */
.reviews {
    padding: 60px 0;
    background: #f8f9fa;
}

.reviews h2 {
    text-align: center;
    font-size: 36px;
    color: #0d4d4d;
    margin-bottom: 20px;
}

.reviews > p {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

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

.review-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.review-card h4 {
    color: #0d4d4d;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-card p {
    color: #666;
    line-height: 1.6;
}

/* Location Section */
.location {
    padding: 60px 0;
    background: #fff;
}

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

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #20b2aa;
}

.location-info h3 {
    font-size: 28px;
    color: #0d4d4d;
    margin-bottom: 15px;
}

.location-info address {
    font-style: normal;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.location-info .address-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.location-info .address-link:hover {
    color: #20b2aa;
}

.location-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.rating {
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
}

.map-actions {
    display: flex;
    gap: 15px;
}

.btn-map, .btn-directions {
    background: #1F3B2C;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(31, 59, 44, 0.3);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
}

.btn-map:hover, .btn-directions:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(144, 138, 118, 0.4);
    background: #908A76;
}

/* Footer */
.footer {
    background: #588068;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    justify-items: center;
    text-align: center;
}

.email-button {
    color: #F5F3F5;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    width: 100%;
}

.email-button:hover {
    color: #E5B0A4;
}

.email-button i {
    font-size: 16px;
}

.address-link {
    color: #F5F3F5;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    width: 100%;
}

.address-link:hover {
    color: #E5B0A4;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #1F3B2C;
}

.footer-section address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}


.footer-section .office-hours {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.footer-section .day {
    width: 40px;
    text-align: left;
}

.footer-section .time {
    flex: 1;
    text-align: left;
    margin-left: 20px;
}

.footer-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #1F3B2C;
}

.footer-cta h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1F3B2C;
    margin-top: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.footer-links li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links li a:hover {
    color: #20b2aa;
}

/* Image Protection */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

img::-moz-selection {
    background: transparent;
}

img::selection {
    background: transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 5px;
        padding: 5px 15px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .practice-name {
        font-size: 20px;
        text-align: center;
    }
    
    .header-logo-img {
        height: 45px;
    }
    
    .practice-subtitle {
        font-size: 11px;
        text-align: center;
    }
    
    .nav .container {
        flex-direction: column;
        gap: 5px;
        padding: 5px 15px 0px 15px;
    }
    
    .nav-menu {
        display: block;
        text-align: center;
        margin: 0;
        padding: 0;
        line-height: 1;
    }
    
    .nav-menu li {
        display: inline-block;
        margin: 0 4px;
        line-height: 1;
        vertical-align: top;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 4px 8px;
        line-height: 1;
        display: inline-block;
        margin: 0;
        vertical-align: top;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .intro-text h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .intro-text p {
        font-size: 16px;
    }
    
    .intro-photo {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-module {
        padding: 20px 15px;
    }
    
    .service-module .service-icon-img {
        width: 80px;
        height: 80px;
    }
    
    .service-module h3 {
        font-size: 18px;
    }
    
    .dentists h2, .services h2, .reviews h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .dentist-profile {
        max-width: 100%;
        margin: 0 15px;
    }
    
    .dentist-info {
        padding: 25px;
    }
    
    .dentist-info h3 {
        font-size: 24px;
        text-align: center;
    }
    
    .dentist-info p {
        font-size: 16px;
        text-align: left;
    }
    
    .review-card {
        width: 280px;
        padding: 20px;
        margin: 0 auto;
    }
    
    .reviews-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
    }
    
    .reviews-slider {
        animation: none;
        display: flex;
        align-items: flex-start;
        transform: translateX(0);
        transition: transform 0.3s ease;
        gap: 30px;
        padding: 0;
        margin: 0;
    }
    
    .review-card {
        width: calc(100vw - 80px);
        max-width: 280px;
        min-width: 250px;
        padding: 20px;
        margin: 0;
        flex-shrink: 0;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        text-align: center;
        position: relative;
    }
    
    .btn-reviews {
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .location-info h3 {
        font-size: 24px;
        text-align: center;
    }
    
    .location-info address {
        text-align: center;
    }
    
    .location-description {
        text-align: center;
    }
    
    .map-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-map, .btn-directions {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-appointment {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero h2 {
        font-size: 16px;
    }
    
    .practice-name {
        font-size: 20px;
    }
    
    .practice-subtitle {
        font-size: 10px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-module .service-icon-img {
        width: 100px;
        height: 100px;
    }
    
    .intro-text h2 {
        font-size: 24px;
    }
    
    .dentists h2, .services h2, .reviews h2 {
        font-size: 24px;
    }
    
    .dentist-info h3 {
        font-size: 20px;
    }
    
    .review-card {
        width: 250px;
        padding: 15px;
    }
    
    .btn-reviews {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .btn-map, .btn-directions {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 130px;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }
    
    .office-hours {
        justify-content: space-between;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .day, .time {
        text-align: left;
        margin: 0;
    }
}