/* style.css – K&L Carports & Awnings (includes chatbot) */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Roboto:wght@400;500&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Roboto',sans-serif; overflow-x:hidden; }
h1,h2,h3 { font-family:'Montserrat',sans-serif; }

/* ==== SLIDESHOW ==== */
.slideshow-container{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:-1;overflow:hidden;}
.slide{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center;opacity:0;transition:opacity 1.8s ease-in-out;}
.slide.active{opacity:1;}
.slide::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to bottom,rgba(0,0,0,0.3),rgba(0,0,0,0.7));}
.slide:nth-child(1){background-image:url('WWA2.jpg');}
.slide:nth-child(2){background-image:url('WWA4.jpg');}
.slide:nth-child(3){background-image:url('WWA5.jpg');}

/* ==== NAVBAR ==== */
.navbar{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(15,23,42,0.92);backdrop-filter:blur(12px);padding:0.8rem 2rem;display:flex;align-items:center;justify-content:space-between;box-shadow:0 6px 20px rgba(0,0,0,0.3);transition:all .3s;border-bottom:2px solid rgba(96,165,250,0.6);box-shadow:0 6px 20px rgba(0,0,0,0.3),0 0 15px rgba(96,165,250,0.3);}
.navbar.scrolled{background:rgba(15,23,42,0.98);padding:0.5rem 2rem;border-bottom:2px solid rgba(96,165,250,0.8);box-shadow:0 4px 15px rgba(0,0,0,0.4),0 0 20px rgba(96,165,250,0.4);}
.logo{height:55px;transition:transform .3s;}
.logo:hover{transform:scale(1.08);}
.nav-links{display:flex;list-style:none;gap:.5rem;}
.nav-links li{position:relative;}
.nav-links a{color:#e2e8f0;text-decoration:none;padding:.75rem 1.3rem;font-weight:500;font-size:1rem;text-transform:uppercase;letter-spacing:.8px;transition:all .3s;border-radius:8px;display:flex;align-items:center;gap:.5rem;}
.nav-links a i{font-size:1.1rem;}
.nav-links a:hover{background:rgba(59,130,246,.2);color:#60a5fa;transform:translateY(-2px);}
.nav-links a.active{background:#3b82f6;color:#fff;box-shadow:0 0 15px rgba(59,130,246,.5);}
.dropdown .sub-menu{position:absolute;top:100%;left:0;background:rgba(15,23,42,.95);min-width:200px;border-radius:12px;opacity:0;visibility:hidden;transform:translateY(10px);transition:all .3s;box-shadow:0 10px 30px rgba(0,0,0,.4);overflow:hidden;}
.dropdown:hover .sub-menu{opacity:1;visibility:visible;transform:translateY(0);}
.sub-menu a{padding:.9rem 1.2rem;font-size:.95rem;border-bottom:1px solid rgba(255,255,255,.1);}
.sub-menu a:last-child{border-bottom:none;}
.sub-menu a:hover{background:#3b82f6;color:#fff;}
.menu-toggle{display:none;color:#e2e8f0;font-size:1.8rem;cursor:pointer;}

/* ==== HERO (Home) ==== */
.hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:2rem;color:#fff;}
.hero h1{font-size:4.8rem;margin:0 0 1rem;letter-spacing:4px;font-weight:700;background:linear-gradient(to right,#60a5fa,#a78bfa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.hero p{font-size:1.4rem;max-width:800px;margin:0 auto 2.5rem;line-height:1.7;color:#e2e8f0;}
.action-buttons{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:center;}
.car-btn{display:inline-flex;align-items:center;gap:.8rem;padding:1.2rem 2.8rem;font-size:1.25rem;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;color:#fff;text-decoration:none;border-radius:12px;position:relative;overflow:hidden;transition:all .4s;box-shadow:0 8px 25px rgba(0,0,0,.3);}
.car-btn i{font-size:1.5rem;transition:transform .3s;}
.car-btn:hover i{transform:translateX(5px);}
.car-btn.carports{background:linear-gradient(135deg,#1e40af,#3b82f6);border:2px solid #60a5fa;}
.car-btn.carports::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:.7s;}
.car-btn.carports:hover{transform:translateY(-4px);box-shadow:0 15px 35px rgba(59,130,246,.5);}
.car-btn.carports:hover::before{left:100%;}
.car-btn.awnings{background:linear-gradient(135deg,#374151,#6b7280);border:2px solid #9ca3af;}
.car-btn.awnings::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);transition:.7s;}
.car-btn.awnings:hover{transform:translateY(-4px);box-shadow:0 15px 35px rgba(107,114,128,.5);}
.car-btn.awnings:hover::before{left:100%;}

/* ==== CONTENT PAGES ==== */
.content-section{margin:120px auto 40px;max-width:900px;padding:0 1rem;color:#e2e8f0;text-align:center;}
.content-section h2{font-size:2.4rem;margin-bottom:1.5rem;color:#60a5fa;}
.content-section p,.content-section ul{font-size:1.2rem;line-height:1.8;}
.content-section ul{list-style:none;text-align:left;max-width:600px;margin:2rem auto;}
.content-section li{margin:1rem 0;display:flex;align-items:center;gap:.8rem;}
.content-section li i{color:#60a5fa;font-size:1.4rem;}
.content-section a{color:#60a5fa;text-decoration:none;}
.content-section a:hover{text-decoration:underline;}

/* ==== GALLERY ==== */
.gallery{margin:120px auto 60px;max-width:1400px;padding:0 2rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2rem;justify-items:center;align-items:start;}
.gallery-item{position:relative;overflow:hidden;border-radius:16px;box-shadow:0 10px 25px rgba(0,0,0,.3);transition:all .4s;background:#111;}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s;}
.gallery-item:hover{transform:translateY(-8px);box-shadow:0 20px 40px rgba(59,130,246,.3);}
.gallery-item:hover img{transform:scale(1.08);}
.gallery-item::after{content:attr(data-title);position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.8));color:#fff;padding:1.5rem 1rem 1rem;font-size:1rem;font-weight:600;text-align:center;opacity:0;transition:opacity .4s;pointer-events:none;}
.gallery-item:hover::after{opacity:1;}

/* ==== CHATBOT ==== */
#kl-chatbot{position:fixed;bottom:20px;right:20px;z-index:9999;font-family:'Roboto',sans-serif;}
#chat-button{width:60px;height:60px;background:#3b82f6;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.8rem;box-shadow:0 8px 20px rgba(59,130,246,.4);cursor:pointer;transition:all .3s;animation:pulse 2s infinite;}
#chat-button:hover{transform:scale(1.1);}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(59,130,246,.7);}70%{box-shadow:0 0 0 15px rgba(59,130,246,0);}100%{box-shadow:0 0 0 0 rgba(59,130,246,0);}}
#chat-popup{width:320px;height:500px;background:#fff;border-radius:18px;box-shadow:0 15px 40px rgba(0,0,0,.3);display:none;flex-direction:column;overflow:hidden;position:absolute;bottom:80px;right:0;}
#chat-header{background:linear-gradient(135deg,#1e40af,#3b82f6);color:#fff;padding:1rem;display:flex;align-items:center;gap:.8rem;font-size:.95rem;}
.chat-logo{width:40px;border-radius:8px;}
#chat-close{margin-left:auto;font-size:1.5rem;cursor:pointer;font-weight:bold;}
#chat-body{flex:1;padding:1rem;overflow-y:auto;background:#f8fafc;}
.message{margin:.5rem 0;padding:.7rem 1rem;border-radius:12px;max-width:85%;font-size:.9rem;line-height:1.4;}
.message.bot{background:#e2e8f0;align-self:flex-start;border-bottom-left-radius:4px;}
#chat-options{padding:.8rem;background:#fff;border-top:1px solid #e2e8f0;display:grid;grid-template-columns:1fr 1fr;gap:.6rem;}
.option-btn{padding:.8rem .5rem;font-size:.8rem;background:#f1f5f9;border:none;border-radius:10px;cursor:pointer;transition:all .3s;display:flex;flex-direction:column;align-items:center;gap:.3rem;color:#1e293b;}
.option-btn i{font-size:1.2rem;color:#3b82f6;}
.option-btn:hover{background:#3b82f6;color:#fff;}
.option-btn:hover i{color:#fff;}

/* ==== RESPONSIVE ==== */
@media (max-width:992px){
    .navbar{padding:.6rem 1.5rem;}
    .nav-links{position:fixed;top:70px;right:-100%;width:100%;height:calc(100vh - 70px);background:rgba(15,23,42,.98);flex-direction:column;align-items:center;transition:.4s;padding-top:2rem;gap:0;}
    .nav-links.active{right:0;}
    .nav-links a{padding:1.2rem;width:80%;text-align:center;border-radius:12px;margin:.3rem 0;}
    .menu-toggle{display:block;}
    .hero h1{font-size:3.2rem;letter-spacing:2px;}
    .hero p{font-size:1.1rem;padding:0 1rem;}
    .action-buttons{flex-direction:column;align-items:center;width:100%;padding:0 1rem;}
    .car-btn{width:80%;justify-content:center;font-size:1.1rem;padding:1rem 2rem;}
}
@media (max-width:768px){
    .gallery{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.5rem;padding:0 1rem;}
}
@media (max-width:480px){
    .hero h1{font-size:2.5rem;}
    .car-btn{font-size:1rem;padding:.9rem 1.8rem;}
    #chat-popup{width:300px;height:480px;}
    #chat-options{grid-template-columns:1fr;}
}

/* ==== FOOTER & CREDIT ==== */
.site-footer {
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(96, 165, 250, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
}
.footer-content p {
    margin: 0.5rem 0;
}
.credit-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}
.credit-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}
.credit-link i {
    margin-left: 4px;
    font-size: 1rem;
}
.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.8rem;
    float: right;
}

.delete-btn:hover {
    background: #c82333;
}