/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header and Navigation */
.header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Navigation is now minimal since we removed redundant buttons */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* .btn-small removed since it's no longer used */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Logo Showcase */
.logo-showcase {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    z-index: 3;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}



/* Hours Section */
.hours-note {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-style: italic;
    color: var(--text-light);
    background: transparent;
    margin: 0.75rem 0;
}

.hours-table {
    max-width: 500px;
    margin: 0 auto;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row:hover {
    background-color: var(--background-light);
}

.hours-row.closed {
    opacity: 0.6;
    background-color: #fef2f2;
}

.day {
    font-weight: 600;
    color: var(--text-primary);
}

.time {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Social Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--background-white);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
/* Mobile-First Enhancements */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Enhanced Mobile Navigation */
    .nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
        padding-left: 16px;
        padding-right: 16px;
        position: relative;
    }
    
    /* Navigation is now minimal since we removed redundant buttons */
    
    /* Improved Touch Targets for Mobile */
    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px; /* Better touch target */
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px; /* More mobile-friendly */
    }
    
    /* Enhanced Hero Section for Mobile */
    .hero-logo {
        height: 100px;
    }
    
    .logo-glow {
        width: 160px;
        height: 160px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        min-height: 52px;
    }
    
    /* Mobile-Optimized Grid Layouts */
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 8px;
    }
    
    .service-card,
    .contact-card {
        padding: 1.75rem;
        border-radius: 16px; /* More mobile-friendly */
        margin: 0 4px;
    }
    
    /* Enhanced Service Icons for Mobile */
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    /* Mobile-Optimized Hours Table */
    .hours-table {
        margin: 0 16px;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .hours-row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
        min-height: 60px; /* Better touch target */
    }
    
    /* Mobile Section Spacing */
    section {
        padding: 2.5rem 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    /* Mobile Typography Adjustments */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
        bottom: -0.5rem;
    }
    
    /* Mobile Card Hover Effects */
    .service-card:active,
    .contact-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile Social Links */
    .social-links {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .social-link {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Extra Small Mobile Optimizations */
    .hero-logo {
        height: 80px;
    }
    
    .logo-glow {
        width: 120px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 8px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }
    
    /* Ultra-Compact Mobile Layouts */
    .services-grid,
    .contact-grid {
        gap: 1rem;
        margin: 0 4px;
    }
    
    .service-card,
    .contact-card {
        padding: 1.5rem;
        margin: 0 2px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Hours Table */
    .hours-table {
        margin: 0 8px;
        font-size: 0.875rem;
    }
    
    .hours-row {
        padding: 0.875rem;
        min-height: 56px;
    }
    
    /* Mobile Section Spacing */
    section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

/* Mobile Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .contact-card:hover,
    .btn:hover,
    .social-link:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Add active states for touch feedback */
    .service-card:active,
    .contact-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .social-link:active {
        transform: scale(0.9);
    }
}

/* Mobile Landscape Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: auto;
        min-width: 200px;
    }
    
    .nav {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    /* Navigation is now minimal since we removed redundant buttons */
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .floating-butterfly {
        animation-duration: 8s;
    }
    
    .logo-glow {
        animation-duration: 3s;
    }
    
    /* Optimize shadows for mobile */
    .service-card,
    .contact-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .service-card:hover,
    .contact-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
}



/* Mobile Scroll Behavior */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve mobile scrolling performance */
    .hero,
    .services-section,
    .contact-section,
    .hours-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Mobile Focus Improvements */
@media (max-width: 768px) {
    .btn:focus,
    .service-card:focus,
    .contact-card:focus,
    .social-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 12px;
    }
    
    /* Enhanced focus for touch devices */
    .btn:focus-visible,
    .service-card:focus-visible,
    .contact-card:focus-visible {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Mobile Loading States */
@media (max-width: 768px) {
    .btn:active {
        position: relative;
    }
    
    .btn:active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.contact-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

/* Focus states for accessibility */
.btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .hero-actions,
    .social-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .service-card,
    .contact-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}