/* ================================================================
   Design Inspiration Page — Light Theme
   ================================================================ */

/* ── Hero ───────────────────────────────────────────────────────── */
.di-hero {
    position: relative;
    min-height: 520px;
    padding: 130px 0 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.di-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.di-hero__bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}
@keyframes diHeroPan {
    from { transform: scale(1.04) translateY(0); }
    to   { transform: scale(1.04) translateY(-2%); }
}
.di-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(107,22,39,0.55) 0%, rgba(30,6,13,0.60) 100%),
        linear-gradient(180deg,
            rgba(11,2,5,0.30)  0%,
            rgba(11,2,5,0.10) 38%,
            rgba(11,2,5,0.45) 72%,
            rgba(11,2,5,0.85) 100%);
}

.di-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 860px;
    width: 100%;
}

.di-hero__eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #c9a96e;
    margin: 0 0 20px;
}

.di-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    color: #f5ede0;
    letter-spacing: 0.04em;
    white-space: nowrap;
    margin: 0 0 20px;
}
.di-hero__title em {
    font-style: italic;
    color: #c9a96e;
}

.di-hero__sub {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 300;
    color: rgba(245,237,224,0.60);
    letter-spacing: 0.05em;
    line-height: 1.8;
    margin: 0 auto 28px;
    max-width: 480px;
}

/* ── Intro ──────────────────────────────────────────────────────── */
.di-intro {
    background: #faf8f5;
    padding: 60px 24px;
    border-bottom: 1px solid rgba(139,26,47,0.08);
}
.di-intro__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.di-intro__rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.di-intro__rule span:not(.di-intro__rule-gem) {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,26,47,0.20), transparent);
}
.di-intro__rule-gem {
    color: #c9a96e;
    font-size: 7px;
    letter-spacing: 4px;
}
.di-intro__text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 400;
    font-style: italic;
    color: rgba(60,30,38,0.60);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* ── Gallery section ────────────────────────────────────────────── */
.di-gallery {
    background: #faf8f5;
    padding-bottom: 100px;
    position: relative;
}
.di-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 320px;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,26,47,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.di-gallery > * { position: relative; z-index: 1; }

/* Sticky tab bar */
.di-tabs {
    position: sticky;
    top: 52px;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139,26,47,0.10);
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.di-tabs::-webkit-scrollbar { display: none; }

.di-tab {
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(60,30,38,0.40);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 18px 22px 16px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.di-tab:hover { color: rgba(60,30,38,0.70); }
.di-tab--active {
    color: #8b1a2f;
    border-bottom-color: #8b1a2f;
}
.di-tab__count {
    font-size: 9px;
    font-weight: 400;
    color: rgba(139,26,47,0.35);
    background: rgba(139,26,47,0.06);
    border-radius: 10px;
    padding: 2px 7px;
    letter-spacing: 0;
}
.di-tab--active .di-tab__count {
    background: rgba(139,26,47,0.10);
    color: rgba(139,26,47,0.70);
}

/* Grids */
.di-grid {
    display: none;
    padding: 56px 64px 0;
    max-width: 1440px;
    margin: 0 auto;
    columns: 4;
    column-gap: 20px;
}
.di-grid--active { display: block; }

/* Item tiles */
.di-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #ede8e2;
    border-radius: 2px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.di-item:hover {
    transform: scale(1.015);
    z-index: 1;
    box-shadow: 0 8px 28px rgba(60,30,38,0.14);
}

.di-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter 0.35s;
}
.di-item:hover img { filter: brightness(0.80); }

.di-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: rgba(11,2,5,0.15);
}
.di-item:hover .di-item__overlay { opacity: 1; }
.di-item__overlay .fas {
    color: #fff;
    font-size: 18px;
}
.di-item__cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a96e;
}

/* ── Lightbox ───────────────────────────────────────────────────── */
.di-lb {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(7,1,3,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
}
.di-lb[hidden] { display: none; }

.di-lb__frame {
    position: relative;
    max-width: 1000px;
    max-height: calc(100vh - 120px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.di-lb__img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    display: block;
    border: 1px solid rgba(201,169,110,0.10);
}
.di-lb__caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(201,169,110,0.55);
    margin: 0;
}

.di-lb__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    z-index: 9001;
}
.di-lb__close:hover { border-color: #c9a96e; color: #c9a96e; }

.di-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.50);
    font-size: 18px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    z-index: 9001;
    border-radius: 2px;
}
.di-lb__nav:hover { border-color: #c9a96e; color: #c9a96e; background: rgba(201,169,110,0.06); }
.di-lb__nav--prev { left: 12px; }
.di-lb__nav--next { right: 12px; }

.di-lb__counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.24em;
    color: rgba(255,255,255,0.25);
}

/* ── CTA Band ───────────────────────────────────────────────────── */
.di-cta {
    background: #8b1a2f;
    padding: 88px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.di-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.di-cta__inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.di-cta__eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(201,169,110,0.80);
    margin: 0 0 16px;
}
.di-cta__heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 400;
    color: #f5ede0;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin: 0 0 16px;
}
.di-cta__sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(245,237,224,0.60);
    letter-spacing: 0.05em;
    line-height: 1.8;
    margin: 0 0 36px;
}
.di-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    text-decoration: none;
    color: #8b1a2f;
    background: #f5ede0;
    border: 1px solid #f5ede0;
    padding: 15px 36px;
    border-radius: 2px;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.di-cta__btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .di-grid { columns: 3; }
}
@media (max-width: 1100px) {
    .di-grid { columns: 3; column-gap: 16px; padding: 40px 32px 0; }
}
@media (max-width: 768px) {
    .di-hero          { min-height: 380px; padding: 100px 0 82px; }
    .di-hero__content { padding: 0 24px; }
    .di-grid          { columns: 2; column-gap: 12px; padding: 32px 20px 0; }
    .di-item          { margin-bottom: 12px; }
    .di-tabs          { top: 44px; padding: 0 12px; }
    .di-tab           { padding: 16px 14px 14px; font-size: 9.5px; }
    .di-lb__nav--prev { left: 4px; }
    .di-lb__nav--next { right: 4px; }
}
@media (max-width: 480px) {
    .di-hero          { min-height: 340px; padding: 88px 0 72px; }
    .di-hero__content { padding: 0 20px; }
    .di-hero__title   { white-space: normal; }
    .di-grid          { columns: 2; column-gap: 8px; padding: 24px 14px 0; }
    .di-item          { margin-bottom: 8px; }
    .di-lb__nav       { width: 36px; height: 36px; font-size: 14px; }
}
@media (max-width: 360px) {
    .di-grid { columns: 1; }
}
