/*===== RESET & BASE =====*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font: 400 1rem 'Roboto', sans-serif;
    color: var(--text-color);
    background: var(--body-color);
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*===== VARIABLES =====*/
:root {
    --header-height: 4.5rem;

    /* Colors */
    --hue: 174;
    --base-color: hsl(var(--hue) 100% 50%); /* Aqua */
    --body-color: hsl(218, 28%, 12%); /* Dark Blue/Gray */
    --container-color: hsl(218, 28%, 18%);
    --title-color: hsl(0, 0%, 98%);
    --text-color: hsl(0, 0%, 80%);
    --text-color-light: hsl(0, 0%, 90%);
    --border-color: hsl(var(--hue), 100%, 50%, 0.2);

    /* Fonts */
    --title-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/*===== LAYOUT =====*/
.container {
    max-width: 1120px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    /* Padding padrão para mobile e telas menores */
    padding: 3rem 0; /* AJUSTADO: Menos espaço entre seções no mobile */
}

.section:nth-child(even) {
    background-color: var(--container-color);
}

.section .title {
    margin-bottom: 2rem;
    font: 700 2.5rem var(--title-font);
    color: var(--title-color);
    text-align: center;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        hsla(var(--hue), 100%, 50%, 0.3), 
        transparent);
}

/*===== HEADER =====*/
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: var(--body-color);
    transition: all 0.3s ease-in-out;
}

#header.scroll {
    background: var(--container-color);
    box-shadow: 0 2px 15px hsla(0, 0%, 0%, 0.2);
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font: 700 1.5rem var(--title-font);
    color: var(--title-color);
}

nav .logo:hover {
    color: var(--base-color);
    transition: 0.3s;
}

nav .menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background: var(--body-color);
    z-index: 100;
    transition: 0.3s;
    visibility: hidden;
}

nav .menu.show {
    left: 0;
    visibility: visible;
}

nav .menu ul {
    text-align: center;
    margin-top: 8rem;
}

nav .menu ul li a {
    display: block;
    padding: 1.5rem 0;
    font-size: 1.25rem;
    color: var(--title-color);
    transition: color 0.3s;
    position: relative;
}

nav .menu ul li a:hover {
    color: var(--base-color);
}

nav .menu ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--base-color);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav .menu ul li a:hover::after {
    width: 100%;
}

/* Estilo do botão de contato em MOBILE (menor) */
.contact-button {
    display: inline-flex; /* Botão visível por padrão */
    align-items: center;
    padding: 0.5rem 1rem; /* Padding menor */
    font-size: 0.8rem; /* Fonte menor */
}

nav .toggle {
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 110;
}

nav .icon-close {
    display: none;
}

nav.show .icon-close {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
}

nav.show .icon-menu {
    display: none;
}

/*===== BUTTON =====*/
.button {
    display: inline-block;
    background: var(--base-color);
    color: var(--body-color);
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--base-color);
}

.button:hover {
    background: transparent;
    color: var(--base-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px hsla(var(--hue), 100%, 50%, 0.2);
}

.button i {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/*===== HOME (HERO) =====*/
#home .container {
    text-align: center;
    padding-top: 3rem; /* AJUSTADO: Menos padding no topo da página mobile */
    padding-bottom: 3rem; /* AJUSTADO: Menos padding na base da seção home mobile */
}

#home .text h1 {
    font-size: 2.5rem;
}

#home .text p {
    margin: 1.5rem 0 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#home .button {
    width: 100%;
    max-width: 300px;
}

#home .image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

#home .image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 27%;
    border: 5px solid var(--base-color);
    box-shadow: 0 0 30px hsla(var(--hue), 100%, 50%, 0.4);
}

/*===== VANTAGENS (NEW SERVICES) =====*/
/* Esta seção se beneficia do .section padding geral */
#vantagens .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

#vantagens .card {
    padding: 3rem 1.5rem;
}

#vantagens .card i {
    font-size: 3.5rem;
}

#vantagens .card h3 {
    font-size: 2rem;
}

#vantagens .card p {
    font-size: 1rem;
}

/*===== PRICING =====*/
.pricing-grid {
    grid-template-columns: 1fr;
}

.pricing-card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: scale(1.05);
}

.pricing-card .price-group {
    margin-bottom: 1rem;
}

.pricing-card h4 {
    margin-bottom: 0;
    display: inline-block;
}

.pricing-card .price-info {
    margin-top: -1rem;
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
}

.pricing-card ul {
    margin-bottom: 2rem;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    color: var(--base-color);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}
.pricing-card ul li i.bx-x {
    color: #ff6b6b;
}

.pricing-card.popular {
    border-color: var(--base-color);
    transform: scale(1.1);
}

.pricing-card.popular .tag {
    position: absolute;
    top: 25px;
    right: -50px;
    background: var(--base-color);
    color: var(--body-color);
    padding: 0.25rem 3rem;
    font-size: 0.8rem;
    font-weight: 500;
    transform: rotate(45deg);
}

.pricing-card h3 {
    color: var(--base-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-card h4 {
    font-size: 2rem;
    font-family: var(--title-font);
    color: var(--title-color);
    margin-bottom: 1.5rem;
}

.pricing-card .button {
    width: 100%;
    text-align: center;
}

/*===== CONTACT (FOOTER) =====*/
#contact {
    padding: 5rem 0 3rem;
}

#contact .contact-content {
    text-align: center;
}

#contact .title {
    font-size: 2rem;
}

#contact p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/*===== WHATSAPP FLOAT BUTTON =====*/
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/*===== SCROLL REVEAL =====*/
[data-sr-id] {
    visibility: hidden;
}

/*===== MEDIA QUERIES =====*/
@media (min-width: 768px) {
    .container {
        margin: 0 auto;
    }
    .section {
        /* Restaura o padding maior para desktop */
        padding: 8rem 0; 
    }

    /* HEADER */
    nav .menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        visibility: visible;
        left: auto;
        top: auto;
    }
    nav .menu ul {
        display: flex;
        gap: 1.5rem;
        margin-top: 0;
    }
    nav .menu ul li a {
        padding: 0;
        font-size: 1rem;
    }
    .toggle {
        display: none !important;
    }

    /* Estilo do botão de contato em DESKTOP (tamanho normal) */
    .contact-button {
        display: inline-flex;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    nav .menu ul li a::after {
        bottom: -10px;
    }

    /* HOME */
    #home .container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
        /* Restaura o padding maior para desktop */
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    #home .image {
        order: 1;
        margin-top: 0;
        justify-content: flex-end;
    }
    #home .text {
        order: 0;
    }
    #home .image img {
        width: 350px;
        height: 350px;
    }
    #home .text h1 {
        font-size: 3rem;
    }
    #home .text p {
        font-size: 1.125rem;
    }
    #home .text .button {
        width: auto;
    }

    /* VANTAGENS */
    #vantagens .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    /* PRICING */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-card.popular {
        transform: scale(1.05);
    }

    .pricing-card:hover {
        transform: scale(1.1);
    }
}

@media (min-width: 1200px) {
    .section {
        /* Ainda maior padding para telas muito grandes */
        padding: 10rem 0; 
    }
    
    #home .image img {
        width: 400px;
        height: 400px;
    }
    #home .text h1 {
        font-size: 3.5rem;
    }
    #home .text p {
        font-size: 1.25rem;
    }

    /* Home - restaura padding para telas extra-grandes */
    #home .container {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .pricing-card.popular {
        transform: scale(1.1);
    }
    
    .pricing-card:hover {
        transform: scale(1.15);
    }
}