﻿/*
Theme Name: G-TEC Custom Theme
Theme URI: https://gtecsolucoesmetrologicasindustriais.com
Author: G-TEC
Author URI: https://gtecsolucoesmetrologicasindustriais.com
Description: A custom premium Metrology WordPress theme created for G-TEC.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gtec-theme
*/
/* ==========================================================================
   METROLOGY PREMIUM THEME - RESET & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    
    --primary: #005478;      /* Custom Logo Blue */
    --primary-light: #337693;
    --primary-dark: #00364d;
    --accent: #0091c2;       /* Vibrant Cyan-Blue */
    --accent-hover: #0076a0;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-light-muted: #94a3b8;
    
    --border-light: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-dark-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-dark-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 145, 194, 0.3);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

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

.accent {
    color: var(--accent);
}

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-dark-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* ==========================================================================
   TOP BAR & NAVBAR
   ========================================================================== */
.top-bar {
    background-color: var(--bg-darker);
    color: var(--text-light-muted);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span i {
    color: var(--accent);
    margin-right: 6px;
}

.top-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-social a:hover {
    color: var(--accent);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.brand {
    display: flex;
    justify-content: center;
}

.brand-logo {
    height: 80px; /* Big initial size */
    width: auto;
    display: block;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


.footer-logo {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

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

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.nav-links a.btn {
    color: var(--text-light); /* Override text-main for buttons */
}
.nav-links a.btn::after {
    display: none; /* remove hover line from btn */
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-content {
    max-width: 800px;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 145, 194, 0.15);
    border: 1px solid rgba(0, 145, 194, 0.3);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats {
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    padding: 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(15, 23, 42, 0.85); /* Slightly less transparent on hover */
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.stat-info h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--text-light);
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    line-height: 1.4;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 145, 194, 0.3);
}

.service-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-icon {
    position: absolute;
    bottom: -24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(0, 145, 194, 0.4);
    z-index: 2;
}

.service-content {
    padding: 40px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   LAB SHOWCASE
   ========================================================================== */
.lab-showcase {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.check-list {
    margin-bottom: 30px;    
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 500;
}

.showcase-image {
    position: relative;
}

.img-wrapper {
    border-radius: 24px;
    padding: 10px;
}

.img-wrapper img {
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-badge .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.floating-badge .label {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin: 20px 0;
    max-width: 320px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

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

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-info i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    background-color: var(--bg-darker);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .stats-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showcase-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .top-info {
        display: none;
    }
    
    .top-bar-inner {
        justify-content: center;
    }
    
    .nav-links,
    .navbar .btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stats {
        margin-top: 40px;
    }
    
    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        animation: none;
    }
}
