@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --black: #111111;
    --black-2: #191919;
    --dark: #222222;
    --yellow: #f8c400;
    --yellow-2: #ffdb35;
    --white: #ffffff;
    --muted: #666666;
    --soft: #f6f6f3;
    --border: rgba(17, 17, 17, .10);
    --shadow: 0 24px 70px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand img { width: 190px; height: auto; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
}
.main-nav a { opacity: .78; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { opacity: 1; color: #c89b00; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
    color: var(--black);
    box-shadow: 0 16px 35px rgba(248, 196, 0, .30);
}
.btn-outline {
    background: rgba(255,255,255,.72);
    border-color: rgba(255,255,255,.40);
    color: var(--white);
}
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.wa-icon { color: #111; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
    background:
        radial-gradient(circle at 82% 10%, rgba(248,196,0,.28), transparent 28%),
        linear-gradient(135deg, #111 0%, #181818 48%, #2b2b2b 100%);
    color: var(--white);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #d7a800;
}
.hero .eyebrow { color: var(--yellow); }
.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;
    letter-spacing: -.065em;
    margin: 18px 0 22px;
}
.hero p {
    color: rgba(255,255,255,.76);
    font-size: 18px;
    line-height: 1.7;
    max-width: 660px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0; }
.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.trust-row div {
    padding: 18px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
}
.trust-row strong { display: block; color: var(--yellow); margin-bottom: 4px; }
.trust-row span { color: rgba(255,255,255,.66); font-size: 13px; }

.hero-card {
    position: relative;
    padding: 36px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.electric-symbol {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--yellow);
    color: var(--black);
    font-size: 34px;
    margin-bottom: 24px;
}
.hero-card h2 { font-size: 32px; letter-spacing: -.04em; }
.hero-card ul {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.hero-card li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
}

.section { padding: 86px 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2, .split h2, .cta-box h2, .page-hero h1 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -.055em;
    margin: 12px 0 16px;
}
.section-head p, .split p, .cta-box p, .page-hero p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.service-card {
    padding: 28px;
    min-height: 280px;
    border-radius: 28px;
    background: var(--soft);
    border: 1px solid var(--border);
    transition: .2s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    background: var(--white);
}
.service-card span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--black);
    color: var(--yellow);
    font-weight: 900;
    margin-bottom: 34px;
}
.service-card h3 { font-size: 22px; letter-spacing: -.035em; }
.service-card p { color: var(--muted); line-height: 1.65; }

.dark-section {
    background: var(--black);
    color: var(--white);
}
.split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.dark-section p { color: rgba(255,255,255,.7); }
.benefits {
    display: grid;
    gap: 16px;
}
.benefits div {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
}
.benefits strong {
    display: block;
    color: var(--yellow);
    font-size: 20px;
    margin-bottom: 8px;
}
.benefits span { color: rgba(255,255,255,.72); }

.cta-section { background: linear-gradient(180deg, #fff, #f6f6f3); }
.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 44px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 20%, rgba(248,196,0,.35), transparent 25%),
        var(--black);
    color: var(--white);
    box-shadow: var(--shadow);
}
.cta-box p { color: rgba(255,255,255,.74); margin-bottom: 0; }

.page-hero {
    padding: 76px 0 56px;
    background: linear-gradient(135deg, #f7f7f2, #ffffff);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.page-hero .container { max-width: 900px; }

.services-list { display: grid; gap: 16px; }
.service-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.05);
}
.service-number {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #111;
    color: var(--yellow);
    font-weight: 900;
}
.service-row h2 { font-size: 26px; letter-spacing: -.04em; margin-bottom: 8px; }
.service-row p { color: var(--muted); line-height: 1.6; margin: 0; }
.service-row a {
    color: #b58d00;
    font-weight: 900;
    white-space: nowrap;
}

.portfolio-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 32px;
}
.portfolio-toolbar h2 { font-size: 34px; letter-spacing: -.045em; margin-bottom: 6px; }
.portfolio-toolbar p { color: var(--muted); margin: 0; }
.search-box {
    display: grid;
    gap: 8px;
    min-width: min(420px, 100%);
    font-weight: 800;
}
.search-box span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #a17d00; }
.search-box input, .contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 18px;
    min-height: 54px;
    padding: 0 18px;
    font: inherit;
    outline: none;
    transition: .2s ease;
    background: #fff;
}
.contact-form textarea { padding-top: 16px; resize: vertical; }
.search-box input:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(248,196,0,.15);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.project-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: .35s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card div { padding: 20px; }
.project-card span {
    color: #a17d00;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.project-card h3 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.035em; }

.empty-state {
    padding: 34px;
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 28px;
    background: #fafafa;
    text-align: center;
}
.hidden { display: none !important; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}
.contact-form, .contact-card {
    padding: 34px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.contact-form { display: grid; gap: 18px; }
.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}
.contact-card {
    position: sticky;
    top: 110px;
    background:
        radial-gradient(circle at 90% 0%, rgba(248,196,0,.28), transparent 28%),
        var(--black);
    color: #fff;
}
.contact-card h2 { font-size: 34px; letter-spacing: -.045em; }
.contact-card p { color: rgba(255,255,255,.72); line-height: 1.7; }
.contact-info {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}
.contact-info strong { color: var(--yellow); }
.contact-info span {
    padding: 12px 14px;
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    color: rgba(255,255,255,.78);
}

.footer {
    background: #090909;
    color: rgba(255,255,255,.72);
    padding-top: 58px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr;
    gap: 34px;
}
.footer-logo {
    width: 180px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 18px;
}
.footer h3 { color: #fff; margin-bottom: 14px; }
.footer a { display: block; margin-bottom: 10px; transition: .2s; }
.footer a:hover { color: var(--yellow); }
.footer-bottom {
    margin-top: 42px;
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 18px 0;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    z-index: 80;
    border-radius: 22px;
    background: #25D366;
    box-shadow: 0 16px 40px rgba(37,211,102,.38);
}
.floating-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: #111;
    border-radius: 14px;
    padding: 11px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 6px 0;
}

@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 86px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        background: #fff;
        border-radius: 24px;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .cards-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .service-row { grid-template-columns: 1fr; }
    .portfolio-toolbar, .cta-box { flex-direction: column; align-items: start; }
    .trust-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .brand img { width: 150px; }
    .hero { padding-top: 54px; }
    .hero h1 { font-size: 42px; }
    .cards-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-card, .contact-form, .contact-card, .cta-box { padding: 26px; border-radius: 26px; }
    .section { padding: 62px 0; }
}


/* Ajustes com imagens reais da Jas Elétrica */
.hero-with-photo {
    min-height: 720px;
    display: flex;
    align-items: center;
}
.hero-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.30) 100%),
        radial-gradient(circle at 18% 18%, rgba(248,196,0,.24), transparent 25%);
}
.hero-with-photo .container {
    position: relative;
    z-index: 2;
}
.hero-with-photo::after {
    z-index: 1;
}

.cards-grid-images {
    grid-template-columns: repeat(4, 1fr);
}
.image-service-card {
    padding: 0;
    overflow: hidden;
    min-height: auto;
    background: #fff;
}
.image-service-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.image-service-card > div {
    padding: 24px;
}
.image-service-card span {
    margin-bottom: 22px;
}

.page-hero-photo {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111;
    min-height: 430px;
    display: flex;
    align-items: center;
}
.page-hero-photo .container {
    position: relative;
    z-index: 2;
}
.page-hero-photo .page-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero-photo .page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.54), rgba(0,0,0,.24));
}
.page-hero-photo p {
    color: rgba(255,255,255,.78);
}

.service-row-image {
    grid-template-columns: 220px 70px 1fr auto;
    padding: 16px;
}
.service-row-image > img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 22px;
}

.form-alert {
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 800;
}
.form-alert.error {
    color: #7a1f1f;
    background: #ffe9e9;
    border: 1px solid #ffcaca;
}

@media (max-width: 980px) {
    .hero-with-photo {
        min-height: auto;
    }
    .cards-grid-images {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-row-image {
        grid-template-columns: 1fr;
    }
    .service-row-image > img {
        width: 100%;
        height: 260px;
    }
}

@media (max-width: 640px) {
    .cards-grid-images {
        grid-template-columns: 1fr;
    }
    .hero-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.68));
    }
}
