/* --- THEME VARIABLES --- */
:root {
    --primary: #4682b4;
    /* Steel Blue */
    --primary-dark: #315b7d;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-body: #ffffff;
    --bg-surface: #f9fafb;
    --border: #e5e7eb;

    /* Action Colors */
    --whatsapp: #25d366;
    --phone: #0ea5e9;
    --email: #f43f5e;
}

/* --- GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

ul {
    list-style: none;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVBAR --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-transform: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Ensure content stays on top of slideshow */
}

/* Slideshow Container */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

/* Overlay to improve text readability over images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.33); /* Light overlay */
    z-index: 1;
    backdrop-filter: blur(2px);
   /* display: none;*/ /* Disabled as per request, but kept as option */
}

.hero .wrapper {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary); /* Restore solid color */
    font-weight: 800;

    /* Box Style */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 30px;
    border-radius: 16px;
    
    /* Layout */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 30px;

    /* Box Style */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 30px;
    border-radius: 16px;
    
    /* Layout */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(70, 130, 180, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.23);
}

/* --- SECTIONS COMMON --- */
section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- CARDS (MACHINES) --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card ul {
    margin-top: 10px;
}

.card li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.card li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

/* --- PRODUCTS (List Style) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-list h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.product-item {
    background: var(--bg-surface);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.sub-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

/* --- CLIENTS (LOGO GRID) --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    align-items: center;
}

.client-logo-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition:
        transform 0.2s,
        border-color 0.2s;
}

.client-logo-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.client-logo-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Filter to make logos grayscale initially, color on hover (optional) */
    /* filter: grayscale(100%); */
    transition: filter 0.3s;
}

.client-logo-box:hover img {
    filter: grayscale(0%);
}

/* --- TEAM --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.team-photo {
    width: 100%;
    height: 250px;
    background-color: #eee;
    object-fit: cover;
}

/* Placeholder color */
.team-info {
    padding: 20px;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.team-contact a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.team-contact a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- CONTACT & FOOTER --- */
.contact-section {
    background: var(--bg-surface);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.address-box {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.address-box h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.address-box p {
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
}

.address-box i {
    color: var(--primary);
    margin-top: 4px;
}

.static-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.action-pill:hover {
    transform: translateY(-2px);
}

.ap-wa {
    background: var(--whatsapp);
}

.ap-call {
    background: var(--phone);
}

.ap-email {
    background: var(--email);
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 40px 0;
    font-size: 0.9rem;
    margin-top: 0;
}

.footer-content {
    text-align: center;
}

/* --- STICKY BAR --- */
.sticky-bar-container {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.sticky-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 100px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.sticky-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.sticky-btn:hover {
    transform: scale(1.1);
}

.hidden-bar {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        display: none;
        /* Hidden by default */
    }

    .nav-links.active {
        display: flex;
    }

    /* Show when active */
    .menu-toggle {
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .static-actions-wrapper {
        align-items: center;
    }

    .action-pill {
        width: 100%;
    }

    .sticky-bar-container {
        bottom: 0;
    }

    .sticky-bar {
        width: 100%;
        border-radius: 0;
        justify-content: space-around;
        padding: 12px 0;
        border-top: 1px solid var(--border);
    }
}
