/*
Theme Name: Navista Theme
Theme URI: https://navistagroup.com
Author: Navista
Author URI: https://navistagroup.com
Description: Custom theme for Navista Group.
Version: 2.0
License: GPL v2 or later
Text Domain: navista
*/

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===== TOP BAR ===== */
.navista-top-bar {
    background: #0f172a;
    color: #ffffff;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
}

.navista-top-bar .contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navista-top-bar .contact-info a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navista-top-bar .contact-info a:hover {
    color: #14b8a6;
}

.navista-top-bar .top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.navista-top-bar .top-actions a {
    color: #ffffff;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.navista-top-bar .top-actions .btn-register {
    background: #14b8a6;
    color: #fff;
}

.navista-top-bar .top-actions .btn-register:hover {
    background: #0d9488;
}

.navista-top-bar .top-actions .btn-login {
    background: transparent;
    border: 1px solid #475569;
}

.navista-top-bar .top-actions .btn-login:hover {
    background: #1e293b;
    border-color: #14b8a6;
}

.navista-top-bar .top-actions .nav-dashboard {
    background: transparent;
    border: 1px solid #475569;
}

.navista-top-bar .top-actions .nav-dashboard:hover {
    background: #1e293b;
    border-color: #14b8a6;
}

/* ===== LOGGED IN STATES ===== */
.navista-top-bar .top-actions .welcome-text {
    color: #14b8a6;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    background: rgba(20, 184, 166, 0.12);
    border-radius: 50px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.navista-top-bar .top-actions .btn-logout {
    background: #ef4444;
    color: #fff;
    border: none;
}

.navista-top-bar .top-actions .btn-logout:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ===== NAVIGATION ===== */
.navista-nav {
    background: #ffffff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navista-nav .logo {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navista-nav .logo span {
    color: #14b8a6;
}

.navista-nav .nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navista-nav .nav-links li {
    position: relative;
}

.navista-nav .nav-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navista-nav .nav-links a:hover {
    color: #14b8a6;
}

.navista-nav .nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 0;
    z-index: 999;
    border: 1px solid #f1f5f9;
}

.navista-nav .nav-links li:hover .dropdown-content {
    display: block;
}

.navista-nav .nav-links .dropdown-content a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.navista-nav .nav-links .dropdown-content a:hover {
    background: #f8fafc;
    color: #14b8a6;
}

.navista-nav .mobile-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0f172a;
}

/* ===== HERO SLIDER ===== */
.navista-hero {
    position: relative;
    width: 100%;
    height: 68vh;
    min-height: 380px;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
}

.navista-hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.02);
    pointer-events: none;
}

.navista-hero .slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.navista-hero .slide .slide-content {
    max-width: 48%;
    z-index: 2;
}

.navista-hero .slide .slide-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.navista-hero .slide .slide-content p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.navista-hero .slide .slide-content .btn-hero {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #ffffff;
}

.navista-hero .slide .slide-content .btn-hero.teal {
    background: #14b8a6;
}

.navista-hero .slide .slide-content .btn-hero.teal:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.3);
}

.navista-hero .slide .slide-content .btn-hero.orange {
    background: #f97316;
}

.navista-hero .slide .slide-content .btn-hero.orange:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}

.navista-hero .slide .slide-content .btn-hero.blue {
    background: #2563eb;
}

.navista-hero .slide .slide-content .btn-hero.blue:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.navista-hero .slide .slide-image {
    width: 42%;
    height: 75%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.navista-hero .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.navista-hero .slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navista-hero .slider-dots .dot.active {
    background: #14b8a6;
    width: 28px;
    border-radius: 50px;
}

/* ===== SERVICES GRID ===== */
.navista-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    padding: 16px 12px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #14b8a6;
}

.service-card .service-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 2px;
}

.service-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ===== PRODUCT CAROUSEL ===== */
.navista-carousel-wrapper {
    max-width: 1200px;
    margin: 10px auto 20px;
    padding: 0 20px;
}

.carousel-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.carousel-title i {
    color: #c45500;
    margin-right: 8px;
}

.navista-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    padding: 8px 0;
}

.carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease;
    will-change: transform;
    padding: 4px 0;
}

.carousel-item {
    flex: 0 0 calc(25% - 9px);
    min-width: 0;
}

.product-card {
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: 0.2s;
    height: 100%;
}

.product-card:hover {
    border-color: #c45500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.product-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #fafbfc;
    border-radius: 6px;
    padding: 4px;
}

.product-card .placeholder-img {
    font-size: 48px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
}

.product-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #067d3e;
    display: block;
}

.product-card .view-btn {
    display: inline-block;
    background: #ffd814;
    color: #111;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: 0.2s;
}

.product-card .view-btn:hover {
    background: #f7ca00;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d5d9dd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.2s;
    color: #111;
}

.carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow.prev {
    left: 6px;
}

.carousel-arrow.next {
    right: 6px;
}

/* ===== FOOTER ===== */
.navista-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 32px 24px 16px;
    width: 100%;
    margin-top: 20px;
}

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

.navista-footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    margin-bottom: 20px;
}

.navista-footer-column h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #14b8a6;
}

.navista-footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.navista-footer-column p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 14px;
}

.navista-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navista-footer-column ul li {
    margin-bottom: 6px;
}

.navista-footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navista-footer-column ul li a:hover {
    color: #14b8a6;
}

.navista-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* ===== PAGE CONTENT ===== */
.navista-page-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navista-container {
    max-width: 100%;
    padding: 0 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 8px);
    }
}

@media (max-width: 768px) {
    .navista-top-bar {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 6px 12px;
    }
    .navista-top-bar .contact-info {
        justify-content: center;
    }
    .navista-top-bar .top-actions {
        justify-content: center;
        gap: 6px;
    }

    .navista-top-bar .top-actions .welcome-text {
        font-size: 11px;
        padding: 3px 10px;
    }

    .navista-nav {
        padding: 10px 16px;
    }
    .navista-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 12px 0;
    }
    .navista-nav .nav-links.open {
        display: flex;
    }
    .navista-nav .mobile-toggle {
        display: block;
    }
    .navista-nav .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        padding: 8px 0 8px 16px;
        background: #f8fafc;
        border-radius: 6px;
        margin-top: 4px;
    }
    .navista-nav .nav-links li:hover .dropdown-content {
        display: none;
    }
    .navista-nav .nav-links li.open .dropdown-content {
        display: block;
    }

    .navista-hero {
        height: 60vh;
        min-height: 320px;
    }
    .navista-hero .slide {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 5%;
    }
    .navista-hero .slide .slide-content {
        max-width: 100%;
        margin-bottom: 16px;
    }
    .navista-hero .slide .slide-content h1 {
        font-size: 30px;
    }
    .navista-hero .slide .slide-content p {
        font-size: 15px;
    }
    .navista-hero .slide .slide-image {
        width: 60%;
        height: 35%;
    }

    .carousel-item {
        flex: 0 0 calc(50% - 6px);
    }

    .navista-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 16px;
    }
    .service-card {
        padding: 12px 8px;
    }
    .service-card .service-icon {
        font-size: 22px;
    }

    .navista-footer {
        padding: 24px 16px 16px;
    }
    .navista-footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .navista-hero {
        height: 55vh;
        min-height: 280px;
    }
    .navista-hero .slide .slide-content h1 {
        font-size: 24px;
    }
    .navista-hero .slide .slide-content p {
        font-size: 14px;
    }
    .navista-hero .slide .slide-image {
        width: 70%;
        height: 30%;
    }
    .navista-hero .btn-hero {
        padding: 8px 18px;
        font-size: 13px;
    }
    .navista-hero .slider-dots {
        bottom: 12px;
    }
    .navista-hero .slider-dots .dot {
        width: 8px;
        height: 8px;
    }
    .navista-hero .slider-dots .dot.active {
        width: 20px;
    }

    .carousel-item {
        flex: 0 0 calc(100% - 0px);
    }
    .product-card img {
        height: 100px;
    }
    .product-card h4 {
        font-size: 13px;
    }
    .product-card .price {
        font-size: 14px;
    }

    .navista-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 10px;
    }
    .service-card h3 {
        font-size: 14px;
    }
    .service-card p {
        font-size: 11px;
    }
    .service-card .service-icon {
        font-size: 20px;
    }

    .carousel-title {
        font-size: 17px;
    }

    .navista-top-bar .top-actions .welcome-text {
        font-size: 10px;
        padding: 2px 8px;
    }
    .navista-top-bar .top-actions .btn-logout {
        font-size: 10px;
        padding: 2px 10px;
    }
}