/* Reset básico para evitar espaços indesejados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

body {
    background-color: rgb(241, 237, 6); 
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    }

/* 3. ÁREA DE CONTEÚDO RESTRITA - Este é o seu protocolo de 'section id' */
#layout-container {
    max-width: 1200px;
    position: relative;
    margin: 0 auto; 
    background-color: #ffffff; 
    min-height: 75px; 
    padding-top: 0 0px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    }

.ics-header {
    position: sticky;
    top: 0px;
    z-index: 1000;
    width: 100%;
    height: 75px;
    background-color: rgb(234, 139, 22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    }

.ics-header-esquerda {
    display: flex;
    align-items: center;
    gap: 20px;
    }

.ics-header-nome {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: "Plus Jakarta Sans", sans-serif;
    }

/* Container do controle */
.ics-modoescuro {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #333; /* Texto escuro por padrão */
    transition: color 0.3s ease;
}

/* Esconde o checkbox se ainda estiver usando no HTML */
.dark-toggle-input {
    display: none;
}

.dark-toggle-container {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px; 
}

/* O BOTÃO (Círculo que pisca) */
#btnDark {
    display: block;
    width: 30px;  
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    background-color: white; /* Cor padrão (Modo Claro) */
    position: relative; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite ease-in-out;
    transition: all 0.3s ease; /* Suaviza a troca de cor e borda */
}

/* --- LOGICA DARK MODE (Sincronizada com o Body) --- */

/* Quando o BODY tiver a classe .dark, o botão vira PRETO */
body.dark #btnDark {
    background-color: black;
    border-color: #555;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2); /* Sombra clara no dark mode */
}

/* Ajusta o texto do container quando estiver no modo escuro */
body.dark .ics-modoescuro {
    color: #ffffff;
}

/* Mantém o suporte caso você ainda use o clique via Checkbox no HTML */
.dark-toggle-input:checked + #btnDark {
    background-color: black;
    border-color: #555;
}

/* ANIMAÇÃO DE PULSAÇÃO */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.7); } /* Ajustado para 0.7 para não encolher demais */
    100% { transform: scale(1); }
}
.ics-header-hamburger {
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 6px;
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    justify-content: center;
    }

.ics-header-hamburger span {
    display: block; 
    width: 26px; 
    height: 3px; 
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 3px; 
    transition: transform 0.3s ease, opacity 0.3s ease;
    }

.ics-header-hamburger.ativo span:nth-child(1) {
    transform: translateY(8px) rotate(45deg); 
    }
.ics-header-hamburger.ativo span:nth-child(2) {
    opacity: 0; /* 2ª linha: some */
    }
.ics-header-hamburger.ativo span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); 
    }

.ics-menu-overlay {
    position: fixed; 
    inset: 0; 
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1001; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
    }

.ics-menu-overlay.ativo {
    opacity: 1;
    visibility: visible; 
    }

.ics-menu-cortina {
    position: fixed; 
    top: 70px; 
    top: max(0px, calc(50% - 600px));
    width: 300px; 
    background-color: rgb(234, 139, 22); 
    z-index: 1002;
    transform: translateY(-140%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex;
    flex-direction: column; 
    overflow-y: auto; 
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4); 
    }

.ics-menu-cortina.aberto {
    transform: translateY(0);
    }

.ics-menu-cabecalho {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 20px 20px 16px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    }

.ics-menu-titulo {
    color: #ffffff; 
    font-size: 20px; 
    font-weight: 700; 
    font-family: "Plus Jakarta Sans", sans-serif;
    }

.ics-menu-fechar {
    background: none; 
    border: none; 
    color: rgba(255, 255, 255, 0.85); 
    font-size: 20px; 
    cursor: pointer; 
    padding: 4px 8px; 
    border-radius: 6px; 
    transition: background-color 0.2s;
    }

.ics-menu-fechar:hover {
    background-color: rgba(255, 255, 255, 0,15);
    }

.ics-menu-lista {
    list-style: none; 
    padding: 8px 0;
    margin: 0;
    }

.ics-menu-item {
    width: 100%; 
    }

.ics-menu-link {
    display: block;
    color: rgba(255, 255, 255, 0.85); 
    font-size: 17px;
    font-weight: 500; 
    text-decoration: none; 
    padding: 14px 24px;
    transition: background-color 0.15s ease, color 0.15s ease; 
    border-left: 3px solid transparent; 
    }

/* Container da Capa Responsivo */
.scapa {
    background-color: #ffffff;
    width: 100%;               /* Ocupa a largura total em telas pequenas */
    max-width: 1200px;         /* Não ultrapassa 1000px em telas grandes */
    margin: 0 auto;            /* Centraliza na horizontal */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;             /* Espaço de respiro nas laterais */
    box-sizing: border-box;    /* Garante que o padding não aumente o tamanho total */
}

/* Logomarca Responsiva e Rotativa */
.scapa img {
    width: 100%;               /* Adapta-se ao tamanho do container */
    max-width: 555px;          /* Limite máximo solicitado */
    height: auto;              /* Mantém a proporção da imagem */
    aspect-ratio: 1 / 1;       /* Força a imagem a ser um quadrado perfeito */
    border-radius: 50%;        /* Forma o círculo */
    object-fit: cover;
    
    /* Animação */
    animation: girarLogo 10s linear infinite;
}

/* Animação de Rotação */
@keyframes girarLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ajuste específico para telas muito pequenas (opcional) */
@media (max-width: 480px) {
    .scapa {
        height: 79vh;              /* Mantém a proporção da imagem */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

    
    }

    .scapa img {
        max-width: 300px;      /* Diminui a logo um pouco mais em celulares */
    }
}

.ssobre, .sservicos, .scontato {
    display: none;
}

/* Esconde tudo por padrão */
.ssobre, .sservicos, .scontato { display: none; }

/* Regras de exibição baseadas no body */
body.sobre-ativo .ssobre { display: block; }
body.sobre-ativo .scapa, body.sobre-ativo .sservicos, body.sobre-ativo .scontato { display: none; }

body.servicos-ativo .sservicos { display: block; }
body.servicos-ativo .scapa, body.servicos-ativo .ssobre, body.servicos-ativo .scontato { display: none; }

body.contato-ativo .scontato { display: block; }
body.contato-ativo .scapa, body.contato-ativo .ssobre, body.contato-ativo .sservicos { display: none; }

.ssobre, .sservicos, .scontato {
    display: none;
}

.ics-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff; 
    border-left-color: rgb(234, 139, 22); 
    }

/* ANIMAÇÃO PULSANTE - Logo do Header */
@keyframes pulsar-logo {
    0% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(0.85);
    }
    100% {
        transform: scale(1.15);
    }
}

.ics-header-logo {
    animation: pulsar-logo 2s ease-in-out infinite;
    }

/* RESPONSIVO */
@media (max-width: 750px) {
    .ics-header {
        height: 62px;
        padding: 0 14px;
    }

    .ics-header-nome {
        font-size: 16px;
    }

    .ics-menu-cortina {
        width: 80%; /* 80% da tela no mobile */
        max-width: 300px; /* Mas no máximo 300px */
    }
}
/* FIM DO RESPONSIVO */

.ssobre {
    padding: 60px 10%;
    color: #333;
    line-height: 1.4;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 30px;
    }

.titsobre {
    font-size: 2.5rem;
    color: #004aad; 
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    }

#subtitsobre,
#subtitsobre1,
#subtitsobre2 {
    font-size: 1.3rem;
    color: #555;
    text-align: center;
    margin: 30px 0 20px 0;
    display: block;
    border-bottom: 2px solid #004aad;
    padding-bottom: 10px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    }

.ssobre p {
    margin-bottom: 20px;
    text-align: justify;
    white-space: pre-line; /* Mantém as quebras de linha que você colocou no HTML */
    }

#sobrel4 strong {
    font-size: 1.2rem;
    color: #004aad;
    display: block;
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    }

.imgsobre {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide em duas colunas */
    gap: 20px;
    margin-top: 50px;
    }

.imgcoluna {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }

.imgcoluna img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    }

/* Imagem única grande ao lado */
.imgunica img {
    width: 100%;
    height: 100%; 
    max-height: 640px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

.imgsobre img:hover {
    transform: scale(1.02);
    }

/* Responsividade para Celulares */
@media (max-width: 750px) {
    .ssobre {
        padding: 40px 5%;
    }

    .titsobre {
        font-size: 1.8rem;
    }

    .imgsobre {
        grid-template-columns: 1fr; /* Imagens ficam uma abaixo da outra no celular */
    }

    .imgunica img {
        height: 300px;
    }

    .ssobre p {
        text-align: left; /* Melhor leitura em telas pequenas */
    }
}

.sservicos {
    padding: 60px 10%;
    background-color: #f9f9f9;
    }

.titservicos {
    font-size: 40px;
    color: #004aad;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-family: "Segoe UI", sans-serif;
    }

.fotos-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    }

.card {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 15px rgba(0, 74, 173, 0.1);
    }

.card-img-wrapper {
    flex: 0 0 350px;
    height: 320px;
    overflow: hidden;
    }

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }

.card-body {
    padding: 0 25px;
    flex: 1;
}

.card-desc {
    font-size: 30px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    }

.card-area {
    font-size: 26px;
    color: #333;
    margin: 5px 0 0 0;
    }

.card-area strong {
    color: #004aad;
    margin-left: 5px;
    }

@media (max-width: 750px) {
    .card {
    flex-direction: column;
    text-align: center;
    }

    .card-img-wrapper {
    flex: 0 0 200px;
    width: 100%;
    }

    .card-body {
    padding: 20px;
    }

.card:hover {
    transform: translateY(-5px);
    }
}

.scontato {
    padding: 40px 20px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    }

.titcontato {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
    }

.contato-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

.input-group {
    margin-bottom: 20px;
    }

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
    }

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    }

.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="tel"]:focus,
.input-group textarea:focus {
    border-color: #007bff;
    outline: none;
    }

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    }

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    }

.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
    }

.char-count {
    text-align: right;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    }

.btn-enviar {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    }

.btn-enviar:hover {
    background-color: #0056b3;
    }

/* Responsividade */
@media (max-width: 750px) {
.titcontato {
    font-size: 2em;
    }

.contato-container {
    padding: 20px;
    }

.input-row {
    flex-direction: column;
    gap: 0;
    }

.input-row .input-group {
    margin-bottom: 20px;
    }
}

.icsfooter {
    display: block;
    clear: both;
    width: 100%;
    height: 90px;
    margin: 0 auto;
    background-color: #ea8b16;
    text-align: center;
    padding: 20px 0;
    position: absolute;
    z-index: 10;
    }

.ics-linha-1 {
    display: block;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 2px;
}

@media (max-width: 750px) {
    .icsfooter {
        padding: 25px 0;
    }
    
    .ics-linha-1 {
        font-size: 16px;
    }
}

/* CSS para o botão 'voltar ao topo' como um círculo perfeito */
.btn-top {
    position: fixed;
    bottom: 20px;
    right: calc((100vw - 1200px) / 2 + 20px);
    background: #0056b3;
    color: #fff;
    width: 50px; /* Largura fixa */
    height: 50px; /* Altura fixa, igual à largura para formar um círculo */
    border-radius: 50%; /* Garante o formato circular */
    text-decoration: none;
    z-index: 1000;
    display: flex;
    justify-content: center; /* Centraliza o conteúdo horizontalmente */
    align-items: center;   /* Centraliza o conteúdo verticalmente */
    font-size: 1.5em;
    transition: background 0.3s ease;
}

.btn-top:hover {
    background: #333;
}

/* Media query para telas menores que 1200px */
@media (max-width: 1200px) {
    .btn-top {
        right: 20px;
    }
}

/* Opcional: Para telas muito pequenas, ajuste o tamanho do botão ou a posição */
@media (max-width: 768px) {
    .btn-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
}
