:root {
    --red: #CC0000;
    --red-dark: #A30000;
    --gold: #C8A84E;
    --gold-dark: #A68A3E;
    --gray-dark: #2D2D2D;
    --gray-medium: #666666;
    --gray-light: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray-dark);
    line-height: 1.7;
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

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

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

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 160px;
}

.header__logo img {
    height: 138px;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.header__link {
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.header__link:hover,
.header__link.active {
    color: var(--red);
    background: rgba(204, 0, 0, 0.06);
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--gray-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 240px 0 100px;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.highlight {
    color: var(--gold);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
    background: var(--red);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--full svg {
    width: 22px;
    height: 22px;
}

/* ===== SEÇÕES ===== */
.section__title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== SERVIÇOS ===== */
.servicos {
    padding: 100px 0;
    background: var(--gray-light);
}

.servicos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card__img {
    height: 200px;
    overflow: hidden;
}

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

.card:hover .card__img img {
    transform: scale(1.05);
}

.card__body {
    padding: 28px 24px;
    text-align: center;
}

.card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.card__text {
    font-size: 0.95rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ===== SEGMENTOS ===== */
.segmentos {
    padding: 100px 0;
}

.segmentos__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.segmento {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: default;
}

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

.segmento:hover img {
    transform: scale(1.08);
}

.segmento__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.05) 100%);
    transition: background var(--transition);
}

.segmento:hover .segmento__overlay {
    background: linear-gradient(to top, rgba(204, 0, 0, 0.8) 0%, rgba(204, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.05) 100%);
}

.segmento__title {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== SOBRE ===== */
.sobre {
    padding: 100px 0;
    background: var(--gray-light);
}

.sobre__text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.sobre__text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--gray-medium);
}

.equipe__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 36px;
    color: var(--gray-dark);
}

.equipe__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.equipe__card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.equipe__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.equipe__avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.equipe__nome {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.equipe__cargo {
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.equipe__desc {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* ===== CONTATO ===== */
.contato {
    padding: 100px 0;
}

.contato__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contato__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contato__item svg {
    width: 24px;
    height: 24px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 4px;
}

.contato__item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contato__item p {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.contato__item a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contato__item a:hover {
    color: var(--red-dark);
}

.contato__form {
    background: var(--gray-light);
    padding: 36px;
    border-radius: var(--radius);
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gray-dark);
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-dark);
    transition: border-color var(--transition);
    background: var(--white);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form__group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer__logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer__brand {
    text-align: center;
}

.footer__brand p {
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer__nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer__nav a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--gold);
}

.footer__legal {
    text-align: center;
    max-width: 640px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.footer__legal p + p {
    margin-top: 6px;
}

.footer__legal strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ===== ANIMAÇÕES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .servicos__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .segmentos__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .segmento {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .header__hamburger {
        display: flex;
    }

    .header__inner {
        height: 100px;
    }

    .header__logo img {
        height: 80px;
    }

    .header__nav {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__menu {
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }

    .header__link {
        display: block;
        padding: 12px 16px;
    }

    .hero {
        padding: 170px 0 80px;
        min-height: 480px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .servicos,
    .segmentos,
    .sobre,
    .contato {
        padding: 72px 0;
    }

    .servicos__grid {
        grid-template-columns: 1fr;
    }

    .card__img {
        height: 180px;
    }

    .segmentos__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .segmento {
        height: 200px;
    }

    .equipe__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .contato__grid {
        grid-template-columns: 1fr;
    }

    .footer__nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
