/* =====================================================
   CASTELLUM V2 — HOMEPAGE STYLES (index.css)
   Design Tokens, Hero Slider, About, Nos Réalisations
===================================================== */

/* ==========================================
   CASTELLUM V2 — DESIGN SYSTEM VARIABLES
========================================== */
:root {
    --gold: #C9A84C;
    --gold-light: #dfc377;
    --gold-dark: #9e7f2d;
    --gold-glow: rgba(201, 168, 76, 0.35);
    --gold-tint: rgba(201, 168, 76, 0.08);
    --gold-grad: linear-gradient(135deg, #dfc377 0%, #C9A84C 50%, #9e7f2d 100%);
    --ink: #0a0d14;
    --ink-2: #111827;
    --ink-3: #1d2639;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(201, 168, 76, 0.12);
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--ease);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 12px 35px rgba(201, 168, 76, 0.08);
}

body.homepage-v2 {
    margin: 0;
    padding: 0;
    background-color: #0b0f19;
    color: #ffffff;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif !important;
}

body.homepage-v2 * {
    font-family: 'Montserrat', sans-serif !important;
}

/* Project Titles + Footer CTA title: Oswald font — high specificity to override body.homepage-v2 * */
body.homepage-v2 .pv2-hero-title,
body.homepage-v2 .v2-project-title,
body.homepage-v2 .v2-project-title a,
body.homepage-v2 .v2-footer-cta-title,
body.homepage-v2 h2.v2-footer-cta-title,
body.homepage-v2 .v2-footer-cta-card .v2-footer-cta-title,
.v2-footer-cta-title {
    font-family: 'Oswald', sans-serif !important;
}

/* Footer CTA card — color lock: the card is always white, so text must always be dark. */
body.homepage-v2 .v2-footer-cta-title,
body.homepage-v2 h2.v2-footer-cta-title,
.v2-footer-cta-title {
    color: #1a202c !important;
}
body.homepage-v2 .v2-footer-cta-desc,
.v2-footer-cta-desc {
    color: #4a5568 !important;
}

/* ==========================================
   CINEMATIC FULL-BLEED HERO SECTION
========================================== */
.pv2-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--ink);
}

/* Hero background slider */
.pv2-hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.pv2-hero-slider .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.pv2-hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.pv2-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero navigation arrows */
.pv2-hero-next,
.pv2-hero-prev {
    color: #ffffff !important;
    background: rgba(10, 13, 20, 0.45);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition) !important;
    z-index: 10;
}

.pv2-hero-next::after,
.pv2-hero-prev::after {
    font-size: 1rem !important;
    font-weight: 700;
}

.pv2-hero-next:hover,
.pv2-hero-prev:hover {
    background: var(--gold-grad);
    color: #111 !important;
    border-color: transparent;
}

/* Localized gradients behind text content */
.pv2-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(10, 13, 20, 0.65) 0%, rgba(10, 13, 20, 0.35) 55%, rgba(10, 13, 20, 0.05) 100%),
        linear-gradient(to top, rgba(10, 13, 20, 0.7) 0%, rgba(10, 13, 20, 0) 40%);
    pointer-events: none;
    z-index: 1;
}

.pv2-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px 130px;
    pointer-events: none;
}

.pv2-hero-meta-chip,
.pv2-hero-actions a,
.pv2-btn-primary,
.pv2-btn-ghost {
    pointer-events: auto;
}

.pv2-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 18px;
    opacity: 1;
}

.pv2-hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.pv2-hero-title,
#heroTitle,
body .pv2-hero-title,
body.dark-mode .pv2-hero-title,
body.dark-mode #heroTitle,
html[data-theme="dark"] .pv2-hero-title,
html[data-theme="dark"] #heroTitle {
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.0;
    margin: 0 0 24px;
    opacity: 1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    max-width: 750px;
}

.pv2-hero-desc {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 35px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    opacity: 1;
}

.pv2-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 1;
    margin-bottom: 36px;
}

.pv2-hero-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.pv2-hero-meta-chip i {
    color: var(--gold);
    font-size: 0.9rem;
}

.pv2-hero-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.pv2-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 1;
}

.pv2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gold-grad);
    color: #111 !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    transition: var(--transition);
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.3);
    position: relative;
    overflow: hidden;
}

.pv2-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 25%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: 0.7s;
    opacity: 0;
}

.pv2-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45);
}

.pv2-btn-primary:hover::after {
    left: 130%;
    opacity: 1;
}

.pv2-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.pv2-btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-3px);
}

/* Hero bottom stat bar */
.pv2-hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(10, 13, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: auto;
}

.pv2-hero-stats-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pv2-stat-item {
    padding: 20px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.pv2-stat-item:last-child {
    border-right: none;
}

.pv2-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 4px;
}

.pv2-stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.pv2-stat-value span:not(#statApartments):not(#statFloors) {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gold);
    margin-left: 4px;
}

/* Scroll indicator / Down arrow */
.pv2-scroll-down {
    position: absolute;
    bottom: 110px;
    left: 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.pv2-scroll-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.pv2-scroll-icon-wrap {
    width: 22px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    position: relative;
    background: rgba(10, 13, 20, 0.2);
    backdrop-filter: blur(2px);
}

.pv2-scroll-icon-wrap i {
    color: var(--gold);
    font-size: 8px;
    animation: pv2ScrollDot 2s infinite;
}

/* Floating VR Box overlay */
.pv2-vr-box {
    position: absolute;
    bottom: 110px;
    right: 4%;
    background: rgba(10, 13, 20, 0.55);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
    z-index: 10;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.pv2-vr-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    background: rgba(10, 13, 20, 0.75);
}

.pv2-vr-thumb {
    width: 72px;
    height: 48px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pv2-vr-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pv2-vr-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
}

.pv2-vr-val {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.pv2-vr-box:hover .pv2-vr-val {
    color: var(--gold);
}

.pv2-vr-val i {
    color: var(--gold);
    font-size: 11px;
}

/* Swiper zoom transition styling */
.pv2-hero-slider .swiper-slide-active .pv2-hero-bg {
    transform: scale(1);
}

.pv2-hero-slider .swiper-slide-active .pv2-hero-eyebrow,
.pv2-hero-slider .swiper-slide-active .pv2-hero-title,
.pv2-hero-slider .swiper-slide-active .pv2-hero-desc,
.pv2-hero-slider .swiper-slide-active .pv2-hero-meta,
.pv2-hero-slider .swiper-slide-active .pv2-hero-actions {
    animation: pv2FadeUp 0.8s var(--ease-out) forwards;
}

.pv2-hero-slider .swiper-slide-active .pv2-hero-eyebrow {
    animation-delay: 0.1s;
}

.pv2-hero-slider .swiper-slide-active .pv2-hero-title {
    animation-delay: 0.25s;
}

.pv2-hero-slider .swiper-slide-active .pv2-hero-desc {
    animation-delay: 0.4s;
}

.pv2-hero-slider .swiper-slide-active .pv2-hero-meta {
    animation-delay: 0.55s;
}

.pv2-hero-slider .swiper-slide-active .pv2-hero-actions {
    animation-delay: 0.7s;
}

@keyframes pv2FadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pv2ScrollDot {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    75% {
        transform: translateY(18px);
        opacity: 0;
    }
    100% {
        transform: translateY(18px);
        opacity: 0;
    }
}

/* Video Modal Popup */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: var(--gold);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Layout Rules */
@media (max-width: 1199px) {
    .pv2-hero-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv2-scroll-down,
    .pv2-vr-box {
        bottom: 150px;
    }
}

@media (max-width: 991px) {
    .pv2-hero {
        position: relative;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .pv2-hero-slider {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .pv2-hero-slide {
        width: 100%;
        height: 100%;
    }

    .pv2-hero-content {
        position: relative;
        z-index: 2;
        padding-top: 140px;
        padding-bottom: 240px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: center;
    }

    .pv2-hero-stats {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3;
    }

    .pv2-scroll-down,
    .pv2-vr-box {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .pv2-hero-title {
        font-size: 2.2rem;
    }

    .pv2-hero-stats-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0;
        scrollbar-width: none;
    }

    .pv2-hero-stats-inner::-webkit-scrollbar {
        display: none;
    }

    .pv2-stat-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
        padding: 14px 20px;
        border-right: none;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .pv2-hero-title {
        font-size: 2.5rem;
    }

    .pv2-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
}

/* ==========================================
   ABOUT SECTION — Paragraph resets
========================================== */
.v2-about-desc,
.v2-about-feature-desc,
.v2-about-feature-title {
    color: #4a5568 !important;
}

body.dark-mode .v2-about-desc,
body.dark-mode .v2-about-feature-desc,
body.dark-mode .v2-about-feature-title,
[data-theme="dark"] .v2-about-desc,
[data-theme="dark"] .v2-about-feature-desc,
[data-theme="dark"] .v2-about-feature-title {
    color: #cbd5e0 !important;
}

/* About section heading — centered above grid */
.v2-about-section .v2-about-heading-center {
    text-align: center;
    margin-bottom: 56px;
}

.v2-about-section .v2-about-heading-center .v2-section-subtitle {
    display: block;
    margin-bottom: 14px;
}

.v2-about-section .v2-about-heading-center .v2-section-title {
    margin-bottom: 0;
}

/* Revert the grid to not indent the text column since title is now above */
.v2-about-section .v2-about-content > .v2-section-subtitle,
.v2-about-section .v2-about-content > .v2-section-title {
    display: none;
}

/* ==========================================
   SHARED: CENTERED SECTION HEADINGS
========================================== */
.sec-heading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Row: [line] [chip] [line] */
.sec-heading-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 520px;
    margin-bottom: 14px;
}

.sec-divider-line {
    flex: 1;
    height: 1px;
    display: block;
    background: linear-gradient(
        to var(--arm-dir, right),
        transparent 0%,
        rgba(201, 168, 76, 0.22) 40%,
        rgba(201, 168, 76, 0.5) 100%
    );
}

.sec-divider-line:last-child {
    --arm-dir: left;
}

/* ==========================================
   NOS RÉALISATIONS (NR) — PROJECT SHOWCASE
========================================== */
.nr-section {
    padding: 120px 0 140px;
    background: var(--section-bg-projects, #f8fafc);
    position: relative;
    overflow: hidden;
}

body.dark-mode .nr-section {
    background: #0d1120;
}

/* Decorative radial glow */
.nr-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.nr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    flex-wrap: wrap;
    gap: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nr-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nr-header-left .nr-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    margin-bottom: 16px;
}

.nr-count-badge .badge-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-grad, linear-gradient(135deg,#dfc377,#C9A84C,#9e7f2d));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #111;
}

.nr-count-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold, #C9A84C);
}

.nr-header .nr-nav {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    justify-content: center;
}

.nr-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(201,168,76,0.3);
    background: transparent;
    color: var(--gold, #C9A84C);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease, ease);
    font-size: 0.85rem;
}

.nr-nav-btn:hover {
    background: var(--gold-grad, linear-gradient(135deg,#dfc377,#C9A84C,#9e7f2d));
    border-color: transparent;
    color: #111;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

/* ── PREMIUM PROJECT CARD ── */
.nr-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.45s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    height: 100%;
    position: relative;
}

body.dark-mode .nr-card {
    background: #111827;
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.13), 0 0 0 1px rgba(201,168,76,0.18);
    border-color: rgba(201,168,76,0.35);
}

body.dark-mode .nr-card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.25);
}

/* Golden top accent line on hover */
.nr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dfc377, #C9A84C, #9e7f2d);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.nr-card:hover::before {
    opacity: 1;
}

/* Image zone */
.nr-img {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #0a0d14;
    flex-shrink: 0;
}

.nr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
}

.nr-card:hover .nr-img img {
    transform: scale(1.07);
}

/* Gradient overlay on image bottom */
.nr-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,13,20,0.55) 0%, transparent 55%);
    pointer-events: none;
}

/* Status badge */
.nr-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 50px;
    z-index: 3;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.nr-badge-launch  { background: linear-gradient(135deg,#dfc377,#C9A84C); color:#111 !important; }
.nr-badge-progress { background: #e28743; }
.nr-badge-finish   { background: #27ae60; }

/* City chip */
.nr-city-chip {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.nr-city-chip i {
    color: var(--gold, #C9A84C);
    font-size: 0.8rem;
}

/* Card body */
.nr-body {
    padding: 26px 28px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nr-project-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 18px;
    color: inherit;
}

.nr-project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nr-project-title a:hover,
body.dark-mode .nr-project-title a:hover {
    color: var(--gold, #C9A84C);
}

/* Stat chips row */
.nr-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.nr-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1A202C;
    white-space: nowrap;
    transition: all 0.3s ease;
}

body.dark-mode .nr-stat-chip {
    color: #E2E8F0;
    background: rgba(201,168,76,0.1);
    border-color: rgba(201,168,76,0.2);
}

.nr-stat-chip:hover {
    background: rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-2px);
}

.nr-stat-chip i {
    color: var(--gold, #C9A84C);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Typology pills row */
.nr-typo-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.nr-typo-pill {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold, #C9A84C);
    transition: all 0.25s ease;
}

.nr-typo-pill:hover {
    background: rgba(201,168,76,0.12);
    border-color: var(--gold, #C9A84C);
}

/* Divider */
.nr-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

body.dark-mode .nr-divider {
    background: rgba(255,255,255,0.08);
}

/* Footer row */
.nr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.nr-location-txt {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

body.dark-mode .nr-location-txt {
    color: #64748B;
}

.nr-location-txt i {
    color: var(--gold, #C9A84C);
}

.nr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--gold-grad, linear-gradient(135deg,#dfc377,#C9A84C,#9e7f2d));
    color: #111 !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 14px rgba(201,168,76,0.25);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.nr-cta::after {
    content: '';
    position: absolute;
    top: -50%; left: -70%;
    width: 25%; height: 200%;
    background: rgba(255,255,255,0.3);
    transform: rotate(25deg);
    transition: 0.6s;
    opacity: 0;
}

.nr-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.nr-cta:hover::after {
    left: 130%;
    opacity: 1;
}

.nr-cta i {
    transition: transform 0.3s ease;
}

.nr-cta:hover i {
    transform: translateX(3px);
}

/* Fallback label (no typologies) */
.nr-no-typo {
    font-size: 0.75rem;
    color: #A0AEC0;
    font-style: italic;
}

/* Project card wrap — immediate visibility */
.nr-card-wrap {
    opacity: 1;
    transform: none;
}

/* Responsive for Projects */
@media (max-width: 767px) {
    .nr-img { height: 210px; }
    .nr-body { padding: 20px 20px 16px; }
    .nr-project-title { font-size: 1.25rem; }
    .nr-stats { gap: 7px; }
    .nr-stat-chip { font-size: 0.72rem; padding: 6px 11px; }
    .nr-cta { padding: 8px 16px; font-size: 0.7rem; }
}
