:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --accent: #00b4d8;
    --dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fc;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.site-header.scrolled { padding: 0; box-shadow: var(--shadow); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; transition: height var(--transition);
}
.site-header.scrolled .header-inner { height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--dark); }
.logo-icon { font-size: 1.5rem; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,110,253,.3); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.pulse-btn { animation: pulse-shadow 2s infinite; }
.pulse-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse-dot 1.5s infinite; }

@keyframes pulse-shadow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13,110,253,.4); }
    50% { box-shadow: 0 0 0 12px rgba(13,110,253,0); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}

/* Hero */
.hero {
    position: relative; min-height: 520px;
    display: flex; align-items: center; padding: 120px 0 80px;
    color: #fff; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    z-index: -1;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0,180,216,.25) 0%, transparent 60%);
}
.hero-home { min-height: 600px; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(255,255,255,.12); font-size: .85rem; font-weight: 600;
    margin-bottom: 16px; letter-spacing: .5px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; opacity: .9; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.breadcrumb { font-size: .85rem; opacity: .7; margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 8px; }

/* Stats */
.stats-bar { background: var(--bg-light); padding: 40px 0; margin-top: -40px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-suffix { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: .9rem; color: var(--text-light); margin-top: 4px; }

/* Sections */
section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--dark); }
.section-desc { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 48px; }
.intro-text { font-size: 1.15rem; text-align: center; max-width: 800px; margin: 0 auto; color: var(--text-light); }
.content-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.content-section p { font-size: 1.05rem; color: var(--text-light); max-width: 800px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
    background: #fff; padding: 32px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(13,110,253,.1);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700; margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--text-light); }

/* Brand & District grids */
.brand-grid, .district-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.brand-card, .district-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: border-color var(--transition), box-shadow var(--transition);
}
.brand-card-link {
    display: block; color: inherit; text-decoration: none;
}
.brand-card-link:hover { color: inherit; border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.brand-card-cta { display: block; margin-top: 8px; font-size: .85rem; color: var(--primary); font-weight: 600; }
.brand-card:hover, .district-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brand-card h3, .district-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--dark); }
.brand-card ul, .district-links { list-style: none; }
.brand-card li, .district-links a { display: block; padding: 4px 0; font-size: .9rem; }
.district-links { display: flex; flex-wrap: wrap; gap: 8px; }
.district-links a {
    padding: 4px 10px; background: var(--bg-light); border-radius: 6px;
    font-size: .8rem; color: var(--text);
}
.district-links a:hover { background: var(--primary); color: #fff; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; background: none; border: none; cursor: pointer;
    font-size: 1.05rem; font-weight: 600; text-align: left; color: var(--dark);
}
.faq-icon { font-size: 1.4rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 20px; color: var(--text-light); }

/* Related */
.related-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.related-link {
    padding: 10px 20px; background: var(--bg-light); border-radius: 8px;
    font-size: .9rem; color: var(--text); border: 1px solid var(--border);
    transition: all var(--transition);
}
.related-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* CTA Banner */
.cta-banner { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; text-align: center; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 24px; }
.cta-banner .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,.9); }

/* Page header */
.page-header { padding: 140px 0 60px; background: var(--bg-light); text-align: center; }
.page-header h1 { font-size: 2.4rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card {
    text-align: center; padding: 40px 24px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 8px; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-light); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col p { font-size: .9rem; line-height: 1.8; }
.footer-phone { display: block; margin-top: 12px; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.footer-whatsapp { display: block; margin-top: 8px; font-size: .95rem; font-weight: 600; color: #25d366; }
.footer-links { list-style: none; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 2; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; }

/* Mobile CTA bar & Back to top */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 58px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.mobile-cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50%;
    height: 100%;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #fff;
    overflow: hidden;
    transition: filter var(--transition);
}

.mobile-cta-btn:active {
    filter: brightness(0.92);
}

.mobile-cta-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation: whatsapp-glow 2.5s ease-in-out infinite;
}

.mobile-cta-phone {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    animation: phone-glow 2.5s ease-in-out infinite 0.4s;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.mobile-cta-btn svg {
    animation: cta-icon-pulse 2s ease-in-out infinite;
}

.mobile-cta-phone svg {
    animation-delay: 0.5s;
}

.mobile-cta-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    animation: cta-shimmer 3s ease-in-out infinite;
}

.mobile-cta-phone .mobile-cta-shimmer {
    animation-delay: 1.2s;
}

.mobile-cta-btn svg,
.mobile-cta-label {
    position: relative;
    z-index: 1;
}

.mobile-cta-label {
    text-transform: uppercase;
    font-size: 0.85rem;
}

@keyframes cta-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50%      { transform: translateX(100%); }
}

@keyframes whatsapp-glow {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: inset 0 0 20px 0 rgba(255, 255, 255, 0.15); }
}

@keyframes phone-glow {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: inset 0 0 20px 0 rgba(255, 255, 255, 0.2); }
}

@keyframes cta-icon-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.back-to-top {
    position: fixed;
    bottom: 72px;
    right: 20px;
    z-index: 998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--dark);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* Gallery */
.gallery-section { padding: 48px 0 60px; }
.gallery-home { background: var(--bg); margin-top: -20px; position: relative; z-index: 2; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    border: none;
    padding: 0;
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
}
.gallery-item:nth-child(3n) { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(5n) { aspect-ratio: 1 / 1; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.4,0,.2,1), filter .3s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}
.gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
    background: rgba(13, 110, 253, 0.25);
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.lightbox.is-open {
    display: flex;
    opacity: 1;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 28, 0.92);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}
.lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}
.lightbox.is-open .lightbox-stage {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    body { padding-bottom: 58px; }
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0; background: #fff;
        flex-direction: column; padding: 20px; gap: 16px;
        transform: translateY(-120%); transition: transform var(--transition);
        box-shadow: var(--shadow);
    }
    .main-nav.open { transform: translateY(0); }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .hero { min-height: 440px; padding: 100px 0 60px; }
    .mobile-cta-bar { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
