/* Custom Styles for Cliff the Locksmith */

:root {
    --primary-color: #ffc107;
    --secondary-color: #212529;
    --accent-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

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

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

html {
    scroll-behavior: smooth;
}

/* Accessibility - Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Enhanced Focus States for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure focus is visible even with Bootstrap resets */
.btn:focus,
.nav-link:focus,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion for Users with Vestibular Motion Disorders */
@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;
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: #fff !important;
    white-space: nowrap;
    flex: 1;
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Burger menu styling */
.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile navbar adjustments */
@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mobile nav spacing */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: inline-block;
    }
}

.call-now-btn:hover {
    color: var(--secondary-color) !important;
}

.call-now-btn::after {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-image: url('images/IMG_4149.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    padding-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.6) 0%, rgba(22, 33, 62, 0.65) 100%);
}

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

/* Emergency Badge */
.emergency-badge .badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

/* Hero Titles */
.hero-main-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1;
    letter-spacing: -2px;
}

.hero-sub-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: #e9ecef;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Trust Badges Row */
.trust-badges-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.trust-badge i {
    font-size: 2rem;
}

.trust-badge span {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: white;
}

.trust-badge small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #b8c5d6;
}

/* Giant Phone CTA */
.hero-phone-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(15px);
    max-width: 600px;
    margin: 0 auto;
}

.call-now-label {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin: 0;
}

.hero-phone-link {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 8px rgba(255, 193, 7, 0.4);
    line-height: 1.2;
    white-space: nowrap;
}

.hero-phone-link:hover {
    color: #ffdb4d;
    transform: scale(1.05);
    text-shadow: 3px 3px 12px rgba(255, 193, 7, 0.6);
}

.response-time {
    color: #b8c5d6;
    font-size: 1rem;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    display: inline-block;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

.animate-fade-in-delay-1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Why Choose Section */
.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.why-choose-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.why-choose-card h3 {
    font-weight: 700;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.why-choose-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.icon-circle i {
    font-size: 2.5rem;
    color: white;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-box h3,
.cta-box p {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-card h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 600px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary-color);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.badge-content {
    text-align: center;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.testimonial-card blockquote {
    font-style: italic;
    line-height: 1.8;
}

.stars i {
    font-size: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 193, 7, 0.9);
    border-radius: 8px;
    width: 3rem;
    height: 3rem;
    background-size: 60%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(255, 193, 7, 1);
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Hours Section */
.hour-item {
    transition: all 0.3s ease;
}

.hour-item:hover {
    transform: translateX(10px);
    background-color: #f8f9fa !important;
}

/* Location Cards */
.location-card {
    transition: all 0.3s ease;
    border-color: #e9ecef !important;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color) !important;
}

.emergency-card {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.8);
    }
}

/* Footer */
footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning {
    background: linear-gradient(135deg, var(--primary-color), #ff9800);
    border: none;
    color: var(--secondary-color) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 100vh;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-sub-title {
        font-size: 1.5rem;
    }
    
    .hero-content .btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        max-width: 300px;
    }
    
    .trust-badges-row {
        gap: 1rem;
        justify-content: center;
    }
    
    .trust-badge {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex: 0 1 auto;
    }
    
    .trust-badge i {
        font-size: 1.5rem;
    }
    
    .trust-badge span {
        font-size: 0.85rem;
    }
    
    .hero-phone-cta {
        padding: 2rem 1.5rem;
    }
    
    .hero-phone-link {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    /* Tablet-friendly carousel controls */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 4rem;
        height: 4rem;
        border-radius: 10px;
    }
    
    .about-image-wrapper img {
        height: 400px;
    }
    
    .experience-badge {
        width: 140px;
        height: 140px;
    }
    
    .badge-content .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        background-image: url('images/mobile.webp');
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 20, 35, 0.6) 0%, rgba(22, 33, 62, 0.65) 100%);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .fs-5 {
        font-size: 0.95rem !important;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.75rem 2rem !important;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .testimonial-card blockquote {
        font-size: 1rem;
    }
    
    /* Mobile-friendly carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background-size: 40%;
    }
    
    .carousel-indicators {
        margin-bottom: 1.5rem;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    .about-image-wrapper img {
        height: 300px;
    }
    
    .experience-badge {
        width: 110px;
        height: 110px;
        bottom: 10px;
        right: 10px;
    }
    
    .badge-content .display-4 {
        font-size: 1.5rem;
    }
    
    .badge-content {
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Smooth Transitions */
section {
    scroll-margin-top: 76px;
}

