/* ==========================================================================
   Valar Advisory: the styles for the whole site, in one file.
   Colors and fonts are set once in :root below. Change them there and every
   page follows. Before adding a new rule, search this file for the thing you
   are styling: a second rule for it changes every page that uses it.
   ========================================================================== */

/* ---------- Fonts (stored on the site, no outside requests) ---------- */
/* If a font file is replaced, raise the ?v= number so browsers fetch it again. */
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans.woff2?v=1") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-italic.woff2?v=1") format("woff2");
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display.woff2?v=1") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Colors, fonts and widths ---------- */
:root {
    --navy: #001e38;        /* header and footer */
    --navy-deep: #00172b;   /* the strip under the footer */
    --ink: #1f2742;         /* headings and buttons */
    --ink-hover: #2e3a62;
    --text: #4d4d4d;        /* body text */
    --text-dark: #1a203a;
    --white: #ffffff;
    --surface: #f4f5f8;     /* light panels */
    --focus: #f0b429;       /* outline around whatever the keyboard is on */

    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Open Sans", Arial, sans-serif;

    --max-w: 1080px;
    --gutter: clamp(16px, 4vw, 24px);
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
}

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

a { color: var(--ink); }

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}

p { margin: 0 0 1.1em; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border: 2px solid var(--ink);
    border-radius: 50px;
    background: var(--ink);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

/* White outline button, for navy backgrounds. */
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header and menu ---------- */
.site-header { background: var(--navy); }

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
}

.logo img { width: 155px; }

.site-nav ul {
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.7); }

.menu-toggle { display: none; }

@media (max-width: 860px) {
    .header-inner { min-height: 72px; }

    /* Without JavaScript the menu simply stays open under the logo. */
    .js .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 10px 14px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 6px;
        background: none;
        color: var(--white);
        font: 600 15px var(--font-body);
        cursor: pointer;
    }

    .menu-toggle-bars,
    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        position: relative;
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
    }
    .menu-toggle-bars::before,
    .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .menu-toggle-bars::before { top: -6px; }
    .menu-toggle-bars::after { top: 6px; }

    .site-nav { width: 100%; }
    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: block; }

    .site-nav ul { flex-direction: column; gap: 0; padding: 4px 0 14px; }
    .site-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.12); text-decoration: underline; }
}

/* ---------- Home page: skyline and the Let's Connect box ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Darkens the left of the photo so the white words stay readable. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    min-height: 690px;
    padding-top: 72px;
}

.hero-text h1 {
    margin-bottom: 0.45em;
    color: var(--white);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    line-height: 1.12;
}

.hero-text p {
    max-width: 24em;
    font-size: clamp(1.15rem, 2vw, 1.375rem);
    line-height: 1.5;
}

/* Kim, October 19, 2026: "just a little bit transparent". Made more
   see-through on October 23, 2026 (Andrew): 68% white. The blur keeps the
   text easy to read over the photo; below about 60% it starts to suffer. */
.connect {
    align-self: end;
    padding: 30px 50px 40px;
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
}

.connect h2 {
    margin-bottom: 0.35em;
    font-size: clamp(2.25rem, 4.5vw, 3.125rem);
    line-height: 1.15;
}

.connect p { font-size: 15px; line-height: 1.8; }
.connect .btn { padding: 16px 26px; }
.connect a:not(.btn) { color: var(--text-dark); font-weight: 600; }

@media (max-width: 860px) {
    .hero::after { background: rgba(0, 0, 0, 0.5); }
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: 0;
        padding-top: 48px;
    }
    .connect { padding: 26px 22px 30px; }
}

/* ---------- Inner pages ---------- */
.page { padding: 56px 0 80px; }

.page h1 { font-size: clamp(2.1rem, 4.5vw, 2.75rem); }

.prose { max-width: 860px; }

/* Small bold headings inside a page, as on the old site. */
.label-heading {
    margin: 0 0 0.35em;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-dark);
}

.lead {
    max-width: 40em;
    font-size: 1.1rem;
    font-style: italic;
}

/* For Partners: the opening statement with its arrow. */
.intro-statement {
    position: relative;
    max-width: 30em;
    padding-left: 30px;
    color: var(--text-dark);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 300;
    line-height: 1.55;
}
.intro-statement::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 11px;
    height: 11px;
    border-top: 3px solid var(--ink);
    border-right: 3px solid var(--ink);
    transform: rotate(45deg);
}

/* Two newspaper-style columns: 1 to 3 on the left, 4 to 6 on the right,
   and a single list in order on phones. */
.service-list {
    columns: 2;
    column-gap: 56px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}
.service-list li {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
    break-inside: avoid;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink);
}
.service-list p { margin: 0; }

/* Capital Raise: two columns of short sections, then a closing panel. */
.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 56px;
    margin-top: 36px;
}

.callout {
    margin-top: 40px;
    padding: 34px 38px;
    border-top: 4px solid var(--ink);
    background: var(--surface);
}
.callout h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.callout p:last-of-type { margin-bottom: 1.4em; }

@media (max-width: 760px) {
    .service-list { columns: 1; }
    .columns-2 { grid-template-columns: minmax(0, 1fr); }
    .callout { padding: 26px 22px; }
}

/* Our Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 32px;
}
.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 18px;
    border-radius: 6px;
    object-fit: cover;
}
.team-card .label-heading { font-size: 1.1rem; }

@media (max-width: 900px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .team-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    margin-top: 32px;
}
.contact-block { margin-bottom: 26px; }
.protected-email { color: var(--ink); }
.contact-block p { margin: 0; }

.contact-panel {
    align-self: start;
    padding: 34px 36px 38px;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
}
.contact-panel h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2rem); }

@media (max-width: 760px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .contact-panel { padding: 28px 22px 30px; }
}

/* Contact form */
.contact-form-wrap {
    max-width: 680px;
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid #e2e5ec;
    scroll-margin-top: 24px;
}
.contact-form-wrap h2 { font-size: clamp(1.6rem, 3vw, 2rem); }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
}
.form-field .optional { color: var(--text); font-weight: 400; }

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b9bfcc;
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    font: 16px/1.5 var(--font-body);   /* 16px stops phones zooming in */
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.form-field [aria-invalid="true"] { border-color: #b3261e; }

.form-error { margin: 6px 0 0; color: #b3261e; font-size: 14px; }
.form-error-box {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 4px solid #b3261e;
    background: #fdf1f0;
    font-size: 15px;
}
.form-success {
    padding: 16px 20px;
    border-left: 4px solid #1e7b45;
    background: #eef8f1;
    color: var(--text-dark);
}
.form-note { margin: 12px 0 0; font-size: 14px; }

/* Spam trap: off screen, never seen or reached by people. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
    .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 48px;
}

.footer-logo img { width: 155px; margin-bottom: 18px; }
.footer-about p { max-width: 24em; }

.footer-heading {
    margin-bottom: 14px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .btn:hover { text-decoration: none; }

.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 2px; }
/* Taller links so they are easy to tap on a phone. */
.footer-links a,
.footer-contact a:not(.btn),
.contact-block a { display: inline-block; padding: 4px 0; }

.footer-contact p { margin-bottom: 0.8em; }

.footer-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-buttons .btn { padding: 12px 18px; font-size: 13px; }

.footer-bottom {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}
.footer-bottom p { margin: 0; padding: 18px 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.8); display: inline-block; padding: 4px 0; }
.footer-sep { margin: 0 8px; }

/* Privacy and Terms pages */
.legal h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 2.5vw, 1.6rem); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal-updated { font-size: 15px; font-style: italic; }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 44px; }
}

/* ---------- Back-to-top button ---------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.no-js .to-top { display: none; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
