/* ═══════════════════════════════════════════════════════════
   ROCHAT 1922 — Premium Patrimonial Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────── */
:root {
    /* Colors */
    --r-navy:       #0f1923;
    --r-navy-soft:  #1a2a3a;
    --r-charcoal:   #2c3e50;
    --r-slate:      #4a5568;
    --r-gray:       #718096;
    --r-gray-light: #a0aec0;
    --r-cream:      #faf8f4;
    --r-cream-deep: #f3efe8;
    --r-white:      #fefdfb;
    --r-gold:       #b8956a;
    --r-gold-soft:  #d4b896;
    --r-gold-dark:  #96754e;
    --r-border:     #e8e2d8;

    /* Typography */
    --r-serif:    'Cormorant Garamond', 'Georgia', serif;
    --r-sans:     'Inter', -apple-system, 'Segoe UI', sans-serif;

    /* Spacing */
    --r-gap:      clamp(1.5rem, 4vw, 3rem);
    --r-section:  clamp(5rem, 12vw, 10rem);

    /* Container */
    --r-max:      1200px;
    --r-narrow:   780px;
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--r-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--r-charcoal);
    background: var(--r-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }

::selection {
    background: var(--r-gold-soft);
    color: var(--r-navy);
}

/* ─── Layout ──────────────────────────────────────────────── */
.r-container {
    max-width: var(--r-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.r-container--narrow {
    max-width: var(--r-narrow);
}

/* ─── Header ──────────────────────────────────────────────── */
.r-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-header--scrolled {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.r-header__inner {
    max-width: var(--r-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.r-header__logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.r-header__wordmark {
    font-family: var(--r-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
}

.r-header__sub {
    font-family: var(--r-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--r-gold);
    text-transform: uppercase;
}

.r-header__nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.r-header__link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.r-header__link:hover {
    color: #fff;
}

.r-header__link--cta {
    color: var(--r-gold);
    border: 1px solid rgba(184, 149, 106, 0.4);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
}

.r-header__link--cta:hover {
    background: var(--r-gold);
    color: var(--r-navy);
    border-color: var(--r-gold);
}

/* Burger */
.r-header__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.r-header__burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.r-header__burger[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.r-header__burger[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

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

.r-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--r-navy);
    /* Subtle gradient */
    background: linear-gradient(
        170deg,
        #0a1219 0%,
        #0f1923 40%,
        #162232 100%
    );
}

.r-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 149, 106, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 149, 106, 0.04) 0%, transparent 50%);
}

.r-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 8rem 2rem 4rem;
}

.r-hero__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
}

.r-hero__wordmark {
    font-family: var(--r-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: #fff;
    text-transform: uppercase;
}

.r-hero__divider {
    display: block;
    width: 50px;
    height: 1px;
    background: var(--r-gold);
    margin: 0.5rem 0;
}

.r-hero__subtitle {
    font-family: var(--r-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--r-gold);
    text-transform: uppercase;
}

.r-hero__date {
    font-family: var(--r-serif);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
}

.r-hero__tagline {
    font-family: var(--r-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 2rem;
}

.r-hero__intro {
    font-family: var(--r-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.r-hero__actions {
    margin-top: 2.5rem;
}

/* Scroll indicator */
.r-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.r-hero__scroll span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--r-gold), transparent);
    animation: r-scroll 2s ease-in-out infinite;
}

@keyframes r-scroll {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Sections ────────────────────────────────────────────── */
.r-section {
    padding: var(--r-section) 0;
    position: relative;
}

.r-section--light {
    background: var(--r-white);
}

.r-section--cream {
    background: var(--r-cream);
}

.r-section--dark {
    background: var(--r-navy);
}

.r-section--image {
    position: relative;
    overflow: hidden;
}

.r-section__image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
}

.r-section--image .r-container {
    position: relative;
    z-index: 2;
}

.r-section--trust {
    background: var(--r-cream-deep);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.r-section--contact {
    background: var(--r-white);
    padding: var(--r-section) 0 clamp(5rem, 10vw, 8rem);
}

/* ─── Typography ──────────────────────────────────────────── */
.r-overline {
    display: block;
    font-family: var(--r-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--r-gold);
    margin-bottom: 1.5rem;
}

.r-overline--light {
    color: var(--r-gold-soft);
}

.r-heading-serif {
    font-family: var(--r-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.25;
    color: var(--r-navy);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.r-heading-serif--light {
    color: #fff;
}

.r-lead {
    font-family: var(--r-sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--r-slate);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.r-prose {
    margin-bottom: 2rem;
}

.r-prose p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--r-slate);
    margin-bottom: 1.25rem;
}

.r-prose--light p {
    color: rgba(255,255,255,0.7);
}

.r-prose__accent {
    font-family: var(--r-serif);
    font-size: 1.3rem !important;
    font-style: italic;
    color: var(--r-navy) !important;
    font-weight: 400;
    margin-top: 2rem !important;
}

/* ─── Blockquote ──────────────────────────────────────────── */
.r-blockquote {
    font-family: var(--r-serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--r-gold-soft);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-left: 2px solid var(--r-gold-dark);
    padding-left: 2rem;
}

/* ─── Cards (Services) ────────────────────────────────────── */
.r-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.r-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.r-card {
    background: var(--r-white);
    padding: 2.5rem 2rem;
    border: 1px solid var(--r-border);
    transition: all 0.4s ease;
    position: relative;
}

.r-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--r-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.r-card:hover::before {
    transform: scaleX(1);
}

.r-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 25, 35, 0.08);
}

.r-card__number {
    font-family: var(--r-serif);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--r-gold);
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.r-card__title {
    font-family: var(--r-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--r-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.r-card__text {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--r-slate);
}

/* ─── Checklist ───────────────────────────────────────────── */
.r-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 3rem;
    margin-bottom: 2.5rem;
}

.r-checklist li {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--r-charcoal);
    padding-left: 1.5rem;
    position: relative;
}

.r-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border: 1px solid var(--r-gold);
    border-radius: 50%;
}

.r-checklist--light li {
    color: rgba(255,255,255,0.75);
}

.r-checklist--light li::before {
    border-color: var(--r-gold-soft);
}

/* ─── Values (Independence) ───────────────────────────────── */
.r-values {
    margin: 3rem 0;
}

.r-values__item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--r-border);
}

.r-values__item:first-child {
    border-top: 1px solid var(--r-border);
}

.r-values__label {
    font-family: var(--r-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--r-gold);
}

.r-values__emphasis {
    font-family: var(--r-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--r-navy);
}

.r-values__vs {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--r-gray);
    font-style: italic;
}

/* ─── Cases ───────────────────────────────────────────────── */
.r-cases {
    display: grid;
    gap: 0;
    margin-bottom: 3rem;
}

.r-case {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--r-border);
    align-items: start;
}

.r-case:first-child {
    border-top: 1px solid var(--r-border);
}

.r-case__number {
    font-family: var(--r-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--r-gold);
    letter-spacing: 0.05em;
}

.r-case__text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--r-charcoal);
}

/* ─── Audience ────────────────────────────────────────────── */
.r-audience {
    list-style: none;
    margin-bottom: 2.5rem;
}

.r-audience li {
    font-family: var(--r-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--r-navy);
    padding: 1rem 0;
    border-bottom: 1px solid var(--r-border);
    padding-left: 1.5rem;
    position: relative;
}

.r-audience li:first-child {
    border-top: 1px solid var(--r-border);
}

.r-audience li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--r-gold);
}

/* ─── Trust Columns ───────────────────────────────────────── */
.r-trust-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--r-border);
}

.r-trust__left {
    font-family: var(--r-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--r-gray);
    text-align: right;
}

.r-trust__right {
    font-family: var(--r-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--r-navy);
}

/* ─── Section Closing ─────────────────────────────────────── */
.r-section__closing {
    font-family: var(--r-serif);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--r-charcoal);
    text-align: center;
    margin-top: 2rem;
}

.r-section__closing--light {
    color: rgba(255,255,255,0.5);
}

.r-section__closing--italic {
    font-size: 1.05rem;
    color: var(--r-slate);
}

/* ─── Contact ─────────────────────────────────────────────── */
.r-contact__note {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--r-gray);
    text-align: center;
    margin: 2rem 0;
    letter-spacing: 0.02em;
}

.r-contact__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.r-btn {
    display: inline-block;
    font-family: var(--r-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem 2.5rem;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.4s ease;
}

.r-btn--primary {
    background: var(--r-gold);
    border-color: var(--r-gold);
    color: #fff;
}

.r-btn--primary:hover {
    background: var(--r-gold-dark);
    border-color: var(--r-gold-dark);
    color: #fff;
}

.r-btn--ghost {
    background: transparent;
    border-color: var(--r-border);
    color: var(--r-slate);
}

.r-btn--ghost:hover {
    border-color: var(--r-gold);
    color: var(--r-gold);
}

.r-btn--large {
    padding: 1.2rem 3rem;
    font-size: 0.82rem;
}

/* ─── Footer ──────────────────────────────────────────────── */
.r-footer {
    background: var(--r-navy);
    padding: clamp(4rem, 8vw, 6rem) 0 2.5rem;
    color: rgba(255,255,255,0.5);
}

.r-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.r-footer__wordmark {
    display: block;
    font-family: var(--r-serif);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
}

.r-footer__tagline {
    display: block;
    font-family: var(--r-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--r-gold-soft);
    margin-top: 0.5rem;
}

.r-footer__manifesto {
    font-family: var(--r-serif);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255,255,255,0.4);
    max-width: 500px;
}

.r-footer__info {
    display: flex;
    gap: 5rem;
    margin-top: 1rem;
}

.r-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.r-footer__col a:hover {
    color: var(--r-gold-soft);
}

.r-footer__label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--r-gold);
    margin-bottom: 0.5rem;
}

.r-footer__legal {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.r-footer__legal a:hover {
    color: rgba(255,255,255,0.5);
}

/* ─── Reveal Animations ───────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Mobile Menu Open ────────────────────────────────────── */
body.menu-open {
    overflow: hidden;
}

body.menu-open .r-header__nav {
    display: flex;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .r-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .r-trust-columns {
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .r-header__nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 25, 35, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 99;
    }

    .r-header__nav .r-header__link {
        font-size: 1rem;
        letter-spacing: 0.15em;
        color: rgba(255,255,255,0.8);
    }

    .r-header__nav .r-header__link--cta {
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .r-header__burger {
        display: flex;
        z-index: 101;
    }

    .r-hero__content {
        padding: 7rem 1.5rem 3rem;
    }

    .r-hero__wordmark {
        letter-spacing: 0.25em;
    }

    .r-grid--4 {
        grid-template-columns: 1fr;
    }

    .r-checklist {
        grid-template-columns: 1fr;
    }

    .r-trust-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .r-trust__left {
        text-align: left;
        font-size: 0.85rem;
    }

    .r-trust__right {
        font-size: 1.1rem;
        padding-left: 1rem;
        border-left: 2px solid var(--r-gold);
    }

    .r-case {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
    }

    .r-footer__info {
        flex-direction: column;
        gap: 2rem;
    }

    .r-footer__legal {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .r-values__item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .r-btn--large {
        width: 100%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .r-hero__tagline {
        font-size: 1.4rem;
    }

    .r-heading-serif {
        font-size: 1.6rem;
    }

    .r-blockquote {
        font-size: 1.15rem;
        padding-left: 1.25rem;
    }

    .r-audience li {
        font-size: 1.05rem;
    }
}
