/*
Theme Name: Tech Drones Theme
Theme URI: https://fabianodeoliveira.com.br
Author: Fabiano Oliveira
Author URI: https://fabianodeoliveira.com.br
Description: Tema premium e de alta tecnologia em tons de cinza espacial para operações de RPAS e laudos periciais.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tech-drones-theme
*/
/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */

:root {
    /* Color Palette - Dark Theme Default (Cinza Espacial & Prata Premium) */
    --bg-primary: #0a0b0d;          /* Carbono Profundo */
    --bg-secondary: #121417;        /* TitÃ¢nio Escuro */
    --bg-tertiary: #191c20;         /* Grafite */
    
    --text-primary: #f1f3f5;        /* Platinum */
    --text-secondary: #a0a8b3;      /* Prata Muted */
    --text-muted: #6e7782;          /* AÃ§o Escovado */
    
    --accent: #9aa5b3;              /* AlumÃ­nio Satinado */
    --accent-hover: #ffffff;        /* Branco Puro */
    --accent-rgb: 154, 165, 179;
    
    --tech-silver: #c8d2db;         /* Prata MetÃ¡lico Frio */
    --tech-silver-rgb: 200, 210, 219;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 20, 23, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --container-width: 1200px;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f5f6f8;          /* Neve Fria */
    --bg-secondary: #ffffff;        /* Branco LÃ­quido */
    --bg-tertiary: #e9ecef;         /* Gelo Escovado */
    
    --text-primary: #121417;        /* Asfalto Profundo */
    --text-secondary: #4a515c;      /* ArdÃ³sia */
    --text-muted: #727a85;          /* Cinza NÃ©voa */
    
    --accent: #343a40;              /* Grafite Profundo */
    --accent-hover: #000000;        /* Preto Puro */
    --accent-rgb: 52, 58, 64;
    
    --tech-silver: #495057;         /* Metal Escuro */
    --tech-silver-rgb: 73, 80, 87;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   REUSABLE UTILITIES & LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--text-muted), var(--text-primary));
    width: 0%;
    z-index: 2000;
    transition: width 0.1s linear;
}

/* Premium Glassmorphism */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Badge System */
.badge-container {
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.badge-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 11, 13, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transition: background var(--transition-normal), height var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .main-header {
    background: rgba(245, 246, 248, 0.7);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background: var(--bg-primary);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Elegant Text Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .btn-nav:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Theme Switcher */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--text-muted);
}

/* Image Showcase styling */
.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    padding: 8px;
}

.hero-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: calc(var(--border-radius-md) - 6px);
    transition: transform var(--transition-slow);
}

.hero-visual:hover .hero-main-img {
    transform: scale(1.02);
}

/* Floating overlay stats card */
.hero-overlay-card {
    position: absolute;
    bottom: 24px;
    left: -24px;
    padding: 18px 24px;
    border-radius: var(--border-radius-md);
    max-width: 240px;
}

.overlay-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tech-icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-primary);
}

.overlay-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.overlay-card-stats {
    display: flex;
    gap: 20px;
}

.stat-lbl {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Quick Stats Bar */
.quick-stats-bar {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
    padding: 24px 0;
}

[data-theme="light"] .quick-stats-bar {
    background-color: rgba(0, 0, 0, 0.01);
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-divider {
    height: 32px;
    width: 1px;
    background-color: var(--border-color);
}

/* ==========================================================================
   SECTION STANDARD HEADERS
   ========================================================================== */

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ==========================================================================
   SERVICES SECTION (FILTER & GRID)
   ========================================================================== */

.services-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 36px;
    transition: all var(--transition-normal);
    opacity: 1;
    transform: scale(1);
}

.service-card.hidden {
    display: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    line-height: 1.4;
}

.bullet {
    color: var(--text-muted);
    font-weight: bold;
}

/* ==========================================================================
   TECHNOLOGY SECTION
   ========================================================================== */

.tech-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.tech-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: calc(var(--border-radius-md) - 6px);
}

.tech-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.tech-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.spec-card {
    padding: 20px 24px;
    border-radius: var(--border-radius-sm);
}

.spec-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.spec-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.regulatory-badge {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.regulatory-badge strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.regulatory-badge span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   ABOUT / FOUNDER SECTION
   ========================================================================== */

.about-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.credentials-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.credential-item {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cred-icon {
    color: var(--text-primary);
    font-weight: bold;
}

.about-main-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: calc(var(--border-radius-md) - 6px);
}

/* Signature & Contacts block */
.signatures-block {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.sig-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.sig-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sig-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.sig-link:hover {
    color: var(--accent);
}

.sig-divider {
    color: var(--border-color);
}

/* ==========================================================================
   GALLERY / MEDIA SECTION
   ========================================================================== */

.gallery-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    height: 340px;
    padding: 6px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius-md) - 4px);
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    border-radius: calc(var(--border-radius-md) - 4px);
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--transition-normal);
    height: 50%;
}

.gallery-item-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-item-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
}

/* Hover effects */
.gallery-item:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
}

.contact-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--border-radius-sm);
}

.method-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(var(--accent-rgb), 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.method-link, .method-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.method-link:hover {
    color: var(--accent);
}

/* Form Styles */
.contact-form-block {
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
}

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

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

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

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236e7782' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Success notification alert */
.form-success-alert {
    display: flex;
    gap: 16px;
    background-color: rgba(var(--accent-rgb), 0.05);
    border: 1px solid var(--accent);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    animation: fadeIn 0.4s ease forwards;
}

.success-icon {
    color: var(--accent);
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    transition: background-color var(--transition-normal);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.83fr);
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.tag-legal {
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.copyright a {
    text-decoration: underline;
}

.compliance-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.4;
}

/* ==========================================================================
   LIGHTBOX GALERIA (JS BIND)
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 13, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-caption {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 32px;
    right: 32px;
    color: rgba(255,255,255,0.6);
    font-size: 44px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: #ffffff;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 32px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-fast);
}

.lightbox-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
        position: relative;
    }
    
    .hero-overlay-card {
        left: -12px;
    }
    
    .tech-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .tech-visual, .about-visual {
        order: 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
    
    .tech-content, .about-content {
        order: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
    }

    /* Mobile Hamburger Nav Drawer */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.15rem;
        padding: 12px 0;
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-btn .bar {
        height: 2px;
        width: 100%;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all var(--transition-fast);
    }
    
    /* Hamburger to X conversion */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .quick-stats-bar {
        padding: 16px 0;
    }
    
    .stats-container {
        justify-content: center;
        gap: 20px;
    }
    
    .stat-item {
        align-items: center;
        width: 40%;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .tech-main-img, .about-main-img, .hero-main-img {
        height: 320px;
    }
    
    .contact-form-block {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-prev { left: 16px; }
    .lightbox-next { right: 16px; }
}

/* ==========================================================================
   BLOG SYSTEM STYLING
   ========================================================================== */

/* Blog Hero & Search Control Styling */
.blog-hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(25, 28, 32, 0.5) 0%, rgba(10, 11, 13, 0.8) 90%);
}

.blog-controls {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Blog Cards Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Card Component */
.blog-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--text-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

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

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

/* Category badging overlay styles */
.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Category Badge Colors matching services categories */
.tag-solar {
    background-color: rgba(37, 211, 102, 0.15) !important;
    color: #25D366 !important;
    border: 1px solid rgba(37, 211, 102, 0.3) !important;
}

.tag-topografia {
    background-color: rgba(10, 102, 194, 0.15) !important;
    color: #38b2ac !important;
    border: 1px solid rgba(10, 102, 194, 0.3) !important;
}

.tag-engenharia {
    background-color: rgba(235, 94, 40, 0.15) !important;
    color: #eb5e28 !important;
    border: 1px solid rgba(235, 94, 40, 0.3) !important;
}

.tag-meioambiente {
    background-color: rgba(74, 117, 89, 0.15) !important;
    color: #81c784 !important;
    border: 1px solid rgba(74, 117, 89, 0.3) !important;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.blog-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--text-muted);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.blog-card-link:hover {
    color: var(--text-secondary);
    transform: translateX(4px);
}

/* Post Detail Styling */
.post-meta-category {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-rich-body-text p {
    margin-bottom: 24px;
}

.post-rich-body-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-rich-body-text ul, .post-rich-body-text ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.post-rich-body-text li {
    margin-bottom: 8px;
}

.post-tags-list .post-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
}

.share-btn-item {
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.share-btn-item:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.no-posts-found {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
}

/* Responsive adjustment for blog page controls */
@media (max-width: 768px) {
    .blog-controls {
        padding: 16px !important;
    }
    .filter-controls {
        flex-wrap: wrap !important;
    }
}

