/* =========================================================
   R&B MARBEL — PUBLIC WEBSITE
   7I-9 PUBLIC DESIGN SYSTEM
   ========================================================= */

:root {
    --obsidian: #080909;
    --charcoal: #111314;
    --charcoal-2: #17191a;
    --stone: #e8e3d8;
    --ivory: #f7f4ed;
    --champagne: #c8a45c;
    --champagne-light: #e5ca8c;
    --muted: #96928a;
    --white: #fff;
    --line: rgba(255,255,255,.10);
    --line-gold: rgba(200,164,92,.28);
    --container: 1240px;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ivory);
    background: var(--obsidian);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
    font-family: "DM Sans", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
}

::selection {
    color: var(--obsidian);
    background: var(--champagne-light);
}


/* =========================================================
   PRELOADER
   ========================================================= */

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: var(--obsidian);
    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    object-fit: contain;
    border-radius: 50%;
    animation: loaderFloat 2s ease-in-out infinite;
}

.loader-line {
    width: 90px;
    height: 1px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255,255,255,.12);
}

.loader-line::after {
    content: "";
    display: block;
    width: 45%;
    height: 100%;
    background: var(--champagne);
    animation: loaderLine 1.5s ease-in-out infinite;
}

@keyframes loaderFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes loaderLine {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(300%);
    }
}


/* =========================================================
   CONTAINER
   ========================================================= */

.site-container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    border-bottom: 1px solid transparent;

    transition:
        background .35s ease,
        border-color .35s ease,
        backdrop-filter .35s ease;
}

.site-header.scrolled {
    background: rgba(8,9,9,.78);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    transition:
        min-height .35s ease;
}

.site-header.scrolled .navbar {
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.brand-copy {
    line-height: 1;
}

.brand-name {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    letter-spacing: .01em;
}

.brand-name span {
    color: var(--champagne-light);
}

.brand-subtitle {
    margin-top: 6px;
    color: rgba(255,255,255,.52);
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    color: rgba(255,255,255,.76);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--champagne);
    transition: width .3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line-gold);
    color: var(--ivory);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.nav-cta:hover {
    border-color: var(--champagne);
    background: rgba(200,164,92,.10);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ivory);
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 16s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5,6,6,.91) 0%,
            rgba(5,6,6,.66) 42%,
            rgba(5,6,6,.20) 100%
        );

}

.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(8,9,9,.85),
            transparent 40%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(
        760px,
        100%
    );

    padding-top: 80px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    color: var(--champagne-light);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;

    animation:
        heroUp .8s .2s both;
}

.hero-eyebrow::before {
    content: "";
    width: 38px;
    height: 1px;
    background: var(--champagne);
}

.hero h1 {
    margin: 0;

    max-width: 850px;

    font-family: "Playfair Display", serif;
    font-size: clamp(
        3.4rem,
        8vw,
        7.4rem
    );

    font-weight: 500;
    line-height: .92;
    letter-spacing: -.045em;

    animation:
        heroUp 1s .32s both;
}

.hero h1 em {
    color: var(--champagne-light);
    font-style: normal;
}

.hero-description {
    max-width: 580px;

    margin: 28px 0 0;

    color: rgba(255,255,255,.72);
    font-size: .82rem;
    line-height: 1.85;

    animation:
        heroUp 1s .48s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 34px;

    animation:
        heroUp 1s .62s both;
}

.btn-primary-luxury,
.btn-secondary-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 21px;

    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.btn-primary-luxury {
    color: var(--obsidian);
    background: var(--champagne-light);
}

.btn-primary-luxury:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.btn-secondary-luxury {
    border: 1px solid rgba(255,255,255,.26);
    color: var(--white);
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(8px);
}

.btn-secondary-luxury:hover {
    border-color: var(--champagne);
    background: rgba(200,164,92,.10);
    transform: translateY(-3px);
}

@keyframes heroUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 11px;

    color: rgba(255,255,255,.55);
    font-size: .53rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.scroll-line {
    width: 42px;
    height: 1px;
    background: var(--champagne);
}


/* =========================================================
   SECTION FOUNDATION
   ========================================================= */

.section {
    position: relative;
    padding: 120px 0;
}

.section-dark {
    background: var(--obsidian);
}

.section-soft {
    background: #0d0f10;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 14px;

    color: var(--champagne);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--champagne);
}

.section-heading h2 {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(
        2.4rem,
        5vw,
        4.5rem
    );

    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
}

.section-heading p {
    max-width: 580px;
    margin: 18px 0 0;

    color: var(--muted);
    font-size: .76rem;
    line-height: 1.9;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);

    gap: 90px;
    align-items: center;
}

.intro-number {
    color: rgba(200,164,92,.16);
    font-family: "Playfair Display", serif;
    font-size: 9rem;
    line-height: .7;
}

.intro-copy h2 {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
}

.intro-copy h2 span {
    color: var(--champagne-light);
}

.intro-copy p {
    max-width: 650px;
    margin: 24px 0 0;

    color: var(--muted);
    font-size: .78rem;
    line-height: 1.95;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid var(--line);
}

.service-card {
    position: relative;
    min-height: 330px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 28px;

    overflow: hidden;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background: var(--charcoal);

    transition:
        transform .45s ease,
        background .45s ease;
}

.service-card:nth-child(3n) {
    border-right: 0;
}

.service-image {
    position: absolute;
    inset: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: .12;

    transition:
        opacity .6s ease,
        transform .7s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(7,8,8,.97),
            rgba(7,8,8,.25)
        );
}

.service-card:hover {
    background: #141617;
}

.service-card:hover .service-image img {
    opacity: .40;
    transform: scale(1.06);
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-index {
    margin-bottom: auto;

    color: var(--champagne);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.service-card h3 {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: 1.65rem;
    font-weight: 500;
}

.service-card p {
    max-width: 330px;

    margin: 10px 0 0;

    color: rgba(255,255,255,.58);
    font-size: .66rem;
    line-height: 1.7;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    color: var(--champagne-light);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns:
        repeat(12, 1fr);

    gap: 14px;
}

.project-card {
    position: relative;
    min-height: 520px;

    overflow: hidden;
    background: var(--charcoal);
}

.project-card:nth-child(1) {
    grid-column: span 7;
}

.project-card:nth-child(2) {
    grid-column: span 5;
}

.project-card:nth-child(3) {
    grid-column: span 5;
}

.project-card:nth-child(4) {
    grid-column: span 7;
}

.project-image,
.project-image img {
    width: 100%;
    height: 100%;
}

.project-image img {
    object-fit: cover;
    transition:
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(5,6,6,.94),
            transparent 58%
        );
}

.project-card:hover .project-image img {
    transform: scale(1.055);
}

.project-info {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 23px;
    z-index: 2;
}

.project-category {
    margin-bottom: 8px;

    color: var(--champagne-light);
    font-size: .53rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.project-location {
    margin-top: 7px;
    color: rgba(255,255,255,.62);
    font-size: .62rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 13px;

    color: var(--white);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials-wrap {
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.testimonial-card {
    padding: 30px;

    border: 1px solid var(--line);
    background: #101213;

    transition:
        transform .35s ease,
        border-color .35s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-gold);
}

.testimonial-stars {
    color: var(--champagne-light);
    letter-spacing: 2px;
    font-size: .65rem;
}

.testimonial-quote {
    margin: 25px 0;

    font-family: "Playfair Display", serif;
    font-size: 1.18rem;
    line-height: 1.55;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.testimonial-person img {
    width: 44px;
    height: 44px;

    object-fit: cover;
    border-radius: 50%;
}

.testimonial-person strong {
    display: block;
    font-size: .65rem;
}

.testimonial-person span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .57rem;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    position: relative;
    overflow: hidden;

    padding: 120px 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(200,164,92,.12),
            transparent 32%
        ),
        #111314;
}

.cta::before {
    content: "R&B";
    position: absolute;
    right: -20px;
    bottom: -100px;

    color: rgba(255,255,255,.025);

    font-family: "Playfair Display", serif;
    font-size: 20rem;
    line-height: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.cta-content h2 {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(
        2.7rem,
        6vw,
        5.5rem
    );

    font-weight: 500;
    line-height: .98;
}

.cta-content h2 span {
    color: var(--champagne-light);
}

.cta-content p {
    max-width: 560px;
    margin: 20px 0 0;

    color: var(--muted);
    font-size: .76rem;
    line-height: 1.85;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 60px 0 25px;

    border-top: 1px solid var(--line);
    background: #070808;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        1.5fr
        1fr
        1fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-brand p {
    max-width: 380px;

    margin: 18px 0 0;

    color: var(--muted);
    font-size: .67rem;
    line-height: 1.8;
}

.footer-heading {
    margin-bottom: 16px;

    color: var(--champagne);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    width: fit-content;

    color: rgba(255,255,255,.65);
    font-size: .65rem;

    transition:
        color .25s ease,
        transform .25s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid var(--line);

    color: rgba(255,255,255,.38);
    font-size: .55rem;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .site-container {
        width:
            min(
                calc(100% - 32px),
                var(--container)
            );
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;

        width: min(
            320px,
            88vw
        );

        height: 100svh;

        display: flex;
        align-items: flex-start;
        flex-direction: column;

        padding:
            110px 30px 30px;

        background:
            rgba(9,10,10,.97);

        border-left:
            1px solid var(--line);

        transform:
            translateX(105%);

        transition:
            transform .4s cubic-bezier(.2,.7,.2,1);

        z-index: 1001;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: .72rem;
    }

    .mobile-toggle {
        display: grid;
        position: relative;
        z-index: 1002;
    }

    .nav-cta {
        display: none;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .intro-number {
        font-size: 5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:nth-child(3n) {
        border-right: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3),
    .project-card:nth-child(4) {
        grid-column: auto;
        min-height: 420px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

@media (max-width: 560px) {

    .section {
        padding: 85px 0;
    }

    .site-container {
        width:
            calc(100% - 28px);
    }

    .navbar {
        min-height: 76px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: .92rem;
    }

    .hero h1 {
        font-size: clamp(
            3rem,
            17vw,
            5rem
        );
    }

    .hero-description {
        font-size: .72rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary-luxury,
    .btn-secondary-luxury {
        width: 100%;
    }

    .hero-bottom {
        bottom: 18px;
    }

    .project-card,
    .project-card:nth-child(n) {
        min-height: 380px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}