/*
Theme Name: DevDireto
Theme URI: https://devdireto.com
Author: DevDireto Team
Author URI: https://devdireto.com
Description: Tema moderno e responsivo para conectar clientes diretamente com desenvolvedores
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: devdireto
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors em HSL */
    --background: 210 20% 8%;
    --foreground: 0 0% 98%;
    --card: 210 15% 12%;
    --card-foreground: 0 0% 98%;
    --primary: 158 64% 52%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 15% 16%;
    --secondary-foreground: 0 0% 98%;
    --muted: 210 15% 16%;
    --muted-foreground: 210 6% 70%;
    --accent: 158 64% 52%;
    --accent-foreground: 0 0% 100%;
    --border: 210 15% 25%;
    --radius: 0.75rem;
    
    /* Glass effect */
    --glass-bg: rgba(32, 39, 50, 0.2);
    --glass-border: rgba(56, 68, 87, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(at 40% 20%, hsla(158, 64%, 52%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(210, 100%, 50%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(168, 76%, 42%, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Glass morphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-strong {
    background: hsla(var(--card), 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsla(var(--border), 0.3);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.main-navigation {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
    }
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: hsl(var(--primary));
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle:hover {
    background-color: hsla(var(--primary), 0.1);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--foreground));
}

.mobile-navigation {
    display: none;
    border-top: 1px solid hsla(var(--border), 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation .container {
    padding: 1rem;
}

.mobile-navigation a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-navigation a:hover {
    color: hsl(var(--primary));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 30px hsla(var(--primary), 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 40px hsla(var(--primary), 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid hsla(var(--border), 0.5);
    color: hsl(var(--foreground));
    background: transparent;
}

.btn-outline:hover {
    background: hsla(var(--primary), 0.1);
    border-color: hsl(var(--primary));
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, hsla(var(--background), 0.8), hsla(var(--background), 0.6), hsl(var(--background)));
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(158, 64%, 52%, 0.15) 0%, hsla(210, 100%, 50%, 0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.8s ease-in-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid hsla(var(--primary), 0.3);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: hsl(var(--primary));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title .gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin: 0 auto 2rem;
    max-width: 42rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 1rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}

.benefits-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.benefit-card:hover {
    box-shadow: 0 0 30px hsla(var(--primary), 0.3);
    border-color: hsla(var(--primary), 0.5);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background-color: hsla(var(--primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.benefit-card:hover .benefit-icon {
    background-color: hsla(var(--primary), 0.2);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: hsl(var(--muted-foreground));
}

/* Target Audience Section */
.audience-section {
    padding: 6rem 1rem;
}

.audience-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .audience-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.audience-item {
    position: relative;
}

.audience-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.audience-item:hover .audience-gradient {
    opacity: 1;
}

.audience-gradient {
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: var(--radius);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s;
    z-index: -1;
}

.audience-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, hsla(var(--primary), 0.2), hsla(var(--accent), 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.audience-icon svg {
    width: 28px;
    height: 28px;
    color: hsl(var(--primary));
}

.audience-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.audience-description {
    color: hsl(var(--muted-foreground));
}

/* CTA Section */
.cta-section {
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, hsla(var(--primary), 0.1), hsla(var(--accent), 0.05), hsl(var(--background)));
}

.cta-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3.75rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid hsla(var(--border), 0.5);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Footer */
.site-footer {
    border-top: 1px solid hsla(var(--border), 1);
    padding: 3rem 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    border-top: 1px solid hsla(var(--border), 1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.social-links {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    .cta-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .benefit-card,
    .audience-card {
        padding: 1.25rem;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens optimization */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass,
    .glass-strong {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark mode adjustments (já está em dark mode por padrão) */
@media (prefers-color-scheme: light) {
    /* Mantém o dark mode mesmo se o sistema preferir light */
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: hsl(var(--background));
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: hsl(var(--foreground));
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

