/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Custom Properties */
:root {
    --primary-color: #2563eb;
    --secondary-color: #059669;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --white-color: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Navigation */
.navbar {
    background: rgba(31, 41, 55, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-brand {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
}

.navbar-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

@media (min-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
}

@media (min-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
}

@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-logo {
        height: 45px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--success-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--success-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-overlay .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-overlay h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.hero-overlay .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-icon {
        font-size: 6rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-overlay {
        padding: 3rem 0;
    }
    
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-icon {
        font-size: 10rem;
    }
}

@media (min-width: 992px) {
    .hero-overlay {
        padding-top: 4rem;
    }
    
    .hero-icon {
        font-size: 15rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .feature-card i {
        font-size: 2.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
    
    .feature-card i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h4 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
}

/* Service Cards */
.service-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
        margin-bottom: 0;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

@media (min-width: 576px) {
    .service-icon {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
}

.service-icon i {
    font-size: 1.25rem;
    color: white;
}

@media (min-width: 576px) {
    .service-icon i {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .service-icon i {
        font-size: 1.8rem;
    }
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .service-card h4 {
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .service-card p {
        font-size: 1rem;
    }
}

/* Contact Section */
.contact-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

@media (min-width: 768px) {
    .contact-card {
        padding: 2rem;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    flex-shrink: 0;
}

.contact-form {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

/* Área de Atendimento */
.location-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.location-item:hover {
    transform: translateY(-5px);
}

.location-item i {
    font-size: 2rem;
    display: block;
    opacity: 0.8;
}

.location-item h6 {
    margin: 0;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 120px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (min-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile button fix */
@media (max-width: 575px) {
    .d-grid.d-sm-flex,
    .d-flex.gap-3 {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .d-grid.d-sm-flex .btn,
    .d-flex.gap-3 .btn {
        width: 100%;
        margin: 0;
    }
}

.btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .btn-lg {
        min-height: 52px;
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--white-color);
    border-color: var(--white-color);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-body {
    padding: 1.5rem;
}

.chatbot-message {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.5;
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chatbot-option {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
}

.chatbot-option:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background: rgba(31, 41, 55, 0.98);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .dropdown-menu {
        background: rgba(31, 41, 55, 0.95);
        border: none;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    .hero-section {
        text-align: center;
        min-height: auto;
    }
    
    .hero-overlay {
        padding-top: 60px;
        padding-bottom: 2rem;
    }
    
    .hero-icon {
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .chatbot {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 85px;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-card,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        max-width: 100%;
    }
    
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.35rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 1.25rem 0.875rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .location-item {
        padding: 0.75rem 0.5rem;
    }
    
    .location-item i {
        font-size: 1.5rem;
    }
    
    .location-item h6 {
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #374151 !important;
    }
    
    .text-muted {
        color: #9ca3af !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-float,
    .chatbot {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    * {
        print-color-adjust: exact;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions for better UX */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Estilo para "Solicitar Orçamento" nos preços */
.pricing-card .price .price-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 8px 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 5px;
    display: inline-block;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.pricing-card.featured .price .price-text {
    background: rgba(5, 150, 105, 0.1);
    color: var(--secondary-color);
    border-color: rgba(5, 150, 105, 0.2);
}

/* Instagram Section Styles */
.instagram-preview-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .instagram-preview-card {
        padding: 2rem;
    }
}

.instagram-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.instagram-image-placeholder {
    padding: 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #e2e8f0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .instagram-image-placeholder {
        min-height: 200px;
    }
}

.instagram-cta {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .instagram-cta {
        padding: 3rem 2rem;
    }
}

.btn-instagram {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .btn-instagram {
        padding: 12px 30px;
    }
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.3);
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Instagram responsive */
@media (max-width: 768px) {
    .instagram-preview-card {
        margin-bottom: 1.5rem;
    }
    
    .instagram-cta {
        padding: 2rem 1rem;
    }
    
    .instagram-cta .d-flex {
        flex-direction: column !important;
    }
    
    .instagram-cta .btn {
        width: 100%;
    }
}
