/* 
   Mandraketech - Modern Professional Styles
   Theme: High Contrast (Orange/Black/White)
*/

:root {
    --primary-color: #FF6A00;
    --primary-light: #FFA94D;
    --secondary-color: #000000;
    --text-color: #333333;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --bg-dark: #111111;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}



/* Modern Navbar (Bootstrap 4 Customization) */
.navbar-collapse.collapse {
    visibility: visible !important;
}

#mainNav {
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all 0.3s ease-in-out;
    background-color: #fff !important;
}

#mainNav .navbar-brand {
    padding: 0;
}

#mainNav .navbar-brand img {
    max-height: 55px;
    width: auto;
}

#mainNav .navbar-nav .nav-item .nav-link {
    font-weight: 600;
    color: #333 !important;
    /* Black text default */
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item.active .nav-link {
    background-color: #E65100;
    /* Dark Orange */
    color: #fff !important;
    /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(230, 81, 0, 0.3);
}

/* Navbar Toggler Customization */
.navbar-toggler {
    border: none;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ensure hero section has padding to account for fixed navbar */
.hero-section {
    padding-top: 100px;
    /* Adjust based on navbar height */
}

/* Mobile Menu Adjustments */
@media (max-width: 991.98px) {
    #mainNav .navbar-nav {
        padding: 20px 0;
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        margin: 5px 0;
        text-align: center;
    }

}


/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 80px;
    /* Offset fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(255, 106, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: left;
    margin-left: 0;
    /* Align left */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 106, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
    }
}

/* Services Section */
#services {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Ensure shadow stays within bounds or outside depending on desire */
    border-left: 5px solid var(--primary-color);
    /* Left Orange Shadow/Border effect requested */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: #fff;
}

.icon-box {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Why Us */
.bg-light {
    background-color: var(--bg-light);
}

.why-us-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    min-height: 300px;
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.why-us-item:last-child {
    margin-bottom: 0;
}

.icon-wrapper {
    background-color: #FFF3E0;
    /* Light Orange */
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.why-us-item:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(360deg);
}

.content h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Clients */
.clients-box-grid {
    display: grid;
    /* Changes minmax from 150px to 100px so more fit on tablets */
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    /* slightly smaller gap to help them fit */
    background: #f8f9fa;
    /* Light background for the container box */
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.client-box {
    background: #fff;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.client-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}




/* Testimonials Grid (3x3 - 3 Items in Row) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars {
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.author strong {
    display: block;
    color: var(--secondary-color);
}

.author span {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ */
/* FAQ */
.faq-container {
    max-width: 100%;
    margin: 0;
}

/* FAQ Active Styles */
.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.15);
    /* Orange tinted shadow */
    border-left: 5px solid transparent;
    transition: var(--transition);
}

.faq-item[open] {
    border-left-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.25);
    /* Stronger orange tinted shadow */
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    /* Remove default marker */
    position: relative;
    padding-right: 40px;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 20px;
    padding-top: 0;
    border-top: 1px solid #eee;
}



/* Contact Section Colors */
.bg-light-orange {
    background-color: #FFF3E0;
    /* Very light orange */
}

.text-dark {
    color: var(--text-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.link-dark {
    color: var(--text-color);
    font-weight: 600;
}

.link-dark:hover {
    color: var(--primary-color);
}

/* New Footer Styles */
.footer-section {
    background-color: #e0e0e0;
    /* Darker Gray */
    color: #333;
    /* Dark Text */
    padding: 60px 0 20px;
    font-size: 0.95rem;
    border-top: 1px solid #e0e0e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    /* Adjusted for 3 cols */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #000;
    /* Black Headings */
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-desc {
    margin-top: 15px;
    color: #555;
    /* Darker desc */
    line-height: 1.6;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.footer-contact svg {
    color: var(--primary-color);
    min-width: 18px;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    /* Light border */
    padding-top: 25px;
    margin-top: 0;
    background: transparent;
    color: #666;
    font-size: 0.85rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


/* Floating Buttons */
.float-btn {
    position: fixed;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    left: auto;
    /* Ensure right alignment */
}

.whatsapp-float {
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Green as requested */
    color: #fff;
    animation: vibe 2s infinite;
    /* Faster animation */
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.scroll-top {
    bottom: 90px;
    /* Directly above WhatsApp (20px + 60px + 10px spacing) */
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    right: 30px;
    /* Center with the 60px whatsapp button (20px right + 10px offset) */
}

/* Scroll Top Visibility */
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

@keyframes vibe {
    0% {
        transform: scale(1) rotate(0);
    }

    10% {
        transform: scale(1.05) rotate(-5deg);
    }

    20% {
        transform: scale(1.05) rotate(5deg);
    }

    30% {
        transform: scale(1.05) rotate(-5deg);
    }

    40% {
        transform: scale(1.05) rotate(5deg);
    }

    50% {
        transform: scale(1) rotate(0);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {

    /* Centralizar conteúdo das seções no mobile */
    #services,
    #why-us,
    #clients,
    #testimonials,
    #faq,
    #contact {
        text-align: center !important;
    }

    .section-title.text-left {
        text-align: center !important;
    }

    .why-us-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .faq-item summary {
        text-align: center;
        padding-right: 20px;
        padding-left: 20px;
    }


    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }


    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background-color: var(--bg-dark);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: var(--shadow-md);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--primary-light);
}

.cookie-buttons {
    display: flex;
    justify-content: flex-start;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
}

@media (max-width: 480px) {
    .cookie-banner {
        width: calc(100% - 40px);
        bottom: 20px;
        left: 20px;
    }
}