/* ── NAV (home override: transparent → solid on scroll) ── */
nav {
    background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 100%);
    backdrop-filter: none;
}

nav.scrolled {
    background: rgba(10, 10, 10, .95);
    backdrop-filter: blur(10px);
}

/* ── HERO ────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
}

.hero-bg img.active {
    opacity: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .55) 0%,
            rgba(0, 0, 0, .40) 50%,
            rgba(0, 0, 0, .70) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 40px;
    background: var(--gold);
    opacity: .5;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ── SECTIONS (shared) ───────────────── */
section {
    padding: var(--section-pad);
}

.section-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: .75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ── ABOUT ───────────────────────────── */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-img img {
    width: 100%;
    display: block;
    filter: brightness(.75);
    transition: transform .6s;
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 300;
}

/* ── SERVICES ────────────────────────── */
#services {
    background: rgba(255, 255, 255, .025);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.38);
    transition: transform .6s, filter .6s;
    z-index: 0;
}

.service-card:hover img {
    transform: scale(1.05);
    filter: brightness(.28);
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 300;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
    display: block;
}

/* ── REFERENCES CAROUSEL ──────────────── */
#references {
    overflow: hidden;
}

.references-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ref-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.ref-track {
    display: flex;
    gap: 2rem;
    transition: transform .5s ease;
    will-change: transform;
}

.ref-slide {
    flex: 0 0 calc((100% - 6rem) / 4);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, background .3s;
}

.ref-slide:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, .06);
}

.ref-slide img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: brightness(.8); /* grayscale(1);*/
    opacity: .7;
    transition: filter .4s, opacity .4s;
}

.ref-slide:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.ref-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, background .3s, color .3s;
    line-height: 1;
}

.ref-arrow:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, .12);
    color: var(--gold);
}

@media (max-width: 1024px) {
    .ref-slide {
        flex: 0 0 calc((100% - 4rem) / 3);
    }
}

@media (max-width: 768px) {
    .ref-slide {
        flex: 0 0 calc((100% - 2rem) / 2);
    }

    .ref-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ref-slide {
        flex: 0 0 100%;
    }

    .ref-track {
        gap: 1rem;
    }
}

/* ── GALLERY ─────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-grid a {
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: brightness(.7);
    transition: transform .5s, filter .5s;
    display: block;
}

.gallery-grid a:hover img {
    transform: scale(1.06);
    filter: brightness(.9);
}

.gallery-grid a:nth-child(1) {
    grid-column: span 2;
}

.gallery-grid a:nth-child(1) img {
    height: 340px;
}

/* ── STATS ───────────────────────────── */
.stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 6rem);
    flex-wrap: wrap;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: .25rem;
}

/* ── CONTACT ─────────────────────────── */
#contact {
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/contact_bg.jpeg') center/cover no-repeat;
    filter: brightness(.2);
    z-index: 0;
}

#contact>* {
    position: relative;
    z-index: 1;
}

#contact p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.contact-info div {
    text-align: center;
}

.contact-info .label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: .3rem;
}

.contact-info a {
    color: var(--text);
    text-decoration: none;
    transition: color .3s;
}

.contact-info a:hover {
    color: var(--gold);
}

/* ── FADE-IN ANIMATION ───────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .gallery-grid a:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid a:nth-child(1) {
        grid-column: span 1;
    }
}