:root {
    --cor-do-texto: #0b2e4a;
    --cor-principal: #0B2E4A;
    --cor-principal-transparent: #468faf33;
    --cor-secundaria: #EAECF0;
    --cor-menu: #0b2e4a;
    --cor-escura: #ff0000;
    --cor-box: #e6f1f5;
    --cor-clara: #70C5DF;
    --branco: #ffffff;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-padding-top: 150px;
    /* Ajuste a altura do menu fixo aqui */
    scroll-behavior: smooth;
}

.info__content__content,
.about__box .background-box-text span {
    text-align: left;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--branco);
    color: var(--cor-menu);
    margin: 0;
    padding: 0;
}

header,
.background-box {
    margin: 0;
    padding: 0;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* ajuste se quiser mais espaço */
    background-color: var(--branco);
    /* ou a cor de fundo do header */
    position: relative;
    z-index: 999;
    flex-direction: row;
}

a {
    color: var(--cor-menu);
    text-decoration: none;
}

a:hover {
    color: var(--cor-principal);
}

/* Top section and Navigation */
.top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--branco);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top__menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: 1rem;
}

.top__menu__link {
    color: var(--cor-escura);
    font-weight: bold;
    transition: color 0.3s;
}

ul.menu li a.top__menu__link:hover {
  color: blue;
}
/* Menu Toggle */

.toggle-menu {
    display: none;
}

.toggle-menu .bar {
    width: 25px;
    height: 3px;
    margin: 4px 0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 4px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

/* Mobile Menu Display */
.top__menu.show {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--branco);
    padding: 1rem;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-radius: 8px;
    z-index: 2000;
}

.top__menu__link {
    color: var(--cor-menu);
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.top__menu__link:hover,
.top__menu__language button:hover
 {
    color: #5798ab;
}

.top__menu__language {
    position: relative;
    display: inline-block;
}


.top__menu__language button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--cor-menu);
    font-weight: bold;
    transition: color 0.3s;
}


.language__options {
    display: none;
    position: absolute;
    background-color: var(--branco);
    top: 100%;
    right: 0;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.language__options a {
    display: block;
    color: var(--cor-menu);
    padding: 10px;
    text-decoration: none;
}

.language__options a:hover {
    background-color: var(--cor-box);
}

.language__options.show {
    display: block;
}


/* Main content area */
main.info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content__electrical,
.content__panel,
.content__installation,
.content__fiber {
    flex: 1 1 10%; /* Faz com que cada coluna ocupe 23% da largura (ajustando para 4 colunas) */
    box-sizing: border-box;
    padding: 10px; /* Espaçamento interno para as colunas */
}

.info__content__subtitle {
    color: var(--cor-principal);
    margin-top: 2rem;
}

.info__content__content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cor-menu);
    font-weight: normal;
}

.info__content__paragraph {
    padding-bottom: 10px;
}

/* Footer */
.foot {
    background-color: var(--cor-secundaria);
    color: var(--cor-do-texto);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Boxes Section */
.info__boxes {
    display: flex;
    justify-content: space-between;
    flex: 1 1 23%;
    gap: 20px;
    margin-top: 2rem;
    
}

.info__boxes img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info__boxes>div {
    flex: 0 1 32%;
    background-color: var(--cor-clara);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: var(--cor-menu);
    box-sizing: border-box;
    margin-bottom: 100px;
}

.info__content__subtitle {
    font-size: 1.3rem;
    color: var(--cor-principal);
    margin-bottom: 0.5rem;
}

.info__content__content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cor-do-texto);
}

/* Top Navigation Logo */
.top img.logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-right: 0;
}

/* Contact Information Section */
.contact-info {
    background-color: var(--cor-secundaria);
    color: var(--cor-menu);
    padding: 10px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    margin: 0;
    padding: 0.5rem 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.contact-info span {
    margin-right: 2rem;
}

.contact-info span:last-child {
    margin-right: 0;
}

.contact.info__content__content {
  display: inline-block;
  margin-bottom: 0px; /* ou ajuste conforme necessário */
}

/* Background Box */
.background-box {
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-image: url(../Assets/About%20Background.png);
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    padding-left: 100px;
}

.background-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.background-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.background-box-text {
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--branco);
    padding: 2rem;
    max-width: 50%;
    font-weight: bold;
}

.background-box img {
    flex: 1;
    height: 100%;
    object-fit: cover;
    max-width: 50%;
}

.background-box-text h1 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Button Styling */
.we__do__button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--cor-principal, #5798ab);
    color: var(--branco);
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
}

.we__do__button:hover {
    background-color: var(--cor-box);
}

/* About Us Section */
.about__img {
    height: auto;
    object-fit: cover;
    object-position: center center;
    max-width: 50%;
    align-items: center;
    text-align: center;
    flex: 1;
    margin-bottom: 0;
}


.about__box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    flex: 1 1 calc(33.333% - 2rem);
    background-color: var(--cor-clara);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: var(--cor-menu);
    box-sizing: border-box;
    margin-bottom: 100px;

}

/* Contact Section */
.contact__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    flex: 1 1 calc(33.333% - 2rem);
    background-color: var(--cor-clara);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: var(--cor-menu);
    box-sizing: border-box;
    flex-direction: column;
}

.about__titulo  {
    color: var(--cor-principal);
    padding-bottom: 20px;
}

.inquiries {
    flex: 1 1 calc(50% - 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 20px;
}

.contact__inquiries {
    font-size: 1.2rem;
    color: var(--cor-principal);
}

.inquiries span {
    display: block;
    margin-top: 0.5rem;
}

/* Contact Section Map */
.contact__map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}

.map-frame {
    width: 100%;
    height: 300px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

    .contact-info {
        display: none !important;
    }

    .contact__box {
        flex-direction: column;
        padding: 1.5rem;
    }

    .contact__right {
        order: 1;
    }

    .top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .background-box-text {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        text-align: start;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .background-box {
        padding-left: 10px;
        max-height: 400px;
    }

    .info__boxes {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .info__boxes>div {
        flex-direction: column;
    }

    .info__boxes img {
        max-height: 400px;
        flex-direction: column;
    }

    /* Toggle menu (sandwich) */
    .toggle-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        cursor: pointer;
        padding: 0px;
        z-index: 3000;
        top: 0px;
    }

    .toggle-menu .bar {
        width: 25px;
        height: 3px;
        background-color: var(--cor-menu);
        margin: 4px 0;
        transition: 0.3s;
    }

    /* Transform bars into X when open */
    .toggle-menu.open .bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: 38px;
    }

    .toggle-menu.open .bar:nth-child(2) {
        opacity: 0;
    }

    .toggle-menu.open .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: 0px;
    }

    .top__menu {
        display: none;
        flex-direction: column;
        background-color: var(--cor-secundaria);
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 1rem;
        width: 200px;
        gap: 1rem;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        z-index: 2000;
    }

    .top__menu.show {
        display: flex;
    }

    /* About section adjustments */
    .about__box {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .about__img {
        display: none;
    }

    .about__box .about__content {
        flex: 1;
        padding-left: 1rem;
        color: var(--cor-menu);
    }

    .about__content {
        padding: 0.1rem;
        background-color: var(--cor-secundaria);
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        width: 100%;
    }

    .about__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1080px) {
    .contact-info {
        display: none !important;
    }
    
}