/*
Theme Name: Marwal Consultoria Theme
Theme URI: 
Author: Marwal Consultoria
Author URI: 
Description: Custom theme for Marwal Consultoria based on HTML template.
Version: 1.0
*/

/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    --primary: #0C2B1B;       /* Deep Forest Green */
    --primary-light: #1A4D33; /* Lighter Forest Green */
    --accent: #E6B325;        /* Gold / earthy accent */
    --accent-hover: #C99E1F;
    --text-main: #2D3748;
    --text-muted: #718096;
    --bg-main: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --hero-bg: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&q=80&w=1920');
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-center { text-align: center; }
.align-center { align-items: center; }
.py-large { padding: 5rem 0; }
.mb-large { margin-bottom: 4rem; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

header.scrolled .logo span, header.scrolled .nav-links a {
    color: var(--primary);
}

header.scrolled .logo-icon {
    color: var(--accent);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.75rem;
}

.logo span strong {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

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

.nav-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 6rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 43, 27, 0.9) 0%, rgba(12, 43, 27, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(230, 179, 37, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Services Intro
   ========================================================================== */
.section-intro {
    background-color: var(--bg-main);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* ==========================================================================
   Services Sections (Alternating)
   ========================================================================== */
.services-section {
    padding: 6rem 0;
    overflow: hidden;
}

.services-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.service-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.service-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(12, 43, 27, 0.05);
    color: var(--primary);
    border-radius: 16px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.dark-section .icon-box {
    background-color: rgba(230, 179, 37, 0.1);
    color: var(--accent);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.service-list li i {
    color: var(--accent);
    margin-top: 5px;
}

/* Images & Glassmorphism */
.service-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-img-glass {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.glass-card h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dark Section overrides */
.dark-section {
    background-color: var(--primary);
    color: #fff;
}

.dark-section h2 {
    color: #fff;
}

.dark-section p {
    color: rgba(255, 255, 255, 0.8);
}

.dark-section .service-list li {
    color: #fff;
}

/* ==========================================================================
   Grid Services (Outros)
   ========================================================================== */
.grid-services-section {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-image: linear-gradient(rgba(12, 43, 27, 0.9), rgba(12, 43, 27, 0.95)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #081D12;
    color: #fff;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #1EBE55;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    color: #FFF;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

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

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links { display: none; } /* Could add hamburger menu here logic */
    .hero-title { font-size: 3rem; }
    .services-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }
    .service-img-glass { min-height: 300px; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; text-align: center; }
    .service-text h2 { font-size: 1.75rem; }
}
