/* ========================================
   VARIÁVEIS DE TEMA
   ======================================== */

:root {
    /* Cores principais */
    --menu-bg: linear-gradient(135deg, #1a3a52 0%, #2c5282 100%);
    --nav-link: #ffffff;
    --nav-link-hover: #64b5f6;

    /* Conteúdo */
    --content-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1a3a52;
    --accent: #2196F3;
    --accent-light: #64b5f6;

    /* Espaçamentos comuns */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;

    /* Transições */
    --transition-fast: 300ms ease;

    /* Menu hambúrguer */
    --hamburger-size: 30px;
    --hamburger-color: #ffffff;
}

/* ========================================
   RESET E ESTILOS GLOBAIS
   ======================================== */

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

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.2rem;
}

p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    top: 8vh;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);

    background-image: url("/src/Banner.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.4) 0%, rgba(44, 82, 130, 0.3) 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

p {
    text-indent: 2rem;
}

#menu {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;

    height: 8vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--menu-bg);
}

/* Logo */

#logo {
    display: flex;
    height: 100%;
    margin: var(--spacing-sm);
    align-items: center;
}

#logo img {
    width: auto;
    height: 80%;
    margin: auto;
}

/* Itens do menu */

#menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

#menu-items li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
}

#menu-items li:hover {
    background-color: rgba(100, 181, 246, 0.2);
    transition: var(--transition-fast);
    border-radius: 4px;
}

#menu-items a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--nav-link);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

#spacer {
    height: 8vh;
    margin: 45vh;
}

/* ========================================
   BANNER
   ======================================== */

#banner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    margin: 7vh 0 5vh 0;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.85) 0%, rgba(44, 82, 130, 0.85) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#banner img {
    height: 50vh;
    margin: auto;
}

#banner .banner-logo {
    display: flex;
    flex-direction: column;
}

#banner .banner-text {
    display: flex;
    flex-direction: column;
    text-align: center;

}

#banner .title {
    text-align: center;
    font-family: "Pinyon Script", cursive;
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    white-space: normal;
    line-height: 1.4;
}

#banner .sub-title {
    font-size: 1rem;
    color: #ffffff;
    margin-left: var(--spacing-md);
    white-space: normal;
    line-height: 1.4;
}

#banner #menu {
    height: 10vh;
    width: 100%;

    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
}

/* Itens do menu */

#banner#menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    width: 100%;
}

#banner #menu-items li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    white-space: nowrap;
}

#banner #menu-items li:hover {
    background-color: rgba(100, 181, 246, 0.2);
    transition: var(--transition-fast);
    border-radius: 4px;
}

#banner #menu-items a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--nav-link);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}


.logo-servicos {
    display: flex;
    flex-direction: column;
    max-width: 40%;
    height: 100%;
    margin: 0 auto;
}

.logo-servicos h2 {
    color: var(--nav-link);
}

.logo-servicos ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    height: 100%;
    margin: 0;
    padding: 0;
}

.logo-servicos ul li {
    display: block;
    height: 100%;
    list-style: none;
    margin-bottom: var(--spacing-sm);
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-servicos ul li:hover {
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.7);
}

.logo-servicos ul li #icons {
    display: block;
    height: 70%;
}

.logo-servicos ul li span {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding-top: var(--spacing-sm);
}

.logo-servicos ul li a {
    color: var(--text-primary);
    text-align: center;
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */

.content {
    margin: 30px auto;
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 1200px;

    background-color: var(--content-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content h1 {
    margin-bottom: var(--spacing-sm);
}

.content .sobre .historia {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
}

.content .sobre .historia p {
    width: 100%;
    text-align: justify;
}

.content .sobre .titular {
    display: flex;
    flex-direction: column;
}

.content .sobre-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.content .sobre-container div {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.content .sobre-container div img {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.content .sobre-container .titular {
    display: flex;
}

.content .sobre-container .titular img {
    margin: 0 auto;
}

.content .sobre-container .titular .titular-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.content .sobre-container .titular .titular-info .text-titular {
    display: flex;
    flex-direction: column;
    margin-right: var(--spacing-md);
    margin-left: var(--spacing-sm);
}

.content .sobre-container .titular .historia-titular {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: var(--spacing-md);
}

.content .sobre-container .equipe-container {
    margin-top: var(--spacing-lg);
}

.content .sobre-container .equipe-container .equipe-section {
    display: flex;
    flex-direction: row;
    align-items: center;
}


.content .sobre-container .fotoEquipe {
    width: 80%;
    height: auto;
    border-radius: 10px;
    margin-bottom: var(--spacing-lg);
}

.content .sobre-container .equipe {
    padding: 0 var(--spacing-lg);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
}

.content .sobre-container .equipe .funcionario {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 20vw;
    overflow: hidden;
    border-radius: 8px;
    align-items: stretch;
}

.content .sobre-container .equipe .funcionario img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content .sobre-container .equipe .funcionario .info {
    display: flex;
    flex-direction: column;
    height: 30%;
}

.content ul,
.content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content li:last-child {
    margin-bottom: 0;
}

.content ul li a {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-primary);
}

.info {
    display: flex;
    width: auto;
}

.sobre .info {
    margin-top: var(--spacing-md);
}

.sobre div p {
    color: var(--text-primary);
    line-height: 1.6;
    text-align: justify;
}

.contato .info ul {
    width: 50%;
    padding: 15px;
}

.contato fieldset {
    width: 50%;
}

.contato fieldset form {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 10px auto;
}

table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

/* ========================================
   MENU HAMBÚRGUER
   ======================================== */

#hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    margin-right: var(--spacing-md);
}

#hamburger span {
    width: var(--hamburger-size);
    height: 3px;
    background-color: var(--hamburger-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

#hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablets e abaixo (até 768px) */
@media (max-width: 768px) {
    #menu {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0 var(--spacing-md);
    }

    #menu-items {
        position: fixed;
        top: 8vh;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--menu-bg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 350ms ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
    }

    #menu-items.active {
        max-height: calc(100vh - 8vh);
    }

    #menu-items li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
    }

    #menu-items a {
        display: flex;
        align-items: center;
        padding: var(--spacing-md);
        font-size: 0.95rem;
        width: 100%;
        border-radius: 0;
    }

    #menu-items li:hover {
        background-color: rgba(100, 181, 246, 0.2);
        border-radius: 0;
    }

    #hamburger {
        display: flex;
        margin-left: auto;
    }

    #logo {
        margin: var(--spacing-sm) 0;
    }

    .logo-servicos ul {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px 15px;
    }

    .sobre {
        flex-direction: column;
    }

    .sobre img {
        width: 100%;
        margin-left: 0;
        margin-top: var(--spacing-md);
        border-radius: 8px;
    }

    .sobre div {
        width: 100%;
    }
}

/* Celulares (até 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    #banner {
        flex-direction: column;
        margin: 10vh 0;
        padding: var(--spacing-md);
    }

    #banner img {
        height: 30vh;
    }

    #banner span {
        margin-left: 0;
        margin-top: var(--spacing-md);
        font-size: 1.5rem;
    }

    #menu-items a {
        font-size: 1rem;
    }

    .logo-servicos ul {
        grid-template-columns: 1fr;
        margin: 20px 10px;
    }

    .content {
        padding: var(--spacing-md);
    }
}