:root {
    --gray-900: #010a1a;
    --gray-800: #1a2331;
    --white: white;
    --black: black;
    --orange: #DE7405;
    --orange-footer: #C16402;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    margin-top: 40px;
    width: 100%;
    background-color: var(--gray-900);
}

h2 {
    font-size: 2.5em;
    color: var(--white);
}

strong {
    color: var(--orange);
}

.navbar {
    transition: background-color 0.3s ease;
    z-index: 99;

}

.navbar.scrolled {
    background-color: var(--gray-800);
    color: #fff;
    z-index: 99;

}

a .navbar-link .active {
    background-color: var(--gray-800);
}


.carousel-section {
    position: relative;
    width: 90%;
    margin: 0% 0% 0% 10%;
    padding: 0;
}

.carousel-caption-custom {
    position: absolute;
    top: 0;
    transform: translateX(-20%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    z-index: 3;
}

/* sombra */
.carousel-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15%;
  height: 100%;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(0, 7, 32, 0.9) 0%,
    rgba(0, 7, 32, 0.6) 40%,
    rgba(0, 7, 32, 0) 100%
  );
}

.carousel-caption-custom-text {
    font-size: 5em;
    position: relative;
    z-index: 4;
}

.about-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--gray-900);
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    top: 0;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    width: 90%;
}

.text-left,
.text-right {
    flex: 1;
    padding: 0 20px;
}

.text-overlay h2 {
    font-size: 4em;
    margin: 0;
}

.text-overlay p {
    font-size: 1.8em;
    margin: 0;
}


.services-section {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
}

.services-section {
    padding: 20px;
    background-color: var(--gray-900);
    color: var(--white);
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0;
}

.section-title {
    width: 100%;
    font-size: 1em;
    color: var(--white);
    margin-bottom: 20px;
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.item {
    background-color: var(--gray-900);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-800);
    cursor: pointer;
    text-align: center;
    height: 70vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.item:hover img {
    opacity: 0.3;
}

.item p {
    position: relative;
    z-index: 1;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--white);
}

.item .bi-arrow-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1em;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.3s, color 0.3s;
    border: 3px solid var(--orange);
}

.item:hover .bi-arrow-right {
    background-color: var(--orange);
    color: white;
}

.contact {
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    margin-top: 25%;
}

.contact-title {
    margin-bottom: 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    align-items: center;
    margin-top: 2.5%;
}

.contact-info>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info-telephone-number,
.contact-info-email-contact,
.contact-info-full-adress {
    margin-top: 10px;
}

.contact-map iframe {
    margin-top: 2%;
}

.icon-circle {
    background-color: var(--orange);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
}

.whatsapp-button img {
    width: 60px;
    height: auto;
    border-radius: 50%;
}

a {
    text-decoration: none;
    color: var(--white);
}

a:hover,
a:focus,
a:visited,
a:active {
    color: var(--white);
}

.socials {
    background-color: var(--gray-800);
    padding: 10px 0;
}

.socials-itens {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.socials-itens p {
    margin: 0;
    line-height: 1;
    color: var(--white);
    font-weight: 600;
}

.socials-itens i {
    font-size: 1.3rem;
}

.socials-itens i:hover {
    color: var(--orange);
}

.footer {
    background-color: var(--orange-footer);
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    margin: 0;
}

.footer div {
    max-width: 300px;
}

.footer .logo img {
    width: 100%;
    max-width: 100%;
    margin-left: 15%;
}

.footer h3 {
    margin-bottom: 10px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer .contacts div,
.footer .links div {
    margin-bottom: 10px;
}

.footer-copyright {
    background-color: var(--orange-footer);
    color: var(--white);
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 0.8em;
    flex-direction: column;
}

.footer-copyright p {
    margin-bottom: 0;
}

/* pagina de serviços */
body.services-body .navbar {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 16px;
}

body.navbar .show {
    background-color: var(--gray-800)
}

.services-body {
    background-color: var(--gray-900);
}

.services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3% 0% 3% 0%;
}

.services-title {
    margin: 0;
    padding-bottom: 2%;
}

.services-text {
    color: var(--white);
    text-align: justify;
    width: 80%;
}

/* === Cards por obra === */
.works-grid {
    width: 90%;
    max-width: 1200px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.work-card {
    background: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-align: left;
}

.work-card:hover {
    transform: translateY(-2px);
    border-color: rgba(222, 116, 5, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.work-card__thumb {
    width: 100%;
    height: 210px;
    object-fit: fill;
    display: block;
    opacity: 0.95;
}

.work-card__body {
    padding: 12px 12px 14px 12px;
}

.work-card__title {
    margin: 0;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
}

.work-card__meta {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.work-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.work-card__badge i {
    color: var(--orange);
}

/* === Modal/Carrossel === */
.works-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.works-modal.is-open {
    display: block;
}

.works-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.works-modal__dialog {
    position: relative;
    width: min(980px, 92vw);
    margin: 6vh auto;
    background: #0b1324;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.works-modal__close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.works-modal__close:hover {
    opacity: 1;
}

.works-modal__header {
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.works-modal__title {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.works-modal__meta {
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.works-modal__counter {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    white-space: nowrap;
    padding-top: 4px;
    margin-right: 30px;
}

.works-modal__viewer {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    gap: 6px;
    padding: 10px;
}

.works-modal__image {
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.works-modal__nav {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-modal__nav:hover {
    border-color: rgba(222, 116, 5, 0.7);
}

.works-modal__thumbs {
    padding: 10px 12px 14px 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.works-modal__thumb {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.9;
}

.works-modal__thumb:hover {
    opacity: 1;
}

.works-modal__thumb.is-active {
    border-color: var(--orange);
    opacity: 1;
}



/* responsividade */
@media (max-width: 940px) {
    .navbar {
        background-color: var(--gray-800) !important;
    }

    .carousel-caption-custom {
        transform: translateX(-10%);
    }

    .carousel-caption-custom-text {
        font-size: 4em;
    }

    .text-overlay {
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: center;
        width: 90%;
    }

    .text-left,
    .text-right {
        flex: 1;
        padding: 0 20px;
    }

    .text-overlay h2 {
        font-size: 2.5em;
        margin: 0;
    }

    .text-overlay p {
        font-size: 1.2em;
        margin: 0;
        margin-top: 2%;
        text-align: justify;
    }


    .section-title {
        font-size: 1em;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .item {
        height: 30vh;
        font-size: 1.5em;
    }

    .item .bi-arrow-right {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-card__thumb {
        height: 200px;
    }


    .contact-info {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }

    .contact-info-telephone-number,
    .contact-info-email-contact,
    .contact-info-full-adress {
        margin-top: 5px;
    }

    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
    }


    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }


    .footer {
        background-color: #C16402;
        color: #fff;
        padding: 20px 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .footer div {
        max-width: 200px;
    }

    .footer .logo img {
        width: 100%;
        max-width: 100%;
        margin-left: 20%;
    }

    .footer h3 {
        margin-bottom: 10px;
    }

}

@media (max-width: 490px) {
    .navbar {
        background-color: var(--gray-800) !important;
    }

    h2 {
        font-size: 2em;
        color: var(--white);
    }

    .carousel-section {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .carousel-caption-custom {
        transform: translateX(0);
    }

    .carousel-caption-custom-text {
        font-size: 2em;
        margin-left: 3%;
        width: 100%;
    }


    .text-overlay {
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: center;
        width: 90%;
    }

    .text-left,
    .text-right {
        flex: 1;
        padding: 0 20px;
    }

    .text-overlay h2 {
        font-size: 2em;
        margin: 0;
    }

    .text-overlay p {
        font-size: 1em;
        margin: 0;
        margin-top: 2%;
        text-align: justify;
    }

    .section-title {
        font-size: 1em;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .item {
        height: 28vh;
        font-size: 1.5em;
    }

    .item .bi-arrow-right {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-card__thumb {
        height: 210px;
    }

    .works-modal__viewer {
        grid-template-columns: 44px 1fr 44px;
    }

    .works-modal__nav {
        width: 44px;
        height: 44px;
    }

    .works-modal__thumb {
        width: 78px;
        height: 54px;
    }

    .contact-title {
        margin-top: 25px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .contact-info-whatsapp-number,
    .contact-info-email-contact,
    .contact-info-full-adress {
        margin-top: 5px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .whatsapp-button {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }


    .footer {
        background-color: #C16402;
        color: #fff;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        gap: 2%;
        padding: 2%;
    }

    .footer div {
        max-width: 300px;
    }

    .footer .logo img {
        width: 90%;
        max-width: 90%;
        margin: 0;
    }

    .footer h3 {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}