/* ===============================
   BASE STYLES - CLEANED VERSION
   Removed all duplications and legacy SPA code
================================ */

/* CSS Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===============================
   TOP BAR (Desktop Only)
================================ */

.top-bar {
    background-color: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.topbar-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.certification-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.badge-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.topbar-center {
    display: flex;
    justify-content: center;
}

.top-bar-logo {
    height: 126px;
    width: auto;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 190px;
    justify-content: center;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* ===============================
   NAVBAR
================================ */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background-color: var(--white) !important;
}

.navbar .container {
    position: relative;
}

/* Desktop centered brand title */
.nav-brand-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.6px;
    white-space: nowrap;
    pointer-events: none;
}

/* Mobile brand (hidden on desktop) */
.navbar-brand {
    display: none;
}

.company-logo {
    height: 42px;
    width: auto;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Nav links */
.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* ===============================
   HERO SECTION
================================ */

.hero-section {
    position: relative;
    height: 520px;
    background-image: url('https://res.cloudinary.com/djcyn6imb/image/upload/v1767479016/Untitled_design_4_yh5yyp.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   PAGE HEADER (for inner pages)
================================ */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 50px;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===============================
   SECTION TITLES
================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===============================
   PRODUCT CARDS
================================ */

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.product-image,
.product-image-home {
    width: 100%;
    height: 280px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa;
    overflow: hidden;
    padding: 10px;
    border-radius: 15px 15px 0 0;
}

.product-image img,
.product-image-home img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image-home img {
    transform: scale(1.03);
}

.product-content {
    padding: 1.5rem;
}

/* ===============================
   GALLERY
================================ */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
}

/* ===============================
   CONTACT INFO CARDS
================================ */

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
}

/* ===============================
   FOOTER
================================ */

.footer {
    background: #1f1f1f;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 15px;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-text {
    max-width: 420px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: #2c2c2c;
    border-radius: 50%;
    color: #fff;
    transition: background 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: #0d6efd;
    color: #fff;
}

.footer-nav-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav-horizontal a {
    color: #d6c28b;
    text-decoration: none;
    font-weight: 500;
}

.footer-nav-horizontal a:hover {
    color: #ffffff;
}

.footer-nav-horizontal .divider {
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0;
}

.copyright {
    color: #999999;
    font-size: 0.9rem;
}

/* ===============================
   WHATSAPP FLOAT BUTTON
================================ */

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    right: 24px;
    bottom: 24px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 56px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #ffffff;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 991px) {
    /* Hide top bar on mobile */
    .top-bar {
        display: none !important;
    }
    
    /* Hide desktop brand title */
    .nav-brand-title {
        display: none;
    }
    
    /* Show mobile brand with logo */
    .navbar-brand {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .topbar-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 420px;
    }
    
    .product-image,
    .product-image-home {
        height: 220px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-nav-horizontal .divider {
        display: none;
    }
}

/* ===============================
   UTILITY CLASSES
================================ */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}