﻿/* Global Styles */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
}

/* Button styles */
.btn {
    display: inline-block;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    line-height: 1.2;
}
.btn:hover {
    background-color: #1eba5a;
}
.btn:focus {
    outline: none;
}
.btn-secondary {
    background-color: #003E47;
}
.btn-secondary:hover {
    background-color: #012f36;
}
.btn-primary {
    background-color: #136f63;
}
.btn-primary:hover {
    background-color: #0e5249;
}
.btn-full {
    width: 100%;
    text-align: center;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .solution-item,
    .differential-item {
        transition: none;
        transform: none !important;
    }
}

/* Specific button variants */
.btn-cta {
    font-size: 1.1rem;
    padding: 14px 28px;
}
.btn-whatsapp {
    font-size: 0.9rem;
    padding: 8px 16px;
    /* margin-left set in layout below */
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
}
header .logo {
    height: clamp(64px, 6vw, 96px);
    width: auto;
    flex-shrink: 0;
}
header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
header nav a {
    color: #003E47;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    transition: color 0.2s ease;
}
header nav a:hover {
    text-decoration: underline;
}
header .header-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    flex-wrap: wrap;
}
.header-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.menu-toggle span {
    display: block;
    width: 34px;
    height: 5px;
    border-radius: 999px;
    background: #003E47;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
header .container .btn {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 520px;
    height: min(85vh, 760px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    overflow: hidden;
}
.slide.active {
    opacity: 1;
}
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.slide1,
.slide2,
.slide3 {
    background: #000;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5em;
    font-weight: 600;
}
.hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin-bottom: 0.5em;
}
.hero-content .tagline {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1em;
}
.hero-content .btn {
    font-size: 1.1rem;
    padding: 14px 28px;
    font-weight: 600;
}

/* Sections: About, Solutions, Differentials, Contact */
section {
    padding: clamp(48px, 7vw, 80px) 0;
    scroll-margin-top: 80px;
}
section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 20px;
    color: #003E47;
    font-weight: 600;
}
section p {
    margin-bottom: 20px;
}

/* Center aligned sections */
.about,
.solutions,
.differentials {
    text-align: center;
}

/* Solutions Section */
.solutions-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: 460px;
        padding: 80px 0 60px;
    }
    .hero-content {
        text-align: center;
        padding: 0 clamp(16px, 6vw, 32px);
    }
    .solutions-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        justify-content: center;
    }
    .differentials-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .contact-container {
        grid-template-columns: minmax(0, 1fr);
    }
    .form-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .form-card {
        max-width: 560px;
    }
}
.solution-item:nth-child(5),
.solution-item:nth-child(6) {
    grid-column: auto;
}
@media (min-width: 1025px) {
    .solution-item:nth-child(5) {
        grid-column: 2 / span 1;
    }
    .solution-item:nth-child(6) {
        grid-column: 3 / span 1;
    }
}
.solution-item,
.differential-item {
    position: relative;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 33, 38, 0.08);
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 0.35s ease, background 0.35s ease;
    isolation: isolate;
}
.solution-item::after,
.differential-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(19, 111, 99, 0.15), rgba(37, 211, 102, 0.1));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.solution-item:hover,
.solution-item:focus-within,
.differential-item:hover,
.differential-item:focus-within {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 22px 44px rgba(0, 33, 38, 0.18);
}
.solution-item:hover::after,
.solution-item:focus-within::after,
.differential-item:hover::after,
.differential-item:focus-within::after {
    opacity: 1;
}
.solution-item h3,
.differential-item h3 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    font-weight: 600;
    color: #003E47;
}
.solution-item p,
.differential-item p {
    margin: 0;
}

/* Differentials Section */
.differentials {
    background: #f7f7f7;
}
.differentials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: flex-start;
}
.contact-info p {
    margin: 8px 0;
}
.contact-info a {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}
.contact-info a:hover {
    text-decoration: underline;
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}
.contact-form .form-status {
    margin-top: 12px;
    font-size: 0.95rem;
    min-height: 1.2em;
}
.contact-form .form-status--info {
    color: #003E47;
}
.contact-form .form-status--success {
    color: #136f63;
}
.contact-form .form-status--error {
    color: #b42318;
}

/* Cadastro App Page */
.form-page {
    background: #f4f8f9;
}
.form-hero {
    background: linear-gradient(135deg, #003E47, #136f63);
    color: #fff;
    padding: 80px 0 60px;
    text-align: left;
}
.form-hero__content {
    max-width: 760px;
}
.form-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}
.form-hero p {
    margin: 0;
    font-size: 1.05rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: block;
    color: #b8f5e2;
}
.form-section {
    padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 90px);
}
.form-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(28px, 5vw, 40px);
    align-items: stretch;
}
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: clamp(28px, 4vw, 36px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    max-width: 640px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.form-row label,
.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #003E47;
}
.form-row input,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d3dfe3;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    background: #f9fbfc;
}
.form-row input:focus,
.form-row select:focus {
    border-color: #136f63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.2);
    background: #fff;
}
.form-row-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.option-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.option-item {
    position: relative;
}
.option-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-item label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid #d3dfe3;
    border-radius: 10px;
    font-weight: 600;
    color: #003E47;
    background: #f9fbfc;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}
.option-item input:checked + label {
    background: #136f63;
    color: #fff;
    border-color: #136f63;
    box-shadow: 0 10px 25px rgba(19, 111, 99, 0.25);
}
.option-item input:focus-visible + label {
    outline: 3px solid rgba(19, 111, 99, 0.4);
    outline-offset: 4px;
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}
.checkbox-group input {
    width: auto;
}
.other-input {
    margin-top: 16px;
}
.other-input.hidden {
    display: none;
}
.other-input input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d3dfe3;
    border-radius: 8px;
    font: inherit;
    background: #f9fbfc;
}
.other-input label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #003E47;
    display: block;
}
.form-status {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
}
.form-conditional.hidden {
    display: none;
}

/* Footer */
.site-footer {
    background: #f4f6f7;
    color: #01343b;
    padding: clamp(32px, 6vw, 64px) 0 24px;
    border-top: 1px solid rgba(0, 62, 71, 0.08);
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    align-items: flex-start;
}
.footer-brand {
    grid-column: span 2;
    max-width: 320px;
}
.footer-logo img {
    height: clamp(64px, 8vw, 90px);
    width: auto;
    display: block;
    margin-bottom: 16px;
}
.footer-brand p {
    margin-bottom: 16px;
    color: #35555b;
    font-size: 0.95rem;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0, 62, 71, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 62, 71, 0.35);
    box-shadow: 0 8px 18px rgba(0, 62, 71, 0.15);
}
.social-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.footer-column h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #002c33;
}
.footer-column a {
    display: block;
    text-decoration: none;
    color: #35555b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.footer-column a:hover {
    color: #003E47;
}
.footer-info {
    margin: 0 0 6px;
    color: #003E47;
    font-weight: 600;
    text-decoration: none;
    display: block;
}
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(0, 62, 71, 0.1);
    padding-top: 16px;
    font-size: 0.9rem;
    color: #35555b;
}
.footer-meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-meta a {
    color: #003E47;
    text-decoration: none;
    font-weight: 600;
}
.footer-meta a:hover {
    text-decoration: underline;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 768px) {
    header .container {
        gap: 6px 0;
    }
    header .logo {
        height: 56px;
        margin: 0 auto;
    }
    .menu-toggle {
        display: inline-flex;
    }
    header .header-menu {
        order: 3;
        position: fixed;
        inset: 76px 16px auto 16px;
        width: calc(100% - 32px);
        flex-direction: column;
        gap: 18px;
        padding: 24px;
        display: none;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 62, 71, 0.25);
        z-index: 1100;
        backdrop-filter: blur(6px);
    }
    header .header-menu.is-open {
        display: flex;
    }
    header nav {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    header nav a {
        width: 100%;
        padding: 10px 12px;
        border-radius: 999px;
        background: rgba(0, 62, 71, 0.08);
    }
    .header-ctas {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .header-ctas .btn {
        width: 100%;
        text-align: center;
    }
    .site-footer .container {
        align-items: center;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .footer-brand {
        grid-column: span 1;
        margin: 0 auto;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-meta {
        flex-direction: column;
        align-items: center;
    }
    section {
        padding: 40px 0;
    }
    .hero-content .btn {
        width: 100%;
    }
    .solutions-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .contact-container {
        gap: 28px;
    }
    .form-card {
        padding: 24px;
        width: 100%;
    }
    .form-row-split {
        grid-template-columns: 1fr;
    }
    .option-group {
        flex-direction: column;
    }
    .option-item label {
        width: 100%;
    }
    .checkbox-group {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .form-hero {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .hero {
        padding: 70px 0 50px;
    }
    .hero-content {
        padding: 0 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 20px;
    }
    .form-row {
        margin-bottom: 14px;
    }
    .option-item label {
        padding: 12px 16px;
    }
}
