/* ===== Etiplus Public Site Styles ===== */

:root {
    --ep-primary: #4632DA;
    --ep-primary-dark: #262B97;
    --ep-dark: #001316;
    --ep-cyan: #06D9FA;
    --ep-orange: #FF6000;
    --ep-white: #FFFFFF;
    --ep-light: #F8F9FA;
    --ep-gray: #6C757D;
    --ep-gradient: linear-gradient(135deg, #262B97 0%, #001316 100%);
}

/* ===== Reset & Base ===== */
body.site-body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-title {
    font-family: 'Varela Round', sans-serif;
}

/* ===== Navbar ===== */
.navbar-site {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    background-color: transparent;
}

.navbar-site.scrolled {
    background-color: rgba(0, 19, 22, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.navbar-site .navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

.navbar-site.scrolled .navbar-brand img {
    height: 32px;
}

.navbar-site .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.navbar-site .nav-link:hover,
.navbar-site .nav-link.active {
    color: var(--ep-cyan) !important;
}

.navbar-site .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ep-cyan);
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-site .nav-link:hover::after,
.navbar-site .nav-link.active::after {
    width: 60%;
    left: 20%;
}

.navbar-site .btn-cta-nav {
    background: var(--ep-orange);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.4rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.navbar-site .btn-cta-nav:hover {
    background: #e55500;
    transform: translateY(-1px);
    color: #fff;
}

.navbar-site .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-site .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-site .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-phone {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-phone:hover {
    color: var(--ep-cyan) !important;
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ep-gradient);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ep-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-title .highlight {
    color: var(--ep-cyan);
}

.hero-img {
    max-width: 90%;
    max-height: 70vh;
    height: auto;
    border-radius: 100px 300px 100px 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    margin-top: 2rem;
}

.btn-hero {
    background: var(--ep-orange);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: #e55500;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 96, 0, 0.4);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-outline:hover {
    border-color: var(--ep-cyan);
    color: var(--ep-cyan);
    transform: translateY(-3px);
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: var(--ep-gradient);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/img/site/bg-section.png') center/cover no-repeat;
    opacity: 0.08;
}

.page-hero h1 {
    color: var(--ep-white);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    position: relative;
}

/* ===== Sections ===== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ep-primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--ep-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-dark {
    background: var(--ep-gradient);
    color: var(--ep-white);
}

.section-dark .section-title {
    color: var(--ep-white);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-light {
    background: var(--ep-light);
}

/* ===== Product Cards ===== */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ep-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home page cards: cover to fill entire area */
.product-card-img-cover img {
    object-fit: cover !important;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ep-primary-dark);
    margin-bottom: 0.5rem;
}

.product-card-sku {
    font-size: 0.8rem;
    color: var(--ep-gray);
    margin-bottom: 0.75rem;
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ep-orange);
    margin-top: auto;
    margin-bottom: 1rem;
}

.product-card-btn {
    background: var(--ep-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.product-card-btn:hover {
    background: var(--ep-primary-dark);
    color: #fff;
}

/* Product Detail Page */
.product-main-image {
    background: var(--ep-light);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--ep-light);
    transition: border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb:hover {
    border-color: var(--ep-primary);
}

.product-thumb.active {
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 2px rgba(70, 50, 218, 0.2);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Category filter */
.category-filter .btn {
    border-radius: 25px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem;
    border: 2px solid var(--ep-primary);
    color: var(--ep-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.category-filter .btn.active,
.category-filter .btn:hover {
    background: var(--ep-primary);
    color: #fff;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.feature-card .icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ep-primary-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--ep-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Stats ===== */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ep-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--ep-orange) 0%, #ff8533 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/img/site/cta-shapes.png') center/cover no-repeat;
    opacity: 0.1;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    position: relative;
}

.btn-cta {
    background: #fff;
    color: var(--ep-orange);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--ep-orange);
}

/* ===== Contact ===== */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.contact-info-item h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ep-primary-dark);
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--ep-gray);
    font-size: 0.95rem;
    text-decoration: none;
    margin: 0;
}

.contact-info-item a:hover {
    color: var(--ep-primary);
}

/* Contact form */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 0.15rem rgba(70, 50, 218, 0.15);
}

.contact-form .btn-submit {
    background: var(--ep-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.contact-form .btn-submit:hover {
    background: var(--ep-primary-dark);
    transform: translateY(-2px);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* ===== Footer ===== */
.footer-site {
    background: var(--ep-gradient);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
}

.footer-site h5 {
    color: var(--ep-white);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-site p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-site a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-site a:hover {
    color: var(--ep-cyan);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--ep-cyan);
    border-color: var(--ep-cyan);
    color: var(--ep-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* ===== Clients Carousel ===== */
.clients-carousel {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
}

.clients-track {
    display: flex;
    gap: 3rem;
    animation: scroll-clients 30s linear infinite;
    width: max-content;
}

.client-logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-clients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Section Images ===== */
.section-padding img.rounded-4 {
    border-radius: 300px 100px 100px !important;
    max-height: 500px;
    object-fit: cover;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-section { min-height: auto; padding: 8rem 0 4rem; }
    .section-title { font-size: 1.7rem; }
    .stat-number { font-size: 2.2rem; }

    .navbar-site .navbar-collapse {
        background: rgba(0, 19, 22, 0.95);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 1.8rem; }
    .hero-img { margin-top: 2rem; }
    .section-padding { padding: 3rem 0; }
    .page-hero { padding: 7rem 0 3rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .product-card-img { aspect-ratio: 1 / 1; }
    .stat-item { padding: 1rem 0.5rem; }
    .stat-number { font-size: 1.8rem; }
}
