/* JB Garage — lightweight 2D vector site */

:root {
    --jb-bg: #f7f1ea;
    --jb-bg-tint: #efe4d8;
    --jb-paper: #ffffff;
    --jb-ink: #1b1410;
    --jb-muted: #5c4e46;
    --jb-line: #e4d5c8;
    --jb-green: #0f3d32;
    --jb-green-mid: #14805e;
    --jb-accent: #e11d1d;
    --jb-accent-hover: #c31313;
    --jb-accent-soft: #fde8e6;
    --jb-gold: #b7791f;
    --jb-gold-soft: #f8ead0;
    --jb-navy: #2b4c7e;
    --jb-navy-soft: #e4ecf6;
    --jb-green-soft: #dceee6;
    --jb-whatsapp: #1fa855;
    --jb-whatsapp-hover: #188c46;
    --jb-radius: 20px;
    --jb-radius-sm: 14px;
    --jb-shadow: 0 10px 28px rgba(27, 20, 16, 0.08);
    --jb-container: 1140px;
    --jb-header: 84px;
    --jb-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --jb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--jb-font);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--jb-ink);
    background: var(--jb-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--jb-accent);
    outline-offset: 3px;
}

.jb-skip {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 2000;
    background: var(--jb-accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

.jb-skip:focus {
    top: 12px;
}

.jb-container {
    width: min(var(--jb-container), calc(100% - 32px));
    margin-inline: auto;
}

.jb-section {
    padding: 72px 0;
    scroll-margin-top: 96px;
}

.jb-section--tint {
    background: var(--jb-bg-tint);
}

.jb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jb-green-mid);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.jb-kicker--on-dark {
    color: #f0c14b;
}

.jb-title,
h1,
h2 {
    font-family: var(--jb-font);
    letter-spacing: -0.03em;
    color: var(--jb-ink);
}

.jb-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.18;
    margin: 0 0 12px;
}

.jb-lead {
    margin: 0;
    color: var(--jb-muted);
    max-width: 62ch;
}

.jb-center {
    text-align: center;
}

.jb-center .jb-kicker,
.jb-center .jb-lead {
    margin-inline: auto;
}

.jb-center .jb-kicker {
    justify-content: center;
}

.jb-panel {
    background: var(--jb-paper);
    border: 1px solid var(--jb-line);
    border-radius: var(--jb-radius);
    padding: 28px 26px;
    box-shadow: var(--jb-shadow);
}

.jb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s var(--jb-ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jb-btn:hover {
    transform: translateY(-1px);
}

.jb-btn--primary {
    background: var(--jb-accent);
    color: #fff;
}

.jb-btn--primary:hover {
    background: var(--jb-accent-hover);
    color: #fff;
}

.jb-btn--ghost {
    background: #fff;
    color: var(--jb-ink);
    border-color: #cbb8aa;
}

.jb-btn--ghost:hover {
    background: #fff8f3;
    color: var(--jb-ink);
}

.jb-btn--light {
    background: #fff;
    color: var(--jb-ink);
}

.jb-btn--whatsapp {
    background: var(--jb-whatsapp);
    color: #fff;
}

.jb-btn--whatsapp:hover {
    background: var(--jb-whatsapp-hover);
    color: #fff;
}

.jb-btn--dark {
    background: var(--jb-green);
    color: #fff;
}

.jb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--jb-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 61, 50, 0.18);
}

.jb-topbar {
    display: none;
    background: #0a2c24;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.jb-topbar__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    min-height: 36px;
}

.jb-topbar a:hover {
    color: #fff;
}

.jb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--jb-header);
    gap: 16px;
}

.jb-nav {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2px;
}

.jb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.jb-logo img {
    height: 52px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 12px;
}

.jb-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.jb-logo__text strong {
    color: #fff;
    font-size: 1.12rem;
    letter-spacing: 0.04em;
}

.jb-logo__text span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jb-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 12px;
    position: relative;
    white-space: nowrap;
}

.jb-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: #f0c14b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--jb-ease);
}

.jb-nav a:hover,
.jb-nav a.is-active {
    color: #fff;
}

.jb-nav a:hover::after,
.jb-nav a.is-active::after {
    transform: scaleX(1);
}

.jb-header__cta {
    display: none;
}

.jb-menu-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.jb-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    transition: 0.2s ease;
}

.jb-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.jb-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.jb-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.jb-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}

.jb-drawer.is-open {
    pointer-events: auto;
}

.jb-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 20, 16, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.jb-drawer.is-open .jb-drawer__overlay {
    opacity: 1;
}

.jb-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 100%);
    height: 100%;
    background: #fff;
    color: var(--jb-ink);
    padding: 20px 22px 32px;
    transform: translateX(100%);
    transition: transform 0.28s var(--jb-ease);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.jb-drawer__close {
    align-self: flex-end;
    width: auto;
    min-width: 88px;
    margin-bottom: 12px;
}

.jb-drawer.is-open .jb-drawer__panel {
    transform: none;
}

.jb-drawer__panel a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--jb-line);
    font-weight: 700;
    white-space: normal;
}

.jb-drawer__actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

body.jb-nav-open {
    overflow: hidden;
}

body.jb-nav-open .jb-dock {
    display: none;
}

@media (max-width: 767px) {
    .jb-drawer__panel {
        left: 0;
        right: 0;
        width: auto;
    }
}

.jb-hero {
    padding: 36px 0 20px;
}

.jb-hero__grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.jb-hero__copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    line-height: 1.12;
}

.jb-hero__copy > p {
    margin: 0 0 22px;
    color: var(--jb-muted);
    font-size: 1.05rem;
}

.jb-hero__art {
    background: #f3e7dc;
    border: 1px solid var(--jb-line);
    border-radius: 28px;
    overflow: hidden;
}

.jb-hero__art img {
    width: 100%;
    height: auto;
}

.jb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.jb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff4ee;
    border: 1px solid var(--jb-line);
    color: var(--jb-ink);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.jb-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.jb-stat {
    padding: 18px 14px;
    border-radius: 16px;
    background: var(--jb-paper);
    border: 1px solid var(--jb-line);
    text-align: center;
}

.jb-stat i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--jb-accent-soft);
    color: var(--jb-accent);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.jb-stat strong {
    display: block;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--jb-ink);
    line-height: 1.1;
}

.jb-stat span {
    color: var(--jb-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.jb-services__grid,
.jb-why__grid,
.jb-steps,
.jb-reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
}

.jb-card,
.jb-step {
    background: var(--jb-paper);
    border: 1px solid var(--jb-line);
    border-radius: var(--jb-radius);
    padding: 0 0 22px;
    overflow: hidden;
    box-shadow: var(--jb-shadow);
}

.jb-why-card,
.jb-review,
.jb-info-card,
.jb-form {
    background: var(--jb-paper);
    border: 1px solid var(--jb-line);
    border-radius: var(--jb-radius);
    padding: 24px;
    box-shadow: var(--jb-shadow);
}

.jb-vec,
.jb-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--jb-accent-soft);
    color: var(--jb-accent);
    margin-bottom: 16px;
}

.jb-vec svg {
    width: 32px;
    height: 32px;
}

.jb-icon {
    font-size: 1.4rem;
}

.jb-vec--gold,
.jb-icon--gold {
    background: var(--jb-gold-soft);
    color: var(--jb-gold);
}

.jb-vec--navy,
.jb-icon--navy {
    background: var(--jb-navy-soft);
    color: var(--jb-navy);
}

.jb-vec--green,
.jb-icon--green {
    background: var(--jb-green-soft);
    color: var(--jb-green-mid);
}

figure {
    margin: 0;
}

.jb-card h3,
.jb-why-card h3,
.jb-step h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.jb-card p,
.jb-why-card p,
.jb-step p {
    margin: 0;
    color: var(--jb-muted);
}

.jb-split {
    display: grid;
    gap: 28px;
    align-items: center;
}

.jb-photo {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--jb-line);
}

.jb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 240px;
}

.jb-checklist {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
}

.jb-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--jb-ink);
}

.jb-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--jb-accent);
    color: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    font-size: 12px;
    margin-top: 2px;
}

.jb-card__art,
.jb-step__art {
    background: #efe4d8;
}

.jb-card__art img,
.jb-step__art img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.jb-card__body,
.jb-step__body {
    padding: 16px 22px 2px;
}

.jb-step span {
    display: inline-block;
    font-weight: 800;
    color: var(--jb-accent);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.jb-review__top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.jb-review__top img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.jb-review__top h3 {
    margin: 0;
    font-size: 1rem;
}

.jb-review__top p {
    margin: 0;
    color: var(--jb-muted);
    font-size: 13px;
}

.jb-stars {
    color: #d69e2e;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.jb-review > p {
    margin: 0;
    color: var(--jb-muted);
}

.jb-cta {
    background: var(--jb-green);
    color: #fff;
}

.jb-cta .jb-title,
.jb-cta .jb-lead {
    color: #fff;
}

.jb-cta .jb-lead {
    opacity: 0.92;
}

.jb-contact-grid {
    display: grid;
    gap: 18px;
}

.jb-info {
    display: grid;
    gap: 12px;
}

.jb-info a,
.jb-info p {
    margin: 0;
}

.jb-info a:not(.jb-btn) {
    color: var(--jb-green);
    font-weight: 700;
}

.jb-info-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: start;
}

.jb-info-card .jb-icon {
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
}

.jb-info-card h3 {
    margin: 0 0 6px;
    font-size: 0.86rem;
    color: var(--jb-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.jb-map {
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--jb-line);
    background: #fff;
}

.jb-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.jb-page-hero {
    background: var(--jb-green);
    color: #fff;
    padding: 48px 0 36px;
}

.jb-page-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: #fff;
}

.jb-page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.jb-page-hero .jb-kicker {
    color: #f0c14b;
}

.jb-form-wrap {
    display: grid;
    gap: 24px;
}

.jb-form-grid {
    display: grid;
    gap: 16px;
}

.jb-field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--jb-ink);
}

.jb-field input,
.jb-field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d7c6b8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: var(--jb-ink);
    font-size: 1rem;
}

.jb-field textarea {
    min-height: 140px;
    resize: vertical;
}

.jb-field input:focus,
.jb-field textarea:focus {
    outline: 2px solid rgba(225, 29, 29, 0.18);
    border-color: var(--jb-accent);
}

.jb-form .is-invalid {
    border-color: #e11d1d;
}

.jb-form .invalid-feedback {
    display: block;
    color: #b42318;
    font-size: 0.85rem;
    margin-top: 6px;
}

.jb-form [name="submission_msg"] {
    min-height: 24px;
    margin: 8px 0 0;
    font-weight: 700;
}

.text-success {
    color: #0f6a4a;
}

.text-danger {
    color: #b42318;
}

.jb-footer {
    background: #10221c;
    color: rgba(255, 255, 255, 0.88);
    padding: 56px 0 28px;
}

.jb-footer-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 10px;
}

.jb-footer-line i {
    color: #f0c14b;
    margin-top: 4px;
    width: 16px;
}

.jb-footer__grid {
    display: grid;
    gap: 28px;
}

.jb-footer img {
    max-width: 180px;
    margin-bottom: 12px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 16px;
}

.jb-footer h3 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 1rem;
}

.jb-footer ul a i {
    color: #f0c14b;
    width: 16px;
    display: inline-block;
    margin-right: 4px;
}

.jb-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.jb-copy {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.jb-top {
    position: fixed;
    right: 22px;
    bottom: 168px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jb-accent);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.jb-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.jb-wa {
    position: fixed;
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--jb-whatsapp);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 34px;
    overflow: visible;
    box-shadow: 0 10px 24px rgba(31, 168, 85, 0.35);
}

.jb-wa:hover {
    color: #fff;
    background: var(--jb-whatsapp-hover);
}

.jb-wa__ping,
.jb-wa__ping--delay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--jb-whatsapp);
    animation: waPing 1.8s ease-out infinite;
    pointer-events: none;
}

.jb-wa__ping--delay {
    animation-delay: 0.7s;
}

@keyframes waPing {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.jb-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #10221c;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.jb-dock a {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.jb-dock a i {
    font-size: 16px;
}

.jb-dock a:nth-child(2) {
    background: var(--jb-accent);
}

body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.jb-reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: jbFade 0.55s var(--jb-ease) forwards;
}

@keyframes jbFade {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) {
    .jb-hero__grid,
    .jb-split,
    .jb-contact-grid,
    .jb-form-wrap {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .jb-services__grid,
    .jb-why__grid,
    .jb-reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jb-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .jb-trust {
        grid-template-columns: repeat(3, 1fr);
    }

    .jb-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .jb-form-grid .jb-field--full {
        grid-column: 1 / -1;
    }

    .jb-card__art img,
    .jb-step__art img {
        height: 200px;
    }
}

@media (min-width: 1024px) {
    :root {
        --jb-header: 80px;
    }

    .jb-topbar,
    .jb-nav,
    .jb-header__cta {
        display: flex;
    }

    .jb-menu-btn,
    .jb-dock {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .jb-top {
        bottom: 104px;
    }

    .jb-wa {
        bottom: 28px;
        right: 22px;
    }

    .jb-footer__grid {
        grid-template-columns: 1.2fr 1fr 0.8fr;
    }

    .jb-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .jb-why__grid,
    .jb-reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .jb-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .jb-trust {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 420px) {
    .jb-logo__text span {
        display: none;
    }

    .jb-hero__copy h1 {
        font-size: 1.85rem;
    }

    .jb-logo img {
        height: 42px;
    }

    .jb-container {
        width: min(var(--jb-container), calc(100% - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .jb-reveal {
        opacity: 1;
        transform: none;
    }
}
