@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Kanit:wght@500;700;800&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.1;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* New Buttons */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    /* Slight adjustment for border */
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Header */
.header {
    padding: 1rem 0;
    background: #fff;
    position: relative;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 50px;
    /* Default height */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
}

/* Hidden on desktop */
.nav-link {
    font-weight: 600;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 0;
    background: linear-gradient(to right, #f8f9fa 50%, #fff 50%);
    overflow: hidden;
    min-height: 85vh;
    /* Desktop: Tall hero */
    display: flex;
    align-items: center;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
    width: 100%;
}

.hero-content {
    flex: 1;
    padding: 2rem 0;
    z-index: 2;
    max-width: 50%;
    /* Prevent text from hitting the image */
}

.hero-tag {
    display: inline-block;
    border: 2px solid var(--primary-color);
    /* Orange border */
    background: #fff;
    /* White bg for contrast */
    border-radius: 50px;
    /* Pill shape */
    padding: 0.8rem 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    /* Navy text */
    margin: 1.5rem 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 3.5rem;
    /* Larger heading */
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

h1 span {
    color: var(--primary-color);
}

.hero-sub {
    font-size: 1.3rem;
    /* Slightly larger subtext */
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 450px;
    font-weight: 500;
}

/* Desktop Hero Image */
.hero-image {
    flex: 1.4;
    position: relative;
    height: 90vh;
    /* Consistent container height */
    /* Removed flex alignment since we will absolute position the img */
}

.mobile-hero-cta {
    display: none;
}

.hero-image img {
    position: absolute;
    /* Anchor it firmly */
    bottom: 0;
    right: -5%;
    /* Slight overlap to right edge, but keep subject visible */
    height: 95%;
    /* Fill vertical space */
    width: auto;
    /* Maintain aspect ratio */
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    /* Added orange border */
    text-align: center;
    box-shadow: 0 10px 30px rgba(18, 52, 86, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon img {
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.service-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-list {
    margin-top: 2rem;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.about-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

/* Advantages */
.advantages {
    padding: 4rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    /* Constrain width for better reading */
    margin-left: auto;
    margin-right: auto;
}

.adv-item {
    max-width: 300px;
}

.adv-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #E5E7EB;
    padding: 2rem 0;
    color: var(--text-dark);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-contact {
    display: flex;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* RESPONSIVE / MOBILE STYLES */
@media (max-width: 900px) {

    /* Navigation */
    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        color: var(--secondary-color);
        cursor: pointer;
    }

    .nav-menu {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
        /* Show when active */
    }

    .nav-link {
        display: block;
        margin: 10px 0;
        font-size: 1.1rem;
    }

    /* Ensure buttons stack well on mobile menu */
    .nav-menu .btn {
        margin: 5px 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Layout */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .about-grid,
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    /* Hero Adjustments for Mobile (Image Top / Text Bottom) */
    .hero {
        min-height: auto !important;
        padding-top: 0 !important;
        /* Remove top padding to let image hit top */
        padding-bottom: 2rem !important;
        background: #fff !important;
    }

    .hero-grid {
        position: relative !important;
        gap: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-content {
        order: 2 !important;
        /* Text Bottom */
        text-align: left !important;
        padding: 1rem !important;
        background: transparent !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        z-index: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image {
        order: -1 !important;
        /* Image Top */
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        position: relative !important;
        flex: none !important;
        overflow: hidden;
        /* Removed gradient overlay */
    }

    .hero-image img {
        height: auto !important;
        width: 100% !important;
        max-width: none !important;
        display: block !important;
        margin: 0 !important;
        border-radius: 0 !important;
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
    }

    /* Mobile CTA - Static (No Overlay) */
    .mobile-hero-cta {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        width: 100%;
    }

    /* Hide desktop button mobile */
    .desktop-hero-btn {
        display: none !important;
    }

    .mobile-hero-cta .btn {
        width: 100%;
        max-width: 100% !important;
        font-size: 1rem !important;
        padding: 14px 0 !important;
        box-shadow: none !important;
        margin-bottom: 10px;
        display: flex !important;
        /* Flex allows easy centering */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .mobile-hero-cta div {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-shadow: none !important;
        color: #333 !important;
    }

    /* MATCH PRINT: Show "Quem Somos" as TEXT ONLY (not button) */
    .hero-tag {
        display: inline-block !important;
    }

    /* Target the first tag (Quem Somos) to remove border/bg */
    .hero-content .hero-tag:first-of-type {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 1rem 0 0.5rem 0 !important;
        /* Adjust spacing */
        color: var(--primary-color) !important;
        box-shadow: none !important;
        font-size: 0.9rem !important;
    }

    .hero-content h3 {
        display: block !important;
        margin-bottom: 0.5rem;
    }

    /* MATCH PRINT: Smaller Title on Mobile */
    .hero-content h1 {
        font-size: 2.2rem !important;
        /* Reduced from 3.5rem */
        line-height: 1.1 !important;
    }

    .hero-sub {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Floating WhatsApp Button */
    .whatsapp-float {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* Mobile utility to hide secondary tag */
    .mobile-hide {
        display: none !important;
    }

    .footer-container {
        gap: 2rem;
    }
}

/* Copyright Section */
.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    width: 100%;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}