/* ==================================================================
   CEBEL CONFECÇÕES — style.css
   Paleta original preservada; layout modernizado (Flexbox/Grid)
   ================================================================== */

/* ------------------------------------------------------------------
   VARIÁVEIS E RESET
   ------------------------------------------------------------------ */
:root {
    --bg:          #FCF9E3;
    --bg-alt:      #F5F2D9;
    --bg-input:    #FFF7C5;
    --primary:     #695D1E;
    --primary-dk:  #4D4400;
    --secondary:   #827F1B;
    --accent:      #F1E34C;
    --text:        #393939;
    --text-light:  #685C14;
    --border:      #B6C3A5;
    --nav-bg:      #695D1E;
    --nav-text:    #FCF9E3;
    --h2-color:    #695D1E;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg) url(images/main_bg.gif) 0 49px repeat-x;
    color: var(--text);
    font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

img { border: none; max-width: 100%; height: auto; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { margin: 0; padding: 0; }

/* ------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------ */
#header {
    width: 700px;
    padding: 0 0 0 62px;
    margin: 0 auto;
    height: 321px;
    background: url(images/header_pic.jpg) 100% 49px no-repeat;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.header-inner {
    padding: 0;
}

/* Navegação principal */
nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav ul li a {
    display: block;
    padding: 14px 18px;
    color: var(--primary);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: background .15s, color .15s;
}

nav ul li a:hover,
nav ul li a.ativo {
    background: var(--nav-bg);
    color: var(--nav-text);
    text-decoration: none;
}

/* ------------------------------------------------------------------
   LAYOUT PRINCIPAL (main + sidebar)
   ------------------------------------------------------------------ */
#main {
    width: 762px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 9px 0 0 0;
    flex: 1;
}

#conteudo {
    flex: 1;
    min-width: 0;
}

/* ------------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------------ */
#sidebar {
    width: 180px;
    flex-shrink: 0;
}

#sidebar h2 {
    font: italic 18px/38px Georgia, 'Times New Roman', Times, serif;
    background: url(images/body_h2bg.gif) 0 0 repeat-x;
    height: 38px;
    padding: 0 0 0 10px;
    color: var(--h2-color);
}

#sidebar ul {
    padding: 8px 0;
}

#sidebar ul li {
    border-bottom: 1px dotted var(--border);
}

#sidebar ul li a {
    display: block;
    padding: 7px 30px 7px 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: bold;
    background: url(images/bullet_right.gif) 95% 50% no-repeat var(--bg);
    transition: background-color .15s;
}

#sidebar ul li a:hover,
#sidebar ul li a.ativo {
    background-color: var(--bg-alt);
    color: #000;
    text-decoration: none;
}

#powered {
    margin-top: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.8;
}

#powered a {
    color: var(--text-light);
    font-weight: bold;
}

#powered a:hover {
    color: var(--primary);
}

/* ------------------------------------------------------------------
   TÍTULOS DAS SEÇÕES (h1 nos includes)
   ------------------------------------------------------------------ */
.secao-titulo {
    font: italic 20px/38px Georgia, 'Times New Roman', Times, serif;
    background: url(images/body_h2bg.gif) 0 0 repeat-x;
    height: 38px;
    padding: 0 0 0 14px;
    color: var(--h2-color);
    margin-bottom: 16px;
}

.secao-subtitulo {
    font: italic 16px/38px Georgia, 'Times New Roman', Times, serif;
    background: url(images/body_h2bg.gif) 0 0 repeat-x;
    height: 38px;
    padding: 0 0 0 14px;
    color: var(--h2-color);
    margin: 24px 0 12px 0;
}

/* ------------------------------------------------------------------
   PÁGINA HOME (capa)
   ------------------------------------------------------------------ */
.home-links {
    padding: 0;
}

.home-links li {
    border-bottom: 1px dotted #333;
}

.home-links .topico {
    display: block;
    font-weight: bold;
    padding: 10px 12px 4px 12px;
    background: url(images/bullet_right.gif) 0 55% no-repeat var(--bg);
    padding-left: 20px;
    color: var(--primary);
}

.home-links .descricao {
    display: block;
    padding: 4px 12px 10px 20px;
    color: var(--text);
    font-size: 13px;
    transition: background-color .15s;
}

.home-links li:hover .descricao {
    background-color: var(--bg-alt);
    color: #000;
}

/* ------------------------------------------------------------------
   PÁGINA EMPRESA
   ------------------------------------------------------------------ */
.empresa-texto {
    padding: 0 0 0 17px;
    text-align: justify;
    line-height: 1.75;
}

.empresa-texto p {
    margin-bottom: 14px;
}

/* ------------------------------------------------------------------
   PÁGINA DICAS
   ------------------------------------------------------------------ */
.dicas-lista {
    padding: 0 0 0 17px;
    text-align: justify;
    line-height: 1.9;
}

.dicas-lista li {
    margin-bottom: 6px;
    list-style: none;
    padding-left: 16px;
    position: relative;
}

.dicas-lista li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.cuidados-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.cuidados-tabela td {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    font-size: 13px;
}

.cuidados-tabela td:first-child {
    width: 70px;
    text-align: center;
}

.cuidados-tabela tr:hover td {
    background: var(--bg-alt);
}

/* ------------------------------------------------------------------
   PÁGINA LOCALIZAÇÃO
   ------------------------------------------------------------------ */
.localizacao-lista {
    padding: 12px 17px;
}

.localizacao-item {
    padding: 14px 0;
    border-bottom: 1px dotted var(--border);
    line-height: 1.9;
}

.localizacao-item:last-child {
    border-bottom: none;
}

.localizacao-cidade {
    display: block;
    font-weight: bold;
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 4px;
}

/* ------------------------------------------------------------------
   PÁGINA CONTATO
   ------------------------------------------------------------------ */
.contato-info {
    padding: 12px 17px;
    line-height: 2;
    font-size: 14px;
}

.contato-info a {
    font-weight: bold;
}

/* ------------------------------------------------------------------
   PÁGINA CIDADES ATENDIDAS
   ------------------------------------------------------------------ */
.cidades-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.cidades-tabela td {
    padding: 7px 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.cidades-tabela tr.letra td {
    background: var(--bg-alt);
    font-weight: bold;
    font-size: 14px;
    color: var(--primary);
    border-top: 2px solid var(--border);
}

/* ------------------------------------------------------------------
   BOTÃO VOLTAR
   ------------------------------------------------------------------ */
.btn-voltar {
    display: inline-block;
    margin: 20px 0 8px 17px;
    padding: 6px 18px;
    background: var(--accent);
    color: var(--primary-dk);
    font-weight: bold;
    font-size: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}

.btn-voltar:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
#footer {
    background: #F5F2D9 url(images/footer_bg.gif) 0 0 repeat-x;
    padding: 10px 0;
    text-align: center;
    color: #685C14;
    margin-top: auto;
}

#footer p {
    font: normal 10px/16px Arial, Helvetica, sans-serif;
    color: #685C14;
}

/* ------------------------------------------------------------------
   RESPONSIVO
   ------------------------------------------------------------------ */
@media (max-width: 780px) {
    #header {
        width: 100%;
        padding: 0;
        height: auto;
        min-height: 120px;
        background-size: contain;
        background-position: center top;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    nav ul li a {
        padding: 10px 12px;
        font-size: 11px;
    }

    #main {
        width: 100%;
        flex-direction: column;
        padding: 14px;
        gap: 16px;
    }

    #sidebar {
        width: 100%;
    }

    #sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    #sidebar ul li {
        border: none;
    }

    #sidebar ul li a {
        background: var(--bg-alt);
        border: 1px solid var(--border);
        padding: 6px 14px;
    }

    .cidades-tabela {
        font-size: 12px;
    }

    .cuidados-tabela td {
        font-size: 12px;
    }
}
