/* =========================================
   QQPoolTech - Platinum Style Dynamic CSS
   ========================================= */

:root {
    --brand-blue: #0A3A6A;     /* Navy Blue */
    --brand-light-blue: #0077B6; /* Vibrant Blue */
    --accent-gold: #D4AF37;    /* Optional accent */
    --text-dark: #333333;
    --text-meta: #666666;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F7F9FA;
    font-size: 16px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--brand-blue); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }

/* typography modifiers */
.accent-tag { display: block; font-family: 'Open Sans', sans-serif; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--brand-light-blue); letter-spacing: 2px; margin-bottom: 0.5rem; }
.text-link { color: var(--brand-light-blue); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; display: inline-block; margin-top: 1rem; border-bottom: 2px solid transparent; }
.text-link:hover { color: var(--brand-blue); border-bottom: 2px solid var(--brand-blue); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-small {
    display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; font-family: 'Open Sans', sans-serif; letter-spacing: 1px; cursor: pointer; border: none;
}
.btn-primary { background-color: var(--brand-blue); color: #fff; }
.btn-primary:hover { background-color: var(--brand-light-blue); }
.btn-secondary { background-color: transparent; border: 2px solid #fff; color: #fff; }
.btn-secondary:hover { background-color: #fff; color: var(--brand-blue); }
.btn-small { padding: 8px 16px; font-size: 0.8rem; background-color: var(--brand-light-blue); color: #fff; }
.btn-small:hover { background-color: #fff; color: var(--brand-blue); border-radius: 4px; }

/* Dividers */
.divider { width: 60px; height: 3px; background-color: var(--brand-light-blue); margin: 15px 0 25px 0; }
.divider.center { margin: 15px auto 35px auto; }

/* ================= HEADER ================= */
.top-bar { background-color: #1a1a1a; color: #ccc; font-size: 0.85rem; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-links { display: flex; gap: 15px; align-items: center; }
.top-links a:not(.btn-small):hover { color: var(--bg-white); }

#main-header {
    background-color: var(--bg-white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 10px 0;
    position: sticky; top: 0; z-index: 999;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; min-height: 50px; }
.logo { background: transparent; padding: 0; border-radius: 0; box-shadow: none; z-index: 1000; }
.logo img { height: 80px; object-fit: contain; display: block; transition: all 0.4s ease-out; transform-origin: top left; }


.nav-list { display: flex; list-style: none; gap: 2rem; align-items: center; margin: 0; }
.nav-list > li > a { font-family: 'Open Sans', sans-serif; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: var(--text-dark); letter-spacing: 1px; }
.nav-list > li > a:hover { color: var(--brand-light-blue); }

.dropdown { position: relative; padding: 20px 0; margin: -20px 0; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
    background-color: var(--bg-white); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-top: 3px solid var(--brand-light-blue); flex-direction: column; z-index: 100;
}
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content a {
    padding: 12px 20px; font-size: 0.85rem; color: var(--text-meta); font-weight: 500; border-bottom: 1px solid #eee; text-transform: capitalize;
}
.dropdown-content a:hover { background-color: var(--bg-light-gray); color: var(--brand-blue); padding-left: 25px; }

.nav-btn-quote {
    background-color: var(--brand-blue); color: white !important; padding: 10px 20px; border-radius: 4px; border: 2px solid var(--brand-blue); transition: 0.3s;
}
.nav-btn-quote:hover { background-color: transparent; color: var(--brand-blue) !important; }

/* ================= HERO ================= */
.hero { position: relative; height: 85vh; display: flex; align-items: center; color: white; justify-content: flex-start; overflow: hidden; }
.hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1; }
#hero-video { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(90deg, rgba(10,58,106,0.85) 0%, rgba(10,58,106,0.2) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 650px; }
.sub-heading { font-family: 'Open Sans', sans-serif; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; color: var(--bg-white); }
.main-heading { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; text-transform: capitalize; color: white; }
.hero-text { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 15px; }

/* ================= SECTIONS ================= */
.section { padding: 80px 0; }
.white-bg { background-color: var(--bg-white); }
.light-gray-bg { background-color: var(--bg-light-gray); }

/* Split Layout */
.split-layout { display: flex; align-items: center; gap: 50px; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-text h2 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.2; }
.split-text p { margin-bottom: 1rem; color: var(--text-meta); font-size: 1.05rem; }
.split-image { flex: 1; }
.shadow-img { border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); width: 100%; object-fit: cover; }

/* Grid Cards (Services) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 2rem; }
.service-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-img { height: 220px; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.service-card:hover .card-img { transform: scale(1.05); }
.card-content { padding: 30px; position: relative; z-index: 2; background: white; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { color: var(--text-meta); font-size: 0.95rem; margin-bottom: 10px; }

/* Statistics */
.stats-banner { background-image: url('assets/hero.png'); background-size: cover; background-attachment: fixed; position: relative; padding: 100px 0; color: white; text-align: center; }
.overlay-dark { position: absolute; inset: 0; background: rgba(10,58,106, 0.85); }
.stats-container { display: flex; justify-content: space-around; position: relative; z-index: 2; flex-wrap: wrap; gap: 30px; }
.stat-box h3 { font-size: 4rem; margin-bottom: 5px; color: white; display: inline-block; }
.stat-box span { font-size: 3rem; font-family: 'Playfair Display', serif; font-weight: 700; color:var(--brand-light-blue); }
.stat-box p { font-size: 1.1rem; text-transform: uppercase; font-weight: 600; letter-spacing: 2px; }

/* Galería Grid Horizontal Continuo */
.gallery-grid { display: flex; gap: 2vw; width: 100%; margin-top: 3rem; overflow-x: auto; padding-bottom: 2rem; scroll-snap-type: x mandatory; }
.gallery-grid::-webkit-scrollbar { height: 8px; }
.gallery-grid::-webkit-scrollbar-track { background: var(--bg-light-gray); border-radius: 4px; }
.gallery-grid::-webkit-scrollbar-thumb { background: var(--brand-light-blue); border-radius: 4px; }
.gallery-item { flex: 0 0 300px; height: 350px; object-fit: cover; border-radius: 12px; filter: grayscale(50%); transition: all 0.3s; scroll-snap-align: start; }
.gallery-item:hover { filter: grayscale(0%); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 40px; }
.step { background: white; padding: 40px; border: 1px solid #eee; border-radius: 8px; text-align: center; position: relative; }
.step-num { font-size: 4rem; font-family: 'Playfair Display', serif; color: rgba(0,119,182, 0.1); font-weight: 900; position: absolute; top: 10px; right: 20px; line-height: 1; }
.step h4 { font-size: 1.5rem; margin-top: 20px; margin-bottom: 15px; }
.step p { font-size: 0.95rem; color: var(--text-meta); }

/* Footer */
.main-footer { background-color: #111; color: #ccc; padding: 80px 0 20px 0; }
.footer-cta { text-align: center; margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid #333; }
.footer-cta h2 { color: white; font-size: 2.5rem; margin-bottom: 20px; }
.footer-cta p { max-width: 600px; margin: 0 auto 30px auto; font-size: 1.1rem; }
.btn-primary.lg { font-size: 1.1rem; padding: 15px 40px; }

.footer-layout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-logo { height: 80px; margin-bottom: 20px; }
.footer-col h4 { color: white; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--brand-light-blue); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.85rem; color: #777; }

/* Responsive */
@media (max-width: 900px) {
    .header-inner { padding: 10px 20px; position: relative; }
    .desktop-nav { display: none; } /* Hide regular nav */
    .mobile-nav-toggle { display: block; font-size: 2rem; color: var(--brand-blue); cursor: pointer; }
    
    .split-layout { flex-direction: column; }
    .split-layout.reverse { flex-direction: column; }
    .split-image { height: 350px !important; }
    
    .main-heading { font-size: 2.8rem; }
    .hero { height: 70vh; }
    
    #schedule-system .container { grid-template-columns: 1fr !important; }
    #schedule-system > div > div { grid-template-columns: 1fr !important; gap: 30px !important; }

    .logo { padding: 5px 15px 10px 15px; border-radius: 0 0 15px 15px; }
    .logo img { height: 60px; }
    
    /* Mobile Menu Overlay */
    #mobile-menu {
        display: block;
        position: fixed; top: 0; left: -100%; width: 80%; height: 100%; 
        background: white; z-index: 10000; transition: 0.3s;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1); padding: 40px 20px;
    }
    #mobile-menu.active { left: 0; }
    #mobile-menu ul { list-style: none; }
    #mobile-menu ul li { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    #mobile-menu ul li a { font-size: 1.2rem; display: block; color: var(--brand-blue); font-weight: 600; }
}

#mobile-menu { display: none; }

.mobile-nav-toggle { display: none; }

