/* Custom CSS for LAB Windows & Doors */

:root {
    --lab-blue: #24235d;
    --lab-blue-dark: #1a1945;
    --lab-yellow: #eda922;
    --lab-yellow-dark: #d4951e;
    --success-color: #28a745;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bg-navy {
    background-color: var(--lab-blue) !important;
}

.text-navy {
    color: var(--lab-blue) !important;
}

.btn-navy {
    background-color: var(--lab-blue);
    border-color: var(--lab-blue);
    color: white;
}

.btn-navy:hover {
    background-color: var(--lab-blue-dark);
    border-color: var(--lab-blue-dark);
    color: white;
}

.btn-yellow {
    background-color: var(--lab-yellow);
    border-color: var(--lab-yellow);
    color: var(--lab-blue);
    font-weight: 600;
}

.btn-yellow:hover {
    background-color: var(--lab-yellow-dark);
    border-color: var(--lab-yellow-dark);
    color: var(--lab-blue);
}

.btn-yellow:focus {
    background-color: var(--lab-yellow);
    border-color: var(--lab-yellow);
    color: var(--lab-blue);
    box-shadow: 0 0 0 0.2rem rgba(237, 169, 34, 0.25);
}

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

.navbar-brand img {
    transition: all 0.3s ease;
}

.logo-enhanced {
    filter: brightness(1.1);
    margin-top: -5px;
    margin-bottom: -5px;
}

.navbar-brand:hover .logo-enhanced {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--lab-yellow) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--lab-blue) 0%, var(--lab-blue-dark) 100%);
    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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(36, 35, 93, 0.8);
}

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

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Quote Form Card */
.quote-form-card {
    position: relative;
    z-index: 2;
}

.quote-form-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.quote-form-card .card-header {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border-bottom: none;
    padding: 20px;
}

/* Rebate Card */
.rebate-card {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.rebate-card:hover {
    transform: translateY(-5px);
}

.rebate-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Window Cards */
.window-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.window-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.window-img {
    transition: background-color 0.3s ease;
}

.window-card:hover .window-img {
    background-color: var(--lab-blue) !important;
}

.window-card:hover .window-img i {
    color: white !important;
}

/* Door Section */
.door-section {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.door-section:hover {
    transform: translateY(-5px);
}

.door-icon i {
    transition: color 0.3s ease;
}

.door-section:hover .door-icon i {
    color: var(--lab-yellow) !important;
}

/* Award Badges */
.award-badge {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.award-badge:hover {
    transform: scale(1.05);
}

.flag-icon {
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Benefit Cards */
.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Section Spacing */
section {
    padding: 80px 0;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .quote-form-card {
        margin-top: 40px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .rebate-card h2 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--lab-blue);
    box-shadow: 0 0 0 0.2rem rgba(36, 35, 93, 0.25);
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--lab-blue) 0%, var(--lab-blue-dark) 100%);
}

footer a:hover {
    color: var(--lab-yellow) !important;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--lab-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lab-blue-dark);
}

/* Review Widget Styling */
.review-widget-container {
    max-width: 100%;
    margin: 0 auto;
}

.lc_reviews_widget {
    border: none;
    min-height: 400px;
    background: transparent;
}

/* Window Hover Animation */
.hover-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.hover-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    background: white;
    border-radius: 8px;
}

.img-default {
    opacity: 1;
}

.img-hover {
    opacity: 0;
}

.hover-img-container:hover .img-default {
    opacity: 0;
}

.hover-img-container:hover .img-hover {
    opacity: 1;
}

/* Specialty Shapes Section */
.specialty-shapes-img img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.specialty-shapes-content {
    padding: 2rem 0;
}

.shapes-grid {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.shapes-diagram {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    background: transparent;
}

@media (max-width: 991px) {
    .specialty-shapes-content {
        padding: 2rem 0 0 0;
        text-align: center;
    }
}

/* New Door Section Styles */
.door-section {
    background-color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    color: #251f66;
}

.door-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #251f66;
}

.door-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.door-box {
    background-color: #f9f9ff;
    border-radius: 16px;
    padding: 30px;
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
    min-width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.door-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.door-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #251f66;
    margin-bottom: 15px;
}

.door-box ul {
    padding-left: 0;
    margin-bottom: 20px;
}

.door-box ul li {
    list-style: none;
    margin-bottom: 10px;
    padding-left: 26px;
    position: relative;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.door-box ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #251f66;
    font-weight: bold;
}

.cta-button {
    margin-top: auto;
    display: inline-block;
    background-color: #f4a720;
    color: white !important;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d4901a;
}

@media (max-width: 768px) {
    .door-box {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
    }

    .door-section h2 {
        font-size: 26px;
    }

    .door-box img {
        height: 180px;
    }
}
