@font-face {
    font-family: Roboto;
    /* set name */
    src: url(../fontes/static/Roboto-Regular.ttf);
    /* url of the font */
}

@font-face {
    font-family: Roboto-black;
    /* set name */
    src: url(../fontes/static/Roboto-Black.ttf);
    /* url of the font */
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #d32f2f;
    /* Fire engine red */
    --secondary-color: #1976d2;
    /* Safety blue */
    --accent-color: #ffa000;
    /* Warning orange */
    --dark-bg: #212121;
    --light-bg: #f5f5f5;
    --text-color: #333;
    --white: #fff;
    --font-main: 'Roboto', sans-serif;
}

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

body {
    font-family: Roboto;
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

h1,
h2,
h3 {
    font-family: Roboto-black;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(211, 47, 47, 0.25) 50%,
            rgba(0, 0, 0, 0.75) 100%),
        url('../img/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero .container {
    animation: heroFadeUp 0.9s ease both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: Roboto-black;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-logo {
    max-width: 30%;
    height: auto;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #b71c1c;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: block;
}

.about-text {
    flex: 1.2;
    min-width: 300px;
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
        padding: 0 15px;
    }

    .about-section {
        padding: 3rem 0;
    }
}

/* Services/Roles Section */
.services {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: Roboto-black;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.service-link {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.service-card:hover .service-link {
    gap: 0.7rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: #fdfdfd;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem 2rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.gallery-card {
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    height: 200px;
    overflow: hidden;
}

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

.gallery-card:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 1.25rem;
}

.gallery-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.gallery-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.gallery-date {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background 0.3s, color 0.3s;
    color: var(--primary-color);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: #fff;
}

.gallery-nav.prev {
    position: absolute;
    left: -25px;
}

.gallery-nav.next {
    position: absolute;
    right: -25px;
}

@media (max-width: 768px) {
    .gallery-nav {
        display: none;
    }

    .gallery-card {
        min-width: 260px;
    }
}

/* Partners Section */
.partners {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.partners-subtitle {
    color: #666;
    margin-bottom: 3rem;
    margin-top: -2.5rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(160deg, #1a1a2e 0%, #212121 50%, #16213e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-title {
    color: var(--white) !important;
}

.contact-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Grupos */
.contact-group {
    margin-bottom: 2.5rem;
}

.contact-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-group-label i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* Cards de contato direto (horizontal) */
.contact-row.direct {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    text-decoration: none;
    transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(8px);
    max-width: 100%;
    /* Prevent horizontal overflow */
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.contact-card.no-link {
    cursor: default;
}

.contact-card.no-link:hover {
    transform: none;
    box-shadow: none;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-whatsapp .card-icon {
    background: #25D366;
}

.card-email .card-icon {
    background: var(--primary-color);
}

.card-address .card-icon {
    background: var(--secondary-color);
}

.card-cnpj .card-icon {
    background: var(--accent-color);
}

.card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
    /* Force child elements to respect boundaries */
}

.card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

.card-value {
    font-size: 0.85rem !important;
    font-weight: 500;
    color: var(--white);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    /* Most aggressive wrapping */
    word-break: break-word;
    display: block;
    width: 100%;
}

.card-arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.contact-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

/* Cards de redes sociais (vertical) */
.contact-row.social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
    gap: 1.5rem;
    justify-content: center;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    text-decoration: none;
    transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
    text-align: center;
}

.social-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.social-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.25s;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.instagram-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook-icon {
    background: #1877F2;
}

.youtube-icon {
    background: #FF0000;
}

.social-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.social-handle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Contact */
@media (max-width: 640px) {
    .contact-row.social {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .social-card {
        padding: 1.25rem 0.5rem;
    }

    .social-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .contact-row.direct {
        grid-template-columns: 1fr;
    }

    .social-handle {
        font-size: 0.4rem;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 2.5rem 0;
}

.developer-credit {
    font-size: 0.8rem;
    margin-top: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.developer-credit:hover {
    opacity: 1;
}

.developer-credit a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.developer-credit a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--white);
    }

    /* Hamburger to X Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        border-radius: 0 0 10px 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links .btn-nav {
        margin: 0 auto;
        display: table;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
}