/* YardHouse Capital Group – public site */
:root {
    --navy: #010720;
    --text: #6b6b6b;
    --muted: #848484;
    --light: #f7f8fa;
    --line: #d3d3d9;
    --accent: #fab89f;
    --white: #fff;
    --serif: "Prata", Georgia, "Times New Roman", serif;
    --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font: 300 16px/1.75 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; margin-bottom: 2.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    font: 400 12px/1 var(--sans);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.actions { margin-top: 1.8em; display: flex; gap: 12px; flex-wrap: wrap; }
.center .actions, .actions:only-child { justify-content: inherit; }
.center .actions { justify-content: center; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 50; }
.site-header .container { max-width: 1440px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo { flex: none; }
.logo img { height: 56px; width: auto; max-width: none; }
.logo { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 0 clamp(14px, 1.8vw, 28px); }
.main-nav li { position: relative; }
.main-nav a {
    display: inline-block;
    font: 400 11.5px/2 var(--sans);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); border-color: var(--navy); }
.main-nav a:focus-visible, .nav-toggle:focus-visible, .sub-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Dropdown */
.has-sub > a { padding-right: 14px; }
.sub-toggle { position: absolute; right: -4px; top: 50%; width: 18px; height: 22px; margin-top: -11px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.sub-toggle::before { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 5px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.sub-menu {
    position: absolute; top: 100%; left: -18px; min-width: 230px;
    padding: 14px 0 !important; margin-top: 10px !important;
    background: var(--white); box-shadow: 0 12px 30px rgba(1,7,32,.12); border-top: 2px solid var(--navy);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 10;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.sub-menu a { display: block; padding: 6px 20px; border: 0; }
.sub-menu a:hover, .sub-menu a.active { background: var(--light); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > .sub-toggle::before, .has-sub.open > .sub-toggle::before { transform: rotate(225deg); top: 10px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }


/* Blocks */
.block { padding: clamp(56px, 8vw, 110px) 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--navy); color: rgba(255,255,255,.8); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark .eyebrow { color: var(--white); }
.bg-dark .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.bg-white + .bg-white { padding-top: 0; }
.section-title { font-size: clamp(26px, 3.2vw, 38px); }
.eyebrow {
    font: 400 12px/1.4 var(--sans);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.2em; }

/* Hero */
.block-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--navy) center/cover no-repeat;
    color: var(--white);
    text-align: center;
}
.hero-large { min-height: min(86vh, 820px); }
.hero-medium { min-height: 58vh; }
.hero-small { min-height: 300px; }
.block-hero:not(.has-image) { background: var(--light); color: var(--navy); }
.block-hero:not(.has-image) .hero-overlay { display: none; }
.block-hero:not(.has-image) h1 { color: var(--navy); }
.block-hero:not(.has-image) .btn-light { color: var(--navy); border-color: var(--navy); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,7,32,.35), rgba(1,7,32,.55)); }
.hero-content { position: relative; z-index: 1; }
.block-hero h1 { color: var(--white); font-size: clamp(34px, 5.5vw, 64px); margin-bottom: .35em; }
.hero-sub { font: 400 13px/1.6 var(--sans); letter-spacing: 2px; text-transform: uppercase; max-width: 640px; margin: 0 auto 1.6em; }
.hero-text { max-width: 680px; margin: 0 auto 1.6em; font-size: 1.05rem; }

/* Split text/image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media img { width: 100%; object-fit: cover; }
.video-link { position: relative; display: block; }
.video-link::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 64px; height: 64px; margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23010720'/%3E%3C/svg%3E") center/28px no-repeat;
}

/* Tiles */
.block-tiles { padding: 0; }
.block-tiles .section-title { padding-top: 60px; }
.tiles { display: grid; }
.tiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 70vh;
    background: var(--navy) center/cover no-repeat;
    text-decoration: none;
    overflow: hidden;
}
.tiles-full .tile { min-height: 100vh; }
.tiles-full .tile-wide { min-height: 100vh; }
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(1,7,32,.15); transition: background .35s; }
.tile:hover::before { background: rgba(1,7,32,0); }
.tile-wide { grid-column: 1 / -1; }
.tile-label { position: relative; color: var(--white); font: 400 clamp(22px, 2.4vw, 32px)/1.3 var(--serif); text-align: center; padding: 0 20px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* Quote / signature */
.quote-name { margin-top: 2em; }
.signature { max-width: 260px; margin: 10px auto 0; }

/* Image */
.block-image figure { margin: 0 auto; }
.block-image img { width: 100%; }
.figure-full img { width: 100%; max-height: 80vh; object-fit: cover; }
.block-image figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 32px; margin-top: 3rem; }
.team-grid.count-1 { max-width: 340px; margin-left: auto; margin-right: auto; }
.team-grid.count-2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.team-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--light); margin-bottom: 20px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-card h3 { font-size: 21px; margin-bottom: .2em; }
.team-title { font: 400 11.5px/1.6 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.team-contact { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.team-contact a { text-decoration: none; color: var(--text); }
.team-contact a:hover { color: var(--navy); text-decoration: underline; }
.team-note { margin-top: 2.5rem; }

/* Partners */
.partner-list { display: grid; gap: clamp(48px, 7vw, 90px); margin-top: 3rem; }
.partner { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.partner-reverse { grid-template-columns: 1fr 340px; }
.partner-reverse .partner-logo { order: 2; }
.partner-logo { background: var(--white); border: 1px solid #eee; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* Documents */
.doc-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.doc-list li { background: var(--white); border: 1px solid #e7e7ec; }
.bg-white .doc-list li { background: var(--light); }
.doc-list a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; }
.doc-list a:hover .doc-title { text-decoration: underline; }
.doc-list p { padding: 0 20px 16px 76px; margin: -8px 0 0; font-size: 14px; }
.doc-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--navy); color: var(--white); font: 500 10px/1 var(--sans); letter-spacing: .5px; }
.doc-title { font-family: var(--serif); font-size: 18px; color: var(--navy); }

/* Events */
.event-list { display: grid; gap: 32px; margin-top: 3rem; }
.event { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; background: var(--light); }
.bg-light .event { background: var(--white); }
.event:not(:has(.event-image)) { grid-template-columns: 1fr; }
.event-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.event-body { padding: 32px 32px 32px 0; }
.event:not(:has(.event-image)) .event-body { padding: 36px; }

/* CTA */
.block-cta { position: relative; padding: clamp(80px, 11vw, 150px) 0; background: var(--navy) center/cover no-repeat; color: rgba(255,255,255,.88); }
.block-cta .cta-content { position: relative; z-index: 1; }
.block-cta h2, .block-cta .eyebrow { color: var(--white); }
.block-cta .hero-overlay { background: rgba(1,7,32,.62); }
.block-cta:not(.has-image) .hero-overlay { display: none; }

/* Contact form */
.contact-form { display: grid; gap: 18px; margin-top: 2rem; }
.contact-form label { display: grid; gap: 6px; font: 400 12px/1.4 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--white);
    font: 300 16px/1.5 var(--sans); color: var(--navy); border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; margin: 1.5rem 0; border-left: 3px solid; background: var(--white); }
.notice-success { border-color: #2f8f5b; color: #1e5c3a; }
.notice-error { border-color: #c0392b; color: #8e2a1f; }

/* Footer */
.site-footer { background: var(--light); padding: 64px 0; border-top: 1px solid #eee; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.footer-text { max-width: 640px; font-size: 14px; }
.footer-text h3 { font-size: 20px; }
.footer-company { color: var(--navy); font-weight: 400; margin: 0; }
.footer-logo img { height: 70px; width: auto; }

/* Investor gate */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(1,7,32,.75); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.gate[hidden] { display: none; }
.gate-box { background: var(--white); max-width: 520px; width: 100%; padding: clamp(28px, 5vw, 48px); text-align: center; }
.gate-box h2 { font-size: 26px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
body.gate-open { overflow: hidden; }

/* Logged-in admin bar */
.admin-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 20px; align-items: center; padding: 6px 16px; background: #1d2330; font: 400 13px/1.6 var(--sans); }
.admin-bar a { color: #fff; text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar-draft { margin-left: auto; color: #ffd27a; }
.admin-bar ~ .site-header { top: 33px; }

/* Responsive */
/* Compact header: added by site.js whenever the menu does not fit on one line. */
.nav-compact {
    .nav-toggle { display: block; }
    .header-inner { position: relative; min-height: 76px; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--white); border-bottom: 1px solid #eee; box-shadow: 0 16px 30px rgba(1,7,32,.08);
        max-height: calc(100vh - 110px); overflow-y: auto; display: none;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px; gap: 0; }
    .main-nav li { border-bottom: 1px solid #f0f0f3; }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 13px 0; font-size: 13px; border: 0; }
    .main-nav a.active { color: var(--navy); font-weight: 500; }
    /* Submenu becomes an accordion */
    .has-sub > a { padding-right: 48px; }
    .sub-toggle { right: 0; top: 4px; margin: 0; width: 44px; height: 44px; }
    .sub-toggle::before { left: 18px; top: 17px; }
    .has-sub:hover > .sub-toggle::before { transform: rotate(45deg); top: 17px; }
    .has-sub.open > .sub-toggle::before { transform: rotate(225deg); top: 21px; }
    .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; margin: 0 0 8px !important; padding: 0 !important; background: none; }
    .sub-menu::before { display: none; }
    .has-sub.open > .sub-menu { display: block; }
    .sub-menu li { border: 0; }
    .sub-menu a { padding: 9px 0 9px 18px; font-size: 12.5px; }
    .sub-menu a:hover, .sub-menu a.active { background: none; color: var(--navy); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 900px) {
    .split, .partner, .event { grid-template-columns: 1fr; }
    .split-reverse .split-media, .partner-reverse .partner-logo { order: 0; }
    .split-media { order: -1; }
    .partner-logo { max-width: 300px; }
    .event-body { padding: 0 24px 28px; }
    .team-grid.count-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .tiles.cols-3, .tiles.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .tiles { grid-template-columns: 1fr !important; }
    .tile, .tiles-full .tile { min-height: 62vh; }
    .form-row { grid-template-columns: 1fr; }
    .logo img { height: 46px; }
}
