/* ══════════════════════════════════════════
   R&H Capital — shared site stylesheet
   Plain CSS throughout (no framework dependency)
   so every page renders correctly even if an
   external CDN script is blocked.
══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: #101012; color: #F4F2ED; font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Prevent nested auto-fit grids from contributing their min-content
   width to ancestor flex/grid tracks and blowing out the page width. */
div { min-width: 0; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; }

a { color: inherit; }

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

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .container { padding: 0 56px; } }

/* ── Utilities ── */
.copper        { color: #C4915E; }
.accent-line   { width: 52px; height: 1px; background: #C4915E; }
.section-label { letter-spacing: .28em; text-transform: uppercase; font-size: .68rem; color: #C4915E; font-weight: 600; }
.eyebrow-dark  { letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: #8B8983; }

/* ── Section rhythm ── */
.section       { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.bg-1 { background: #101012; }
.bg-2 { background: #131316; }
.bg-3 { background: #0a0a0b; }

/* ── Grid divider pattern (hairline seams between tiles) ── */
.tile-grid { display: grid; gap: 1px; background: #26262a; }
.tile      { background: #131316; padding: 44px; }
.tile.on-1 { background: #101012; }

/* ── Pill buttons ── */
.pill {
    display: inline-block; padding: 13px 28px; border-radius: 999px;
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
    text-decoration: none; transition: background .3s ease, color .3s ease, transform .3s ease;
    cursor: pointer; border: none;
}
.pill-solid   { background: #C4915E; color: #101012; }
.pill-solid:hover   { background: #D8A876; transform: translateY(-2px); }
.pill-outline { border: 1px solid rgba(244,242,237,.35); color: #F4F2ED; background: transparent; }
.pill-outline:hover { border-color: #C4915E; color: #C4915E; }
.pill-copper  { border: 1px solid #C4915E; color: #C4915E; background: transparent; }
.pill-copper:hover  { background: #C4915E; color: #101012; }
.pill-block   { display: block; width: 100%; text-align: center; padding: 16px; }

/* ── Nav ── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.nav-logo .word { font-family: 'Playfair Display', serif; font-size: 1.3rem; letter-spacing: .04em; color: #F4F2ED; }
.nav-logo .tag  { font-size: .55rem; letter-spacing: .32em; color: #C4915E; margin-top: 4px; }
.nav-desktop { display: none; align-items: center; gap: 30px; }
.nav-link {
    position: relative; letter-spacing: .11em; text-transform: uppercase; font-size: .7rem; font-weight: 600;
    color: #ABA9A2; text-decoration: none; transition: color .3s ease;
}
.nav-link:hover, .nav-link.active { color: #F4F2ED; }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: #C4915E;
    transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-mobile-btn { display: block; background: none; border: none; color: #fff; padding: 4px; cursor: pointer; }
@media (min-width: 900px) {
    .nav-desktop { display: flex; }
    .nav-mobile-btn { display: none; }
}
#mob-menu { display: none; background: #131316; border-top: 1px solid #26262a; }
#mob-menu.open { display: block; }
#mob-menu a { display: block; padding: 14px 0; }

/* ── Scroll progress ── */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: #C4915E; z-index: 60; transition: width .1s linear; }

/* ── Diagonal hero / banner ── */
.diagonal-hero {
    position: relative; min-height: 100vh; overflow: hidden; background: #0a0a0b;
}
.diagonal-photo {
    position: absolute; inset: 0; background-size: cover; background-position: center 30%;
}
.diagonal-panel {
    position: absolute; inset: 0; background: #131316;
    clip-path: polygon(0 0, 46% 0, 30% 100%, 0 100%);
}
@media (max-width: 720px) {
    .diagonal-panel { clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
}
.diagonal-banner {
    position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: center;
}
.diagonal-banner .photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.diagonal-banner .fade  { position: absolute; inset: 0; background: linear-gradient(100deg, #101012 32%, rgba(16,16,18,.25) 100%); }
@media (max-width: 720px) {
    .diagonal-banner .fade { background: linear-gradient(180deg, rgba(16,16,18,.55) 0%, #101012 92%); }
}

/* ── Stat tiles ── */
.stat-tile .stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: #F4F2ED; line-height: 1; display: inline-block; }
.stat-underline { display: block; width: 0; height: 2px; background: #C4915E; margin-top: 6px; transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.stat-tile.show .stat-underline { width: 52px; }
.stat-label { font-size: .62rem; letter-spacing: .2em; color: #8B8983; text-transform: uppercase; margin-top: 12px; }

/* ── Bar chart ── */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-row .bar-label { width: 130px; flex-shrink: 0; font-size: .74rem; color: #9A9892; }
.bar-track { flex: 1 1 auto; height: 8px; background: #1c1c1f; overflow: hidden; min-width: 40px; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #8a5a34, #C4915E); transition: width 1.3s cubic-bezier(.16,1,.3,1); }
.bar-chart.show .bar-fill { width: var(--pct); }
@media (min-width: 640px) { .bar-row .bar-label { width: 190px; font-size: .8rem; } }

/* ── Cards ── */
.card-lift { transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease; }
.card-lift:hover { transform: translateY(-6px); border-color: #C4915E; box-shadow: 0 20px 48px -12px rgba(196,145,94,.25); }

/* ── FAQ items ── */
.faq-item:last-child { margin-bottom: 0; }

/* ── Stage rows ── */
.stage-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; transition: padding-left .3s ease, background .3s ease; border-bottom: 1px solid #26262a; }
.stage-row:last-child { border-bottom: none; }
.stage-row:hover { padding-left: 12px; background: rgba(196,145,94,.06); }

/* ── Forms ── */
.rh-input, .rh-select {
    display: block; width: 100%;
    background: #17171A; border: 1px solid #26262a; color: #F4F2ED;
    padding: 14px 16px; font-size: .85rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color .3s; border-radius: 4px; appearance: none;
}
.rh-input:focus, .rh-select:focus { border-color: #C4915E; }
.rh-input::placeholder { color: #5A5A5E; }
.rh-label { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #8B8983; margin-bottom: 8px; font-weight: 600; }

/* ── Fade-in on scroll ── */
.fi { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fi.show { opacity: 1; transform: translateY(0); }

/* ── Team photo ── */
.team-photo { filter: grayscale(30%) contrast(1.06); transition: filter .4s; }
.team-photo:hover { filter: grayscale(0%) contrast(1.1); }

/* ── Footer ── */
footer { background: #0a0a0b; border-top: 1px solid #26262a; padding: 44px 0; }
.footer-top { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-links a { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #5A5A5E; text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: #C4915E; }
@media (min-width: 900px) {
    .footer-top { flex-direction: row; justify-content: space-between; text-align: left; }
}
.disclaimer { border-top: 1px solid #1c1c1f; margin-top: 28px; padding-top: 22px; }
.disclaimer p { font-size: .72rem; color: #4a4a4d; line-height: 1.8; font-weight: 300; max-width: 900px; }
.disclaimer .copyright { font-size: .68rem; color: #333336; margin-top: 14px; }
