/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
   :root {
    --primary-color: #2E7D32; /* Earthy Green */
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --accent-color: #F9A825; /* Trust-building yellow/orange */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F1F8E9; /* Very light green tint for backgrounds */
    --bg-white: #FFFFFF;
    --whatsapp-color: #25D366;
    
    --font-main: 'Inter', sans-serif;
    
    --radius: 8px;
    --radius-large: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 { color: var(--primary-dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--bg-white); }
.text-white h1, .text-white h2, .text-white h3 { color: var(--bg-white); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pt-pb-large { padding: 60px 0; }
.p-30 { padding: 30px; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-dark); }
.bg-primary { background-color: var(--primary-color); }
.radius-medium { border-radius: var(--radius-large); }
.overflow-hidden { overflow: hidden; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 30px; }

/* Desktop overrides */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

.section-title { margin-bottom: 40px; }
.divider { 
    height: 4px; width: 60px; background-color: var(--accent-color); 
    margin: 15px auto; border-radius: 2px;
}
.divider.text-left { margin-left: 0; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-light);
    color: white;
}

.btn-large { padding: 15px 30px; font-size: 1.1rem; }

/* Sticky WhatsApp */
.sticky-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}
.sticky-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.lang-toggle button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}
.lang-toggle button.active, .lang-toggle button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 600;
}

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 500;
}

.logo a { display: flex; flex-direction: column; }
.logo h1 { font-size: 1.8rem; margin: 0; line-height: 1; }
.logo .tagline { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.hms-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #de0000;
    color: #ffffff !important;
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 2.2rem;
    padding: 12px 35px;
    border-radius: 0px 4px 0px 40px; /* Closer to the image: sharp top and bottom right */
    line-height: 1;
}
.hms-logo-text {
    display: inline-block;
    transform: scaleX(1.6) skewX(-5deg); /* Match the wide, slanted look */
    transform-origin: left;
    margin-right: 15px; /* Offset the scaling expansion */
    letter-spacing: 2px;
    -webkit-text-stroke: 2px #ffffff; /* Make the letters artificially much thicker */
}
.hms-logo:hover {
    background-color: #be0000;
    color: #ffffff !important;
}

.desktop-nav ul { display: flex; gap: 15px; }
.desktop-nav a { 
    font-weight: 500; 
    padding: 8px 16px; 
    border-radius: var(--radius); 
    background-color: #F8F9FA;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid #EAEAEA;
}
.desktop-nav a:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}
.desktop-nav a.active { 
    background-color: var(--primary-color); 
    color: white; 
    font-weight: 600; 
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.contact-panel-dark {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.contact-panel-dark:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}
.contact-icon-orange {
    color: #ff8c00;
    font-size: 1.3rem;
    transform: rotate(-15deg);
}
.contact-numbers {
    letter-spacing: 0.5px;
}

.nav-contact { display: none; } /* Mobile */
.desktop-nav { display: none; } /* Mobile */

@media (min-width: 900px) {
    .nav-contact { display: block; }
    .desktop-nav { display: block; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 0.8rem; text-align: center; }
    .top-bar .container { flex-direction: column; gap: 8px; justify-content: center; align-items: center; }
    .top-bar .top-bar-text { display: block; margin-top: 4px; }
    
    .header { padding: 10px 0; }
    .header .container { flex-direction: column; gap: 10px; }
    
    .logo a { flex-direction: column !important; gap: 5px !important; text-align: center; }
    .logo a img { height: 60px !important; margin: 0 auto; }
    .logo a div { align-items: center; }
    .logo a span:first-child { font-size: 18px !important; }
    .logo a span:last-child { font-size: 9px !important; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    color: var(--text-main);
    overflow: hidden;
    min-height: 550px;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 3;
}

.slide-text-side {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: 0.2s;
}

.slide.active .slide-text-side {
    transform: translateY(0);
    opacity: 1;
}

.slide-image-side {
    display: flex;
    justify-content: flex-end;
    transform: translateX(50px) scale(0.95);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide.active .slide-image-side {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.slide-image-side img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background from catalog images */
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slide-cat-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slide-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero h1 { color: var(--primary-dark); margin-bottom: 20px; }
.hero p { font-size: 1.1rem; margin-bottom: 40px; color: var(--text-muted); max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .slide-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .slide-title-large { font-size: 2.2rem; margin-bottom: 15px; }
    .hero p { margin: 0 auto 20px auto; font-size: 1rem; }
    .hero-buttons { justify-content: center; }
    .slide-image-side { justify-content: center; margin-top: 20px; transform: translateX(0) scale(0.95); }
    .slide-image-side img { max-height: 250px; }
    .hero { min-height: 600px; } /* Fixed height collapse */
    .slider-arrow { width: 40px; height: 40px; font-size: 16px; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
}

.page-title {
    background: var(--primary-dark); padding: 40px 0; color: white;
}

/* ==========================================================================
   CATEGORIES & PRODUCTS GRIDS
   ========================================================================== */
.category-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Category Card */
.cat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #E0E0E0;
    text-align: center;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.cat-img-wrapper { height: 200px; width: 100%; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.cat-img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: var(--transition); }
.cat-card:hover img { transform: scale(1.05); }
.cat-content { padding: 20px; border-top: 1px solid #EEEEEE; background: var(--bg-light); }
.cat-content h3 { margin: 0; font-size: 1.2rem; }

/* Product Card */
.prd-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}
.prd-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.prd-img { height: 250px; background: white; padding: 15px; display: flex; align-items:center; justify-content:center;}
.prd-img img { max-height: 100%; object-fit: contain; }
.prd-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; border-top: 1px solid #eaeaea;}
.prd-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
.prd-benefits { margin-bottom: 20px; flex-grow: 1; }
.prd-benefits li { position: relative; padding-left: 20px; margin-bottom: 5px; font-size: 0.9rem; color: var(--text-muted); }
.prd-benefits li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--primary-color); position: absolute; left: 0; top: 2px; font-size: 0.8rem;
}
.prd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.prd-actions .btn { padding: 8px 10px; font-size: 0.85rem; }

/* ==========================================================================
   PRODUCTS PAGE SPECIFIC
   ========================================================================== */
.catalog-section .grid-layout-sidebar {
    display: grid;
    grid-template-columns: auto;
    gap: 30px;
}
@media (min-width: 900px) {
    .catalog-section .grid-layout-sidebar { grid-template-columns: 280px 1fr; }
}
.sidebar {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #eaeaea;
    align-self: start;
}
.category-filter { display: flex; flex-direction: column; gap: 8px; }
.category-filter a {
    display: block; padding: 10px 15px; border-radius: 4px; color: var(--text-main);
    background: var(--bg-light); border-left: 3px solid transparent; font-weight: 500;
}
.category-filter a:hover, .category-filter a.active {
    background: #E8F5E9; border-left-color: var(--primary-color); color: var(--primary-dark);
}

/* ==========================================================================
   ABOUT / WHY US & CONTACT
   ========================================================================== */
.feature-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.feature-list i { color: var(--primary-color); font-size: 1.5rem; width: 25px; }

.benefit-list li { margin-bottom: 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 12px;}
.benefit-list i { color: var(--accent-color); font-size: 1.2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { background: var(--primary-light); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; flex-shrink: 0; }
.contact-item h4 { color: white; margin-bottom: 5px; }
.contact-item p { color: #cccccc; }

.map-container { min-height: 400px; background: #eee; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); overflow: auto;
}
.modal-content {
    background-color: var(--bg-white); margin: 5% auto; padding: 30px; border-radius: var(--radius-large);
    width: 90%; max-width: 900px; position: relative; animation: slideIn 0.3s;
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--text-main); }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Footer */
.footer { background: var(--primary-dark); color: white; padding: 25px 0; font-size: 0.9rem; }

/* Product Gallery */
.gallery-thumb:hover { opacity: 0.8; border-color: var(--primary-light) !important; }

/* Neptune Multi-Model Grid */
.product-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.model-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}
.model-item:hover { border-color: var(--primary-color); transform: scale(1.02); }
.model-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Lightbox */
#lightbox {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
#lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; animation: zoomIn 0.3s; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
