/*
Theme Name: SmartSolutions Standalone
Theme URI: https://smartsolutions.pt
Description: Tema com rede tecnológica animada discreta
Author: SmartSolutions
Version: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartsolutions
*/

/* ====================================
   GOOGLE FONTS
   ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ====================================
   RESET TOTAL
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #000000 !important;
    background-color: #000000 !important;
    position: relative;
}

/* Padrão de fundo agora é via elemento HTML #background-pattern */
/* Removido body::before e body::after */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #cccccc;
    background: #000000;
    position: relative;
}

/* ====================================
   HEADER
   ==================================== */
.site-header {
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.site-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Logo personalizado tem prioridade */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 250px !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.current {
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   MAIN CONTENT
   ==================================== */
main {
    margin-top: 100px;
    min-height: calc(100vh - 250px);
    background: transparent;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 2rem;
    color: #ffffff;
}

h4 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: 20px;
    color: #cccccc;
    font-size: 1.125rem;
}

a {
    color: #00A3E0;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B35;
}

/* ====================================
   WORDPRESS BLOCKS
   ==================================== */

/* Botões */
.wp-block-button__link,
.wp-element-button {
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    color: #ffffff;
}

/* Colunas */
.wp-block-columns {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.wp-block-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.wp-block-column:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-5px);
}

/* Separadores */
.wp-block-separator,
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #FF6B35 50%, transparent 100%);
    margin: 40px 0;
}

/* Listas */
ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

ul li, ol li {
    margin-bottom: 12px;
    color: #cccccc;
    line-height: 1.8;
}

ul li::marker {
    color: #FF6B35;
}

/* Galeria */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.wp-block-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.wp-block-gallery img:hover {
    transform: scale(1.05);
    border-color: #FF6B35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Backgrounds */
.has-light-gray-background-color,
.has-background {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alinhamentos */
.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

/* Spacer */
.wp-block-spacer {
    clear: both;
}

/* ====================================
   FOOTER
   ==================================== */
.site-footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 11;
}

.site-footer p {
    color: #888888;
    font-size: 14px;
    margin: 10px 0;
}

.site-footer a {
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .container {
        padding: 40px 15px;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.6s ease-out;
}

/* ====================================
   SCROLLBAR
   ==================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B35 0%, #00A3E0 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF8B55 0%, #20B3F0 100%);
}

/* ====================================
   SELECTION
   ==================================== */
::selection {
    background: #FF6B35;
    color: #ffffff;
}

::-moz-selection {
    background: #FF6B35;
    color: #ffffff;
}
