/* ============================================================
   DML Systems — Stylesheet
   Tema claro, profissional, inspirado em consultoria.
   Paleta: lilás (#6C5CE7), azul-petróleo (#4DA8DA), cinzas neutros.
   ============================================================ */

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

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --secondary: #4DA8DA;
    --accent: #6C5CE7;

    --dark: #1A1A2E;
    --text: #2D2D3F;
    --text-secondary: #6B6B80;
    --text-light: #9B9BAF;

    --bg: #FFFFFF;
    --bg-alt: #F7F7FB;
    --bg-dark: #13132B;

    --border: #E8E8F0;
    --border-light: #F0F0F6;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font);

    --container: 1200px;
    --nav-h: 88px;
    --transition: .3s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 { margin-bottom: 16px; }

.label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.label-light { color: var(--primary-light); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.2;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,92,231,.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

.btn-white {
    background: #fff;
    color: var(--dark);
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding-left: 0;
}
.btn-ghost:hover { gap: 12px; }

.btn-sm { padding: 10px 22px; font-size: .85rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: .9rem;
    color: var(--primary);
    transition: gap var(--transition);
}
.link-arrow::after {
    content: '\2192';
    transition: transform var(--transition);
}
.link-arrow:hover { gap: 10px; }
.link-arrow:hover::after { transform: translateX(2px); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,.96);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex; align-items: center;
}
.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}
.logo-img-footer {
    filter: brightness(0) invert(1);
    opacity: .85;
}

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a {
    font-size: .88rem; font-weight: 500; color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}
.nav-menu a:hover { color: var(--dark); }
.nav-menu a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 6px; cursor: pointer;
}
.hamburger span {
    width: 22px; height: 2px; background: var(--dark);
    border-radius: 2px; transition: all var(--transition);
}

/* ---------- Mobile Menu ---------- */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden;
    transition: all .35s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-panel {
    position: absolute; top: 0; right: 0;
    width: 320px; max-width: 85vw; height: 100%;
    background: #fff;
    padding: 28px;
    transform: translateX(100%);
    transition: transform .35s ease;
    display: flex; flex-direction: column;
}
.mobile-overlay.open .mobile-panel { transform: translateX(0); }

.mobile-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 40px;
}
.mobile-close {
    background: none; border: none;
    font-size: 1.8rem; color: var(--text); cursor: pointer;
    line-height: 1;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-link {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 600; color: var(--dark);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition);
}
.mobile-link:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10,12,30,.92) 0%,
        rgba(20,25,50,.85) 50%,
        rgba(10,12,30,.90) 100%
    );
}

.hero-inner {
    position: relative; z-index: 2;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 48px;
}

.hero-content { max-width: 640px; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .82rem; font-weight: 600;
    color: rgba(255,255,255,.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-tag::before {
    content: '';
    width: 40px; height: 2px;
    background: var(--primary-light);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-title strong {
    display: block;
    color: var(--primary-light);
    font-weight: 800;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges {
    display: flex; gap: 24px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero-badge {
    display: flex; flex-direction: column;
}
.hero-badge strong {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-badge span { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ---------- Featured Service ---------- */
.featured-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}
.featured-img { position: relative; min-height: 400px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-body {
    padding: 48px 48px 48px 56px;
    display: flex; flex-direction: column; justify-content: center;
}
.service-num {
    font-family: var(--font-display);
    font-size: .85rem; font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.featured-body h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.featured-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.featured-body ul {
    margin-bottom: 24px;
}
.featured-body li {
    position: relative;
    padding-left: 20px;
    font-size: .92rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.featured-body li::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

/* ---------- Service Cards Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.services-grid .svc-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
.services-grid .svc-card:last-child .svc-card-img {
    height: 100%;
    min-height: 220px;
}
.services-grid .svc-card:last-child .svc-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svc-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    transition: all .4s ease;
}
.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.svc-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.svc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.svc-card:hover .svc-card-img img { transform: scale(1.05); }

.svc-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,.45), transparent 60%);
}
.svc-card-num {
    position: absolute; top: 14px; left: 14px;
    font-family: var(--font-display);
    font-size: .75rem; font-weight: 700;
    color: #fff;
    background: rgba(108,92,231,.8);
    padding: 4px 10px;
    border-radius: 50px;
}

.svc-card-body {
    padding: 24px;
}
.svc-card-body h3 { margin-bottom: 10px; color: var(--dark); }
.svc-card-body p { font-size: .9rem; color: var(--text-secondary); margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
    padding: 4px 12px;
    font-size: .73rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(108,92,231,.06);
    border: 1px solid rgba(108,92,231,.12);
    border-radius: 50px;
}

/* ---------- About ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-photos {
    position: relative;
}
.about-photo-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-photo-main img { width: 100%; height: auto; }

.about-photo-small {
    position: absolute;
    bottom: -32px; right: -32px;
    width: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 5px solid var(--bg-alt);
    box-shadow: var(--shadow);
}

.about-accent-box {
    position: absolute;
    top: -20px; left: -20px;
    background: var(--primary);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 24px rgba(108,92,231,.35);
}
.accent-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.accent-text { font-size: .8rem; font-weight: 500; line-height: 1.3; opacity: .85; }

.about-body .lead {
    font-size: 1.1rem; color: var(--text);
    margin-bottom: 12px; font-weight: 400;
}
.about-body > p { color: var(--text-secondary); margin-bottom: 8px; }
.about-body > h2 { margin-bottom: 20px; }

.about-values { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-bar { width: 4px; min-height: 48px; background: var(--primary); border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.value-item h4 { margin-bottom: 4px; color: var(--dark); }
.value-item p { font-size: .88rem; color: var(--text-secondary); }

/* ---------- Tech / Expertise ---------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tech-group h4 {
    font-size: .9rem;
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all var(--transition);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-accent {
    background: rgba(108,92,231,.06);
    border-color: rgba(108,92,231,.2);
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Numbers ---------- */
.numbers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.numbers-body h2 { color: #fff; margin-bottom: 16px; }

.numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.num-card {
    text-align: center;
    padding: 28px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
}
.num-value {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 800;
    color: #fff;
    line-height: 1;
}
.num-suffix {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    color: var(--primary-light);
}
.num-label {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin-top: 8px;
}

/* ---------- Sectors ---------- */
.sectors {
    text-align: center;
    padding: 48px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.sectors-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.sectors-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.sector-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.sector-item svg { color: var(--primary); width: 18px; height: 18px; }
.sector-item:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- CTA ---------- */
.section-cta { background: var(--bg-alt); }

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.cta-content h2 { margin-bottom: 16px; }
.cta-content > p { color: var(--text-secondary); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.cta-info { display: flex; gap: 24px; flex-wrap: wrap; }
.cta-info-item {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem; color: var(--text-light);
}
.cta-info-item svg { color: var(--primary); flex-shrink: 0; }

.cta-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-image img { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.6);
    padding: 64px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; }
.footer-brand .logo { margin-bottom: 4px; }

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    color: #fff; font-size: .9rem; font-weight: 600;
    margin-bottom: 18px;
}
.footer-col a, .footer-col address {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    color: rgba(255,255,255,.5);
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about-photo-small { right: 10px; bottom: -20px; width: 180px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .numbers-layout { grid-template-columns: 1fr; gap: 40px; }
    .cta-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 68px; }
    .section { padding: 72px 0; }

    .nav-menu, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-badges { gap: 16px; flex-wrap: wrap; }
    .hero-badge strong { font-size: 1.5rem; }

    .featured-service { grid-template-columns: 1fr; }
    .featured-img { min-height: 240px; }
    .featured-body { padding: 32px 24px; }

    .services-grid { grid-template-columns: 1fr; }
    .services-grid .svc-card:last-child {
        grid-column: auto;
        display: block;
    }
    .services-grid .svc-card:last-child .svc-card-img {
        min-height: 200px;
    }
    .tech-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    .about-photo-small { display: none; }
    .about-accent-box { top: -12px; left: -8px; padding: 14px 18px; }
    .accent-number { font-size: 1.8rem; }

    .sectors-list { gap: 10px; }
    .sector-item { padding: 8px 14px; font-size: .8rem; }

    .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .numbers-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .footer-nav { grid-template-columns: 1fr; }
}
