/* 
 * Emissor NFSe - Landing Page Styles
 * Design moderno e minimalista focado em conversão
 * @version 1.0.0
 */

/* ========================================
   Variables & Reset
   ======================================== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #4da3ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fc;
    --dark-color: #343a40;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: var(--white) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding: 120px 0 80px;
    background: var(--gradient-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-section .btn {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Hero Image Styles */
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

/* ========================================
   Benefits Section
   ======================================== */
.benefits-section {
    padding: 80px 0;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.benefit-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 80px 0;
}

.feature-item {
    padding: 1.5rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works-section {
    padding: 80px 0;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ========================================
   Lead Form Section
   ======================================== */
.lead-form-section {
    padding: 80px 0;
}

.lead-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e9ecef;
}

.lead-form-card h2 {
    color: var(--dark-color);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background-color: var(--light-color);
    border: 2px solid #e9ecef;
    border-right: none;
    color: var(--secondary-color);
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
}

.footer h5,
.footer h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

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

/* ========================================
   Utilities
   ======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ========================================
   Loading State
   ======================================== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .benefits-section,
    .features-section,
    .how-it-works-section,
    .lead-form-section {
        padding: 60px 0;
    }
    
    .lead-form-card {
        padding: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .lead-form-card {
        padding: 1.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column !important;
    }
    
    .hero-section .btn {
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .lead-form-card {
        padding: 1.25rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

