/* =========================================================
   YK LEGALS — shared stylesheet
   Black & gold · serif · cinematic · multi-page
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #000000;
    --near-black: #0a0a0a;
    --panel: #111111;
    --gold: #c9a961;
    --gold-soft: rgba(201, 169, 97, 0.15);
    --gold-line: rgba(201, 169, 97, 0.35);
    --light-bg: #f7f6f4;
    --text-dark: #1c1c1c;
    --text-mid: #555;
    --text-light: #888;
    --border: #e4e2de;
    --white: #ffffff;
    --serif: 'Cormorant Garamond', 'Times New Roman', 'Liberation Serif', Georgia, serif;
    --sans: 'Times New Roman', 'Liberation Serif', Georgia, serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Loading screen ---------- */
#loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
    width: 96px; margin: 0 auto 1.6rem;
    animation: loaderPulse 1.9s ease-in-out infinite;
} 100%{opacity:1;transform:scale(1);} }
.loader-bar {
    width: 180px; height: 2px; margin: 0 auto;
    background: rgba(201,169,97,0.2); overflow: hidden;
}
.loader-bar span {
    display: block; height: 100%; width: 0;
    background: var(--gold); animation: loaderFill 1.4s var(--ease) forwards;
}
.loader-word {
    margin-top: 1.4rem; color: var(--gold);
    letter-spacing: 6px; font-size: 0.8rem; font-weight: 400;
    text-indent: 6px;
}
@keyframes loaderPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.55;transform:scale(.94);} }
@keyframes loaderFill { to { width: 100%; } }

/* ---------- Navigation ---------- */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.4rem 0;
    background: transparent;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
nav.solid {
    background: rgba(0,0,0,0.96);
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 rgba(201,169,97,0.15);
}
.nav-wrap {
    max-width: 1360px; margin: 0 auto; padding: 0 2.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.9rem; transition: transform 0.4s var(--ease); }
.nav-logo:hover { transform: scale(1.06); }
.nav-logo img { height: 52px; width: auto; }
.nav-logo-text { color: var(--white); letter-spacing: 3px; font-size: 1.05rem; }
.nav-logo-text b { color: var(--gold); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2.4rem; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.85); letter-spacing: 1px; font-size: 1.02rem;
    position: relative; padding-bottom: 4px; transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
    border: 1px solid var(--gold); color: var(--gold) !important;
    padding: 0.55rem 1.5rem; border-radius: 2px; letter-spacing: 1.5px;
    font-size: 0.85rem !important; text-transform: uppercase;
    transition: all 0.35s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--black) !important; }

.nav-toggle {
    display: none; background: none; border: none; color: var(--white);
    font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.82rem; padding: 1rem 2.4rem; border-radius: 2px;
    transition: all 0.4s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--white); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); color: var(--black); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal.d4 { transition-delay: 0.48s; }

/* ---------- Generic layout ---------- */
.section { padding: 7rem 0; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 2.5rem; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 2.5rem; }

.eyebrow {
    color: var(--gold); letter-spacing: 4px; text-transform: uppercase;
    font-size: 0.82rem; margin-bottom: 1.4rem; display: inline-block;
}
.display {
    font-family: var(--serif); font-weight: 500; line-height: 1.08;
    letter-spacing: -0.5px;
}
h1.display { font-size: clamp(2.6rem, 6vw, 5rem); }
h2.display { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h3.display { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lede { font-size: 1.22rem; color: var(--text-mid); line-height: 1.9; }

.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, #000 0%, #141414 100%);
    color: var(--white); padding: 12rem 0 6rem; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
    width: 520px; height: 520px; background: url('yk-logo.jpeg') center/contain no-repeat;
    opacity: 0.05; pointer-events: none;
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero .eyebrow { position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 640px; margin-top: 1.4rem; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer { background: var(--near-black); color: var(--white); padding: 5rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 3rem; margin-bottom: 3.5rem; }
.foot-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.foot-brand img { height: 54px; }
.foot-brand span { letter-spacing: 3px; font-size: 1.1rem; }
.foot-brand span b { color: var(--gold); font-weight: 400; }
.foot-about p { color: rgba(255,255,255,0.6); line-height: 1.85; max-width: 340px; }
footer h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.3rem; font-weight: 400; }
.foot-links { list-style: none; }
.foot-links li { margin-bottom: 0.7rem; }
.foot-links a { color: rgba(255,255,255,0.68); transition: color 0.3s var(--ease); }
.foot-links a:hover { color: var(--gold); }
.foot-offices div { color: rgba(255,255,255,0.68); margin-bottom: 1rem; line-height: 1.6; }
.foot-offices b { color: var(--white); display: block; font-weight: 400; letter-spacing: 1px; }
.foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,0.45); font-size: 0.9rem; flex-wrap: wrap; gap: 1rem;
}
.foot-bottom a { color: rgba(255,255,255,0.45); transition: color 0.3s; }
.foot-bottom a:hover { color: var(--gold); }
.foot-legal { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px;
    background: var(--gold); color: var(--black); border: none; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer; z-index: 800; opacity: 0; visibility: hidden;
    transform: translateY(12px); transition: all 0.35s var(--ease);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--white); }

/* ---------- Disclaimer bar ---------- */
.disclaimer-note {
    background: var(--light-bg); border-top: 1px solid var(--border);
    color: var(--text-light); font-size: 0.82rem; line-height: 1.7;
    padding: 1.6rem 0; text-align: center;
}
.disclaimer-note .wrap { max-width: 1000px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 340px;
        flex-direction: column; align-items: flex-start; justify-content: center;
        gap: 2rem; background: #0a0a0a; padding: 3rem 2.5rem;
        transition: right 0.5s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.3rem; }
    .nav-close {
        position: absolute; top: 1.6rem; right: 1.8rem; font-size: 1.8rem;
        color: var(--white); background: none; border: none; cursor: pointer;
    }
    .section { padding: 5rem 0; }
    .page-hero { padding: 9rem 0 4.5rem; }
    .foot-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (min-width: 821px) { .nav-close { display: none; } }
@media (max-width: 520px) {
    .wrap, .wrap-narrow { padding: 0 1.4rem; }
    .nav-wrap { padding: 0 1.4rem; }
    .nav-logo-text { display: none; }
}

/* =========================================================
   MOBILE REFINEMENTS
   ========================================================= */
@media (max-width: 820px) {
    body { line-height: 1.7; }
    .section { padding: 4rem 0; }
    h1.display { font-size: clamp(2.1rem, 8.5vw, 3rem); line-height: 1.12; }
    h2.display { font-size: clamp(1.7rem, 6.5vw, 2.3rem); line-height: 1.15; }
    h3.display { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    .lede { font-size: 1.05rem; line-height: 1.8; }
    .eyebrow { font-size: .72rem; letter-spacing: 2.5px; margin-bottom: 1rem; }
    .section-head { margin-bottom: 2.4rem; }
    .page-hero { padding: 7.5rem 0 3.5rem; }
    .page-hero::before { width: 300px; height: 300px; right: -90px; opacity: .045; }
    .page-hero p { font-size: 1rem; margin-top: 1rem; }
    .btn { padding: .9rem 1.8rem; font-size: .76rem; letter-spacing: 1.5px; }
    nav { padding: .8rem 0; }
    .nav-logo img { height: 44px; }
    footer { padding: 3.5rem 0 2rem; }
    .foot-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
    .foot-legal { gap: 1.2rem; }
    .to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; font-size: 1rem; }
}

@media (max-width: 520px) {
    .wrap, .wrap-narrow { padding: 0 1.3rem; }
    .nav-wrap { padding: 0 1.3rem; }
    .section { padding: 3.4rem 0; }
    h1.display { font-size: clamp(1.95rem, 9vw, 2.5rem); }
    h2.display { font-size: clamp(1.55rem, 7vw, 2rem); }
    .lede { font-size: 1rem; }
    .btn { width: 100%; text-align: center; }
    .page-hero { padding: 7rem 0 3rem; }
    .page-hero::before { display: none; }
    .foot-brand img { height: 46px; }
    .loader-bar { width: 150px; }
}

/* =========================================================
   JUSTIFIED BODY TEXT
   ========================================================= */
.lede,
.hero-sub,
.section-description,
.why-card p,
.approach-top p,
.network p,
.pp-card p,
.service-card p,
.leader-bio p,
.m-body p,
.m-firms,
.value p,
.office p,
.network-note p,
.mandate-note p,
.recognition-item p,
.contact-info p,
.feature p,
.ins-card p,
.legal-body p,
.legal-body li,
.foot-about p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Keep short/centred elements ragged for a cleaner look */
.section-head.center .section-description,
.cta-band p,
.growing p,
.hero-locations,
.m-note { text-align: center; }
