/* 
 * TORPEDO GRÁTIS - Main Stylesheet
 * Optimized & Organized Version (v3.4)
 */

/* 0. GLOBAL BOX SIZING & RESET
---------------------------------------------------------------- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block; 
}

html { 
    background-color: #ededed;
    scroll-behavior: smooth;
}

body { 
    background: #fff;
    margin: 0 auto;
    font-family: "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    color: #444;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

ol, ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }

.fl { float: left; }
.fr { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }

/* 2. GLOBAL COMPONENTS
---------------------------------------------------------------- */
.bt_laranja {
    display: inline-block;
    cursor: pointer;
    color: #FFF;
    background: #FF7A00;
    background: linear-gradient(to bottom, #FFCC9E 0%, #FF7A00 100%);
    border-radius: 6px;
    font-weight: bold;
    text-shadow: 0px -1px 0px rgba(0,0,0,0.2);
    text-align: center;
    border: 0;
    padding: 14px 24px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255,122,0,0.2);
}

.bt_laranja:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,122,0,0.3);
}

.bt_laranja:active {
    transform: translateY(0);
}

#bt_finalizar {
    display: block !important;
    width: 100%;
    font-size: 1.6em !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 20px 0;
    padding: 20px !important;
}

/* 3. LAYOUT STRUCTURE
---------------------------------------------------------------- */
#container {
    margin: 0 auto;
    width: 970px;
    position: relative;
    background: #fff;
}

#topo {
    width: 100%;
    padding: 10px 0;
}

#logo a {
    display: block;
    color: #626262;
    font-weight: 800;
    text-align: center;
    font-size: 2.8em;
    padding: 25px 0;
    letter-spacing: -1px;
}

#logo a span {
    color: #ff6600;
    font-weight: 300;
}

hgroup {
    background: #f8f8f8;
    padding: 25px 20px;
    margin: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

hgroup h2 { color: #222; font-size: 24px; margin-bottom: 8px; }
hgroup h3 { color: #666; font-size: 1.3em; font-weight: normal; }

/* 4. ENVIO (MOBILE FRAME)
---------------------------------------------------------------- */
.envio {
    width: 343px;
    height: 596px;
    background: url(/img/frame.png) no-repeat center top;
    margin: 30px 20px 30px 0;
    float: left;
    position: relative;
}

.tela {
    position: absolute;
    top: 107px;
    left: 36px;
    padding: 15px;
    width: 271px;
    background-color: #fff;
    height: 383px;
    overflow-y: auto;
}

.envio label {
    color: #555;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.envio input[type="text"], 
.envio input[type="tel"],
.envio select, 
.envio textarea {
    border: 1px solid #ddd;
    color: #333;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    background: #fdfdfd;
}

.envio textarea {
    height: 100px;
    line-height: 1.5;
    resize: none;
}

#caracteres-contador {
    float: right;
    color: #888;
    font-size: 11px;
    margin: -5px 0 10px;
}

.envio input[type="submit"] {
    width: 100%;
    font-size: 16px;
    margin-top: 5px;
}

.envio .destinatario { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.envio .destinatario select { width: 100%; }
.envio .destinatario .ddd { width: 25%; }
.envio .destinatario .num-cel { width: 70%; }

/* Progress Bar */
.ui-progress-bar {
    background: #f0f0f0;
    height: 24px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.ui-progress {
    background: #FF7A00;
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.ui-label { color: #fff; padding-left: 12px; line-height: 24px; font-weight: bold; font-size: 11px; }

/* 5. NAVIGATION MENU
---------------------------------------------------------------- */
.sup-cad { width: 100%; margin-bottom: 25px; }

#menu { text-align: center; width: 100%; margin: 15px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
#menu li { border-radius: 6px; display: flex; }

#menu li a {
    color: #333;
    font-size: 15px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.2s;
}

#menu li:hover, #menu li.active {
    background: #FF7A00;
    background: linear-gradient(to bottom, #FFCC9E, #FF7A00);
}

#menu li:hover a, #menu li.active a {
    color: #FFF;
}

/* 6. CONTENT SECTIONS
---------------------------------------------------------------- */
#informacoes-servico {
    clear: both;
    background: #f8f8f8;
    padding: 40px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#informacoes-servico div {
    flex: auto;
    width: auto;
}

#informacoes-servico h4 { color: #222; font-size: 20px; margin: 0 0 15px; font-weight: 800; }
#informacoes-servico p { color: #555; font-size: 14px; line-height: 1.7; }

/* 7. BIBLIA / FRASES
---------------------------------------------------------------- */
.biblia ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 1px; }
.biblia a { 
    display: block; 
    padding: 10px; 
    color: #444; 
    font-size: 14px;
    border-radius: 5px;
    background: #fff;
}
.biblia a:hover { color: #fff; background: #ff6600; }

/* 8. FOOTER
---------------------------------------------------------------- */
#rodape { background: #222; padding: 60px 0; color: #fff; }
.footer { width: 970px; margin: 0 auto; }

.sup-servicos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.sup-servicos li.dest { font-weight: bold; margin-bottom: 15px; font-size: 16px; color: #FF7A00; text-transform: uppercase; letter-spacing: 1px; }
.sup-servicos a { color: #aaa; font-size: 14px; line-height: 2.2; transition: color 0.2s; }
.sup-servicos a:hover { color: #fff; }

.termos-privacidade {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.termos-privacidade a { color: #666; font-size: 14px; padding: 0 15px; }
.termos-privacidade a:hover { color: #aaa; }

/* 9. ADS
---------------------------------------------------------------- */
.ad-container { margin: 25px auto; text-align: center; overflow: hidden; background: #fafafa; border-radius: 8px; }

/* 10. MEDIA QUERIES
---------------------------------------------------------------- */
@media screen and (max-width: 970px) {
    #container, .footer { width: 100% !important; border: 0 !important; }
}

@media screen and (max-width: 600px) {
    body { padding: 0; }
    #container { padding: 0 15px; }
    #logo a { font-size: 2.2em; padding: 20px 0; }
    hgroup { padding: 20px 10px; }
    hgroup h2 { font-size: 20px; }
    
    #menu li a { font-size: 14px; padding: 8px 12px; }

    .envio {
        width: 100%;
        height: auto;
        background: none;
        border: 1px solid #eee;
        border-radius: 15px;
        padding: 0;
        float: none;
        margin: 20px 0;
    }
    
    .tela { 
        position: static; 
        width: 100%; 
        height: auto; 
        padding: 20px; 
    }

    .envio input, .envio select, .envio textarea, .bt_laranja {
        width: 100% !important;
        float: none !important;
    }

    #bt_finalizar { font-size: 1.4em !important; }

    .biblia ul { grid-template-columns: repeat(2, 1fr); }
    .sup-servicos { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    
    #informacoes-servico div { width: 100%; }
}
