:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #FFD700;
    --accent-dark: #FFC107;
    --accent-darker: #FF9800;
    --text-dark: #000000;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
}

*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --accent-color: #FFD700;
        --accent-darker: #FF9800;
        --text-dark: #000000;
        --bg-light: #FFFFFF;
    }
    
    .btn-primary-custom {
        background: var(--accent-color);
        color: var(--text-dark);
        border: 2px solid var(--text-dark);
    }
    
    .btn-outline-custom {
        border: 3px solid var(--accent-color);
        color: var(--accent-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.location-card:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.feature-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.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;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
    border: 2px solid var(--text-dark);
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--text-dark);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.hero-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FFD700" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

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

.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    min-height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary-custom:focus {
    outline: 3px solid var(--text-dark);
    outline-offset: 2px;
}

.btn-outline-custom {
    border: 3px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 48px;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    font-weight: 700;
}

.btn-outline-custom:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

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

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

.carousel-item {
    height: 400px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-item img {
        height: 300px;
    }
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-caption h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.carousel-caption p {
    color: var(--white);
    margin: 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.location-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
    position: relative;
}

.location-card .d-flex {
    margin-top: auto;
    justify-content: flex-end;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.location-card.highlighted {
    border-color: #28a745;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    animation: highlightPulse 2s ease-in-out;
}

.location-services {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.service-icon-item {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-right: 10px;
}

.service-icon-item:hover {
    opacity: 1;
}

.service-icon-item i {
    font-size: 1.2rem !important;
}

.btn-call-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 100px;
}

.btn-map-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.service-icon-item {
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-right: 10px;
}

.service-icon-item:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .service-icon-item:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        margin-top: 5px;
    }
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 25px rgba(40, 167, 69, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
        transform: scale(1);
    }
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.location-icon {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.btn-map-custom {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-map-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    color: var(--text-dark);
}

.btn-call-custom {
    background: transparent;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.btn-call-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
}

.contact-card {
    background: rgba(255, 215, 0, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 3px solid rgba(255, 215, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.35);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.contact-card:focus-within {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.contact-card i {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-card h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--white);
    margin: 0;
    font-size: 0.95rem;
}

/* Tablet-specific fix for email overflow */
@media (min-width: 768px) and (max-width: 1024px) {
    .contact-card {
        padding: 25px 15px;
        min-height: 220px;
    }
    
    .contact-card p a {
        font-size: 0.8rem;
        word-break: break-all;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
    }
    
    .contact-card h4 {
        font-size: 1.1rem;
    }
}

/* Tablet landscape specific fix */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .contact-card {
        padding: 20px 12px;
    }
    
    .contact-card p a {
        font-size: 0.60rem;
        line-height: 1.2;
    }
    
    .contact-card h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

.contact-card small {
color: rgba(255, 255, 255, 0.8);
font-size: 0.85rem;
}

.hours-badge {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive adjustments for hours badge */
@media (max-width: 576px) {
    .hours-badge {
        font-size: 0.9rem;
        padding: 8px 14px;
        max-width: 280px;
        text-align: center;
    }
}

.hours-btn-map-custom {
background: var(--accent-color);
color: var(--text-dark);
border: none;
padding: 8px 16px;
border-radius: 25px;
text-decoration: none;
transition: all 0.3s ease;
font-size: 1rem;
font-weight: 700;
}

.footer {
background: var(--text-dark);
color: var(--white);
padding: 40px 0 20px;
}

.social-link {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link:hover i {
    color: var(--accent-color);
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    height: 45px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.lang-btn.active {
    background: var(--accent-color);
    color: var(--text-dark);
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.1);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
    justify-content: center;
}

.loading-spinner .dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: loadingDots 1.5s ease-in-out infinite;
}

.loading-spinner .dot:nth-child(1) { animation-delay: 0s; }
.loading-spinner .dot:nth-child(2) { animation-delay: 0.2s; }
.loading-spinner .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.8;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Back to top button styles 
.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}


.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
} */

.search-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-trigger:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 600px;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: scale(1);
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--accent-color);
}

.search-content h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-height: 48px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-btn {
    padding: 15px 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    min-height: 48px;
    min-width: 48px;
}

.search-btn:hover {
    background: var(--accent-dark);
}

.search-btn:focus {
    outline: 3px solid var(--text-dark);
    outline-offset: 2px;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

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

.search-result-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.search-result-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .carousel-item {
        height: 250px;
    }
}
