/* ============================================================
   JB Renovations & Landscaping — Homepage
   Design tokens: cream/paper base, deep-timber ink, cedar orange
   Display face: Playfair Display (headings) / Poppins (body, UI)
   ============================================================ */

:root {
    --paper:        #fffaf3;
    --cream:        #f7f2e7;
    --ink:          #241611;
    --ink-soft:     #4a352a;
    --ink-muted:    #7d6a5c;
    --orange:       #d98a3d;
    --orange-deep:  #b96a28;
    --orange-pale:  #f3ddbc;
    --gold-line:    #e6d3ae;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jb-home * { box-sizing: border-box; }

.jb-home {
    font-family: var(--font-body);
    color: var(--ink-soft);
    overflow-x: hidden;
}

.jb-home .wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.jb-home h1, .jb-home h2, .jb-home h3 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0;
}

.jb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 14px;
}
.jb-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--orange);
    display: inline-block;
}

.jb-section-head {
    max-width: 640px;
    margin-bottom: 52px;
}
.jb-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.jb-section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.jb-section-head p { margin-top: 16px; font-size: 1.02rem; color: var(--ink-muted); line-height: 1.7; }

.jb-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.jb-btn-solid {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 6px 0 var(--orange-deep);
}
.jb-btn-solid:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-deep); }

.jb-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
}
.jb-btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.jb-btn-ink {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    padding: 12px 24px;
}
.jb-btn-ink:hover { background: var(--ink); color: #fff; }

.jb-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--orange-deep);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: gap 0.2s ease, border-color 0.2s ease;
}
.jb-link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.jb-link-arrow:hover { gap: 10px; border-color: var(--orange-deep); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.jb-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.jb-reveal.in-view { opacity: 1; transform: translateY(0); }
.jb-reveal.d1 { transition-delay: 0.08s; }
.jb-reveal.d2 { transition-delay: 0.16s; }
.jb-reveal.d3 { transition-delay: 0.24s; }
.jb-reveal.d4 { transition-delay: 0.32s; }
.jb-reveal.d5 { transition-delay: 0.4s; }
.jb-reveal.d6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .jb-reveal { opacity: 1; transform: none; transition: none; }
    .jb-hero-slide { transition: opacity 0.3s linear !important; }
    .jb-hero-slide .jb-slide-bg { animation: none !important; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.jb-hero {
    position: relative;
    height: 86vh;
    min-height: 560px;
    max-height: 820px;
    overflow: hidden;
    background: var(--ink);
}

.jb-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease;
    z-index: 1;
}
.jb-hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.jb-slide-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    animation: jb-kenburns 10s ease-in-out forwards;
}
@keyframes jb-kenburns {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}

.jb-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24,15,10,0.82) 0%, rgba(24,15,10,0.55) 48%, rgba(24,15,10,0.25) 100%);
}

.jb-hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.jb-hero-content { max-width: 620px; color: #fff; }

.jb-hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--orange-pale);
    background: rgba(217,138,61,0.18);
    border: 1px solid rgba(217,138,61,0.5);
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
    opacity: 0;
    animation: jb-fade-up 0.8s ease 0.2s forwards;
}

.jb-hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    animation: jb-fade-up 0.8s ease 0.35s forwards;
}

.jb-hero-content p {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.86);
    margin-bottom: 34px;
    opacity: 0;
    animation: jb-fade-up 0.8s ease 0.5s forwards;
}

.jb-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: jb-fade-up 0.8s ease 0.65s forwards;
}

@keyframes jb-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jb-hero-dots {
    position: absolute;
    left: 40px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 12px;
}
.jb-hero-dots button {
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
}
.jb-hero-dots button.active { background: var(--orange); }

.jb-hero-count {
    position: absolute;
    right: 40px;
    bottom: 32px;
    z-index: 4;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.jb-hero-count strong { color: #fff; font-size: 1.2rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.jb-about {
    background: var(--paper);
    padding: 110px 0;
}

.jb-about-grid {
    display: grid;
    grid-template-columns: 0.92fr 1fr;
    gap: 70px;
    align-items: center;
}

.jb-about-media {
    position: relative;
}
.jb-about-media .img-main {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 30px 60px -20px rgba(36,22,17,0.35);
}
.jb-about-media .img-float {
    position: absolute;
    width: 54%;
    aspect-ratio: 5/4;
    object-fit: cover;
    border-radius: 10px;
    right: -8%;
    bottom: -10%;
    border: 6px solid var(--paper);
    box-shadow: 0 20px 40px -14px rgba(36,22,17,0.4);
}
.jb-about-badge {
    position: absolute;
    left: -6%;
    top: 8%;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    text-align: center;
    box-shadow: 0 16px 30px -10px rgba(36,22,17,0.5);
}
.jb-about-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.1rem;
    color: var(--orange);
    line-height: 1;
}
.jb-about-badge span {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.jb-about-body p { font-size: 1.02rem; line-height: 1.75; margin: 18px 0 30px; color: var(--ink-muted); }

.jb-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
}
.jb-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: var(--ink);
    font-size: 0.98rem;
}
.jb-checklist svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange-deep);
}

/* ============================================================
   SERVICES
   ============================================================ */
.jb-services {
    background: var(--cream);
    padding: 110px 0;
}

.jb-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.jb-service-card {
    background: var(--paper);
    border-radius: 12px;
    padding: 38px 30px;
    border: 1px solid var(--gold-line);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.jb-service-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 0;
    background: var(--orange);
    transition: height 0.3s ease;
}
.jb-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px -20px rgba(36,22,17,0.25);
    border-color: transparent;
}
.jb-service-card:hover::before { height: 100%; }

.jb-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--orange-pale);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: background 0.3s ease, color 0.3s ease;
}
.jb-service-card:hover .jb-service-icon { background: var(--orange); color: #fff; }
.jb-service-icon svg { width: 26px; height: 26px; }

.jb-service-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.jb-service-card p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-muted); margin-bottom: 18px; }

/* ============================================================
   CTA BAND (blueprint pattern signature)
   ============================================================ */
.jb-cta {
    position: relative;
    background: var(--ink);
    padding: 80px 0;
    overflow: hidden;
}
.jb-cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(217,138,61,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217,138,61,0.14) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 20% 50%, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 20% 50%, black 0%, transparent 70%);
}
.jb-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.jb-cta-text h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 560px; }
.jb-cta-text p { color: rgba(255,255,255,0.72); margin-top: 12px; font-size: 1.02rem; max-width: 520px; }
.jb-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.jb-cta-actions .jb-btn-outline svg { width: 18px; height: 18px; }

/* ============================================================
   COUNTERS
   ============================================================ */
.jb-counters {
    background: var(--paper);
    padding: 90px 0;
    border-bottom: 1px solid var(--gold-line);
}
.jb-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.jb-counter-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    color: var(--orange-deep);
}
.jb-counter-icon svg { width: 100%; height: 100%; }
.jb-counter-num {
    font-family: var(--font-display);
    font-size: 2.9rem;
    color: var(--ink);
    line-height: 1;
}
.jb-counter-num .suffix { color: var(--orange); }
.jb-counter-label {
    margin-top: 10px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
}

/* ============================================================
   RECENT WORKS
   ============================================================ */
.jb-works {
    background: var(--cream);
    padding: 110px 0;
}
.jb-works-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.jb-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.jb-filter-tabs button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    background: transparent;
    border: 1.5px solid var(--gold-line);
    color: var(--ink-muted);
    padding: 9px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.jb-filter-tabs button.active,
.jb-filter-tabs button:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.jb-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.jb-work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3.2;
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.jb-work-card.hidden-item { display: none; }
.jb-work-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.jb-work-card:hover img { transform: scale(1.08); }
.jb-work-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(36,22,17,0) 40%, rgba(24,15,10,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.jb-work-cat {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-pale);
    margin-bottom: 6px;
    font-weight: 700;
}
.jb-work-overlay h3 { color: #fff; font-size: 1.2rem; }
.jb-work-view {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.jb-work-card:hover .jb-work-view { opacity: 1; transform: translateY(0); }
.jb-work-view svg { width: 18px; height: 18px; color: #fff; }

.jb-works-more { text-align: center; margin-top: 46px; }

/* ============================================================
   BLOG
   ============================================================ */
.jb-blog {
    background: var(--paper);
    padding: 110px 0;
}
.jb-blog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.jb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.jb-blog-card {
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jb-blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(36,22,17,0.3); }
.jb-blog-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.jb-blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.jb-blog-card:hover .jb-blog-media img { transform: scale(1.07); }
.jb-blog-date {
    position: absolute;
    left: 16px; top: 16px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}
.jb-blog-date .day { display: block; font-size: 1.05rem; }
.jb-blog-body { padding: 26px 24px 28px; }
.jb-blog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 10px;
    display: block;
}
.jb-blog-body h3 { font-size: 1.18rem; margin-bottom: 12px; line-height: 1.35; }
.jb-blog-body p { font-size: 0.93rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 18px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.jb-testimonials {
    background: var(--ink);
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.jb-testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(217,138,61,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(217,138,61,0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 30%, black 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 80% 30%, black 0%, transparent 65%);
}
.jb-testimonials .jb-section-head h2 { color: #fff; }
.jb-testimonials .jb-section-head p { color: rgba(255,255,255,0.65); }
.jb-testimonials .jb-eyebrow { color: var(--orange); }

.jb-t-wrap { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; }
.jb-t-quote-icon { width: 44px; height: 44px; color: var(--orange); margin: 0 auto 22px; }
.jb-t-track { position: relative; min-height: 210px; }
.jb-t-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.jb-t-slide.active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }
.jb-t-slide p.quote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 26px;
}
.jb-t-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; }
.jb-t-stars svg { width: 18px; height: 18px; color: var(--orange); }
.jb-t-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.jb-t-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.jb-t-person strong { display: block; color: #fff; font-size: 0.98rem; }
.jb-t-person span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.jb-t-nav { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.jb-t-nav button {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.jb-t-nav button:hover { background: var(--orange); border-color: var(--orange); }
.jb-t-nav svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .jb-services-grid, .jb-works-grid, .jb-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .jb-about-grid { grid-template-columns: 1fr; }
    .jb-about-media { max-width: 460px; margin: 0 auto; }
    .jb-counters-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

@media (max-width: 720px) {
    .jb-home .wrap { padding: 0 24px; }
    .jb-hero { height: auto; min-height: 640px; padding: 140px 0 100px; }
    .jb-hero-dots, .jb-hero-count { display: none; }
    .jb-services-grid, .jb-works-grid, .jb-blog-grid { grid-template-columns: 1fr; }
    .jb-checklist { grid-template-columns: 1fr; }
    .jb-cta-inner { flex-direction: column; align-items: flex-start; }
    .jb-about, .jb-services, .jb-works, .jb-blog, .jb-testimonials, .jb-counters { padding: 70px 0; }
    .jb-about-badge { position: static; margin-top: -40px; margin-left: 16px; display: inline-block; }
    .jb-about-media .img-float { display: none; }
    .jb-t-slide p.quote { font-size: 1.15rem; }
    .jb-works-head, .jb-blog-head { flex-direction: column; align-items: flex-start; }
}
