/* ========================================
   Variables & Reset
   ======================================== */

:root {
    --primary-color: #148dd9;
    --secondary-color: #148dd9;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --white: #ffffff;
    
    --font-primary: 'Poppins', sans-serif;
    
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Preloader removed — no styles here */

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.5); /* navbar semi-transparente quando rolada */
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    transition: var(--transition-base);
}

.logo .logo-dark {
    display: none;
}

.navbar.scrolled .logo .logo-white {
    display: none;
}

.navbar.scrolled .logo .logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--white);
    position: relative;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-link {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-base);
}

.navbar.scrolled .menu-toggle span {
    background: var(--white);
}

/* ========================================
   Container & Grid
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-3,
.col-lg-4,
.col-lg-6,
.col-lg-8,
.col-md-4,
.col-md-6 {
    padding: 0 15px;
}

.col-lg-3 { width: 25%; }
.col-lg-4 { width: 33.333%; }
.col-lg-6 { width: 50%; }
.col-lg-8 { width: 66.666%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.align-items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 16px;
}

.mt-4 {
    margin-top: 2rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* ========================================
   Hero Section with Ken Burns Effect
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Ensure a dark background while hero images load to avoid white flash */
.hero-section,
.hero-bg {
    background-color: #000; /* black fallback until background-image loads */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kenburns-effect {
    animation: kenburns 20s ease-out infinite;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.15) translate(0, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* show immediately */
    z-index: 1;
    transition: none;
}

.hero-overlay.ready {
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: absolute; /* overlay shared content over slides */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    width: calc(100% - 30px);
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    pointer-events: none; /* allow slider controls to work through */
}

.hero-content > * {
    pointer-events: auto; /* allow interactions inside hero content */
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
}

/* Ensure the colored span in the hero title starts on its own line on desktop */
.hero-title span { display: block; }

/* ========================================
   Orçamento image size (adjust height here)
   - Change the `height` value below to control the visible area
   ======================================== */
.orcamento-image {
    width: 100%;
    height: 500px; /* <-- change this value (px or use vh) to increase/decrease area */
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .orcamento-image {
        height: 40vh; /* mobile default, adjust as needed */
    }
}

.hero-description {
    font-size: 30px; /* adjust this value to change description size */
    color: var(--white);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.slider-arrow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-base);
    pointer-events: all;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-base);
}

.pagination-dot.active,
.pagination-dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 50px;
    z-index: 3;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ========================================
   Section Padding
   ======================================== */

.section-padding {
    padding: 100px 0;
}

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

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin-bottom: 20px;
}

.title-divider.center {
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
}

.section-header.text-center .section-description {
    margin: 0 auto;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits-section {
    background: var(--white);
}

.benefit-box {
    text-align: center;
    padding: 40px 20px;
    transition: var(--transition-base);
}

.benefit-box:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition-base);
}

.benefit-box:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-box h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.benefit-box p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   About Section
   ======================================== */

.about-content {
    padding-right: 40px;
}

.about-text {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.badge-content {
    text-align: center;
    color: var(--white);
}

.badge-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ========================================
   Portfolio Section
   ======================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition-base);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.portfolio-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Stats Section
   ======================================== */

.stats-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-number span {
    font-size: 48px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-content {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.testimonial-text {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-arrow {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-base);
}

.testimonial-arrow:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 30px;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info-boxes {
    margin-top: 60px;
}

.info-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition-base);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-box i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.info-box p {
    font-size: 15px;
    color: var(--text-color);
}

/* ========================================
   Footer (centered compact layout to match reference)
   ======================================== */

.footer {
    background: #000000; /* deep teal / navy to match reference image */
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-compact .container {
    max-width: 980px;
}

.footer-top-logo {
    height: 54px;
    margin: 6px auto 12px;
    display: block;
}

.footer-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-top: 8px;
}

.footer-company {
    color: rgba(255,255,255,0.65);
    margin: 8px 0 22px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-contact-row {
    display: flex;
    justify-content: center;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0 18px;
}

.contact-item {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: #e6684a; /* orange icon color like reference */
    font-size: 18px;
}

.footer-links-inline a {
    color: rgba(255,255,255,0.85);
    margin-left: 10px;
    font-size: 15px;
}

.footer-sep {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 22px auto;
}

.footer-trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 8px 0 18px;
}

.footer-trust-logos img {
    height: 36px;
    display: block;
    opacity: 0.95;
}

.footer-bottom {
    margin-top: 6px;
    padding-top: 6px;
    text-align: center;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-contact-row { gap: 12px; }
    .footer-trust-logos img { height: 30px; }
    .footer-title { font-size: 18px; }
}

/* ========================================
   Back to Top
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Hide slider arrows on mobile */
@media (max-width: 768px) {
    .slider-arrow { display: none !important; }
}

/* Mobile-only line break for hero description */
.mobile-only{display:none}

@media (max-width: 768px){
    .mobile-only{display:block}
    .hero-title { font-size: 42px; }
    .hero-content { padding-top: 60px; }
}
