/* =========================================================
   E-Brochures — aligned with kbrnp.in design system
   ========================================================= */

/* ── Hero ── */
.eb-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.25rem 4rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.eb-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.32) 50%, rgba(0,0,0,.5) 100%);
}
.eb-hero__inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.eb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: var(--lime-pop, #BFFF58);
    border: 1px solid rgba(255,255,255,.2);
    padding: .4rem 1rem;
    border-radius: 9999px;
    font-size: .78rem;
    font-family: var(--font-mono, 'DM Mono', monospace);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}
.eb-hero h1 {
    color: #fff;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}
.eb-hero p {
    color: rgba(255,255,255,.85);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    max-width: 42rem;
    margin: 0 auto;
}

/* ── Intro ── */
.eb-intro {
    background: #fff;
    padding: 5rem 1.25rem 4rem;
    text-align: center;
}
.eb-intro__inner { max-width: 42rem; margin: 0 auto; }
.eb-intro__tag {
    display: inline-block;
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--peacock-teal, #007A73);
    margin-bottom: .6rem;
}
.eb-intro h2 {
    color: var(--soft-charcoal, #1A1A1A);
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.eb-intro p {
    color: var(--muted-gray, #6E6E6E);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Gallery grid ── */
.eb-gallery {
    background: #fff;
    padding: 0 1.25rem 5rem;
}
.eb-gallery__inner {
    max-width: 1216px;
    margin: 0 auto;
}
.eb-bgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── Brochure cards ── */
.eb-bcard {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: box-shadow .3s ease, transform .3s ease;
    position: relative;
}
.eb-bcard:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
    transform: translateY(-5px);
}
.eb-bcard img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.eb-bcard:hover img { transform: scale(1.05); }

/* Hover overlay with eye icon */
.eb-bcard__overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(31,77,58,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: inherit;
}
.eb-bcard:hover .eb-bcard__overlay { opacity: 1; }

.eb-bcard__eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
}
.eb-bcard:hover .eb-bcard__eye {
    background: rgba(255,255,255,.28);
    transform: scale(1.08);
}

/* ── Lightbox modal ── */
.eb-bmodal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1000;
    background: rgba(0,0,0,.88);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: eb-fadein .25s ease;
}
.eb-bmodal.open { display: flex; }
@keyframes eb-fadein { from { opacity: 0; } to { opacity: 1; } }

.eb-bmodal__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 90vw;
}

.eb-bmodal__box img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: .75rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    display: block;
}

.eb-bmodal__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.eb-bmodal__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.4rem;
    border-radius: 9999px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    font-family: inherit;
}

.eb-bmodal__btn--download {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
}
.eb-bmodal__btn--download:hover {
    background: #1a3c34;
    border-color: #1a3c34;
}

.eb-bmodal__btn--close {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.eb-bmodal__btn--close:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}

/* ── Quote ── */
.eb-quote {
    background: var(--forest-green, #1F4D3A);
    color: #fff;
    padding: 2rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.eb-quote p,
.eb-quote h1,
.eb-quote h2,
.eb-quote h3 {
    color: #fff;
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 700;
    max-width: 64rem;
    margin: 0 auto;
    line-height: 1.65;
    text-align: center;
}
.eb-quote span,
.eb-quote strong { color: var(--lime-pop, #BFFF58); font-style: normal; font-weight: 700; }

/* ── Responsive ── */
/* Tablet (≤1023px / ≥768px): 3 per row */
@media (max-width: 1023px) {
    .eb-bgrid { grid-template-columns: repeat(3, 1fr); }
}
/* Mobile (<768px): 1 per row */
@media (max-width: 767px) {
    .eb-hero { min-height: 340px; padding: 5rem 1rem 3rem; }
    .eb-intro { padding: 3.5rem 1rem 2.5rem; }
    .eb-bgrid { grid-template-columns: 1fr; gap: 1.25rem; }
    .eb-gallery { padding: 0 1rem 3.5rem; }
}
@media (max-width: 479px) {
    .eb-hero { min-height: 260px; padding: 4.5rem 1rem 2.5rem; }
    .eb-intro { padding: 3rem 1rem 2rem; }
    .eb-intro h2 { font-size: 1.5rem; }
    .eb-quote { padding: 2rem 1rem; }
}

.eb-back-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: #1b3d2f;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}
.eb-back-top:hover {
    background: #2d6a4f;
    transform: translateY(-2px);
}
