/*
Theme Name: VerticeFin
Theme URI: https://verticefin.com.br
Author: Alexandre Rodrigues
Author URI: https://wordpress-specialist.dev
Description: Tema moderno e otimizado para blog de finanças e tecnologia. Design minimalista, performance máxima e SEO embutido.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verticefin
Tags: blog, two-columns, responsive-layout, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready

VerticeFin WordPress Theme
Copyright 2026 Alexandre Rodrigues
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables
# Reset & Base Styles
# Typography
# Layout
# Components
  ## Buttons
  ## Cards
  ## Badges
# Header
# Navigation
# Footer
# Blog
# Sidebar
# Posts
# Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Colors - Main */
  --color-primary: #0090C8;
  --color-secondary: #7B2EFF;
  --color-accent: #D4218F;
  --color-dark: #0D1117;
  
  /* Colors - Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-dark: #0D1117;
  
  /* Colors - Text */
  --text-primary: #0D1117;
  --text-secondary: #AAAAAA;
  --text-white: #FFFFFF;
  
  /* Colors - Links */
  --link-color: #0090C8;
  --link-hover: #7B2EFF;
  
  /* Typography */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --fs-base: 16px;
  --fs-small: 14px;
  --fs-tiny: 12px;
  --fs-h1: clamp(32px, 5vw, 64px);
  --fs-h2: clamp(24px, 4vw, 40px);
  --fs-h3: clamp(20px, 3vw, 28px);
  --fs-h4: clamp(18px, 2.5vw, 24px);
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  
  /* Layout */
  --container-width: 1280px;
  --gutter: 24px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-modal: 1000;
  --z-overlay: 999;
}

/*--------------------------------------------------------------
# Reset & Base Styles
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--link-hover);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style-position: inside;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1, .h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--spacing-lg);
}

h2, .h2 {
  font-size: var(--fs-h2);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
}

h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-md);
}

.lead-text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

strong,
b {
  font-weight: 600;
}

small,
.text-small {
  font-size: var(--fs-small);
}

.text-tiny {
  font-size: var(--fs-tiny);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--gutter) / 2);
}

[class*="col-"] {
  padding: 0 calc(var(--gutter) / 2);
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* WordPress Alignment Classes */
.alignleft {
  float: left;
  margin-right: var(--spacing-md);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: var(--fs-base);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 144, 200, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 30px;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--text-white);
}

.btn-small {
  padding: 8px 20px;
  font-size: var(--fs-small);
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-md);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.badge-tecnologia {
  background: rgba(0, 144, 200, 0.15);
  color: var(--color-primary);
}

.badge-financas {
  background: rgba(123, 46, 255, 0.15);
  color: var(--color-secondary);
}

.badge-ia {
  background: rgba(212, 33, 143, 0.15);
  color: var(--color-accent);
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

@media (max-width: 768px) {
  .d-none-mobile { display: none !important; }
  .d-block-mobile { display: block !important; }
}

@media (min-width: 769px) {
  .d-none-desktop { display: none !important; }
  .d-block-desktop { display: block !important; }
}

/* Screen reader only */
.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;
}

/*--------------------------------------------------------------
# Category Archive Header
--------------------------------------------------------------*/
.page-header {
  text-align: center;
  padding: 60px 40px;
  max-width: 100%;
  margin: 0 auto 60px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border-radius: 16px;
}

@media (max-width: 768px) {
  .page-header {
    padding: 40px 24px;
  }
}

.category-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7B2EFF;
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}

.page-header .page-title {
  font-size: 48px;
  font-weight: 800;
  font-family: 'Fraunces', serif;
  color: #0D1117;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .page-header .page-title {
    font-size: 36px;
  }
}

.archive-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
  margin-top: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.archive-description p {
  margin: 0;
}

/*--------------------------------------------------------------
# Contact Page - From Old Theme
--------------------------------------------------------------*/
.contact-inner { 
  max-width: 700px; 
  margin: 0 auto; 
  padding: 64px 24px; 
}

.contact-title { 
  font-family: 'Fraunces', serif; 
  font-size: clamp(32px, 5vw, 48px); 
  font-weight: 800; 
  letter-spacing: -1px; 
  color: #0D1117; 
  margin-bottom: 16px; 
}

.contact-lead { 
  font-size: 16px; 
  color: #666666; 
  margin-bottom: 40px; 
  line-height: 1.6; 
}

.contact-form { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
}

.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 18px; 
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label { 
  font-size: 13px; 
  font-weight: 600; 
  color: #0D1117; 
}

.form-input, 
.form-textarea, 
.form-select {
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #0D1117;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input::placeholder, 
.form-textarea::placeholder { 
  color: #A0AEC0; 
}

.form-input:focus, 
.form-textarea:focus, 
.form-select:focus { 
  border-color: #6366F1; 
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); 
}

.form-textarea { 
  resize: vertical; 
  min-height: 140px; 
}

.contact-info { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px; 
  margin-top: 48px; 
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

.contact-info-item { 
  background: white; 
  border: 1px solid #E2E8F0; 
  border-radius: 12px; 
  padding: 18px; 
  text-align: center; 
}

.contact-info-icon { 
  font-size: 24px; 
  margin-bottom: 8px; 
}

.contact-info-label { 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 0.05em; 
  text-transform: uppercase; 
  color: #718096; 
  margin-bottom: 4px; 
}

.contact-info-value { 
  font-size: 14px; 
  font-weight: 600; 
  color: #0D1117; 
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: white;
  font-size: 15px;
  font-weight: 600;
  color: #4A5568;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.pagination .page-numbers:hover {
  background: linear-gradient(135deg, #5B59FF 0%, #7B2EFF 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #5B59FF 0%, #7B2EFF 100%);
  border-color: transparent;
  color: white;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
  transform: none;
}

.no-posts {
  text-align: center;
  padding: 80px 20px;
  color: #666666;
  font-size: 16px;
}
