@import "tailwindcss";

@theme {
    --color-brand-50: #fdfcf9;
    --color-brand-100: #f8f4ef;
    --color-brand-200: #eee6dc;
    --color-brand-300: #dfd2c3;
    --color-brand-400: #cdbca9;
    --color-brand-500: #b8a48f;
    --color-brand-600: #9d8772;
    --color-brand-700: #826d5d;
    --color-brand-800: #69574a;
    --color-brand-900: #53453a;

    --color-ink-900: #312923;
    --color-ink-800: #443931;
    --color-ink-700: #61544a;
    --color-ink-500: #8b7b70;

    --font-sans: "Inter", "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #fffdf9 0%, #f8f3ed 100%);
    color: #312923;
    overflow-x: hidden;
}

::selection {
    background: rgba(205, 188, 169, 0.30);
    color: #312923;
}

.site-shell {
    opacity: 1;
    transform: none;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(49, 41, 35, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        backdrop-filter .25s ease,
        transform .25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 252, 247, 0.82);
    border-bottom: 1px solid rgba(231, 220, 207, 0.92);
    box-shadow: 0 10px 35px rgba(49, 41, 35, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled a,
.site-header.is-scrolled button {
    color: #372f29 !important;
}

.site-header.is-scrolled .text-white\/65,
.site-header.is-scrolled .text-white\/80,
.site-header.is-scrolled .text-white\/90,
.site-header.is-scrolled .text-white\/45 {
    color: #8b7b70 !important;
}

/* TOPBAR */
.topbar-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.90);
    transition: color .2s ease;
}

.topbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.45rem;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.95);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.topbar-link:hover {
    color: #ffffff;
}

.topbar-link:hover::after {
    transform: scaleX(1);
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all .25s ease;
}

.topbar-cta--solid {
    background: rgba(255, 252, 247, 0.94);
    color: #312923;
    box-shadow: 0 12px 30px rgba(49, 41, 35, 0.10);
}

.topbar-cta--solid:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.topbar-cta--ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.topbar-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.topbar-mobile-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    padding: 0.8rem;
    color: white;
    backdrop-filter: blur(12px);
    transition: all .2s ease;
}

.topbar-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .topbar-link {
    color: #705c4d !important;
}

.site-header.is-scrolled .topbar-link::after {
    background: #8a715d;
}

.site-header.is-scrolled .topbar-cta--solid {
    background: #8a715d;
    color: #fffdfa;
    box-shadow: 0 10px 24px rgba(49, 41, 35, 0.10);
}

.site-header.is-scrolled .topbar-cta--solid:hover {
    background: #755f4e;
}

.site-header.is-scrolled .topbar-cta--ghost {
    border-color: rgba(138, 113, 93, 0.22);
    background: rgba(138, 113, 93, 0.08);
    color: #5f5145 !important;
}

/* HERO */
.hero-fixed {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #1f1915;
}

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

.hero-fixed__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.03);
}

.hero-fixed__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(56, 43, 35, 0.42) 0%,
            rgba(56, 43, 35, 0.22) 42%,
            rgba(56, 43, 35, 0.12) 100%
        );
}

.hero-fixed__content {
    position: relative;
    z-index: 2;
}

.hero-floating-panel {
    box-shadow: 0 30px 80px rgba(28, 22, 18, 0.16);
}

.hero-scroll-indicator {
    width: 1px;
    height: 48px;
    display: block;
    background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.12));
    animation: heroScrollPulse 1.5s ease-in-out infinite;
}

@keyframes heroScrollPulse {
    0% { transform: scaleY(0.8); opacity: .65; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.8); opacity: .65; }
}

/* REVEAL */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity .45s ease,
        transform .45s ease;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* CARDS */
.luxury-card {
    box-shadow: 0 20px 60px rgba(49, 41, 35, 0.06);
}

.project-hover {
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.project-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 70px rgba(49, 41, 35, 0.10);
    filter: saturate(1.01);
}

input,
textarea {
    background: rgba(255, 252, 247, 0.98);
}

/* CORES */
section.bg-slate-950 {
    background: linear-gradient(135deg, #d5c3b2 0%, #bea792 100%) !important;
}

section.bg-\[\#0a1020\] {
    background: linear-gradient(135deg, #e0d2c4 0%, #cdb7a3 100%) !important;
}

.bg-slate-950 {
    background-color: #bea792 !important;
}

.bg-slate-50 {
    background-color: #f8f2eb !important;
}

.bg-white {
    background-color: #fffdfa !important;
}

.text-blue-700,
.text-brand-700 {
    color: #8a715d !important;
}

.bg-blue-100\/80,
.bg-brand-100\/80 {
    background-color: rgba(223, 210, 195, 0.45) !important;
}

.bg-blue-600\/20 {
    background-color: rgba(205, 188, 169, 0.16) !important;
}

.text-white\/65 {
    color: rgba(255, 249, 243, 0.84) !important;
}

.text-white\/55 {
    color: rgba(255, 249, 243, 0.74) !important;
}

.text-white\/45 {
    color: rgba(255, 249, 243, 0.62) !important;
}

.border-white\/10 {
    border-color: rgba(255, 249, 243, 0.18) !important;
}

.border-slate-200 {
    border-color: #eadfd3 !important;
}

.border-slate-300 {
    border-color: #dbcdbf !important;
}

.bg-white\/5 {
    background-color: rgba(255, 249, 243, 0.14) !important;
}

.bg-white\/10 {
    background-color: rgba(255, 249, 243, 0.18) !important;
}

.text-slate-950 {
    color: #312923 !important;
}

.text-slate-900 {
    color: #40362f !important;
}

.text-slate-800 {
    color: #5d5046 !important;
}

.text-slate-600 {
    color: #85766b !important;
}

.text-slate-500 {
    color: #9d8d80 !important;
}

.text-slate-400 {
    color: #b6a79a !important;
}



@media (max-width: 1024px) {
    .hero-fixed__image {
        transform: scale(1);
    }
}

/* PROJECT GALLERY */
.project-gallery {
    display: grid;
    gap: 1.25rem;
}

.project-gallery--full {
    width: 100%;
}

.project-gallery__stage {
    position: relative;
    overflow: hidden;
    border: 1px solid #eadfd3;
    border-radius: 2rem;
    background: #fffdfa;
    min-height: 70vh;
}

.project-gallery__slide {
    position: absolute;
    inset: 0;
}

.project-gallery__image-button {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.project-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(49, 41, 35, 0.35);
    color: white;
    backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}

.project-gallery__nav:hover {
    background: rgba(49, 41, 35, 0.55);
}

.project-gallery__nav--prev {
    left: 1rem;
}

.project-gallery__nav--next {
    right: 1rem;
}

.project-gallery__expand {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 10;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(49, 41, 35, 0.45);
    color: white;
    padding: 0.85rem 1.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: background .2s ease;
}

.project-gallery__expand:hover {
    background: rgba(49, 41, 35, 0.62);
}

.project-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.9rem;
}

.project-gallery__thumb {
    overflow: hidden;
    border-radius: 1.25rem;
    border: 2px solid transparent;
    background: #fffdfa;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.project-gallery__thumb:hover {
    transform: translateY(-2px);
}

.project-gallery__thumb.is-active {
    border-color: #8a715d;
    box-shadow: 0 10px 24px rgba(49, 41, 35, 0.08);
}

.project-gallery__thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

/* LIGHTBOX */
.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
}

.project-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 12, 10, 0.88);
    backdrop-filter: blur(6px);
}

.project-lightbox__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
}

.project-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.project-lightbox__close,
.project-lightbox__nav {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: blur(8px);
    transition: background .2s ease;
}

.project-lightbox__close:hover,
.project-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.16);
}

.project-lightbox__close {
    top: 1.5rem;
    right: 1.5rem;
}

.project-lightbox__nav--prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox__nav--next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .project-gallery__stage {
        min-height: 56vh;
    }
}

@media (max-width: 768px) {
    .project-gallery__stage {
        min-height: 340px;
        border-radius: 1.5rem;
    }

    .project-gallery__thumb img {
        height: 74px;
    }

    .project-lightbox__inner {
        padding: 1rem 4rem;
    }

    .project-lightbox__close {
        top: 1rem;
        right: 1rem;
    }

    .project-lightbox__nav--prev {
        left: 0.75rem;
    }

    .project-lightbox__nav--next {
        right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}