/* ══════════════════════════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════════════════════════ */

:root {
    --ow-maroon:      #6b0e0e;
    --ow-maroon-dark: #520b0b;
    --ow-cream:       #f5f0ea;
    --ow-cream-mid:   #ede7df;
    --ow-border:      #d9d0c5;
    --ow-text:        #1a1a1a;
    --ow-muted:       #6b6560;
    --ow-radius:      6px;
    --ow-gap:         12px;
    --ow-transition:  0.28s cubic-bezier(.4, 0, .2, 1);
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO BANNER
   ══════════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 10, 0.35);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.page-hero__title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.1;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero__breadcrumb a:hover { color: #fff; }

.page-hero__breadcrumb-sep { opacity: 0.5; }

/* ══════════════════════════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════════════════════════ */

.our-work-intro { background: #fff; }

.our-work-intro__content {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work_sub_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.our-work-intro__content .section-subheading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ow-maroon);
}

.our-work-intro__content .section-heading {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
}

.our-work-intro__content .section-paragraph {
    max-width: 680px;
    margin: 0;
    padding-bottom: 60px;
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO SECTION
   ══════════════════════════════════════════════════════════════ */

.portfolio-section {
    background: #fff;
    padding: 0 0 80px;
}

/* ── TAB NAV ────────────────────────────────────────────────── */

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 2px solid var(--ow-border);
    margin-bottom: 40px;
    background: var(--ow-cream);
    gap: 0;
}

.tab-btn {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 18px 28px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-right: 1px solid var(--ow-border);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: var(--ow-text);
    transition: background var(--ow-transition), color var(--ow-transition);
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.tab-btn:first-child { border-left: none; }
.tab-btn:last-child  { border-right: none; }

.tab-btn:hover:not(.active) {
    background: var(--ow-cream-mid);
    color: var(--ow-maroon);
}

.tab-btn.active {
    background: var(--ow-maroon);
    color: #fff;
    border-bottom-color: var(--ow-maroon);
}

/* ── PANELS ─────────────────────────────────────────────────── */

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PHOTO GRID ─────────────────────────────────────────────── */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ow-gap);
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--ow-muted);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

/* ── GRID ITEM ──────────────────────────────────────────────── */

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--ow-radius);
    cursor: pointer;
    background: var(--ow-cream-mid);
    aspect-ratio: 4 / 3;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(.4, 0, .2, 1), filter 0.4s;
    filter: brightness(1);
}

.grid-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.82);
}

/* dark overlay on hover */
.grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(107, 14, 14, 0.18);
    opacity: 0;
    transition: opacity var(--ow-transition);
    pointer-events: none;
    z-index: 1;
}

.grid-item:hover::before { opacity: 1; }

/* zoom icon */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ow-transition), transform var(--ow-transition);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.zoom-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--ow-maroon);
}

.grid-item:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════ */

#ow-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#ow-lightbox.open {
    opacity: 1;
    visibility: visible;
}

/* backdrop */
.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 4, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

/* frame */
.lb-frame {
    position: relative;
    z-index: 1;
    width: min(94vw, 1080px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.93) translateY(18px);
    transition: transform 0.38s cubic-bezier(.34, 1.56, .64, 1);
}

#ow-lightbox.open .lb-frame {
    transform: scale(1) translateY(0);
}

/* main image wrapper */
.lb-img-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

#lb-img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    border-radius: var(--ow-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    object-fit: contain;
    transition: opacity 0.22s ease;
}

/* meta: caption + counter */
.lb-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
}

.lb-caption {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.lb-counter {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

/* thumbnail strip */
.lb-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lb-thumbs::-webkit-scrollbar { height: 4px; }
.lb-thumbs::-webkit-scrollbar-track { background: transparent; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px; }

.lb-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: opacity var(--ow-transition), border-color var(--ow-transition), transform var(--ow-transition);
}

.lb-thumb:hover   { opacity: 0.75; transform: translateY(-2px); }
.lb-thumb.active  { opacity: 1; border-color: var(--ow-maroon); }

/* close button */
.lb-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ow-transition), border-color var(--ow-transition);
    color: #fff;
}

.lb-close:hover {
    background: var(--ow-maroon);
    border-color: var(--ow-maroon);
}

.lb-close svg { width: 16px; height: 16px; }

/* prev / next arrows */
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ow-transition), border-color var(--ow-transition), transform 0.2s;
    z-index: 2;
    color: #fff;
}

.lb-arrow:hover {
    background: var(--ow-maroon);
    border-color: var(--ow-maroon);
    transform: translateY(-50%) scale(1.08);
}

.lb-arrow svg { width: 22px; height: 22px; }

.lb-arrow--prev { left: clamp(10px, 2vw, 44px); }
.lb-arrow--next { right: clamp(10px, 2vw, 44px); }

/* spinner */
.lb-spinner {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--ow-maroon);
    border-radius: 50%;
    animation: ow-spin 0.7s linear infinite;
    display: none;
    pointer-events: none;
}

.lb-spinner.visible { display: block; }

@keyframes ow-spin { to { transform: rotate(360deg); } }

.blog-section{
    margin-bottom: 50px;
}

/* ══════════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════════ */

.our-work-faq-section {
    width: 100%;
    background: #fff;
    padding: 64px 0 72px;
    border-top: 1px solid #f0ece6;
}

.our-work-faq-section__label {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #95a5a5;
    margin-bottom: 8px;
}

.our-work-faq-section__title {
    font-family: "Outfit", sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #000;
    margin-bottom: 36px;
    line-height: 1.2;
}

.our-work-faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 860px;
}

.our-work-faq-item { border-bottom: 1px solid #e8e2d8; }
.our-work-faq-item:first-child { border-top: 1px solid #e8e2d8; }

.our-work-faq-item__btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
}

.our-work-faq-item__question {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

.our-work-faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ow-maroon);
    transition: background 0.2s, border-color 0.2s;
    font-size: 18px;
    line-height: 1;
}

.our-work-faq-item.open .our-work-faq-item__icon {
    background: var(--ow-maroon);
    border-color: var(--ow-maroon);
    color: #fff;
}

.our-work-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.our-work-faq-item.open .our-work-faq-item__answer { max-height: 400px; }

.our-work-faq-item__answer p {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    color: #3d3d3d;
    line-height: 1.75;
    padding-bottom: 18px;
    margin: 0;
}

/* Hide items initially */
   .grid-item.is-hidden {
      display: none;
   }

   /* Optional: styling for the load more button */
   .load-more-container {
      text-align: center;
      margin-top: 30px;
   }

   .btn-primary {
      padding: 12px 30px;
      background: #333;
      color: #fff;
      border: none;
      cursor: pointer;
      transition: background 0.3s;
   }

   .btn-primary:hover {
      background: #555;
   }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .tab-btn { padding: 16px 20px; font-size: 11px; }
}

@media (max-width: 900px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-btn    { padding: 14px 16px; }
    .lb-thumbs  { display: none; }
}

@media (max-width: 640px) {
    .photo-grid { grid-template-columns: 1fr; }
    .tab-nav    { flex-wrap: wrap; }
    .tab-btn    {
        font-size: 10.5px;
        padding: 12px 14px;
        letter-spacing: 0.06em;
        flex: 1 1 auto;
        min-width: 0;
    }

    .work_sub_heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-hero { min-height: 200px; }
    .page-hero__content { padding: 32px 0; }
    .our-work-faq-section { padding: 36px 0 48px; }
    .our-work-faq-section__title { font-size: 22px; margin-bottom: 24px; }
    .our-work-faq-item__question { font-size: 14px; }
    .our-work-faq-item__answer p { font-size: 14px; }
    .our-work-faq-item__btn { padding: 14px 0; }

    .lb-arrow--prev { left: 8px; }
    .lb-arrow--next { right: 8px; }
    .lb-arrow { width: 40px; height: 40px; }
}