/*
Theme Name: Ganhando Promoções
Theme URI: https://ganhandopromocoes.com.br/
Author: Ganhando Promoções
Author URI: https://ganhandopromocoes.com.br/
Description: Tema WordPress personalizado do portal Ganhando Promoções. Focado em conversão para promoções e para o Grupo VIP do WhatsApp, com prioridade em performance, SEO e experiência mobile. Mantém o WordPress como CMS: posts, categorias e páginas continuam sendo administrados normalmente pelo painel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: ganhando-promocoes
Tags: blog, news, custom-menu, featured-images, translation-ready, responsive-layout

Este arquivo é exigido pelo WordPress para identificar o tema (cabeçalho acima)
e também carrega as variáveis globais, o reset e a tipografia base do site.
O restante dos estilos (layout, componentes, seções) fica em assets/css/main.css,
carregado via functions.php — separado apenas para facilitar manutenção.
*/

/* ==========================================================================
   1. VARIÁVEIS GLOBAIS (Design Tokens)
   ========================================================================== */
:root {
  /* Cores de marca */
  --gp-primary: #ff5a36;
  --gp-primary-dark: #e0431f;
  --gp-primary-light: #fff1ec;
  --gp-accent: #ffc700;
  --gp-accent-dark: #e0ac00;
  --gp-success: #16a34a;
  --gp-success-dark: #128038;
  --gp-whatsapp: #25d366;

  /* Neutros */
  --gp-text: #16181d;
  --gp-text-muted: #666b74;
  --gp-text-soft: #8a8f98;
  --gp-bg: #ffffff;
  --gp-bg-soft: #faf7f2;
  --gp-bg-dark: #14151a;
  --gp-border: #ecebe7;
  --gp-border-strong: #dcdad4;
  --gp-white: #ffffff;

  /* Tipografia — pilha de fontes do sistema (sem requisições externas, foco em performance) */
  --gp-font-heading: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gp-font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Espaçamento */
  --gp-gap: 1rem;
  --gp-radius-sm: 8px;
  --gp-radius-md: 14px;
  --gp-radius-lg: 22px;
  --gp-radius-pill: 999px;

  /* Sombra */
  --gp-shadow-sm: 0 1px 2px rgba(20, 21, 26, 0.06), 0 1px 1px rgba(20, 21, 26, 0.04);
  --gp-shadow-md: 0 8px 24px rgba(20, 21, 26, 0.08);
  --gp-shadow-lg: 0 16px 40px rgba(20, 21, 26, 0.14);

  /* Largura de conteúdo */
  --gp-container: 1180px;

  /* Altura do header (usada para offset de âncoras/menu mobile) */
  --gp-header-height: 64px;
}

/* ==========================================================================
   2. RESET BÁSICO
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--gp-font-body);
  color: var(--gp-text);
  background: var(--gp-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gp-font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

figure {
  margin: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gp-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   3. UTILITÁRIOS BÁSICOS
   ========================================================================== */
.gp-container {
  width: 100%;
  max-width: var(--gp-container);
  margin: 0 auto;
  padding: 0 20px;
}

.gp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

img[loading="lazy"] {
  background: var(--gp-bg-soft);
}

::selection {
  background: var(--gp-primary);
  color: #fff;
}
