@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════
   OAZA ADVERTISING — project.css
   Styles for individual project pages
   ═══════════════════════════════════════════════════════════════ */

/* ─── PROJECT HERO ─────────────────────────────────────────── */

.project-hero {
    padding: calc(var(--header-h, 72px) + 4rem) 2rem 4rem;
    background: var(--bg, #f9f6f0);
    border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.project-hero__split {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left: visual / logo */
.project-hero__visual {
    position: relative;
}

.project-hero__logo-placeholder {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero__logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2em;
}

/* Right: info */
.project-hero__back {
    margin-bottom: 1.5rem;
}

.project-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #888);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-hero__back-link:hover {
    color: var(--accent, #c12b23);
}

.project-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text, #1e1e1e);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.project-hero__tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-style: italic;
    color: var(--text-muted, #888);
    margin-bottom: 2rem;
}

.project-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--accent, #c12b23);
}

/* A Camponeza & STK.wear — hero aliniat cu .dem-wrap; chenar gri dreapta = marginea textului .dem-hero-story (UF: univers-fractal.html) */
@media (min-width: 901px) {
    html body.ac-camponeza-page .project-hero,
    html body.stk-wear-page .project-hero,
    html body.muse-bistro-page .project-hero,
    html body.no-fracking-page .project-hero,
    html body.uf-page .project-hero {
        padding-left: 0;
        padding-right: 0;
    }

    html body.ac-camponeza-page .project-hero__split,
    html body.stk-wear-page .project-hero__split,
    html body.muse-bistro-page .project-hero__split,
    html body.no-fracking-page .project-hero__split,
    html body.uf-page .project-hero__split {
        width: 100%;
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        padding-left: clamp(1rem, 4vw, 2rem);
        padding-right: clamp(1rem, 4vw, 2rem);
        box-sizing: border-box;
    }

    /* Univers Fractal: lățimea chenarului meta e setată în univers-fractal.html (aliniere dreaptă cu intro) */
    html body.ac-camponeza-page .project-hero__split .project-hero__info .project-hero__meta,
    html body.stk-wear-page .project-hero__split .project-hero__info .project-hero__meta,
    html body.muse-bistro-page .project-hero__split .project-hero__info .project-hero__meta,
    html body.no-fracking-page .project-hero__split .project-hero__info .project-hero__meta {
        width: calc(100% - 60px - 0.35rem) !important;
        max-width: calc(100% - 60px - 0.35rem) !important;
        box-sizing: border-box !important;
    }
}

.project-hero__meta-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.project-hero__meta-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #888);
    min-width: 70px;
}

.project-hero__meta-value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text, #1e1e1e);
}

.project-hero__desc {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.88rem, 1.4vw, 0.95rem);
    line-height: 1.75;
    color: var(--text, #1e1e1e);
    opacity: 0.82;
}

/* Hero — linia „Services Delivered” (Demmers, STK.wear, A Camponeza): stânga */
.project-hero .dem-services-inline {
    text-align: left;
}

/* ─── PROJECT SECTIONS ──────────────────────────────────────── */

.project-section {
    padding: 5rem 2rem;
    background: var(--bg, #f9f6f0);
}

.project-section--alt {
    background: #f2efe9;
}

.project-section__container {
    max-width: 1140px;
    margin: 0 auto;
}

.project-section__header {
    margin-bottom: 2.5rem;
}

.project-section__label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent, #c12b23);
    margin-bottom: 0.5rem;
}

.project-section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text, #1e1e1e);
    line-height: 1.3;
}

/* ─── GALLERY LAYOUTS ───────────────────────────────────────── */

.project-gallery {
    display: grid;
    gap: 1.25rem;
}

.project-gallery--3col {
    grid-template-columns: repeat(3, 1fr);
}

.project-gallery--2col {
    grid-template-columns: repeat(2, 1fr);
}

.project-gallery--wide {
    margin-top: 1.25rem;
}

.project-gallery__item {
    border-radius: 12px;
    overflow: hidden;
}

.project-gallery__item--wide {
    aspect-ratio: 16 / 6;
}

.project-gallery__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    border-radius: 12px;
}

.project-gallery__item--wide .project-gallery__placeholder {
    aspect-ratio: unset;
    height: 100%;
}

/* When real images replace placeholders */
.project-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* ─── REELS ─────────────────────────────────────────────────── */

.project-reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-reel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-reel__thumb {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-reel__thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.project-reel__play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-reel__thumb:hover .project-reel__play {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}

.project-reel__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text, #1e1e1e);
    text-align: center;
    line-height: 1.4;
}

/* ─── PROJECT NAVIGATION ────────────────────────────────────── */

.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    max-width: 1140px;
    margin: 0 auto;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.project-nav__all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #888);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-nav__all:hover {
    color: var(--accent, #c12b23);
}

.project-nav__next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #888);
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: right;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.project-nav__next:hover {
    color: var(--accent, #c12b23);
}

.project-nav__next-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text, #1e1e1e);
}

.project-nav__next svg {
    align-self: flex-end;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .project-hero__split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-hero__visual {
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .project-gallery--3col {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 600px) {
    .project-hero {
        padding-top: calc(var(--header-h, 72px) + 2.5rem);
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .project-section {
        padding: 3.5rem 1.25rem;
    }

    .project-gallery--3col {
        grid-template-columns: 1fr;
    }

    .project-gallery--2col {
        grid-template-columns: 1fr;
    }

    .project-reels {
        grid-template-columns: 1fr;
    }

    .project-reel__thumb {
        aspect-ratio: 16 / 9;
    }

    .project-hero__meta {
        padding: 1.25rem;
    }
}

/* ─── MOBILE / TABLET ONLY (≤900px) — desktop (>900px) neschimbat ───
   html body … are specificitate mai mare decât .project-hero__split { … !important }
   din paginile cu hero împărțit 30/70, astfel încât coloana unică să funcționeze. */
@media (max-width: 900px) {
    html body .project-hero__split {
        grid-template-columns: 1fr !important;
        gap: clamp(1.25rem, 4vw, 2.5rem) !important;
        align-items: center !important;
    }

    html body .project-hero__visual {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: min(340px, 90vw);
    }

    html body .project-hero__info {
        width: 100%;
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
    }

    html body .project-hero__title {
        white-space: normal;
    }

    html body .project-nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        padding: 2rem 1.25rem;
        justify-content: center;
    }

    html body .project-nav__all,
    html body .project-nav__next {
        justify-content: center;
        text-align: center;
    }

    html body .project-nav__next {
        align-items: center;
    }

    html body .project-nav__next svg {
        align-self: center;
    }

    html body .project-section__header {
        text-align: center;
    }

    /* Descrieri & copy — aliniere stânga, margini fluide (doar ≤900px) */
    html body .project-hero__desc {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
        max-width: min(40rem, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    html body .project-section p {
        text-align: left;
    }

    /* STK Wear / Univers Fractal: .dem-wrap rămâne 0 — padding-ul vine din .dem-section (inline); altfel s-ar dubla marginile */
    html body:not(.stk-wear-page):not(.uf-page):not(.muse-bistro-page):not(.no-fracking-page) .dem-wrap {
        padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    html body .dem-hero-story {
        text-align: left;
        text-align-last: auto;
        hyphens: none;
        -webkit-hyphens: none;
    }

    html body .dem-client-intro {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    html body .dem-entry__text {
        text-align: left;
        text-align-last: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    html body .ac-wa-narrative,
    html body .ac-wa-narrative p {
        text-align: left;
    }

    html body .dem-campaigns-header {
        text-align: center;
    }

    /* Linii servicii (ex. CAMPAIGN STRATEGY · …) — nowrap din pagini rupe marginile; centrat + wrap */
    html body .dem-featured-services,
    html body .dem-featured-services.dem-digital-services {
        white-space: normal !important;
        text-align: center;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-inline: 0;
        box-sizing: border-box;
        line-height: 1.65;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: none;
    }

    html body .dem-services-inline {
        white-space: normal !important;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
        line-height: 1.65;
        overflow-wrap: break-word;
        word-break: break-word;
        padding-inline: 0;
    }

    html body .dem-featured-title {
        white-space: normal;
        max-width: 100%;
        text-align: center;
        overflow-wrap: break-word;
    }

    html body .project-hero__meta {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    html body .project-hero__meta-value {
        overflow-wrap: break-word;
    }

    /* Grid-uri Instagram — o coloană, celule mai înalte, embed centrat (nu coloane subțiri asimetrice) */
    html body .dem-ig-embed-grid,
    html body .dem-ig-embed-grid--6 {
        grid-template-columns: 1fr !important;
        gap: 1.35rem;
        width: 100%;
        max-width: min(23rem, 100%);
        margin-inline: auto;
        justify-items: stretch;
    }

    html body .dem-ig-embed-item {
        min-width: 0;
        width: 100%;
    }

    html body .dem-ig-embed-frame {
        height: auto !important;
        min-height: 430px;
        max-width: 100%;
        box-sizing: border-box;
    }

    html body .dem-ig-embed-frame > iframe {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        width: 326px !important;
        height: 500px !important;
        transform: translate(-50%, -50%) scale(0.88) !important;
        transform-origin: center center !important;
    }

    html body .dem-ig-embed-grid--6 .dem-ig-embed-frame > iframe {
        height: 500px !important;
    }

    html body .dem-ig-embed-zoom {
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform-origin: center center !important;
        transform: translate(-50%, -50%) scale(0.88) !important;
    }

    html body .dem-ig-embed-grid--6 .dem-ig-embed-zoom {
        transform: translate(-50%, -50%) scale(0.88) !important;
    }

    /* A Camponeza — grid Facebook / Digital Continuity */
    html body .ac-dc-fb-grid,
    html body .ac-fb-embed-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        max-width: min(24rem, 100%);
        margin-inline: auto;
    }

    html body .ac-fb-embed-frame iframe {
        height: 440px !important;
    }

    /* STK Wear — aceleași reguli ca mai sus (inline din pagină avea prioritate pe înălțimi mici) */
    html body.stk-wear-page #stk-digital-expand .dem-ig-embed-grid.dem-ig-embed-grid--6,
    html body.stk-wear-page #stk-digital-expand .dem-ig-embed-grid {
        grid-template-columns: 1fr !important;
        max-width: min(23rem, 100%);
        margin-inline: auto;
        gap: 1.35rem;
    }

    html body.stk-wear-page #stk-digital-expand .dem-ig-embed-grid--6 .dem-ig-embed-frame {
        height: auto !important;
        min-height: 430px !important;
    }

    html body.stk-wear-page #stk-digital-expand .dem-ig-embed-grid--6 .dem-ig-embed-zoom {
        transform: translate(-50%, -50%) scale(0.88) !important;
        transform-origin: center center !important;
    }
}

@media (max-width: 600px) {
    html body .project-hero {
        padding-left: clamp(1rem, 4vw, 1.35rem);
        padding-right: clamp(1rem, 4vw, 1.35rem);
    }

    html body .project-nav {
        padding: 1.75rem clamp(1rem, 4vw, 1.35rem);
    }

    html body .project-section {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
        padding-left: clamp(1rem, 4vw, 1.35rem);
        padding-right: clamp(1rem, 4vw, 1.35rem);
    }

    body {
        overflow-x: hidden;
    }
}

/* Doar mobil — etichete embed Social: rând 1 = icon + Instagram/Facebook, rând 2 = Social Media Communication */
@media (max-width: 767px) {
    html body .dem-ig-label,
    html body #ac-digital-expand .ac-fb-label.dem-ig-label,
    html body #ac-event-expand .ac-fb-label.dem-ig-label {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.45rem !important;
    }

    html body .dem-ig-label__right {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }

    html body .dem-ig-label > span:first-of-type {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }

    /* Hero — titluri client ca Demmers (dimensiune); A Camponeza: line-height mai aerisit ca să nu se suprapună liniile */
    html body.stk-wear-page .project-hero__title,
    html body.muse-bistro-page .project-hero__title,
    html body.no-fracking-page .project-hero__title,
    html body.uf-page .project-hero__title {
        font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important;
        letter-spacing: 0.06em !important;
        line-height: 1.2;
    }
    html body.ac-camponeza-page .project-hero__title {
        font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important;
        letter-spacing: 0.06em !important;
        line-height: 1.38 !important;
    }

    /* A Camponeza hero — locație pe 2 rânduri, fără punct (desktop rămâne o linie cu · în a-camponeza.html) */
    html body.ac-camponeza-page .ac-profile-line1::after {
        content: none !important;
    }
    html body.ac-camponeza-page .ac-profile-line2 {
        display: block;
        margin-top: 0.22em;
    }

    /* Chenare embed — mai puțin spațiu gol alb pe mobil (păstrând centrarea conținutului scalat) */
    html body .dem-ig-embed-frame {
        min-height: 360px !important;
    }

    html body.stk-wear-page #stk-digital-expand .dem-ig-embed-grid--6 .dem-ig-embed-frame {
        min-height: 360px !important;
    }
}

/* Linkuri în text — ca Demmers (Evelin Papp / Corina Ureche): culoare moștenită, underline, semibold */
main .dem-entry__text a[href]:not(.dem-ig-embed-link):not(.muse-menu-pdf-btn):not(.ac-menu-pdf-btn),
main .dem-hero-story a[href],
main .stk-intro-stack a[href] {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

main a.project-nav__all,
main a.project-nav__next,
main a.dem-ig-embed-link,
main a.dm-breadcrumb__link {
    text-decoration: none;
    font-weight: inherit;
}
