/* ============================================================
   ALUGIO — Main Stylesheet
   ============================================================ */

/* ----- Reset & Base ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Scroll offset fix for sticky header */
section[id] {
    scroll-margin-top: 80px;
}

/* ----- Header & Navigation --------------------------------- */
header {
    background: #fff;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
    filter: brightness(0) invert(1);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #7c3aed;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #eee;
}

.language-toggle button,
.language-toggle-mobile button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s;
    border-radius: 4px;
}

.language-toggle button.active,
.language-toggle-mobile button.active {
    background: #7c3aed;
    color: white;
    font-weight: 600;
}

.language-toggle button:hover:not(.active),
.language-toggle-mobile button:hover:not(.active) {
    background: #f0f0f0;
}

/* ----- Brand Banner ---------------------------------------- */
.brand-banner {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-banner img {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(124, 58, 237, 0.35));
}

/* ----- Hero ------------------------------------------------ */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%);
}

.hero h1 {
    font-size: 2.5rem;
    color: slateblue;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.32rem;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.05rem;
    color: #4b5563;
    font-style: italic;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem !important;
    border-left: 3px solid #7c3aed;
    padding-left: 1rem;
    text-align: left;
}

.cta-button {
    display: inline-block;
    background: #7c3aed;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #6d28d9;
}

.hero-screenshot {
    margin: 3rem auto 0;
    max-width: 900px;
}

.hero-screenshot img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.15);
    border: 1px solid #e5e7eb;
}

/* ----- Sections -------------------------------------------- */
.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.features-intro {
    background: #fafafa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ----- Feature Cards --------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #7c3aed;
}

.feature-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    display: block;
}

.feature-card img.img-half {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    color: #7c3aed;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ----- Detail Rows (text + screenshot) --------------------- */
.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.reverse {
    direction: rtl;
}

.detail-row.reverse > * {
    direction: ltr;
}

.detail-text h3 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-text p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

.detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    display: block;
}

/* ----- Steps ----------------------------------------------- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 3rem 0;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-top: 3px solid #7c3aed;
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.step-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.step img {
    width: 100%;
    border-radius: 6px;
    margin-top: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ----- Management Section ---------------------------------- */
#contato .section-title,
#contato .section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.management-screenshot {
    margin-top: 2rem;
    text-align: center;
}

.management-screenshot img {
    width: 25%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* ----- About Us -------------------------------------------- */
.about-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 4rem 2rem;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.about-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.about-avatar {
    position: sticky;
    top: 100px;
    text-align: center;
}

.about-avatar img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #7c3aed;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.25);
    display: block;
    margin: 0 auto 1rem;
}

.about-avatar .avatar-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.about-avatar .avatar-role {
    color: #7c3aed;
    font-size: 0.9rem;
}

.about-text p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.about-text a:hover {
    color: #6d28d9;
}

.about-text .closing {
    font-style: italic;
    color: #7c3aed;
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 3px solid #7c3aed;
    padding-left: 1rem;
    margin-top: 2rem;
}

/* ----- Language Blocks ------------------------------------- */
.lang-block {
    display: none;
}

.lang-block.active {
    display: block;
}

/* ----- Lead Capture Form ----------------------------------- */
.lead-section {
    background: linear-gradient(135deg, #1a0533 0%, #2e1065 100%);
    padding: 4rem 2rem;
}

.lead-inner {
    max-width: 800px;
    margin: 0 auto;
}

.lead-section .section-title {
    color: #fff;
    text-align: center;
}

.lead-section .section-description {
    color: #c4b5fd;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: #e9d5ff;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #6d28d9;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-group input::placeholder {
    color: #a78bfa;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #a78bfa;
    background: rgba(255, 255, 255, 0.12);
}

.form-group input.error,
.form-group select.error {
    border-color: #f87171;
}

.form-group select option {
    background: #1e1b4b;
    color: #fff;
}

#lead-form .cta-button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.05rem;
}

#lead-form .cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-feedback {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 0.5rem;
}

.lead-feedback.success {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border: 1px solid #34d399;
}

.lead-feedback.error {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border: 1px solid #f87171;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ----- Footer ---------------------------------------------- */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* ----- Hamburger Button ------------------------------------ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}

.language-toggle-mobile {
    display: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----- Utilities ------------------------------------------- */
.hidden {
    display: none;
}

.container-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ----- Responsive ------------------------------------------ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hamburger {
        display: flex;
    }

    nav,
    .language-toggle {
        display: none;
    }

    nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 1rem 2rem;
        gap: 1.25rem;
        z-index: 99;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    nav.open .language-toggle-mobile {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0 0;
        border-top: 1px solid #eee;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .detail-row,
    .detail-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-avatar {
        position: static;
    }

    .management-screenshot img {
        width: 60%;
    }
}
