/* Sfera Soluções Técnicas - Main Stylesheet (Multibelt Ref) */
:root {
    /* Colors - Match Multibelt Reference */
    --color-orange: #F57F20; /* Bright Orange CTA */
    --color-blue-dark: #0F3566; /* Deep Navy Blue */
    --color-grey-dark: #333333; /* Dark Grey for Text */
    --color-grey-med: #666666; /* Medium Grey */
    --color-light: #F9F9F9; /* Light BG */
    --color-white: #FFFFFF;

    /* Service Bar Colors */
    --bar-col-1: #0F3566; /* Blue */
    --bar-col-2: #4A4A4A; /* Charcoal */
    --bar-col-3: #666666; /* Grey */
    --bar-col-4: #F57F20; /* Orange */

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--color-grey-dark);
    line-height: 1.6;
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-grey-dark);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Response Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default 3 cols */
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px; /* Slightly rounded */
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-orange {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-orange:hover {
    background-color: #D96E00;
}

/* Header (Multibelt Style) */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

/* Hidden by default (Desktop) */
.mobile-toggle, .mobile-menu { display: none; }

.header-top {
    font-size: 0.8rem;
    color: #999;
    padding: 10px 0;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 120px; /* Increased header height */
    padding: 0 20px;
}

/* Logo Area */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 101; /* Ensure on top */
}

.logo img {
    height: 100px; /* Much larger logo */
    width: auto;
    transition: transform 0.3s;
    background: white; /* Optional: adds a box feel if needed, but transparent is fine */
    padding: 5px;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation Groups */
.nav-left {
    display: flex;
    justify-content: flex-end; /* Push to center */
    padding-right: 40px;
}

.nav-right {
    display: flex;
    justify-content: flex-start; /* Push to center */
    padding-left: 40px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 0.95rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 400; /* Lighter font weight like reference */
}

nav a:hover, nav a.active {
    color: var(--color-orange);
}

/* Search Icon Placeholder */
.search-icon {
    color: var(--color-orange);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Dark overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    color: #ddd;
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Page Header (Internal Pages) */
.page-header {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    background-image: linear-gradient(rgba(15, 53, 102, 0.9), rgba(15, 53, 102, 0.9)), url('../img/hero_bg.png'); /* Overlay + Image */
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-header p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Bar (Colored Strip) */
.service-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: var(--color-white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
}

.service-item {
    padding: 25px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    cursor: pointer;
}

.service-item i { font-size: 1.5rem; }

.bg-col-1 { background-color: var(--color-blue-dark); }
.bg-col-2 { background-color: var(--bar-col-2); }
.bg-col-3 { background-color: var(--bar-col-3); }
.bg-col-4 { background-color: var(--bar-col-4); }

.service-item:hover { filter: brightness(1.1); }

/* Main Content */
section { padding: 60px 0; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-orange);
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px;
    color: #666;
    font-size: 1.1rem;
}

/* Footer (Multibelt Style) */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a:hover { color: var(--color-orange); }

.copyright {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Bento Grid (Multibelt Style) */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 Left, 2/3 Right */
    gap: 20px;
    margin-top: 40px;
}

.bento-col-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 0 50px 0 0; /* Multibelt style: Top-Right rounded */
    height: 100%;
    min-height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.bento-card-large {
    height: 100%;
    min-height: 520px; /* Spans height of 2 small rows + gap */
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.bento-card:hover img {
    transform: scale(1.1);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Header Stacking - Reset for Hamburger */
    .header-main {
        display: flex; /* Flex again for mobile row */
        justify-content: space-between;
        height: 80px;
        padding: 0 20px;
    }

    /* Hide Desktop Navs */
    .desktop-nav { display: none !important; }

    /* Mobile Toggle */
    .mobile-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--color-grey-dark);
        cursor: pointer;
    }

    /* Logo specifics for mobile */
    .logo { 
        margin: 0; 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%);
    }
    .logo img { height: 50px; }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: 0.3s ease-in-out;
        padding: 20px;
    }

    .mobile-menu.active { left: 0; }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        font-weight: bold;
        font-size: 1.2rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    .close-menu { cursor: pointer; color: var(--color-orange); }

    .mobile-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1rem;
        color: #333;
    }

    /* Hero */
    .hero { height: auto; padding: 100px 0; }
    .hero h1 { font-size: 2rem; }

    /* Service Bar */
    .service-bar { grid-template-columns: 1fr; }

    /* Bento Grid */
    .bento-grid { grid-template-columns: 1fr; }
    .bento-col-right { grid-template-columns: 1fr; }
    .bento-card-large { min-height: 300px; }

    /* Generic Grids Mobile */
    .grid-2, .grid-3, .products-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* Contact Page Specific */
    .contact-info { margin-bottom: 40px; }
}

/* Base state for toggle moved to Header section */
