/* ── PERFORMANCE & FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* Garante font-display swap para evitar FOIT */
@font-face { font-family: 'Cormorant Garamond'; font-display: swap; }
@font-face { font-family: 'DM Sans'; font-display: swap; }

/* Otimização de renderização */
* { text-rendering: optimizeSpeed; }
img { content-visibility: auto; }

/*
Theme Name: Impostos Sem Fronteiras
Theme URI: https://impostosemfronteiras.com.br
Author: Impostos Sem Fronteiras
Description: Tema oficial da consultoria fiscal Impostos Sem Fronteiras — mobilidade global, IRPF, expatriados.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: isf
*/

:root {
  --navy: #0D1B2A;
  --navy-mid: #162235;
  --navy-light: #1E3148;
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-pale: #F5EDD6;
  --white: #FAFAF8;
  --gray: #8A93A0;
  --gray-light: #F0EFE9;
  --text: #1A1A1A;
  --green: #1D9E75;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: block; }
h2.display { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.15; color: var(--navy); }
.btn-primary { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 1rem 2.25rem; transition: background 0.25s, transform 0.2s; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--navy); }
.btn-outline { display: inline-block; border: 1.5px solid var(--gold); color: var(--gold); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.95rem 2.25rem; transition: background 0.25s, color 0.25s, transform 0.2s; cursor: pointer; background: transparent; font-family: 'DM Sans', sans-serif; }
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* NAV */
#masthead { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.4rem 0; background: rgba(13,27,42,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201,168,76,0.15); transition: padding 0.3s; }
#masthead .nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--white); letter-spacing: 0.02em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { color: rgba(250,250,248,0.75); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; padding: 0.6rem 1.4rem !important; font-weight: 500 !important; }
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-user-link { background: rgba(201,168,76,0.15); color: var(--gold) !important; padding: 0.5rem 1.2rem !important; border: 1px solid rgba(201,168,76,0.3); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: 0.3s; }

/* HERO */
/* ── HERO ── */
#hero { background: var(--navy); display: flex; flex-direction: column; min-height: 100vh; padding-top: 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: radial-gradient(ellipse 70% 70% at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 65%); }
.hero-grid { position: absolute; inset: 0; opacity: 0.04; background-image: linear-gradient(rgba(201,168,76,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.5) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: 5rem 0 3rem; }
.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.hero-eyebrow span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
h1.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 5.5vw, 4.5rem); font-weight: 300; line-height: 1.08; color: var(--white); margin-bottom: 1.5rem; }
h1.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1rem; line-height: 1.8; color: rgba(250,250,248,0.6); margin-bottom: 2.5rem; max-width: 520px; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(201,168,76,0.15); }
.hero-stat { background: #0F2236; padding: 1.75rem 2rem; border-right: 1px solid rgba(201,168,76,0.12); }
.hero-stat:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.8rem; color: rgba(250,250,248,0.42); font-weight: 300; line-height: 1.5; }
.hero-cred { position: relative; z-index: 2; border-top: 1px solid rgba(201,168,76,0.12); padding: 1rem 0; }
.hero-cred-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cred-label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,250,248,0.25); white-space: nowrap; }
.cred-firms { display: flex; gap: 2rem; }
.cred-firm { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: rgba(250,250,248,0.35); letter-spacing: 0.04em; transition: color 0.2s; cursor: default; }
.cred-firm:hover { color: rgba(201,168,76,0.7); }
.cred-note { font-size: 0.65rem; color: rgba(250,250,248,0.18); font-style: italic; margin-left: auto; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.35rem; }
.stat-label { font-size: 0.8rem; color: rgba(250,250,248,0.55); font-weight: 300; letter-spacing: 0.05em; }

/* SECTIONS */
section { padding: 7rem 0; }
.section-dark { background: var(--navy); position: relative; }
.section-dark::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.section-light { background: var(--gray-light); }

/* MISSÃO */
.missao-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.missao-img-box { width: 100%; aspect-ratio: 4/5; background: var(--navy); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.missao-img-pattern { position: absolute; inset: 0; background-image: radial-gradient(ellipse 80% 80% at 30% 70%, rgba(201,168,76,0.12) 0%, transparent 60%), repeating-linear-gradient(45deg, rgba(201,168,76,0.04) 0, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 12px); display: flex; align-items: center; justify-content: center; }
.missao-quote { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; font-style: italic; color: rgba(201,168,76,0.8); text-align: center; padding: 2rem; line-height: 1.6; position: relative; z-index: 1; }
.missao-text p { font-size: 1rem; line-height: 1.9; color: #3A4350; margin-bottom: 1.25rem; font-weight: 300; }
.missao-text p strong { color: var(--navy); font-weight: 500; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.5rem; border: 1px solid var(--gray-light); }
.value-item { padding: 1.25rem 1.5rem; border: 1px solid var(--gray-light); }
.value-icon { width: 32px; height: 32px; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--gold); }
.value-title { font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.35rem; }
.value-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.6; font-weight: 300; }

/* SERVIÇOS */
.servicos-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; flex-wrap: wrap; gap: 1.5rem; }
.servicos-header h2.display { color: var(--white); }
.servicos-intro { max-width: 400px; font-size: 0.95rem; color: rgba(250,250,248,0.55); line-height: 1.8; font-weight: 300; }
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(201,168,76,0.12); }
.servico-card { background: var(--navy-mid); padding: 2.5rem 2rem; transition: background 0.3s; position: relative; overflow: hidden; }
.servico-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.servico-card:hover { background: var(--navy-light); }
.servico-card:hover::after { transform: scaleX(1); }
.servico-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: rgba(201,168,76,0.15); line-height: 1; margin-bottom: 1.25rem; }
.servico-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 400; color: var(--white); margin-bottom: 0.75rem; line-height: 1.3; }
.servico-desc { font-size: 0.85rem; line-height: 1.8; color: rgba(250,250,248,0.5); font-weight: 300; margin-bottom: 1.5rem; }
.servico-link { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
.servico-link::after { content: '→'; }
.servico-link:hover { gap: 0.8rem; }

/* PÚBLICO */
.publico-header { text-align: center; margin-bottom: 4rem; }
.publico-header p { max-width: 560px; margin: 0.75rem auto 0; font-size: 1rem; color: var(--gray); line-height: 1.8; font-weight: 300; }
.publico-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.publico-card { border: 1px solid var(--gray-light); padding: 2rem 1.5rem; transition: border-color 0.3s, transform 0.3s; text-align: center; background: var(--white); }
.publico-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.publico-emoji { font-size: 2rem; margin-bottom: 1rem; display: block; }
.publico-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--navy); margin-bottom: 0.75rem; }
.publico-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.7; font-weight: 300; }

/* BLOG */
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.blog-card { background: var(--gray-light); overflow: hidden; transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { background: var(--navy); aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: 1.5rem; position: relative; overflow: hidden; }
.blog-card:first-child .blog-card-img { aspect-ratio: 16/8; }
.blog-card-img-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.1), transparent 60%), repeating-linear-gradient(45deg, rgba(201,168,76,0.03) 0, rgba(201,168,76,0.03) 1px, transparent 1px, transparent 14px); }
.blog-tag { position: relative; z-index: 1; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); background: rgba(13,27,42,0.8); padding: 0.3rem 0.7rem; }
.blog-body { padding: 1.5rem; }
.blog-date { font-size: 0.72rem; color: var(--gray); margin-bottom: 0.6rem; }
.blog-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: var(--navy); line-height: 1.4; margin-bottom: 0.75rem; }
.blog-card:first-child .blog-title { font-size: 1.5rem; }
.blog-excerpt { font-size: 0.82rem; color: var(--gray); line-height: 1.7; font-weight: 300; }
.blog-read { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); transition: gap 0.2s; }
.blog-read::after { content: '→'; }
.blog-read:hover { gap: 0.7rem; }

/* CONTATO */
.contato-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 70% 50%, rgba(201,168,76,0.05), transparent 60%); }
.contato-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contato-text h2.display { color: var(--white); margin-bottom: 1rem; }
.contato-text p { font-size: 0.95rem; line-height: 1.9; color: rgba(250,250,248,0.55); font-weight: 300; margin-bottom: 2rem; }
.contato-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contato-item { display: flex; align-items: center; gap: 1rem; }
.contato-icon { width: 36px; height: 36px; border: 1px solid rgba(201,168,76,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--gold); flex-shrink: 0; }
.contato-item-text { font-size: 0.88rem; color: rgba(250,250,248,0.65); font-weight: 300; }
.contato-item-text a { color: rgba(250,250,248,0.65); }
.contato-item-text a:hover { color: var(--gold); }

/* FORMS */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,250,248,0.45); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.2); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 300; padding: 0.85rem 1rem; outline: none; transition: border-color 0.25s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(250,250,248,0.2); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(201,168,76,0.6); }
.form-group select option { background: var(--navy-mid); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; background: var(--gold); color: var(--navy); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 1.1rem; border: none; cursor: pointer; transition: background 0.25s, transform 0.2s; margin-top: 0.5rem; }
.form-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

/* DASHBOARD */
.dashboard-wrap { min-height: 100vh; background: var(--gray-light); padding: 6rem 0 3rem; }
.dashboard-header { background: var(--navy); padding: 2rem 0; margin-bottom: 2rem; }
.dashboard-header-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.dashboard-welcome { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--white); }
.dashboard-welcome span { color: var(--gold); }
.dashboard-grid { max-width: 1140px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.dash-card { background: var(--white); border: 1px solid #E5E3DB; border-radius: 4px; padding: 1.5rem; }
.dash-card-title { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 1rem; }
.dash-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: var(--navy); }
.dash-card p { font-size: 0.85rem; color: var(--gray); margin-top: 0.35rem; font-weight: 300; }
.status-badge { display: inline-block; padding: 0.3rem 0.85rem; font-size: 0.72rem; font-weight: 500; border-radius: 20px; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-progress { background: #DBEAFE; color: #1E40AF; }
.status-done { background: #D1FAE5; color: #065F46; }
.service-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.service-item { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; background: var(--gray-light); border-radius: 4px; font-size: 0.85rem; }
.service-item-name { font-weight: 500; color: var(--navy); }
.upload-area { border: 1.5px dashed rgba(201,168,76,0.4); padding: 2rem; text-align: center; margin-top: 1rem; cursor: pointer; transition: border-color 0.2s; }
.upload-area:hover { border-color: var(--gold); }
.upload-area p { font-size: 0.85rem; color: var(--gray); }
.upload-area strong { color: var(--gold); }
.doc-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.doc-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--gray-light); border-radius: 4px; font-size: 0.82rem; color: var(--navy); }
.doc-icon { color: var(--gold); font-size: 1rem; }
.dash-full { grid-column: 1 / -1; }

/* AREA CLIENTE - LOGIN */
.auth-wrap { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 6rem 1rem 3rem; position: relative; }
.auth-wrap::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(201,168,76,0.03) 0, rgba(201,168,76,0.03) 1px, transparent 1px, transparent 18px); }
.auth-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.2); padding: 3rem; width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--white); text-align: center; margin-bottom: 0.5rem; }
.auth-logo span { color: var(--gold); }
.auth-subtitle { text-align: center; font-size: 0.82rem; color: rgba(250,250,248,0.45); margin-bottom: 2rem; }
.auth-tabs { display: flex; margin-bottom: 2rem; border-bottom: 1px solid rgba(201,168,76,0.2); }
.auth-tab { flex: 1; padding: 0.75rem; text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,250,248,0.4); cursor: pointer; transition: color 0.2s; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-link { text-align: center; margin-top: 1.25rem; font-size: 0.8rem; color: rgba(250,250,248,0.4); }
.auth-link a { color: var(--gold); }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.25s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* FOOTER */
footer { background: #070F18; padding: 4rem 0 2rem; border-top: 1px solid rgba(201,168,76,0.1); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--white); margin-bottom: 1rem; }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.82rem; color: rgba(250,250,248,0.35); line-height: 1.8; font-weight: 300; max-width: 280px; }
.footer-col-title { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.83rem; color: rgba(250,250,248,0.4); transition: color 0.2s; font-weight: 300; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.78rem; color: rgba(250,250,248,0.2); font-weight: 300; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(250,250,248,0.2); }
.footer-legal a:hover { color: var(--gold); }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.12); }
  .missao-inner, .contato-inner { grid-template-columns: 1fr; gap: 3rem; }
  .servicos-grid { grid-template-columns: 1fr 1fr; }
  .publico-cards { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .servicos-grid, .publico-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* ══════════════════
   SERVICO CARD — sem número
══════════════════ */
.servico-num { display: none; }

/* ══════════════════
   MISSÃO — desktop retangular
══════════════════ */
.missao-inner { display: grid; grid-template-columns: 2fr 3fr; gap: 0; }

/* ══════════════════
   EXPERTISE
══════════════════ */
.expertise-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: center; }

/* ══════════════════
   PUBLICO
══════════════════ */
.publico-grid-resp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }

/* ══════════════════
   SERVIÇOS — desktop mostra grid, mobile esconde
   Mobile — desktop esconde, mobile mostra
══════════════════ */
.servicos-desktop { display: grid; }
.servicos-mobile  { display: none; }
.como-desktop     { display: grid; }
.como-mobile      { display: none; }

/* ══════════════════
   BANNER SAZONAL
══════════════════ */
#banner-sazonal { position: relative; z-index: 200; width: 100%; }
#banner-sazonal p strong { color: var(--gold); }

/* ══════════════════
   RESPONSIVE — TABLET (max 900px)
══════════════════ */
@media (max-width: 900px) {
  .missao-inner          { grid-template-columns: 1fr; }
  .expertise-inner       { grid-template-columns: 1fr; gap: 2.5rem; }
  .contato-inner         { grid-template-columns: 1fr; }
  .servicos-header       { flex-direction: column; gap: 1rem; text-align: center; }
  .servicos-intro        { max-width: 100%; }
  #como-funciona .como-desktop { display: none; }
  #como-funciona .como-mobile  { display: block; }
}

/* ══════════════════
   RESPONSIVE — MOBILE (max 640px)
══════════════════ */
@media (max-width: 640px) {
  /* HERO */
  #hero                  { padding-top: 64px; }
  .hero-content          { padding: 2.5rem 0 1.5rem; }
  h1.hero-title          { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .hero-sub              { font-size: 0.85rem; max-width: 100%; }
  .hero-actions          { flex-direction: column; gap: 0.6rem; }
  .hero-actions a        { text-align: center; }
  .hero-stat             { padding: 1rem 1rem; }
  .stat-num              { font-size: 1.6rem; }
  .stat-label            { font-size: 0.7rem; }
  .hero-cred-inner       { gap: 0.75rem; }
  .cred-note             { display: none; }

  /* SEÇÕES — padding reduzido */
  #missao,
  #servicos,
  #como-funciona,
  #publico,
  #expertise,
  #blog,
  #faq,
  #contato               { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

  /* MISSÃO */
  .missao-inner          { grid-template-columns: 1fr !important; }
  .missao-inner > div:first-child { min-height: auto !important; }

  /* SERVIÇOS */
  .servicos-desktop      { display: none !important; }
  .servicos-mobile       { display: block !important; }
  .servicos-header       { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* EQUITY */
  .equity-grid           { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* COMO FUNCIONA */
  .como-desktop          { display: none !important; }
  .como-mobile           { display: block !important; }

  /* PARA QUEM */
  .publico-grid-resp     { grid-template-columns: 1fr 1fr !important; gap: 0.75rem; }
  .publico-header        { text-align: center; }

  /* EXPERTISE */
  .expertise-inner       { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* BLOG */
  .blog-grid             { grid-template-columns: 1fr !important; }
  .blog-header           { flex-direction: column; gap: 1rem; }

  /* FAQ */
  .faq-header            { padding: 1rem; }
  .faq-q                 { font-size: 0.85rem; }

  /* CONTATO */
  .contato-inner         { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .form-grid             { grid-template-columns: 1fr !important; }

  /* FOOTER */
  .footer-inner          { grid-template-columns: 1fr !important; gap: 1.5rem; }

  /* MINI SEÇÃO INGLESA */
  .en-section-grid       { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .en-section-grid a     { width: 100%; text-align: center; }

  /* ISF 360 */
  .isf360-grid           { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .isf360-price          { text-align: left !important; }
}

@media (max-width: 420px) {
  .hero-stats            { grid-template-columns: 1fr 1fr; }
  .publico-grid-resp     { grid-template-columns: 1fr !important; }
  h1.hero-title          { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
}


/* ══════════════════════════════════
   RESPONSIVE — MOBILE FIRST
══════════════════════════════════ */

/* TABLET — 900px */
@media(max-width:900px){
  .container{padding:0 1.25rem;}
  .hero-stats{grid-template-columns:repeat(3,1fr);}
  .missao-inner{grid-template-columns:1fr !important;}
  .expertise-inner{grid-template-columns:1fr !important;gap:2.5rem !important;}
  .contato-inner{grid-template-columns:1fr !important;}
  .blog-header{flex-direction:column;gap:1rem;}
  .servicos-header{flex-direction:column;gap:1rem;text-align:center;}
  .servicos-intro{max-width:100%;}
  .como-desktop{grid-template-columns:repeat(2,1fr) !important;}
  .publico-grid-resp{grid-template-columns:repeat(3,1fr) !important;}
}

/* MOBILE — 768px */
@media(max-width:768px){

  /* HERO */
  h1.hero-title{font-size:clamp(1.9rem,7.5vw,2.6rem) !important;}
  .hero-sub{font-size:0.85rem !important;line-height:1.7 !important;margin-bottom:1.5rem !important;}
  .hero-actions{flex-direction:column !important;gap:0.5rem !important;}
  .hero-actions a{text-align:center;width:100%;}
  .hero-content .container > div{max-width:100% !important;}

  /* HERO STATS */
  .hero-stats{grid-template-columns:repeat(3,1fr) !important;}
  .hero-stat{padding:1rem 0.75rem !important;}
  .stat-num{font-size:1.5rem !important;}
  .stat-label{font-size:0.68rem !important;}
  .hero-cred-inner{gap:0.75rem;flex-wrap:wrap;}
  .cred-note{display:none;}
  .cred-firms{gap:1rem;}

  /* MISSÃO */
  .missao-inner{grid-template-columns:1fr !important;align-items:initial !important;}
  .missao-inner > div:first-child{min-height:auto !important;}

  /* SERVIÇOS — esconde grid desktop, mostra só accordion */
  .servicos-desktop{display:none !important;}
  .servicos-mobile{display:block !important;}
  .serv-acc-item{margin-bottom:0.4rem;}

  /* COMO FUNCIONA — esconde desktop, mostra só lista mobile */
  .como-desktop{display:none !important;}
  .como-mobile{display:block !important;}

  /* EQUITY */
  #equity-section .container > div{grid-template-columns:1fr !important;gap:2rem !important;}

  /* PARA QUEM */
  .publico-grid-resp{grid-template-columns:1fr 1fr !important;gap:0.75rem !important;}
  .publico-header{text-align:center;}
  .publico-header p{max-width:100%;}

  /* EXPERTISE */
  .expertise-inner{grid-template-columns:1fr !important;gap:2rem !important;}

  /* BLOG */
  .blog-grid{grid-template-columns:1fr !important;gap:1rem !important;}
  .blog-header{flex-direction:column !important;align-items:flex-start !important;gap:1rem !important;}

  /* ISF 360 */
  .isf360-block{grid-template-columns:1fr !important;text-align:center;}

  /* CONTATO */
  .contato-inner{grid-template-columns:1fr !important;gap:2.5rem !important;}
  .form-grid{grid-template-columns:1fr !important;}

  /* MISSÃO responsive valores */
  .values-grid{grid-template-columns:1fr 1fr !important;gap:0.5rem !important;}

  /* FAQ */
  .faq-item .faq-q{font-size:0.85rem;}

  /* PAINEL ADMIN */
  .admin-stats{grid-template-columns:1fr 1fr !important;}
  .mg2{grid-template-columns:1fr !important;}
  .mbox{margin:0 0.5rem !important;}
  .atable td,.atable th{padding:0.6rem 0.75rem !important;}

  /* GERAL */
  section{padding:4rem 0 !important;}
  #hero{padding-top:70px !important;}
  .display{font-size:clamp(1.6rem,5vw,2.2rem) !important;}
  .section-label{font-size:0.6rem;}
}

/* MOBILE PEQUENO — 480px */
@media(max-width:480px){
  .hero-stats{grid-template-columns:1fr !important;}
  .hero-stat{border-right:none !important;border-bottom:1px solid rgba(201,168,76,0.12) !important;}
  .hero-stat:last-child{border-bottom:none !important;}
  .publico-grid-resp{grid-template-columns:1fr !important;}
  .values-grid{grid-template-columns:1fr !important;}
  .admin-stats{grid-template-columns:1fr !important;}
  h1.hero-title{font-size:clamp(1.7rem,7vw,2.2rem) !important;}
  .contato-info{gap:0.75rem;}
}

/* MOBILE MENU FIX v34 */
@media (max-width: 900px) {
  .hamburger { display: flex !important; }
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(13,27,42,0.98);
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .nav-links.open { transform: translateY(0) !important; }
  .nav-links li { list-style: none; }
  .nav-links a { font-size: 1rem; padding: 0.5rem 0; display: block; }
}
