/* Variables */
:root {
    --bg-dark: #121212;
    --bg-light: #1e1e1e;
    --primary: #ff6600; /* Laranja Sincronics */
    --primary-hover: #e65c00;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3 {
    color: var(--white);
    line-height: 1.2;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.prototype-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #a3e635; /* Lime green */
    color: #121212;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1001;
}

.close-banner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #121212;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.close-banner:hover {
    opacity: 0.7;
}

/* Banner closed states */
body.banner-closed .prototype-banner {
    display: none;
}

body.banner-closed .header {
    top: 0;
}

body.banner-closed .hero {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body.banner-closed .nav-menu {
        top: 70px;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-img {
    height: 46px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-phone {
    font-weight: 600;
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    display: block;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.hero-logo {
    height: 180px;
    width: auto;
    flex-shrink: 0;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--bg-light);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content, .about-image {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
}

.features {
    display: grid;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--primary);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--primary);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid #333;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-box {
    display: flex;
    background-color: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-info {
    flex: 1;
    padding: 60px;
    background-color: var(--primary);
    color: var(--white);
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-list {
    margin: 30px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary);
}

.contact-form {
    flex: 1.5;
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-dark);
    border: 1px solid #333;
    color: var(--white);
    border-radius: 5px;
    font-family: inherit;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.2rem; }
    .about-flex { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { flex-direction: column; }
    
    .hero-title-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .hero-logo {
        height: 120px;
    }
    .hero p {
        margin: 0 auto 30px;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 106px; /* Aligns precisely below the header and banner */
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.98);
        width: 100%;
        height: calc(100vh - 106px);
        overflow-y: auto;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger { display: block; }
    .btn-phone { display: none; }

    .logo {
        font-size: 1.25rem; /* Shrink logo text slightly on mobile to avoid pushing content out */
        gap: 8px;
    }
    .logo-img {
        height: 38px; /* Shrink logo symbol slightly on mobile */
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-logo {
        height: 100px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .hero-btns .btn-primary, .hero-btns .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .about-image img {
        box-shadow: none; /* Avoid horizontal scrollbar on mobile from shadow offset */
        margin-top: 20px;
    }
    .about-flex {
        gap: 30px;
    }
    .about-content h2 {
        font-size: 2rem;
    }
    .service-card {
        padding: 25px 20px; /* Reduced card padding on mobile */
    }
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
    
    /* Fail-safe word wrap for all mobile elements to prevent long text overflows */
    p, span, a, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 30px;
        font-size: 26px;
    }
}
