/*
Theme Name: Fortec Reciclagem
Theme URI: https://fortecreciclagem.com.br
Author: Fortec
Author URI: https://fortecreciclagem.com.br
Description: Tema personalizado para Fortec Reciclagem - Coleta de Vidro Sustentável
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fortec
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Dark eco theme */
    --background: hsl(216, 50%, 8%);
    --foreground: hsl(180, 20%, 95%);
    --card: hsl(216, 45%, 12%);
    --card-foreground: hsl(180, 20%, 95%);
    
    /* Emerald green - sustainability */
    --primary: hsl(160, 84%, 39%);
    --primary-foreground: hsl(216, 50%, 8%);
    
    --secondary: hsl(216, 40%, 18%);
    --secondary-foreground: hsl(180, 20%, 90%);
    
    --muted: hsl(216, 35%, 20%);
    --muted-foreground: hsl(200, 15%, 60%);
    
    /* Teal accent */
    --accent: hsl(187, 85%, 43%);
    --accent-foreground: hsl(216, 50%, 8%);
    
    --border: hsl(216, 30%, 22%);
    
    /* WhatsApp green */
    --whatsapp: hsl(142, 70%, 45%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(160, 84%, 39%), hsl(187, 85%, 43%));
    --gradient-glow: radial-gradient(ellipse at center, hsla(160, 84%, 39%, 0.15), transparent 70%);
    
    /* Glass effect */
    --glass-bg: hsla(216, 45%, 15%, 0.6);
    --glass-border: hsla(180, 20%, 95%, 0.1);
    
    /* Shadows */
    --shadow-glow: 0 0 60px hsla(160, 84%, 39%, 0.2);
    --shadow-card: 0 8px 32px hsla(216, 50%, 4%, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

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

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p {
    color: var(--muted-foreground);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 14px hsla(160, 84%, 39%, 0.3);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 14px hsla(142, 70%, 45%, 0.3);
}

.btn-whatsapp:hover {
    opacity: 0.9;
    box-shadow: 0 0 30px hsla(142, 70%, 45%, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid hsla(160, 84%, 39%, 0.5);
}

.btn-outline:hover {
    background: hsla(160, 84%, 39%, 0.1);
    border-color: var(--primary);
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.875rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-foreground);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2rem;
    }
}

.main-nav a {
    color: var(--muted-foreground);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Mobile menu button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: hsla(216, 50%, 8%, 0.8);
}

.hero-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-glow-1 {
    top: 25%;
    left: 25%;
    background: var(--gradient-glow);
}

.hero-glow-2 {
    bottom: 25%;
    right: 25%;
    background: var(--gradient-glow);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    padding: 6rem 1rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease-out;
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Floating glass elements */
.floating-glass {
    position: absolute;
    border-radius: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-glass-1 {
    top: 5rem;
    right: 2.5rem;
    width: 4rem;
    height: 4rem;
    opacity: 0.4;
}

.floating-glass-2 {
    bottom: 10rem;
    left: 5rem;
    width: 5rem;
    height: 5rem;
    opacity: 0.3;
    animation-delay: 2s;
}

.floating-glass-3 {
    top: 50%;
    right: 25%;
    width: 3rem;
    height: 3rem;
    opacity: 0.5;
    animation-delay: 1s;
}

@media (max-width: 1024px) {
    .floating-glass {
        display: none;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    position: relative;
    padding: 6rem 0;
}

.services-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    filter: blur(80px);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary-foreground);
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    line-height: 1.7;
}

/* Image gallery */
.services-gallery {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(216, 50%, 8%, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item-overlay p {
    font-weight: 600;
    color: var(--foreground);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    position: relative;
    padding: 6rem 0;
    background: hsla(216, 40%, 18%, 0.5);
}

.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-glow);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* About visual */
.about-visual {
    position: relative;
}

.about-visual-inner {
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-visual-inner {
        padding: 3rem;
    }
}

.about-icon-main {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulseGlow 3s ease-in-out infinite;
}

.about-icon-main svg {
    width: 4rem;
    height: 4rem;
    color: var(--primary-foreground);
}

.about-orbit {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-orbit svg {
    width: 1.5rem;
    height: 1.5rem;
}

.about-orbit-1 {
    top: -1rem;
    right: -1rem;
    animation: float 6s ease-in-out infinite;
}

.about-orbit-1 svg {
    color: var(--primary);
}

.about-orbit-2 {
    bottom: -1rem;
    left: -1rem;
    animation: float 6s ease-in-out infinite 2s;
}

.about-orbit-2 svg {
    color: var(--accent);
}

.about-text {
    margin-top: 2rem;
}

.about-text h3 {
    margin-bottom: 0.5rem;
}

/* Decorative elements */
.about-decor {
    position: absolute;
    border-radius: 1rem;
}

.about-decor-1 {
    top: -2rem;
    right: -2rem;
    width: 6rem;
    height: 6rem;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

.about-decor-2 {
    bottom: -2rem;
    left: -2rem;
    width: 4rem;
    height: 4rem;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite 1s;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    filter: blur(80px);
}

.cta-glow-1 {
    top: 0;
    left: 25%;
    background: var(--gradient-glow);
    opacity: 0.4;
}

.cta-glow-2 {
    bottom: 0;
    right: 25%;
    background: var(--gradient-glow);
    opacity: 0.3;
}

.cta-card {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-card {
        padding: 3rem;
    }
}

.cta-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulseGlow 3s ease-in-out infinite;
}

.cta-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-foreground);
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta-button {
    margin-bottom: 2rem;
}

.cta-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.cta-contact-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid hsla(216, 30%, 22%, 0.5);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary-foreground);
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-copy svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
