@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --brand: #D6001C;
    --brand-dark: #B00017;
    --text-primary: #F2F4F8;
    --text-secondary: #C9D1D9;
    --surface: #1B1F24;
    --surface-muted: #161A1E;
    --bg: #101113;
    --border: #2A3037;
    --shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg) 0%, #15171b 100%);
    line-height: 1.6;
}

.logo-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1.5rem;
}

.logo-container img {
    width: min(520px, 88vw);
    height: auto;
    display: block;
}

.status-text {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-gif {
    width: min(92px, 22vw);
    height: auto;
    display: block;
    margin-top: 0.35rem;
}

.construction-main {
    min-height: calc(100vh - 86px);
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.5rem;
}

.construction-main .progress-gif {
    width: min(160px, 40vw);
    margin-top: 0;
}

h1,
h2 {
    margin: 0;
    line-height: 1.2;
}

p {
    margin: 0;
    color: var(--text-secondary);
}

/*Navbar*/

.navbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background-color: rgba(16, 17, 19, 0.92);
    backdrop-filter: blur(10px);
    padding: 0.8rem 6%;
}

.image {
    width: 185px;
    flex: 0 0 auto;
}

.image img {
    display: block;
    width: 100%;
    height: auto;
}

.navbar-links {
    height: auto;
}

.navbar-links ul {
    display: flex;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    list-style: none;
}

.navbar-links li a,
.dropbtn {
    display: block;
    text-decoration: none;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 999px;
    background-color: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-links li a:hover,
.dropbtn:hover,
.dropbtn[aria-expanded="true"] {
    background-color: rgba(214, 0, 28, 0.16);
    color: var(--text-primary);
}

.dropbtn:focus-visible {
    outline: 2px solid rgba(214, 0, 28, 0.55);
    outline-offset: 2px;
}


/*Menu toggle*/

.toggle-button{
    position: absolute;
    top: 1.4rem;
    right: 6%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 10px;
}

/*Dropdown Produtos*/

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    background-color: var(--surface);
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1200;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(214, 0, 28, 0.16);
    color: var(--text-primary);
}

.show {
    display: block;
}

main {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    padding: 2.2rem 0 3rem;
}

section {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/*Section Home*/

.home-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 68vh;
    padding: 2.5rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(214, 0, 28, 0.18) 0%, var(--surface) 62%);
}

.home-section h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.home-section p {
    max-width: 660px;
    font-size: clamp(1rem, 2.1vw, 1.15rem);
}

/*Section About*/

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 2.2rem;
    text-align: center;
}

.about-section h2,
.services-section h2,
.contact-section h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    color: var(--text-primary);
}

.about-section p {
    max-width: 75ch;
    font-size: 1.02rem;
}

/*Section Services*/

.services-section {
    --visible-cards: 3;
    --card-gap: 1rem;
    padding: 2.2rem;
    display: grid;
    gap: 1.3rem;
}

.services-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: var(--card-gap);
    transition: transform 0.35s ease;
    will-change: transform;
}

.service-card {
    flex: 0 0 calc((100% - (var(--visible-cards) - 1) * var(--card-gap)) / var(--visible-cards));
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #1f242b 0%, #1b1f24 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.service-media {
    position: relative;
    border-bottom: 1px solid var(--border);
}

.service-media-viewport {
    overflow: hidden;
}

.service-media-track {
    display: flex;
    transition: transform 0.3s ease;
}

.service-image {
    min-width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.service-media-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(16, 17, 19, 0.72);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 2;
}

.service-media-btn.prev {
    left: 0.5rem;
}

.service-media-btn.next {
    right: 0.5rem;
}

.service-media-dots {
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.service-media-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    background: rgba(242, 244, 248, 0.45);
    padding: 0;
    cursor: pointer;
}

.service-media-dot.active {
    background: var(--brand);
}

.service-card-content {
    padding: 1rem 1rem 1.2rem;
    display: grid;
    gap: 0.7rem;
    height: 100%;
}

.service-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: #15191f;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(214, 0, 28, 0.2);
    border-color: rgba(214, 0, 28, 0.35);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: #3b434d;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.active {
    background: var(--brand);
    transform: scale(1.12);
}

/*Section Contact*/

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.2rem;
    text-align: center;
}

.contact-form {
    margin-bottom: 0;
    width: 100%;
    max-width: 540px;
    display: grid;
    gap: 0.45rem;
    text-align: left;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.45rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-primary);
    background: #14181d;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(214, 0, 28, 0.25);
}

.contact-form button {
    margin-top: 0.8rem;
    width: fit-content;
    border: 0;
    border-radius: 12px;
    padding: 0.8rem 1.4rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-form button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.form-status {
    min-height: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/*Footer*/
.footer {
    text-align: center;
    padding: 1.1rem;
    background-color: var(--surface-muted);
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}


/*Responsive*/

@media (max-width: 800px){
    .navbar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.7rem 4%;
        gap: 0.55rem;
    }

    .image {
        width: 125px;
    }

    .toggle-button{
        display: flex;
        position: static;
        margin-top: 0.1rem;
    }

    .navbar-links {
        display: block;
        width: 100%;
        margin-top: 0.6rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.28s ease, transform 0.28s ease;
    }

    .navbar-links.active {
        max-height: 360px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        overflow: visible;
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
    }

    .navbar-links ul li {
        text-align: left;
    }

    .navbar-links ul li a,
    .dropbtn {
        padding: 0.75rem;
        border-radius: 10px;
    }

    main {
        width: 94%;
        gap: 1.4rem;
        padding-top: 1.4rem;
    }

    section {
        border-radius: 16px;
    }

    .home-section {
        min-height: 56vh;
        padding: 2rem 1.2rem;
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: 1.4rem;
    }

    .services-carousel {
        grid-template-columns: 1fr;
    }

    .services-section {
        --visible-cards: 1;
    }

    .carousel-btn {
        justify-self: center;
    }
}

@media (max-width: 1080px) and (min-width: 801px) {
    .services-section {
        --visible-cards: 2;
    }
}