/* Sunega Engenharia — estrutura B2S, cores Sunega */
:root {
    --sg-cyan: #00AEEF;
    --sg-navy: #002855;
    --sg-navy-deep: #00152C;
    --sg-blue: #0077C8;
    --sg-ink: #122033;
    --sg-muted: #5B6B7C;
    --sg-line: #D7E3EF;
    --sg-paper: #F3F7FB;
    --sg-white: #FFFFFF;
    --font: "DM Sans", system-ui, sans-serif;
    --font-title: "Outfit", "DM Sans", sans-serif;
    --pm-primary: var(--sg-cyan);
    --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--sg-ink);
    background: var(--sg-white);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.sg-wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sg-muted { color: var(--sg-muted); }
.sg-center-text { text-align: center; margin-inline: auto; }

.sg-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 40, 85, 0.1);
    box-shadow: 0 1px 0 rgba(0, 40, 85, 0.04);
}
.sg-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 78px;
}
.sg-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.sg-logo img { height: 48px; width: auto; }
.sg-nav { display: flex; gap: 22px; margin-left: auto; }
.sg-nav a {
    color: var(--sg-navy);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.sg-nav a:hover, .sg-nav a.is-active { color: var(--sg-cyan); }
.sg-header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--sg-navy);
    color: var(--sg-white);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.sg-header-cta:hover { background: var(--sg-blue); color: var(--sg-white); }
.sg-header-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 40, 85, 0.14);
    color: var(--sg-navy);
    font-size: 18px;
    flex-shrink: 0;
}
.sg-header-ig:hover { color: #E1306C; border-color: #E1306C; }
.sg-burger {
    display: none;
    background: none;
    border: 0;
    color: var(--sg-navy);
    font-size: 22px;
    cursor: pointer;
}

.sg-hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--sg-navy-deep);
}
.sg-hero-slides, .sg-hero-slide, .sg-hero-shade { position: absolute; inset: 0; }
.sg-hero-slide {
    background: center/cover no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 6s ease;
}
.sg-hero-slide.is-active { opacity: 1; transform: scale(1); }
.sg-hero-shade {
    background:
        linear-gradient(105deg, rgba(0, 21, 44, 0.94) 0%, rgba(0, 40, 85, 0.72) 48%, rgba(0, 21, 44, 0.35) 100%),
        radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.22), transparent 40%);
}
.sg-hero-copy {
    position: relative;
    z-index: 1;
    padding: 96px 0 88px;
    max-width: 740px;
    width: min(100% - 32px, 740px);
    margin-left: max(16px, calc((100% - var(--max)) / 2));
    margin-right: auto;
    text-align: left;
    color: var(--sg-white);
}
.sg-kicker {
    color: var(--sg-cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.sg-kicker-dark { color: var(--sg-blue); }
.sg-hero h1 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(36px, 6.2vw, 68px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: left;
}
.sg-hero h1 span { display: block; color: #E8F4FF; }
.sg-hero h1 strong { display: block; color: var(--sg-cyan); font-weight: 800; }
.sg-lead { font-size: 17px; color: #C5D5E6; max-width: 52ch; margin-top: 18px; text-align: left; }
.sg-hero-actions, .sg-center { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sg-hero-actions { justify-content: flex-start; }
.sg-center { justify-content: center; }

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.sg-btn:hover { transform: translateY(-1px); }
.sg-btn-cyan { background: var(--sg-cyan); color: var(--sg-navy-deep); }
.sg-btn-navy { background: var(--sg-navy); color: var(--sg-white); }
.sg-btn-ghost { background: transparent; color: var(--sg-white); border: 1px solid rgba(255,255,255,.35); }
.sg-btn-outline { background: transparent; color: var(--sg-navy); border: 1px solid var(--sg-line); }

.sg-section { padding: 88px 0; }
.sg-section-navy { background: var(--sg-navy); color: var(--sg-white); }
.sg-section-paper { background: var(--sg-paper); }
.sg-h2 {
    font-family: var(--font-title);
    font-size: clamp(28px, 3.4vw, 42px);
    margin: 0 0 14px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.sg-section-head { margin-bottom: 40px; max-width: 680px; }
.sg-section-head.sg-center-text {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.sg-section-head p:last-child { color: var(--sg-muted); margin: 0; }
.sg-section-head-light p:last-child { color: #A9BDD0; }

.sg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sg-card {
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
}
.sg-card.is-featured { border-color: rgba(0,174,239,.45); background: rgba(0,174,239,.1); }
.sg-card-icon, .sg-service-icon, .sg-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0,174,239,.14);
    color: var(--sg-cyan);
    font-size: 20px;
    margin-bottom: 16px;
}
.sg-card-num { color: var(--sg-cyan); font-weight: 700; letter-spacing: 0.12em; font-size: 12px; }
.sg-card h3, .sg-service h3, .sg-why-card h3 { margin: 0 0 8px; font-family: var(--font-title); font-size: 22px; }
.sg-card p, .sg-service p, .sg-why-card p { margin: 0; color: #B7C6D6; font-size: 14.5px; }
.sg-service p, .sg-why-card p { color: var(--sg-muted); }

.sg-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
.sg-photo {
    position: relative;
}
.sg-photo::after {
    content: "";
    position: absolute;
    inset: 18px -14px -14px 18px;
    border: 2px solid rgba(0,174,239,.35);
    border-radius: 20px;
    z-index: 0;
}
.sg-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.sg-about-points { display: grid; gap: 14px; margin: 22px 0 8px; }
.sg-about-point { display: flex; gap: 12px; align-items: flex-start; }
.sg-about-point i { color: var(--sg-cyan); margin-top: 3px; }
.sg-about-point strong { display: block; margin-bottom: 2px; }
.sg-about-point p { margin: 0; color: var(--sg-muted); font-size: 14px; }

.sg-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sg-service {
    background: var(--sg-white);
    border: 1px solid var(--sg-line);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 12px 30px rgba(0,40,85,.04);
    transition: transform .25s ease, border-color .25s ease;
}
.sg-service:hover {
    transform: translateY(-4px);
    border-color: rgba(0,174,239,.45);
}
.sg-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--sg-blue);
    font-weight: 700;
    font-size: 13px;
}
.sg-link i { font-size: 11px; }

.sg-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sg-why-card {
    padding: 28px 24px;
    border-radius: 18px;
    border: 1px solid var(--sg-line);
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.sg-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sg-preview {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 260px;
}
.sg-preview img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform .45s ease;
}
.sg-preview:hover img { transform: scale(1.06); }
.sg-preview span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(0,21,44,.86);
    color: var(--sg-white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.sg-process {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}
.sg-process-step {
    position: relative;
    flex: 1 1 280px;
    min-width: min(100%, 280px);
    padding: 28px 24px 30px;
    border-radius: 18px;
    background: #F3F7FB;
    border: 1px solid #D7E3EF;
    box-shadow: 0 10px 28px rgba(0, 40, 85, 0.05);
}
.sg-process-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.sg-process-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(0, 174, 239, 0.12);
    color: #00AEEF;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
}
.sg-process-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #002855;
    color: #00AEEF;
    font-size: 18px;
}
.sg-process-step h3 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 22px;
    color: #002855;
}
.sg-process-step p {
    margin: 0;
    color: #5B6B7C;
    font-size: 15px;
    line-height: 1.6;
}

.sg-stats {
    background: linear-gradient(120deg, #00152C, #002855 55%, #0077C8);
    color: #FFFFFF;
    padding: 48px 0;
}
.sg-stats-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    text-align: center;
}
.sg-stat {
    flex: 1 1 160px;
    min-width: 140px;
    padding: 8px 10px;
}
.sg-stat strong {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(28px, 4vw, 40px);
    color: #00AEEF;
    line-height: 1.1;
    margin-bottom: 6px;
}
.sg-stat span {
    display: block;
    color: #C5D5E6;
    font-size: 14px;
}

.sg-faq-wrap { max-width: 820px; }
.sg-faq { display: grid; gap: 12px; }
.sg-faq-item {
    background: var(--sg-white);
    border: 1px solid var(--sg-line);
    border-radius: 14px;
    padding: 0 18px;
}
.sg-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 700;
    font-family: var(--font-title);
    position: relative;
    padding-right: 28px;
}
.sg-faq-item summary::-webkit-details-marker { display: none; }
.sg-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sg-cyan);
    font-size: 22px;
}
.sg-faq-item[open] summary::after { content: "–"; }
.sg-faq-item p {
    margin: 0 0 18px;
    color: var(--sg-muted);
    padding-bottom: 4px;
}
.sg-faq-cta {
    margin-top: 28px;
    text-align: center;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.sg-cta {
    background:
        radial-gradient(circle at 15% 20%, rgba(0,174,239,.18), transparent 35%),
        var(--sg-navy-deep);
    color: var(--sg-white);
    padding: 72px 0;
}
.sg-cta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.sg-cta h2 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: clamp(28px, 3vw, 40px);
}
.sg-cta p { margin: 0; color: #A9BDD0; }
.sg-cta-phone {
    margin-top: 16px !important;
    color: var(--sg-cyan) !important;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.sg-cta-form {
    display: grid;
    gap: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 22px;
}
.sg-cta-form input,
.sg-cta-form select,
.sg-cta-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,21,44,.55);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}
.sg-cta-form option { color: #122033; }

.sg-page-hero {
    background: linear-gradient(120deg, var(--sg-navy-deep), var(--sg-navy) 55%, var(--sg-blue));
    color: var(--sg-white);
    padding: 72px 0 52px;
}
.sg-page-hero h1 {
    margin: 0 0 8px;
    font-family: var(--font-title);
    font-size: clamp(32px, 5vw, 48px);
}
.sg-page-hero .sg-lead { margin: 0; }

.sg-mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sg-mvv article {
    background: var(--sg-white);
    border: 1px solid var(--sg-line);
    border-radius: 14px;
    padding: 24px;
}
.sg-mvv h2 { margin: 0 0 8px; color: var(--sg-navy); font-size: 18px; font-family: var(--font-title); }
.sg-prose { color: var(--sg-muted); }
.sg-narrow { max-width: 72ch; }

.sg-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sg-box {
    background: var(--sg-white);
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,40,85,.05);
}
.sg-box h2 { margin: 0 0 16px; font-family: var(--font-title); }
.sg-box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.sg-box input, .sg-box textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #C9D6E4;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}
.sg-box input:focus, .sg-box textarea:focus { outline: 2px solid rgba(0,174,239,.35); border-color: var(--sg-cyan); }
.sg-map { width: 100%; height: 230px; border: 0; border-radius: 10px; margin: 12px 0; }

.sg-ig-box {
    max-width: 920px;
    margin: 0 auto;
    background: var(--sg-white);
    border: 1px solid var(--sg-line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0, 40, 85, 0.05);
}
.sg-ig-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.sg-ig-profile { display: flex; align-items: center; gap: 12px; }
.sg-ig-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
    color: #fff; font-size: 22px;
}
.sg-ig-profile strong { display: block; color: var(--sg-navy); font-size: 16px; }
.sg-ig-profile span { color: var(--sg-muted); font-size: 13px; }
.sg-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.sg-ig-post {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    background: #e8eef5;
}
.sg-ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.sg-ig-post span {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(0, 21, 44, 0.45);
    color: #fff; font-size: 28px;
    opacity: 0; transition: opacity .25s ease;
}
.sg-ig-post:hover img { transform: scale(1.06); }
.sg-ig-post:hover span { opacity: 1; }
.sg-ig-embed {
    width: 100%;
    min-height: 520px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
}

.sg-footer { background: #FFFFFF; color: var(--sg-navy); border-top: 1px solid rgba(0, 40, 85, 0.1); }
.sg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; padding: 48px 0; }
.sg-footer-logo {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
}
.sg-footer-logo img {
    height: 48px;
    width: auto;
}
.sg-footer h3 { color: var(--sg-navy); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.sg-footer p { color: var(--sg-navy); }
.sg-footer a { display: block; margin: 6px 0; color: var(--sg-blue); }
.sg-footer a:hover { color: var(--sg-cyan); }
.sg-footer-bottom { border-top: 1px solid rgba(0, 40, 85, 0.1); color: var(--sg-navy); }
.sg-footer-bottom a { display: inline; color: var(--sg-blue); }
.sg-footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; font-size: 13px; }
.sg-socials { display: flex; gap: 10px; }
.sg-socials a {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(0, 40, 85, 0.18);
    display: grid; place-items: center;
    color: var(--sg-navy);
    margin: 0;
}
.sg-socials a:hover { color: var(--sg-cyan); border-color: var(--sg-cyan); }

.sg-float-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 50;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: grid; place-items: center; font-size: 28px;
    box-shadow: 0 8px 24px rgba(37,211,102,.4);
}

.hs-gallery-app .hs-flip-card-front i,
.hs-gallery-app .hs-gallery-badge { color: var(--sg-cyan); }
.hs-gallery-app .hs-gallery-badge { background: rgba(0,174,239,.14); }
.hs-gallery-app .hs-lightbox-close:hover { background: var(--sg-cyan); color: var(--sg-navy-deep); }

@media (max-width: 980px) {
    .sg-nav {
        display: none;
        position: absolute;
        top: 78px; left: 0; right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 12px 20px 18px;
        gap: 0;
        border-bottom: 1px solid rgba(0, 40, 85, 0.1);
        box-shadow: 0 12px 24px rgba(0, 21, 44, 0.08);
    }
    .sg-nav.is-open { display: flex; }
    .sg-nav a {
        padding: 12px 0;
        color: var(--sg-navy);
        border-bottom: 1px solid rgba(0, 40, 85, 0.08);
    }
    .sg-nav a:hover, .sg-nav a.is-active { color: var(--sg-cyan); }
    .sg-burger { display: block; margin-left: auto; color: var(--sg-navy); }
    .sg-header-cta { display: none; }
    .sg-header-ig { margin-left: auto; }
    .sg-burger { margin-left: 8px; }
    .sg-ig-grid { grid-template-columns: repeat(2, 1fr); }
    .sg-cards,
    .sg-split,
    .sg-services,
    .sg-why,
    .sg-preview-grid,
    .sg-mvv,
    .sg-contact,
    .sg-footer-grid,
    .sg-cta-box,
    .sg-footer-bottom-inner {
        grid-template-columns: 1fr;
        display: grid;
    }
    .sg-process-step,
    .sg-stat {
        flex: 1 1 100%;
    }
    .sg-hero { min-height: 72vh; }
    .sg-photo::after { display: none; }
}
