/* Custom Styles for Bdente Implantes */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Menu Styles (Nubank inspired) */
.nav-dropdown {
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.nav-dropdown.visible {
    transform: translateY(0);
}

/* Dropdown menu animations */
.group:hover .absolute {
    animation: slideDown 0.2s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu item hover effects */
.group a:hover,
.group button:hover {
    background-color: rgba(0, 102, 204, 0.05);
    border-radius: 6px;
}

/* Submenu styling */
.group .absolute a {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.group .absolute a:hover {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066CC;
    transform: translateX(4px);
}

/* Search button hover effect */
button[aria-label="Abrir campo de busca"]:hover {
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
}

/* Mobile menu improvements */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Investment Calculator Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #E5E7EB;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #DC2626;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #DC2626;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Slider track styling for Firefox */
.slider::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: #E5E7EB;
}

/* Animation improvements */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulseSoft 2s ease-in-out infinite;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-soft {
    animation: pulse 2s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052A3;
}

/* Hero section background animation */
.hero-bg {
    background: linear-gradient(-45deg, #E6F3FF, #ffffff, #F0F9FF, #E6F3FF);
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:before {
    left: 100%;
}

/* Form input focus effects */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 102, 204, 0.1);
}

/* Navigation sticky effect */
.nav-sticky {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Loading animation for stats counter */
.stats-counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stats-counter.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 300px;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #0066CC, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 10px 25px -5px rgba(0, 102, 204, 0.1), 0 8px 10px -6px rgba(0, 102, 204, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 102, 204, 0.1), 0 10px 10px -5px rgba(0, 102, 204, 0.04);
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive-xl {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 1025px) {
    .text-responsive-xl {
        font-size: 4rem;
        line-height: 1.1;
    }
}

/* Intersection Observer fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom checkbox for form */
.custom-checkbox {
    appearance: none;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox:checked {
    background-color: #0066CC;
    border-color: #0066CC;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Floating animation for hero elements */
.float {
    animation: float 3s ease-in-out infinite;
}

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

/* Responsive grid improvements */
@media (max-width: 768px) {
    .grid-mobile-1 {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-bdente-gray {
        color: #000000;
    }
    
    .border-gray-200 {
        border-color: #000000;
    }
}

/* Floating Form Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
    to {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
}

/* Floating Form Styles */
/* Estilo para formulário flutuante */
.floating-form {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Enhanced floating form transitions */
#floating-form {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* FAQ Accordion Styles */
.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-content {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-content:not(.hidden) {
    max-height: 1000px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Hover Effects */
.group:hover .aspect-video img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.group .aspect-video {
    overflow: hidden;
}

/* Responsive adjustments for floating form */
@media (max-width: 1024px) {
    #floating-form {
        display: none !important;
    }
}

/* Footer Enhancement Styles */
.footer-bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
}

.footer-card {
    transition: all 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.tech-indicator {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Newsletter form enhancements */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* Statistics counter animation */
.stat-counter {
    font-weight: bold;
    background: linear-gradient(45deg, #2563eb, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced contact cards */
.contact-card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-card:hover {
    border-left-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

/* Technology indicators with glow effect */
.tech-status {
    position: relative;
    overflow: hidden;
}

.tech-status::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.tech-status:hover::before {
    width: 100px;
    height: 100px;
}

/* Social media hover effects */
.social-gradient {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.social-gradient:hover {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px) scale(1.05);
}

/* Footer navigation links */
.footer-nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #2563eb, #dc2626);
    transition: width 0.3s ease;
}

.footer-nav-link:hover::before {
    width: 100%;
}

/* System status indicator */
.system-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.system-status:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: scale(1.05);
}

/* Certification badges */
.cert-badge {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

/* ABF Seal styling */
.abf-seal {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.abf-seal:hover {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* ===== Sobre (About) page specific styles ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-about {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,250,251,1) 100%);
    text-align: center;
}
.hero-about h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}
.hero-about p {
    color: #6b7280;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* hero gradient tweak */
.hero-about {
    background: linear-gradient(180deg, #fffaf9 0%, #fff 40%, #f8fafc 100%);
}

.section {
    padding: 56px 0;
}
.section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: #111827;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}
.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(90deg,#2563eb,#dc2626);
    -webkit-background-clip: text;
    background-clip: text;
}
.stat-label {
    margin-top: 8px;
    color: #6b7280;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}
.timeline {
    position: relative;
    margin-top: 32px;
    padding: 20px 0;
}

/* vertical central line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e6e9ef; /* soft neutral line */
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: calc(50% - 40px);
    padding: 18px 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    transform-origin: right center;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    transform-origin: left center;
}

.timeline-item .timeline-year {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.timeline-item .timeline-desc {
    color: #374151;
}

/* Dot on the central line */
.timeline-dot {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #dc2626;
    border-radius: 50%;
}

/* small connector from card to the central line */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 28px;
    width: 16px;
    height: 4px;
    background: transparent;
}

.timeline-item:nth-child(odd)::after {
    right: -32px;
    background: linear-gradient(90deg, rgba(220,38,38,0.9), rgba(37,99,235,0.9));
}

.timeline-item:nth-child(even)::after {
    left: -32px;
    background: linear-gradient(90deg, rgba(220,38,38,0.9), rgba(37,99,235,0.9));
}

/* reveal animation for timeline items */
.timeline-item.reveal { opacity: 0; transform: translateY(18px) scale(0.98); }
.timeline-item.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* responsive: stack items and hide central line */
@media (max-width: 768px) {
    .timeline::before { left: 8px; width: 3px; }
    .timeline-item { width: 100%; margin: 0 0 20px 28px; }
    .timeline-item::after { display: none; }
    .timeline-dot { left: 8px; transform: translateX(0); }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}
.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}
.value-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    margin-bottom: 12px;
}
.value-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.value-desc {
    color: #6b7280;
    font-size: 0.98rem;
}

.cta-section {
    padding: 48px 0;
    background: linear-gradient(90deg, rgba(220,38,38,0.06), rgba(37,99,235,0.03));
    text-align: center;
}
.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.cta-section p { color: #374151; margin-bottom: 18px; }
.cta-button {
    display: inline-block;
    padding: 12px 18px;
    background: #dc2626;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, background 0.18s ease;
}
.cta-button:hover { transform: translateY(-3px); background: #b91c1c; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .hero-about { padding: 48px 0; }
    .hero-about h1 { font-size: 1.75rem; }
}

/* Small reveal helper */
.reveal { opacity: 0; transform: translateY(18px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mission / Vision / Commitment cards */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
.mission-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.035);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(2,6,23,0.055);
}
.mission-feature {
    grid-column: span 1; /* uniform cards */
    background: #fff;
    border: 1px solid rgba(220,38,38,0.04);
}
.mission-title { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 12px; }
.mission-quote { font-size: 1.15rem; color: #374151; font-style: italic; line-height: 1.6; }
.mission-text { color: #6b7280; line-height: 1.6; }

/* mini-nav */
.mini-nav { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; }
.mini-nav a { color: #6b7280; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; }
.mini-nav a:hover { background: rgba(220,38,38,0.06); color: #b91c1c; }

/* mission icons */
.mission-icon { display: inline-flex; vertical-align: middle; margin-right: 8px; }

/* typography tweaks */
.mission-quote { font-size: 1.08rem; }


@media (max-width: 960px) {
    .mission-grid { grid-template-columns: 1fr; }
    .mission-feature { grid-column: auto; }
}
