/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C8102E;
    --primary-blue: #003B7A;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays for cards */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }
.fade-in:nth-child(7) { transition-delay: 0.7s; }
.fade-in:nth-child(8) { transition-delay: 0.8s; }

/* Floating animation for special elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

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

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

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

.nav-desktop {
    display: none;
    gap: 30px;
}

.nav-desktop a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--primary-red);
}

.header-contact {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-contact .email {
    font-size: 14px;
    color: var(--text-gray);
}

.header-contact .phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-red);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 3px;
    position: relative;
}

/* Perfect X transformation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    margin-top: -1.5px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    margin-top: -1.5px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--primary-blue);
    padding: 20px;
    gap: 15px;
    position: sticky;
    top: 80px;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--white);
    padding: 10px;
    font-weight: 500;
    border-radius: 5px;
    transition: 0.3s;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav .mobile-phone {
    background: var(--primary-red);
    text-align: center;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background: #a50d26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 18px;
    padding: 18px 40px;
}

/* Hours Banner */
.hours-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004a99 100%);
    color: var(--white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hours-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hours-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hours-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.address {
    font-size: 18px;
    margin-bottom: 25px;
}

.hours-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hours-item {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(5px);
}

.walk-in-notice {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

/* Services Overview */
.services-overview {
    padding: 60px 0;
    background: var(--bg-light);
}

.services-overview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 18px;
}

.services-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-blue);
    font-size: 22px;
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: var(--primary-red);
}

.service-card p {
    padding: 0 20px 15px;
    color: var(--text-gray);
}

.card-link {
    display: block;
    padding: 15px 20px;
    color: var(--primary-red);
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.card-link::after {
    content: '→';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.card-link:hover {
    background: var(--bg-light);
    padding-left: 25px;
}

.card-link:hover::after {
    transform: translateX(5px);
}

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

/* Quick Info Section */
.quick-info {
    padding: 60px 0;
}

.quick-info h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.info-grid {
    display: grid;
    gap: 25px;
}

.info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.info-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
}

.info-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

.info-note {
    margin-top: 15px;
    font-style: italic;
    color: var(--primary-red);
    font-weight: 600;
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.trust-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-blue);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trust-grid {
    display: grid;
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.trust-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 20px;
}

.trust-item p {
    color: var(--text-gray);
}

/* Partners Section */
.partners-section {
    padding: 50px 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-section h3 {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partner-logo-item img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s, filter 0.3s;
    filter: grayscale(100%);
}

.partner-logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partner-logo-item img {
        max-width: 180px;
        max-height: 70px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), #8B0000, var(--primary-red));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--primary-red);
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer-col a {
    color: var(--white);
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary-red);
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.partner-logo {
    height: 40px;
    opacity: 0.8;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .header-contact {
        display: flex;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        height: 600px;
    }
    
    .hero h1 {
        font-size: 56px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* Services Content */
.services-content {
    padding: 60px 0;
}

.service-detail {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--bg-light);
    flex-direction: column;
    text-align: center;
}

.service-header img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.service-header h2 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 5px;
}

.service-tagline {
    color: var(--text-gray);
    font-size: 18px;
}

.service-body {
    padding: 30px;
}

.service-body h3 {
    color: var(--primary-blue);
    margin: 25px 0 15px;
    font-size: 22px;
}

.service-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.service-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FAQ Styles */
.faq {
    margin-top: 20px;
}

.faq-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-red);
}

.faq-item strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.faq-item p {
    color: var(--text-dark);
    margin: 0;
}

/* Contact Page */
.contact-grid {
    padding: 40px 0;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Desktop layout - side by side */
@media (min-width: 992px) {
    .contact-row {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.contact-column {
    width: 100%;
}

.contact-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

.contact-item a {
    color: var(--primary-red);
    font-weight: 600;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #a50d26;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-form h2 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 59, 122, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: left;
    margin-top: 25px;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 50px;
}

.about-hero h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 15px;
}

.about-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .service-header {
        flex-direction: row;
        text-align: left;
    }
    
    .service-header img {
        width: 300px;
        flex-shrink: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Performance: Reduce animations on slow connections */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
