html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f5f1e9;
    color: #111827;
}

/* CONTAINER PAI (O que manda no alinhamento de tudo) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Proteção para mobile */
}

/* NAVBAR */
.navbar {
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: padding 0.4s ease;
}

.navbar.scrolled .container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.logo svg {
    height: 35px;
    width: 35px;
    flex-shrink: 0;
}

.navbar.scrolled .logo {
    transform: scale(0.95);
}

.logo img { width: 30px; }

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #b45309;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover {
    color: #b45309;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: #b45309;
    font-weight: 600;
}

nav ul li a.active::after {
    width: 100%;
}


/* ADS SPACE */
.ads-container {
    padding: 30px 0;
}

.ads-box {
    width: 100%;
    max-width: 728px; /* Padrão leaderboard */
    height: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.8rem;
    background-color: #fcfcfc;
    margin: 0 auto;
}

/* HERO SECTION */
.hero {
    padding: 40px 0 20px;
	background-color: #f5f1e9;
    text-align: center;
}

.titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.descricao {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 10px;
    line-height: 1.6;
    text-align: left;
}

/* Container dos botões para ficarem lado a lado */
.botoes {
    display: flex;
    gap: 15px; /* Espaço entre eles */
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Social Proof */
.social-proof {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.proof-text {
    font-size: 0.9rem;
    color: #6b7280;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.proof-text:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Estilo Base para ambos os botões */
.btn-principal, .btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 12px; /* Cantos bem arredondados como na foto */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 48px;
    font-family: 'Inter', sans-serif;
}

/* Botão Marrom (Explorar calculadoras) */
.btn-principal {
    background-color: #b45309; /* marrom fiel à imagem */
    color: #ffffff;
    border: none;
}

.btn-principal:hover {
    background-color: #7d3905;
    transform: translateY(-1px);
}

/* Botão Branco (Saiba mais) */
.btn-secundario {
    background-color: #ffffff;
    color: #4b5563; /* Cinza escuro suave */
    border: 1px solid #e5e7eb; /* Borda bem fina */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Sombra quase imperceptível */
}

.btn-secundario:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .titulo { font-size: 2.5rem; }
}

/* Configurações da seção de informações */
.info-section {
    background-color: #FAF7F2;
    padding: 60px 0;
}

.info-card {
    max-width: 850px;
    margin: 0 auto 50px; /* Espaço entre os blocos */
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Linha divisória suave entre blocos, exceto no último */
.info-card:not(:last-of-type) {
    border-bottom: 1px solid #f0f0f0;
}

.info-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    text-align: center;
    position: relative;
}

.info-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b45309, #bc6c4d);
    border-radius: 2px;
}

.info-card p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 20px;
    max-width: 850px;
    text-align: left;
}

.ads-footer {
    margin: 20px auto 40px;
    text-align: center;
    max-width: 850px;
}

.ads-footer span {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .info-section { padding: 40px 0; }
    .info-card h2 { font-size: 1.5rem; }
}

/* CONTAINER PRINCIPAL DA CALCULADORA */
.calculadora-section {
    background-color: #f5f1e9;
    padding: 60px 0;
    color: #3d3d3d;
}

.calc-header { 
    text-align: center;
    margin-bottom: 50px; 
}

.norma { 
    color: #d68c70; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 10px;
}

.calc-header h1,
.calc-header h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    margin: 10px 0 25px; 
    color: #231f1e; 
    position: relative;
    display: inline-block;
}

.calc-header h1::after,
.calc-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b45309, #bc6c4d);
    border-radius: 2px;
}

.calc-header p { 
    color: #6b7280; 
    font-size: 1rem; 
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.calc-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* FORMULÁRIO (BRANCO) */
.calc-form {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    flex: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.calc-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.input-group { margin-bottom: 15px; display: flex; flex-direction: column; }
.input-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #6b7280; }

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.row-2 > .input-group {
    margin-bottom: 0;
}

.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.hidden { display: none !important; }
.gode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }

/* Rapport — título + campo; dica (.field-hint) fica abaixo do slot */
.input-group-rapport {
    margin-bottom: 0;
}

.rapport-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    min-height: 1.25rem;
}

.rapport-head label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}

.rapport-head input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.row-2 .field-hint {
    display: block;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.35;
}

.rapport-input-slot {
    min-height: 42px;
    display: flex;
    align-items: stretch;
}

.rapport-input-slot #grupo-rapport {
    width: 100%;
    align-self: stretch;
}

.rapport-input-slot #grupo-rapport input {
    width: 100%;
    box-sizing: border-box;
}


input, select {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fcfcfc;
    font-family: inherit;
    font-size: 1rem;
    color: #111827;
}

small { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; }

.btn-calcular {
    width: 100%;
    padding: 15px;
    background: #bc6c4d; /* Laranja Terracota */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto; /* Empurra para o fundo */
    transition: background-color 0.2s;
}

.btn-calcular:hover {
    background: #9d563a;
}

/* CARD DE RESULTADO (ESCURO) */
.calc-result {
    background: #231f1e; /* Preto acastanhado */
    color: white;
    padding: 30px;
    border-radius: 16px;
    flex: 0 0 clamp(280px, 30%, 350px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.calc-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.result-header { font-size: 0.75rem; color: #888; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.result-item strong { font-size: 1.4rem; font-family: 'DM Mono', monospace; }

.medidas-ref-box {
    background: #2a2524; /* Um tom levemente mais claro que o fundo do card para dar profundidade */
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.medidas-ref-title { 
    color: #d68c70; 
    font-size: 0.75rem; 
    font-weight: 800; 
    display: block; 
    margin-bottom: 12px; 
    text-transform: uppercase; 
    letter-spacing: 0.08em;
}

.medidas-ref-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.medidas-ref-grid > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-width: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.medidas-ref-grid strong {
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}


.result-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.result-links a { color: #d68c70; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.result-links a:hover { color: #b45309; }

/* MOBILE */
@media (max-width: 900px) {
    .calc-grid { flex-direction: column; }
    .row-3 { grid-template-columns: 1fr; }
}

/* SEÇÃO DE TABELA E DICAS */
.tabela-dicas-section {
    background-color: #FAF7F2; /* Mantendo o bege da calculadora */
    padding: 60px 0;
    text-align: center;
}

.tabela-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 auto 25px;
    display: block; /* Garante que ocupe a linha toda */
    max-width: 850px;
    text-align: left;
}

.tabela-dicas-section .info-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    text-align: center;
}

/* TABELA */
.table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
    border-radius: 16px; /* Arredondado igual ao formulário */
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.tabela-referencia {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
}

.tabela-referencia th {
    background-color: #f9fafb;
    color: #374151;
    text-align: left;
    padding: 18px 20px;
    border-bottom: 2px solid #eee;
    font-weight: 700;
}

.tabela-referencia td {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

/* Efeito zebrado */
.tabela-referencia tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

.tabela-referencia tbody tr:hover {
    background-color: #fff7c7;
}

.table-footer {
    margin-top: 25px;
    text-align: center;
}

.link-tabela-completa {
    color: #b45309; /* Amber principal */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
}

.link-tabela-completa:hover {
    color: #92400e;
    background: rgba(180, 83, 9, 0.05);
    transform: translateX(5px);
}

/* ----- Página Tabela de Medidas (tabela-tamanhos.html) — tabelas compactas, alinhadas ao DS ----- */
.page-tabela-medidas .tabela-medidas-hero {
    padding: 44px 0;
}

.page-tabela-medidas .calc-header {
    margin-bottom: 22px;
}

.page-tabela-medidas .calc-header h2 {
    margin: 6px 0 14px;
}

.page-tabela-medidas .tabela-medidas-cta {
    margin-top: 24px;
    text-align: center;
}

.page-tabela-medidas .tabela-medidas-stack {
    width: 100%;
}

@media (min-width: 720px) {
    .page-tabela-medidas .tabela-medidas-stack {
        max-width: min(100%, 40rem);
        margin-left: auto;
        margin-right: auto;
    }
}

.page-tabela-medidas .tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.page-tabela-medidas .tab-btn {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-tabela-medidas .tab-btn:hover {
    border-color: #d6d3d1;
    color: #374151;
}

.page-tabela-medidas .tab-btn.active {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

.page-tabela-medidas .tab-panel {
    display: none;
}

.page-tabela-medidas .tab-panel.active {
    display: block;
}

.page-tabela-medidas .legend-box {
    background: #faf7f2;
    border: 1px solid #e7e2d9;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.page-tabela-medidas .tabela-medidas-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1917;
    margin: 0 0 5px;
    letter-spacing: 0.02em;
}

.page-tabela-medidas .table-container + .tabela-medidas-section-title {
    margin-top: 12px;
}

.page-tabela-medidas .table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.page-tabela-medidas .tabela-medidas-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.page-tabela-medidas .tabela-medidas-data th {
    background: #231f1e;
    color: #fff;
    padding: 7px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #3d3836;
}

.page-tabela-medidas .tabela-medidas-data th.gp {
    background: #b45309;
}

.page-tabela-medidas .tabela-medidas-data td {
    padding: 5px 4px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.page-tabela-medidas .tabela-medidas-data tbody tr:last-child td {
    border-bottom: none;
}

.page-tabela-medidas .tabela-medidas-data tbody tr:hover td {
    background: #fffbeb;
}

.page-tabela-medidas .tabela-medidas-data .est-row td {
    background: #f5f1e9;
    font-weight: 700;
    color: #92400e;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 4px;
    border-bottom: 1px solid #e7e2d9;
}

/* FAQ SECTION */
.faq-section {
    background-color: #f5f1e9;
    padding: 60px 0;
    text-align: center;
}

.faq-tag {
    background: #fdf2f0;
    color: #bc6c4d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.faq-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #231f1e;
    margin: 15px 0;
    position: relative;
}

.faq-titulo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b45309, #bc6c4d);
    border-radius: 2px;
}

.faq-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 auto 50px;
    max-width: 850px;
    text-align: left;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #ffffff;
    margin-bottom: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.faq-tag {
    background: #fdf2f0;
    color: #bc6c4d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.faq-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #231f1e;
    margin: 15px 0;
}

.faq-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 auto 50px;
    max-width: 850px;
    text-align: center;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #ffffff;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

summary {
    list-style: none;
    padding: 22px 25px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

summary:hover {
    background-color: #f8f9fa;
}

summary::-webkit-details-marker { display: none; }

/* O ÍCONE DE + */
.plus-icon::before {
    content: '+';
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

details[open] .plus-icon::before {
    content: '-';
    background: #bc6c4d;
    color: #fff;
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 25px 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

details[open] .faq-content {
    max-height: 3200px;
    padding: 0 25px 22px;
}

/* FOOTER */
.site-footer {
    background-color: #231f1e;
    color: #9ca3af;
    padding: 60px 0 30px;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #332d2b;
    margin: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.logo-text {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 700px;
    text-align: right;
}

.footer-disclaimer strong {
    color: #fff;
}

.footer-disclaimer a {
    color: #fde68a;
    text-decoration: underline;
    font-weight: 600;
}

.footer-disclaimer a:hover {
    color: #fff;
}

/* Aviso curto em páginas com tabelas de medidas de referência */
.norma-legal-note {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #57534e;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
}

.norma-legal-note a {
    color: #b45309;
    font-weight: 600;
}

.norma-legal-note a:hover {
    text-decoration: underline;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #6b7280;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .info-section { padding: 40px 0; }
    .info-card h2 { font-size: 1.5rem; }
    .hero { padding: 40px 0; }
    .titulo { font-size: 2.2rem; }
    .descricao { font-size: 1rem; }
    .social-proof { flex-direction: column; align-items: center; }
    .proof-text { font-size: 0.8rem; padding: 6px 12px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-disclaimer { text-align: center; }
    .calc-grid { flex-direction: column; }
    .row-3 { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .gode-grid { grid-template-columns: 1fr; }
    .calc-result { flex: none; width: 100%; }
    .table-wrapper { margin: 20px 0; }
    .faq-list { padding: 0 15px; }
}

/* Classes Utilitárias do Sistema */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: #b45309;
  color: white;
}

/* ==========================================
   HAMBURGER MENU (MOBILE)
   ========================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #231f1e;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .hamburger { display: flex; }

    nav {
        display: block;
        position: fixed;
        top: 0; right: 0;
        width: min(280px, 80vw);
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        padding: 80px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }

    nav.open { transform: translateX(0); }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        color: #374151;
    }

    nav ul li a.active {
        background: none;
        padding: 14px 0;
        color: #b45309;
        border-radius: 0;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   FAQ SMOOTH ANIMATION
   ========================================== */
.faq-content {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* ==========================================
   NOVAS CLASSES — SUBSTITUEM INLINE STYLES
   ========================================== */

/* Grade para campos Godê */
.gode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.gode-grid .input-group { margin-bottom: 0; }

/* Result card — separador e itens secundários */
.result-divider {
    border-top: 1px solid #333;
    margin-top: 25px;
    padding-top: 15px;
    margin-bottom: 15px;
}

.result-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-secondary span { color: #999; font-size: 0.9rem; }
.result-secondary strong { font-size: 1.1rem; color: #ddd; font-family: 'DM Mono', monospace; }

/* Botão copiar */
.btn-copiar {
    width: 100%;
    padding: 10px;
    margin-top: auto; /* Empurra para o fundo */
    background: transparent;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
}

.btn-copiar:hover {
    background: rgba(255,255,255,0.08);
    border-color: #888;
}

/* Precificação — itens especiais do resultado */
.result-item-preco {
    border-top: 1px solid #333;
    margin-top: 25px;
    padding-top: 15px;
}

.result-item-preco span { color: #FDE68A; }
.result-item-preco strong { font-size: 1.5rem; color: #FDE68A; font-family: 'DM Mono', monospace; }

.result-item-lucro strong { color: #4ade80; font-family: 'DM Mono', monospace; }

/* Touch targets for mobile */
@media (hover: none) {
    .btn { min-height: 44px; min-width: 44px; }
    .faq-item { min-height: 60px; }
    .summary { padding: 24px 20px; }
    .calc-form { padding: 20px; }
    .calc-result { padding: 20px; }
}
input:focus, select:focus {
    outline: none;
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Loading state for calculation button */
.btn-calcular.loading {
    background: #9d563a;
    position: relative;
    color: transparent;
}

.btn-calcular.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error state styling */
.input-group.error input,
.input-group.error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.input-group.error label::after {
    content: '⚠️';
    margin-left: 5px;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .calc-grid { flex-direction: column; }
    .row-2 { grid-template-columns: 1fr; }
    .gode-grid { grid-template-columns: 1fr; }
    .calc-result { flex: none; width: 100%; }
}