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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo span {
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh; /* Taller for more impact */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: #1e3c72;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 30s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, -2%); }
    100% { transform: scale(1.2) translate(2%, 2%); }
}

.screen-mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 4px 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(30, 60, 114, 0.25) 0%, 
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    z-index: 3;
    position: relative;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: 
        drop-shadow(0 0 10px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 20px rgba(0, 0, 0, 0.3))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 100px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 100px;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 100px;
    display: inline-block;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem auto;
    width: fit-content;
}

.btn {
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-quote {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    color: #fff;
    order: 2; /* Center in 3-button layout */
    z-index: 2;
}

.btn-quote:hover {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    transform: translateY(-3px) scale(1.05);
    z-index: 2;
}

.btn-primary {
    background: #ffd700;
    color: #1e3c72;
    order: 1;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px) scale(1.05);
    z-index: 2;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #1e3c72;
    order: 3;
    border: 1px solid rgba(30, 60, 114, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.05);
    z-index: 2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Headings */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
}

/* Before & After Section */
.before-after-section {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 100%;
}

.before-after-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.25rem;
    background: #f5f7fa;
    border: 2px solid #e0e5ec;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.before-after-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    max-width: 305px;
}

.before-after-card img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.before-after-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #1e3c72;
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
}

@media (max-width: 768px) {
    .before-after-pair {
        grid-template-columns: 1fr;
        max-width: 380px;
        padding: 1rem;
    }

    .before-after-card {
        max-width: 100%;
    }
}

/* Gallery/Image Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.service-card h3 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.review-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: #1e3c72;
}

/* Insurance Documents */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.insurance-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.insurance-card h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.insurance-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.insurance-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Footer */
footer {
    background: #1e3c72;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #ffd700;
}

.quote-form-section {
    margin-top: 4rem;
    scroll-margin-top: 100px;
}

/* Mobile break helper */
.mobile-break {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3c72;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

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

    .nav-links li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: left;
    }

    .logo {
        font-size: 1.4rem;
        gap: 0.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem 1rem;
    }

    .hero-logo {
        max-width: 220px;
        margin-bottom: 0.8rem;
        margin-top: -0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Show subtitle but hide description on mobile */
    .hero-subtitle {
        display: inline-block !important;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .hero-description {
        display: none !important;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .mobile-break {
        display: inline;
    }

    .container {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    /* Hide email button on mobile in hero */
    .hero .btn-secondary.hero-email-btn {
        display: none !important;
    }

    .btn {
        width: 75%;
        max-width: 240px;
        justify-content: center;
        padding: 0.75rem 1.2rem;
        font-size: 1.15rem;
    }

    .btn-quote {
        order: 1; /* Most important on top for mobile */
    }
    
    .btn-primary { order: 2; }
    .btn-secondary { order: 3; }

    .insurance-grid {
        grid-template-columns: 1fr;
    }

    .navigation-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-card {
        padding: 2.5rem 1.5rem;
        min-height: 160px;
    }

    .nav-card h3 {
        font-size: 1.6rem;
    }

    .nav-card p {
        font-size: 1rem;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ffd700;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }

    .lightbox-caption {
        bottom: 1rem;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Navigation Cards */
.navigation-cards-section {
    margin: 4rem 0;
}

.navigation-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.nav-card {
    background: #e8f0f8;
    color: #333;
    padding: 3rem 2.5rem;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(30, 60, 114, 0.15);
    min-height: 180px;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.2);
    background: #dde8f5;
    border-color: rgba(30, 60, 114, 0.25);
}

.nav-card h3 {
    font-size: 2rem;
    margin: 0;
    color: #1e3c72;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

.nav-card p {
    font-size: 1.15rem;
    margin: 0;
    color: #1e3c72;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.9;
}

/* Floating Get Quote Button */
.floating-quote-btn {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    background: #ff4b2b;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-quote-btn:hover {
    background: #ff416c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .floating-quote-btn {
        top: 80px;
        right: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
