/*
Theme Name: Yanga Design
Theme URI: https://yangadesign.com.br
Author: Jean Monteiro
Author URI: https://yangadesign.com.br
Description: Tema oficial Yanga Design v4.2.2 — portfólio e serviços freelancer com preço fixo. Modo claro/escuro, hero slider, portfólio gerenciável e customizer completo.
Version: 4.2.3
License: GNU General Public License v2 or later
Text Domain: yanga-design
Tags: portfolio, freelance, design, one-page, dark, light, custom-colors, custom-logo
*/

/* =============================================
   VARIÁVEIS — MODO CLARO (padrão)
   ============================================= */
:root {
  --bg:           #efeeea;
  --bg2:          #e8e7e3;
  --bg3:          #dddcd8;
  --card:         #ffffff;
  --border:       #c8c7c3;
  --border2:      #b0afab;
  --text:         #1a1a18;
  --sub:          #3d3d3b;
  --muted:        #5c5c5a;
  --faint:        #8a8a88;
  --accent:       #00873e;
  --accent-dark:  #006b30;
  --accent-light: #00a84d;
  --nav-bg:       #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* =============================================
   MODO ESCURO
   ============================================= */
body.dark-mode {
  --bg:           #161616;
  --bg2:          #1a1a1a;
  --bg3:          #1f1f1f;
  --card:         #1f1f1f;
  --border:       #2a2a2a;
  --border2:      #383838;
  --text:         #f0ece4;
  --sub:          #c0bbb3;
  --muted:        #9a9690;
  --faint:        #666462;
  --accent:       #00a84d;
  --accent-dark:  #00873e;
  --accent-light: #33c46a;
  --nav-bg:       #111111;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* =============================================
   TIPOGRAFIA
   ============================================= */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; color: var(--text); }

.label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px; font-weight: 600; }

/* =============================================
   BOTÕES
   ============================================= */
.btn { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 13px 26px; font-family: var(--font-body); font-weight: 500; transition: all .2s; border: none; line-height: 1; cursor: pointer; }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--sub); border: 1px solid var(--border2); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-outline   { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* =============================================
   LAYOUT
   ============================================= */
.container      { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.section        { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section-alt    { background: var(--bg2); }
.section-header { max-width: 1140px; margin: 0 auto; padding: 0 40px 40px; }
.section-title  { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.section-sub    { font-size: 14px; color: var(--sub); max-width: 520px; line-height: 1.8; }

/* =============================================
   TOP TICKER
   ============================================= */
#top-slider { background: var(--accent); height: 38px; overflow: hidden; display: flex; align-items: center; }
.slider-track { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; will-change: transform; }
.slider-track:hover { animation-play-state: paused; }
.slider-item { padding: 0 36px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 12px; }
.slider-item::after { content: ''; width: 4px; height: 4px; background: rgba(255,255,255,.4); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================
   NAV
   ============================================= */
#site-header { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); border-bottom: 1px solid var(--border); transition: background .3s, border-color .3s; }
.nav-inner   { max-width: 1140px; margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-logo      { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.nav-logo-text { font-family: var(--font-heading); font-size: 20px; font-weight: 900; letter-spacing: 2px; color: var(--text); line-height: 1; }
.nav-logo-text .dot { color: var(--accent); }
.nav-logo-tagline { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* Logo imagem — sem inversão de cor */
.nav-logo--image { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo--image a { display: flex; align-items: center; line-height: 0; }
.nav-logo--image img { height: 40px; width: auto; max-width: 180px; display: block; object-fit: contain; }

.nav-links   { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sub); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-right   { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle { background: transparent; border: 1px solid var(--border); color: var(--muted); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .2s; border-radius: 4px; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { background: transparent; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 9px 20px; transition: all .2s; }
.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .3s; }

/* =============================================
   HERO SLIDER
   ============================================= */
#hero-slider   { position: relative; background: var(--bg2); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-slide    { display: none; padding: 72px 40px 64px; max-width: 1140px; margin: 0 auto; }
.hero-slide.active { display: grid; grid-template-columns: 1fr minmax(0,1fr); gap: 60px; align-items: center; animation: slideIn .45s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.slide-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 5px 12px; margin-bottom: 12px; font-weight: 600; }
.slide-badge.promo { background: #b07a10; }
.slide-tag   { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.slide-h     { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 46px); font-weight: 900; color: var(--text); line-height: 1.05; margin-bottom: 16px; }
.slide-p     { font-size: 14px; color: var(--sub); line-height: 1.85; margin-bottom: 24px; max-width: 400px; }
.slide-price { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--accent); margin-bottom: 22px; }
.slide-price span { font-size: 14px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.slide-visual { background: var(--bg3); border: 1px solid var(--border); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; width: 100%; max-height: 420px; align-self: start; }
.slide-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-visual-placeholder { font-family: var(--font-heading); font-size: 80px; font-weight: 900; color: var(--border); line-height: 1; letter-spacing: -4px; user-select: none; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 0; background: var(--bg2); border-bottom: 1px solid var(--border); }
.slider-dot { width: 24px; height: 3px; background: var(--border2); cursor: pointer; transition: background .2s, width .2s; border: none; padding: 0; }
.slider-dot.active { background: var(--accent); width: 36px; }
.slider-arrow { width: 34px; height: 34px; background: var(--card); border: 1px solid var(--border); color: var(--sub); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; line-height: 1; }
.slider-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================
   MÉTRICAS
   ============================================= */
.metrics-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.metric      { background: var(--bg); padding: 24px 28px; }
.metric:first-child { background: var(--accent); }
.metric-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.metric:first-child .metric-label { color: rgba(255,255,255,.65); }
.metric-num  { font-family: var(--font-heading); font-size: 38px; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 4px; }
.metric:first-child .metric-num { color: #fff; }
.metric-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.metric:first-child .metric-desc { color: rgba(255,255,255,.7); }

/* =============================================
   DIFERENCIAIS
   ============================================= */
#diferenciais { padding: 80px 0 0; border-bottom: none; }
/* Wrapper aligns diff-grid to the same max-width/padding as the rest of the site grid */
.diff-grid-wrapper { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.diff-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.diff-item  { background: var(--bg); padding: 32px 28px; transition: background .2s; }
.diff-item:hover { background: var(--bg2); }
.diff-icon  { width: 32px; height: 32px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.diff-icon svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diff-title { font-size: 14px; font-weight: 600; color: var(--text); font-family: var(--font-body); margin-bottom: 8px; }
.diff-desc  { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* =============================================
   SERVIÇOS — lista vertical com badge
   ============================================= */
#servicos { padding: 80px 0; border-bottom: 1px solid var(--border); }
.services-banner { background: var(--accent); padding: 13px 40px; display: flex; align-items: center; gap: 12px; max-width: 1140px; margin: 0 auto 2px; }
.services-banner span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }

.srv-list  { max-width: 1140px; margin: 0 auto; border: 1px solid var(--border); }
.srv-item  { background: var(--bg); padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); transition: background .15s; }
.srv-item:last-child { border-bottom: none; }
.srv-item:nth-child(even) { background: var(--bg2); }
.srv-item:hover { background: var(--bg3); }
.srv-left  { display: flex; align-items: center; gap: 18px; }
.srv-num   { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 1px; min-width: 24px; }
.srv-name-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.srv-name  { font-size: 14px; font-weight: 600; color: var(--text); font-family: var(--font-body); }
.srv-badge { display: inline-block; background: #d4f0e1; color: #085041; font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; letter-spacing: .5px; }
body.dark-mode .srv-badge { background: #064020; color: #5dcaa5; }
.srv-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 400px; }
.srv-right { text-align: right; flex-shrink: 0; margin-left: 20px; }
.srv-price { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.srv-price .period { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.srv-prazo { font-size: 10px; color: var(--faint); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }

.pricing-note { background: var(--bg3); border: 1px solid var(--border); border-top: none; padding: 16px 28px; display: flex; align-items: center; gap: 14px; max-width: 1140px; margin: 0 auto; }
.pricing-note-dot  { width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
.pricing-note-text { font-size: 13px; color: var(--sub); line-height: 1.6; }
.pricing-note-text strong { color: var(--text); font-weight: 600; }

/* =============================================
   PORTFÓLIO — grid assimétrico com overlay
   ============================================= */
#portfolio { padding: 80px 0; border-bottom: 1px solid var(--border); }
.port-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.port-item { background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: flex-end; padding: 16px; overflow: hidden; position: relative; transition: border-color .3s; cursor: pointer; }
.port-item:hover { border-color: var(--accent); }
.port-item.tall { grid-row: span 2; }
.port-item img  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: opacity .3s; }
.port-item:hover img { opacity: .85; }
.port-item-overlay { position: absolute; inset: 0; background: var(--accent); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.port-item:hover .port-item-overlay { opacity: .88; }
.port-item-overlay span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 600; }
.port-item-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.port-placeholder-num { font-family: var(--font-heading); font-size: 80px; font-weight: 900; color: var(--border2); line-height: 1; letter-spacing: -3px; user-select: none; }
.port-item-bottom { position: relative; z-index: 1; }
.port-item-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); font-weight: 600; }
.port-item-tag   { display: inline-block; background: var(--accent); color: #fff; font-size: 9px; padding: 2px 8px; border-radius: 20px; font-weight: 600; margin-bottom: 4px; }
.port-cta        { max-width: 1140px; margin: 24px auto 0; padding: 0 40px; text-align: center; }
.port-cta p      { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* =============================================
   SOBRE
   ============================================= */
#sobre          { border-bottom: 1px solid var(--border); }
.sobre-inner    { display: grid; grid-template-columns: 1fr 1fr; max-width: 1140px; margin: 0 auto; }
.sobre-text     { padding: 80px 60px 80px 40px; border-right: 1px solid var(--border); }
.sobre-visual   { padding: 80px 40px 80px 60px; background: var(--bg2); }
.sobre-quote    { font-family: var(--font-heading); font-size: 19px; font-weight: 400; font-style: italic; color: var(--text); line-height: 1.65; border-left: 2px solid var(--accent); padding-left: 20px; margin-bottom: 22px; }
.sobre-body     { font-size: 14px; color: var(--sub); line-height: 1.9; margin-bottom: 26px; }
.sobre-tags     { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.sobre-tag      { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--border2); padding: 6px 14px; color: var(--sub); }
.tools-label    { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.tools-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tool-item      { background: var(--bg); border: 1px solid var(--border); padding: 12px 14px; font-size: 13px; color: var(--text); font-weight: 600; }
.sobre-links    { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   DEPOIMENTOS — cards com avatar
   ============================================= */
#depoimentos { padding: 80px 0; border-bottom: 1px solid var(--border); }
.dep-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.dep-item    { background: var(--card); border: 1px solid var(--border); padding: 28px 24px; position: relative; }
.dep-quote-mark { position: absolute; top: 12px; right: 16px; font-family: var(--font-heading); font-size: 48px; font-weight: 900; color: var(--bg3); line-height: 1; }
.dep-stars   { color: var(--accent); font-size: 11px; letter-spacing: 4px; margin-bottom: 14px; }
.dep-text    { font-size: 13px; color: var(--sub); line-height: 1.8; font-style: italic; margin-bottom: 18px; }
.dep-footer  { display: flex; align-items: center; gap: 10px; }
.dep-avatar  { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.dep-author  { font-size: 13px; font-weight: 700; color: var(--text); }
.dep-role    { font-size: 11px; color: var(--faint); margin-top: 1px; }

/* =============================================
   FAQ
   ============================================= */
#faq         { padding: 80px 0; border-bottom: 1px solid var(--border); }
.faq-inner   { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.faq-list    { border-top: 1px solid var(--border); }
.faq-item    { border-bottom: 1px solid var(--border); }
.faq-toggle  { width: 100%; background: none; border: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.faq-q       { font-size: 14px; font-weight: 600; color: var(--text); font-family: var(--font-body); padding-right: 16px; line-height: 1.5; }
.faq-icon    { color: var(--accent); font-size: 22px; font-weight: 300; flex-shrink: 0; transition: transform .3s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a       { display: none; font-size: 13px; color: var(--sub); line-height: 1.8; padding-bottom: 18px; }
.faq-item.open .faq-a { display: block; }

/* =============================================
   CONTATO
   ============================================= */
#contato         { padding: 80px 0; border-bottom: 1px solid var(--border); }
.contato-inner   { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.contato-text h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.contato-text p  { font-size: 14px; color: var(--sub); line-height: 1.85; margin-bottom: 24px; }
.contato-wa      { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.contato-wa a    { color: var(--accent); font-weight: 600; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  padding: 13px 16px; margin-bottom: 10px; outline: none;
  transition: border-color .2s; appearance: none; -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.contact-form select option { background: var(--bg3); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; text-align: center; margin-top: 4px; }

/* =============================================
   RODAPÉ
   ============================================= */
#site-footer  { padding: 36px 0; border-top: 1px solid var(--border); background: var(--nav-bg); transition: background .3s; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px; }
.footer-logo  { font-family: var(--font-heading); font-size: 18px; font-weight: 900; letter-spacing: 2px; color: var(--text); flex-shrink: 0; text-decoration: none; }
.footer-logo .dot { color: var(--accent); }
/* Logo rodapé imagem — sem inversão */
.footer-logo--image { display: flex; align-items: center; flex-shrink: 0; }
.footer-logo--image a { display: flex; align-items: center; line-height: 0; }
.footer-logo--image img { height: 28px; width: auto; max-width: 140px; display: block; object-fit: contain; }
.footer-copy  { font-size: 11px; color: var(--muted); justify-self: center; line-height: 1.6; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-cta   { background: var(--accent); border: none; color: #fff; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 11px 22px; transition: background .2s; white-space: nowrap; }
.footer-cta:hover { background: var(--accent-dark); }

/* =============================================
   REVEAL ON SCROLL
   ============================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 960px) {
  .hero-slide.active { grid-template-columns: 1fr; gap: 0; }
  .slide-visual      { aspect-ratio: 4/3; max-height: 360px; order: -1; }
  .slide-visual img  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .metrics-bar       { grid-template-columns: repeat(2,1fr); }
  .diff-grid         { grid-template-columns: repeat(2,1fr); }
  .srv-desc{display:block;font-size:12px;line-height:1.5;}
  .dep-grid          { grid-template-columns: 1fr 1fr; padding: 0 40px; }
  .faq-inner         { grid-template-columns: 1fr; gap: 36px; }
  .contato-inner     { grid-template-columns: 1fr; gap: 40px; }
  .sobre-inner       { grid-template-columns: 1fr; }
  .sobre-text        { border-right: none; border-bottom: 1px solid var(--border); padding: 60px 40px; }
  .sobre-visual      { padding: 60px 40px; }
  .footer-inner      { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .footer-copy       { grid-column: 1/-1; justify-self: start; order: 10; }
}

@media (max-width: 680px) {
  #top-slider         { display: none; }
  .nav-inner          { padding: 0 20px; }
  .nav-links          { display: none; }
  .nav-links.open     { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--nav-bg); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px; z-index: 200; }
  .nav-mobile-toggle  { display: flex; }
  .nav-cta            { display: none; }
  .hero-slide         { padding: 32px 20px 40px; }
  .hero-slide.active  { grid-template-columns: 1fr; }
  .section-header     { padding-left: 20px; padding-right: 20px; }
  .services-banner    { padding-left: 20px; padding-right: 20px; }
  .diff-grid          { grid-template-columns: 1fr; }
  .metrics-bar        { grid-template-columns: 1fr 1fr; }
  .port-grid          { grid-template-columns: 1fr 1fr; grid-template-rows: auto; padding: 0 20px; }
  .port-item.tall     { grid-row: span 1; }
  .dep-grid           { grid-template-columns: 1fr; padding: 0 20px; }
  .faq-inner          { padding: 0 20px; }
  .contato-inner      { padding: 0 20px; }
  .sobre-text         { padding: 40px 20px; }
  .sobre-visual       { padding: 40px 20px; }
  .footer-inner       { padding: 0 20px; grid-template-columns: 1fr; gap: 14px; }
  .port-cta           { padding: 0 20px; }
  .slider-controls    { gap: 8px; }
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  line-height: 1;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#scroll-top:hover { background: var(--accent-dark); }

/* modo escuro: sombra mais suave */
body.dark-mode #scroll-top {
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}


/* ===== Modern Glass Gradient Redesign ===== */
:root{
 --bg:#f6f7fb;
 --bg2:#ffffffcc;
 --bg3:#eef2ff;
 --card:rgba(255,255,255,.72);
 --border:rgba(255,255,255,.45);
 --border2:rgba(0,0,0,.08);
 --text:#10131c;
 --sub:#5e6472;
 --muted:#7f8796;
 --faint:#9aa3b2;
}
body.dark-mode{
 --bg:#090b14;
 --bg2:rgba(18,22,36,.88);
 --bg3:#101728;
 --card:rgba(15,19,31,.72);
 --border:rgba(255,255,255,.06);
 --border2:rgba(255,255,255,.08);
 --text:#f5f7ff;
 --sub:#c6cede;
 --muted:#9ba7bc;
 --faint:#6e7890;
}
body{background:radial-gradient(circle at top left, rgba(86,125,255,.12), transparent 32%),radial-gradient(circle at top right, rgba(240,88,255,.10), transparent 28%),linear-gradient(180deg,var(--bg),var(--bg));background-attachment:fixed;}
body.dark-mode{background:radial-gradient(circle at top left, rgba(76,110,245,.18), transparent 30%),radial-gradient(circle at top right, rgba(199,87,255,.12), transparent 30%),linear-gradient(180deg,#080b12,#0d1220);}
#site-header,.srv-item,.diff-item,.port-item,.tool-item,.contact-card,.faq-item,.pricing-note,.slide-visual,.slide-content,.sobre-visual,.sobre-text,.hero-slide{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
#site-header{position:sticky;top:14px;width:min(1180px,calc(100% - 32px));margin:14px auto;border-radius:28px;background:var(--card);border:1px solid var(--border);box-shadow:0 10px 40px rgba(0,0,0,.06);}
.nav-inner{padding:18px 28px;}
#hero-slider{background:transparent;border:none;overflow:hidden;}
.hero-slide{border-radius:38px;background:linear-gradient(135deg,var(--card),rgba(255,255,255,.28));border:1px solid var(--border);overflow:hidden;padding:28px 40px;box-shadow:0 30px 80px rgba(0,0,0,.06);}
body.dark-mode .hero-slide{background:linear-gradient(135deg,rgba(16,22,37,.9),rgba(16,22,37,.55));}
.slide-content{background:transparent;border:none;}
.slide-visual{border-radius:28px;border:1px solid var(--border);min-height:420px;}
.slide-visual img{transform:scale(1.03);}
.btn,.nav-cta{border-radius:999px;box-shadow:0 10px 25px rgba(0,0,0,.08);}
.section-title{font-size:clamp(34px,5vw,58px);letter-spacing:-2px;}
.diff-grid,.srv-list,.sobre-inner{background:transparent;border:none;}
.diff-item,.srv-item,.tool-item,.pricing-note,.port-item{border-radius:26px;border:1px solid var(--border);background:var(--card);box-shadow:0 12px 35px rgba(0,0,0,.05);}
.port-grid{gap:18px;}
.port-item,.slide-visual,.srv-item,.diff-item{overflow:hidden;}
.port-item img{opacity:.88;}
#servicos,#portfolio,#sobre,#faq,#contato,footer{border:none;}
.sobre-inner{max-width:1180px;padding:0 20px;}
.sobre-text,.sobre-visual{border:none;border-radius:32px;background:var(--card);}
.contact-wrap,.faq-wrap{max-width:1180px;padding:0 20px;}
footer{margin-top:80px;background:transparent;}
.footer-inner{max-width:1180px;border-radius:32px;background:linear-gradient(135deg,var(--card),rgba(255,255,255,.2));border:1px solid var(--border);padding:48px;}
.slider-controls{background:transparent;border:none;padding-top:24px;}
.slider-dot{height:8px;width:8px;border-radius:999px;}
.slider-dot.active{width:42px;border-radius:999px;}
@media(max-width:768px){#site-header{top:8px;width:calc(100% - 16px);} .hero-slide{padding:18px;border-radius:24px;} .slide-visual{min-height:260px;} .section-title{letter-spacing:-1px;}}


/* =============================================
   LOGO DUAL — modo escuro
   ============================================= */
/* Quando logo_dark_mode não está configurado, inverte automaticamente o logo no modo escuro */
body.dark-mode .logo-auto-invert {
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
/* Quando logo_dark_mode ESTÁ configurado, sem filtro (a troca é feita via JS/src) */
body.dark-mode .yanga-logo-img:not(.logo-auto-invert) {
  filter: none;
}
/* Transição suave na troca de logo */
.yanga-logo-img {
  transition: opacity .2s ease;
}
/* =============================================
   SERVICE CATEGORY TITLES
   ============================================= */
.service-cat {
  font-size: 22px;
  font-weight: 700;
  margin: 40px auto 16px;
  padding: 0 40px;
  max-width: 1140px;
  display: block;
  color: var(--text);
}

/* =============================================
   LANGUAGE TOGGLE
   ============================================= */
.lang-toggle {
  min-width: 44px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .2s;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   V4.0 AUDIT FIXES
   ============================================= */
/* diff-grid within the glassmorphism redesign needs gap not 1px */
.diff-grid { gap: 1px; }
.diff-grid > * { min-width: 0; }

@media (max-width: 960px) {
  .diff-grid-wrapper { padding: 0 40px; }
}
@media (max-width: 680px) {
  .diff-grid-wrapper { padding: 0 20px; }
  .service-cat { padding: 0 20px; }
}
