/*
 * Home SEOMais v2
 * Estrutura importada do projeto Claude Design "SEOMais Agencia v2.dc.html".
 * Os papeis de cor do design system Nocturne (tema escuro, accent blurple)
 * foram remapeados para a identidade visual do tema: azul #0055FF, verde
 * #00D4AA, Plus Jakarta Sans nos titulos e Inter no corpo.
 * Tudo aqui e prefixado com .sm- e so carrega na home.
 */

.sm-home {
    /* Papeis de cor do modelo, resolvidos nos tokens do tema */
    --sm-accent: var(--primary);
    --sm-accent-soft: var(--primary-light);
    --sm-accent-strong: var(--primary-dark);
    --sm-accent-2: var(--secondary);
    --sm-text: var(--gray-900);
    --sm-muted: var(--gray-600);
    --sm-muted-2: var(--gray-500);
    --sm-divider: var(--gray-200);
    --sm-surface: var(--white);
    --sm-surface-2: var(--gray-50);
    --sm-shadow: var(--shadow-card);
    --sm-shadow-hover: var(--shadow-card-hover);

    --sm-container: 1200px;
    --sm-section-y: 96px;

    background: var(--white);
    color: var(--sm-text);
    font-family: var(--font-body);
}

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

.sm-wrap {
    max-width: var(--sm-container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.sm-section { padding-top: var(--sm-section-y); padding-bottom: var(--sm-section-y); }
.sm-section--bordered { border-top: 1px solid var(--sm-divider); }
.sm-section--soft { background: var(--sm-surface-2); }

/* ============================================
   TIPOGRAFIA
   ============================================ */
.sm-kicker {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sm-accent);
    margin-bottom: 12px;
}

.sm-home h1,
.sm-home h2,
.sm-home h3 {
    font-family: var(--font-display);
    color: var(--sm-text);
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin: 0;
}

.sm-h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 24px !important;
}

.sm-h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 16px !important;
}

.sm-h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.sm-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--sm-muted);
    margin: 0 0 32px;
    max-width: 56ch;
}

.sm-p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--sm-muted);
    margin: 0 0 14px;
}
.sm-p:last-child { margin-bottom: 0; }

/* ============================================
   GRIDS
   ============================================ */
.sm-cols2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.sm-cols2--start { align-items: start; }
.sm-cols2--media { grid-template-columns: 0.85fr 1.15fr; }
.sm-cols2--geo { grid-template-columns: 1.1fr 0.9fr; }
.sm-cols2--even { grid-template-columns: 1fr 1fr; }
.sm-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sm-cols3--airy { gap: 28px 32px; }
.sm-cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ============================================
   BOTOES
   ============================================ */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.sm-btn--primary {
    background: var(--sm-accent);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}
.sm-btn--primary:hover {
    background: var(--sm-accent-strong);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.32);
}
.sm-btn--ghost {
    background: transparent;
    color: var(--sm-accent);
    border-color: var(--sm-divider);
}
.sm-btn--ghost:hover {
    background: var(--sm-accent-soft);
    border-color: var(--sm-accent);
    color: var(--sm-accent-strong);
}
.sm-btn--block { width: 100%; }
.sm-btn--onDark {
    background: var(--white);
    color: var(--dark);
}
.sm-btn--onDark:hover { background: var(--gray-100); color: var(--dark); transform: translateY(-2px); }

/* ============================================
   CARDS
   ============================================ */
.sm-card {
    background: var(--sm-surface);
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-xl);
    box-shadow: var(--sm-shadow);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.sm-card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--sm-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.28);
}
.sm-card--pad { padding: 24px; }
.sm-card--pad-lg { padding: 28px; }

.sm-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--sm-accent-soft);
    color: var(--sm-accent-strong);
}
.sm-tag--geo { background: var(--secondary-light); color: var(--secondary-dark); }

.sm-kicker-sm {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sm-accent);
}

/* ============================================
   HERO
   ============================================ */
.sm-hero { padding-top: 96px; padding-bottom: 64px; }

.sm-serp {
    padding: 20px;
    box-shadow: var(--shadow-xl);
}
.sm-serp-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    margin-bottom: 18px;
    background: var(--sm-surface-2);
}
.sm-serp-bar span { font-size: 14px; color: var(--sm-muted-2); }
.sm-serp-hit {
    border-left: 3px solid var(--sm-accent);
    padding: 4px 0 4px 14px;
}
.sm-serp-url { font-size: 12px; color: var(--sm-muted-2); margin-bottom: 2px; }
.sm-serp-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--sm-accent);
    margin-bottom: 4px;
    line-height: 1.35;
}
.sm-serp-stars { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sm-serp-stars b { color: var(--warning); font-size: 13px; letter-spacing: 1px; font-weight: 400; }
.sm-serp-stars span { font-size: 12px; color: var(--sm-muted-2); }
.sm-serp-desc { font-size: 13px; color: var(--sm-muted); line-height: 1.55; }
.sm-serp-ghost { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sm-divider); }
.sm-serp-ghost i {
    display: block;
    height: 9px;
    background: var(--gray-100);
    border-radius: 5px;
    margin-bottom: 8px;
}
.sm-serp-ghost i:nth-child(1) { width: 70%; }
.sm-serp-ghost i:nth-child(2) { width: 55%; margin-bottom: 0; }

.sm-hero-visual { position: relative; }
.sm-float-badge {
    position: absolute;
    top: -16px;
    right: -6px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--sm-accent);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    animation: smFloatBadge 4s ease-in-out infinite;
}
@keyframes smFloatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Barra de credenciais */
.sm-creds {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--sm-divider);
    border-bottom: 1px solid var(--sm-divider);
    padding: 28px 8px;
}
.sm-cred-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--sm-text);
    font-feature-settings: 'tnum' 1;
    line-height: 1.1;
}
.sm-cred-value--accent { color: var(--sm-accent); }
.sm-cred-label { font-size: 13px; color: var(--sm-muted-2); margin-top: 6px; }

/* ============================================
   SLOTS DE IMAGEM
   ============================================ */
.sm-slot {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--sm-surface-2);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: var(--sm-muted-2);
    overflow: hidden;
}
.sm-slot img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.sm-slot--circle { border-radius: 50%; }
.sm-slot--flat { border-radius: var(--radius-md); }

.sm-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sm-accent-soft);
    color: var(--sm-accent-strong);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   AVALIACAO GOOGLE
   ============================================ */
.sm-rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sm-rating-score { display: flex; align-items: baseline; gap: 8px; }
.sm-rating-score b { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--sm-text); }
.sm-rating-score i { color: var(--warning); font-size: 15px; letter-spacing: 2px; font-style: normal; }
.sm-rating span { font-size: 13px; color: var(--sm-muted-2); }

/* ============================================
   SEGMENTOS E ETAPAS
   ============================================ */
.sm-topline {
    border-top: 2px solid var(--sm-accent);
    padding-top: 16px;
}
.sm-topline h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.sm-topline p { font-size: 14px; line-height: 1.65; color: var(--sm-muted); margin: 0; }
.sm-step-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: var(--sm-accent);
    font-feature-settings: 'tnum' 1;
    margin-bottom: 8px;
}

/* ============================================
   SECAO ESCURA (GEO e CTA)
   ============================================ */
.sm-dark {
    background:
        radial-gradient(900px 520px at 85% -120px, rgba(var(--primary-rgb), 0.28), transparent 62%),
        linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    color: var(--white);
}
.sm-dark h2, .sm-dark h3 { color: var(--white); }
.sm-dark .sm-kicker { color: var(--secondary); }
.sm-dark .sm-p, .sm-dark .sm-lead { color: var(--gray-300); }

.sm-geo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}
.sm-geo-card h3 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.sm-geo-card p { font-size: 13px; color: var(--gray-400); margin: 0; line-height: 1.55; }
.sm-geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sm-ai-card { background: var(--white); padding: 24px; border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); }
.sm-ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sm-ai-avatar {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--sm-accent-soft);
    color: var(--sm-accent-strong);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 12px; font-weight: 800;
}
.sm-ai-q { font-size: 13px; color: var(--sm-muted-2); line-height: 1.5; }
.sm-ai-body {
    background: var(--sm-surface-2);
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-lg);
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-700);
}
.sm-ai-mark {
    background: var(--sm-accent-soft);
    color: var(--sm-accent-strong);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.sm-ai-cite { color: var(--sm-accent); font-size: 12px; }
.sm-ai-source { margin-top: 12px; font-size: 12px; color: var(--sm-muted-2); }

/* ============================================
   CASES
   ============================================ */
.sm-spark { width: 100%; height: 60px; margin-bottom: 16px; display: block; }
.sm-case-metric {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--sm-text);
    margin-bottom: 2px;
}
.sm-case-period { font-size: 13px; color: var(--sm-muted-2); margin-bottom: 16px; }

/* ============================================
   DEPOIMENTOS
   ============================================ */
.sm-quote { font-size: 14px; line-height: 1.7; color: var(--gray-700); margin: 0 0 20px; }
.sm-stars { color: var(--warning); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.sm-person { display: flex; align-items: center; gap: 12px; }
.sm-person-name { font-size: 14px; font-weight: 700; color: var(--sm-text); }
.sm-person-role { font-size: 12px; color: var(--sm-muted-2); }

/* ============================================
   FAQ
   ============================================ */
.sm-faq-wrap { max-width: 860px; margin: 0 auto; }
.sm-faq-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.sm-faq-group:last-child { margin-bottom: 0; }
.sm-faq {
    background: var(--sm-surface);
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-lg);
    padding: 0 20px;
    box-shadow: var(--shadow-xs);
}
.sm-faq[open] { border-color: rgba(var(--primary-rgb), 0.3); }
.sm-faq > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
}
.sm-faq > summary::-webkit-details-marker { display: none; }
.sm-faq > summary h3 { font-size: 15px; font-weight: 700; margin: 0; }
.sm-faq-chev {
    color: var(--sm-accent);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    font-size: 12px;
}
.sm-faq[open] .sm-faq-chev { transform: rotate(180deg); }
.sm-faq-answer {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sm-muted);
    margin: 0;
    padding: 0 0 18px;
}

/* ============================================
   CTA FINAL
   ============================================ */
.sm-cta-bullets { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--gray-300); }
.sm-cta-bullets div { display: flex; gap: 10px; align-items: flex-start; }
.sm-cta-bullets i { color: var(--secondary); margin-top: 4px; }

.sm-form { display: flex; flex-direction: column; gap: 12px; }
.sm-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--sm-text);
    background: var(--white);
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.sm-input::placeholder { color: var(--gray-400); }
.sm-input:focus {
    outline: none;
    border-color: var(--sm-accent);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
.sm-form-note { font-size: 12px; color: var(--sm-muted-2); margin: 4px 0 0; line-height: 1.5; }

/* ============================================
   NAP E MAPA
   ============================================ */
.sm-nap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.sm-nap p { font-size: 15px; line-height: 1.9; color: var(--sm-muted); margin: 0 0 16px; }
.sm-nap-brand { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--sm-text); margin-bottom: 10px; }
.sm-map {
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sm-divider);
    background: var(--sm-surface-2);
}
.sm-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================
   CLUSTERS DE LOCALIDADES (links internos do silo)
   ============================================ */
.sm-clusters { margin-top: 56px; }
.sm-cluster {
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-lg);
    background: var(--sm-surface);
    padding: 0 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
}
.sm-cluster > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--sm-text);
}
.sm-cluster > summary::-webkit-details-marker { display: none; }
.sm-cluster[open] .sm-faq-chev { transform: rotate(180deg); }
.sm-cluster-body { padding: 0 0 20px; }
.sm-cluster-group { margin-bottom: 20px; }
.sm-cluster-group:last-child { margin-bottom: 0; }
.sm-cluster-group h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sm-muted-2);
    margin: 0 0 10px;
}
.sm-cluster-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-cluster-links a {
    font-size: 13px;
    color: var(--gray-700);
    background: var(--sm-surface-2);
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.sm-cluster-links a:hover {
    background: var(--sm-accent-soft);
    border-color: var(--sm-accent);
    color: var(--sm-accent-strong);
}

/* ============================================
   ANIMACOES
   ============================================ */
.sm-fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.sm-fade.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .sm-fade { opacity: 1; transform: none; transition: none; }
    .sm-float-badge { animation: none; }
    .sm-btn, .sm-card { transition: none; }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 1024px) {
    .sm-cols3 { grid-template-columns: repeat(2, 1fr); }
    .sm-cols4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .sm-home { --sm-section-y: 64px; }
    .sm-hero { padding-top: 56px; padding-bottom: 40px; }
    .sm-cols2,
    .sm-cols2--media,
    .sm-cols2--geo,
    .sm-cols2--even { grid-template-columns: 1fr; gap: 40px; }
    .sm-creds { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
    .sm-nap-grid { grid-template-columns: 1fr; }
    .sm-float-badge { right: 0; }
}

@media (max-width: 640px) {
    .sm-cols3,
    .sm-cols4 { grid-template-columns: 1fr; }
    .sm-geo-grid { grid-template-columns: 1fr; }
    .sm-wrap { padding-left: 18px; padding-right: 18px; }
    .sm-btn { width: 100%; }
    .sm-hero-actions { width: 100%; }
}

/* Labels acessiveis do formulario, visiveis apenas para leitores de tela */
.sm-home .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FOTO DE AUTORIDADE (recorte com fundo transparente)
   ============================================ */
.sm-photo {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
}
.sm-photo .sm-slot { height: 100%; }
.sm-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--primary-light) 0%, var(--white) 72%);
}
@media (max-width: 900px) {
    .sm-photo { max-width: 340px; margin-inline: auto; }
}

/* ============================================
   PRINT DE SEARCH CONSOLE NOS CARDS DE CASE
   Mesma proporcao do print (648x262) nos tres cards, cheios ou nao,
   para os cards continuarem alinhados na grade.
   ============================================ */
.sm-case-shot {
    width: 100%;
    /* proporcao media dos prints atuais (1,78:1 a 2,04:1) */
    aspect-ratio: 2 / 1;
}
.sm-case-shot .sm-slot { height: 100%; }
.sm-case-shot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    border: 1px solid var(--sm-divider);
    border-radius: var(--radius-md);
}

/* ============================================
   SECAO DE ATENDIMENTO LOCAL EM DUAS COLUNAS
   Texto a esquerda, recorte apontando para ele a direita.
   ============================================ */
.sm-cols2--local {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}
.sm-photo--local {
    max-width: 400px;
    margin-left: auto;
}
@media (max-width: 900px) {
    .sm-cols2--local { grid-template-columns: 1fr; }
    .sm-photo--local { margin-inline: auto; max-width: 300px; }
}
