/* =========================================================
   Benilde Hall — Home v2
   Editorial, airy, light. Serif display (Fraunces) + Figtree.
   White + light greys; navy & red used sparingly as accents.
   ========================================================= */

.v2 {
    --bg:        #ffffff;
    --soft:      #f5f6f7;   /* light grey section */
    --softer:    #fafbfb;
    --line:      #e7e9ec;   /* hairline */
    --line-2:    #d9dde1;
    --ink:       #19222b;   /* near-black slate */
    --muted:     #69737d;
    --navy:      #204058;   /* sparse accent */
    --navy-dark: #16303f;
    --red:       #881818;   /* sparse accent */

    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:    'Figtree', system-ui, -apple-system, sans-serif;
    --maxw:    1160px;

    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; }
.v2 img, .v2 picture { max-width: 100%; display: block; }
.v2 a { color: var(--navy); text-decoration: none; }

.v2-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

.v2-skip { position: absolute; left: -999px; }
.v2-skip:focus { left: 1rem; top: 1rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }

/* ---------- Type ---------- */
.v2 h1, .v2 h2, .v2 h3, .v2 h4 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -0.015em; }
.v2-h2 { font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.1; margin-bottom: 1rem; }
.v2-body { margin: 0 0 1.1rem; color: var(--ink); }
.v2-lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 48ch; margin: 0 0 2rem; }
.v2-lead--center { margin-inline: auto; }
.v2-center { text-align: center; margin-top: 2.6rem; }

/* ---------- Eyebrow (small red accent + rule) ---------- */
.v2-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--sans); font-weight: 600; font-size: .78rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1.1rem;
}
.v2-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--red); }
.v2-eyebrow--center { justify-content: center; }

/* ---------- Buttons ---------- */
/* Selectors scoped under .v2 so their color beats the base `.v2 a` rule. */
.v2 .v2-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--sans); font-weight: 600; font-size: 1rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.v2 .v2-btn:hover { transform: translateY(-1px); text-decoration: none; }
.v2 .v2-btn--solid { background: var(--navy); color: #fff; }
.v2 .v2-btn--solid:hover { background: var(--navy-dark); color: #fff; }
.v2 .v2-btn--outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.v2 .v2-btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.v2 .v2-btn--text { color: var(--red); padding-inline: .1rem; }
.v2 .v2-btn--text:hover { text-decoration: underline; transform: none; }
.v2 .v2-btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.v2-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.v2-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: .9rem; }
.v2-logo img { height: 58px; width: auto; }
.v2-nav { display: flex; align-items: center; gap: 1.7rem; }
.v2-nav a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.v2-nav a:hover { color: var(--red); }
.v2-nav a[aria-current="page"] { color: var(--red); }
.v2-nav__cta { color: #fff; }
.v2-nav__cta:hover { color: #fff; }

.v2-burger { display: none; cursor: pointer; }
.v2-burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
.v2-burger span + span { margin-top: 5px; }

/* ---------- Framed images ---------- */
.v2-frame { border-radius: 20px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.v2-frame--tall { aspect-ratio: 4 / 5; }
.v2-frame--round { width: 150px; height: 150px; border-radius: 50%; aspect-ratio: 1; flex: none; }
/* Make the <picture> wrapper fill its box so <img> cover has a height to fill */
.v2-frame picture, .v2-card__media picture { display: block; width: 100%; height: 100%; }
.v2-frame img, .v2-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.v2-hero__inner {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.v2-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1.04; margin-bottom: 1.2rem; }
.v2-hero h1 em { font-style: italic; color: var(--navy); }
.v2-hero__actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.v2-hero__media { position: relative; }
.v2-hero__media::before { /* soft grey depth panel */
    content: ""; position: absolute; right: -1.1rem; bottom: -1.1rem; width: 70%; height: 70%;
    background: var(--soft); border-radius: 20px; z-index: -1;
}

/* ---------- Stats ---------- */
.v2-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v2-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.v2-stat { padding: clamp(2rem, 4vw, 3.2rem) 1.2rem; text-align: center; border-left: 1px solid var(--line); }
.v2-stat:first-child { border-left: 0; }
.v2-stat__num { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1; color: var(--navy); }
.v2-stat__num--sm { font-size: 1.9rem; }
.v2-stat__num .u { color: var(--red); font-size: .55em; vertical-align: super; margin-left: .04em; }
.v2-stat__label { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.v2-section { padding-block: clamp(4rem, 8vw, 7rem); }
.v2-section--soft { background: var(--soft); }
.v2-head { max-width: 640px; margin-bottom: 3rem; }
.v2-head--center { margin-inline: auto; text-align: center; }

/* ---------- Split ---------- */
.v2-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.v2-checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .85rem; }
.v2-checklist li { position: relative; padding-left: 1.9rem; }
.v2-checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.v2-statrow { display: flex; gap: 2.8rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Cards ---------- */
.v2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.v2-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.v2-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(25,34,43,.07); }
.v2-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.v2-card__media img { width: 100%; height: 100%; object-fit: cover; }
.v2-card__body { padding: 1.5rem; }
.v2-tag { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.v2-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: .35rem 0 .5rem; }
.v2-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */
.v2-steps { display: grid; gap: 1.6rem; margin: 2rem 0 2.4rem; counter-reset: step; }
.v2-step { display: flex; gap: 1.2rem; align-items: flex-start; }
.v2-step__n { counter-increment: step; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem; }
.v2-step__n::before { content: counter(step); }
.v2-step h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin: .1rem 0 .3rem; }
.v2-step p { margin: 0; color: var(--muted); }

/* ---------- Testimonial ---------- */
.v2-quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.v2-quote__mark { font-family: var(--display); font-size: 3.5rem; line-height: .5; color: var(--red); height: 1.4rem; }
.v2-quote blockquote { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.35; color: var(--ink); margin: 0 0 1.2rem; }
.v2-quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.v2-quote cite span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; margin-top: .15rem; }

/* ---------- Partner logos (scrolling marquee) ---------- */
.v2-marquee {
    position: relative; overflow: hidden; margin-top: 2.6rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.v2-marquee__track { display: flex; align-items: center; width: max-content; animation: v2-marquee 45s linear infinite; }
.v2-marquee:hover .v2-marquee__track { animation-play-state: paused; }
.v2-marquee__item { flex: none; display: inline-flex; align-items: center; padding-inline: clamp(1.5rem, 3vw, 2.6rem); }
.v2-marquee__item img { height: 48px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .2s ease, opacity .2s ease; }
.v2-marquee__item:hover img { filter: none; opacity: 1; }
@keyframes v2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .v2-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 1.6rem; }
}

/* ---------- CTA ---------- */
.v2-cta { text-align: center; background: #f7f2e8; }
.v2 .v2-cta__title { max-width: 20ch; margin-inline: auto; }
.v2-cta__actions { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Footer (single navy moment) ---------- */
.v2-footer { background: var(--navy); color: #c6d2db; padding-block: 3.5rem 1.8rem; }
.v2-footer a { color: #fff; }
.v2-footer a:hover { text-decoration: underline; }
.v2-footer h4 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: .95rem; margin-bottom: .7rem; }
.v2-footer p { margin: 0 0 .5rem; }
.v2-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.v2-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.v2-footer__name { font-family: var(--display); font-size: 1.5rem; color: #fff; display: block; margin-bottom: .5rem; }
.v2-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .85rem; color: #93a3af; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .v2-hero__inner, .v2-split, .v2-quote { grid-template-columns: 1fr; }
    .v2-hero__media { order: -1; }
    .v2-hero__media::before { display: none; }
    .v2-frame--tall { aspect-ratio: 16 / 10; }
    .v2-cards { grid-template-columns: 1fr 1fr; }
    
    .v2-stats__grid { grid-template-columns: 1fr 1fr; }
    .v2-stat:nth-child(3) { border-left: 0; }
    .v2-stat:nth-child(n+3) { border-top: 1px solid var(--line); }

    .v2-burger { display: block; }
    .v2-nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: .2rem; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.5rem;
        box-shadow: 0 16px 34px rgba(25,34,43,.1); max-height: 0; overflow: hidden; visibility: hidden;
        transition: max-height .25s ease;
    }
    .v2-nav-toggle:checked ~ .v2-nav { max-height: 520px; visibility: visible; }
    .v2-nav a { padding: .7rem .2rem; }
    .v2-nav__cta { text-align: center; margin-top: .4rem; }
    .v2-quote { text-align: center; justify-items: center; }
    .v2-frame--round { margin-inline: auto; }
}
@media (max-width: 560px) {
    .v2-cards { grid-template-columns: 1fr; }
    .v2-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .v2 * { transition: none !important; }
}

/* ---------- Comp drawer (v2) — matches the v1 tab icon & placement ---------- */
.v2-comp-tab {
    position: fixed; left: 0; top: 96px; z-index: 195;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    background: var(--navy); color: #fff; border: 0; padding: 7px; border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px -5px rgba(16,30,40,.5); transition: background .2s ease;
}
.v2-comp-tab:hover { background: var(--red); }
.v2-comp-tab svg { width: 14px; height: 14px; fill: currentColor; display: block; transition: transform .25s ease; }
body.v2-comp-open .v2-comp-tab svg { transform: rotate(180deg); }

.v2-comp {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; width: min(320px, 86vw);
    background: #fff; border-right: 1px solid var(--line); box-shadow: 18px 0 44px rgba(16,30,40,.14);
    padding: 1.4rem 1.5rem; display: flex; flex-direction: column; overflow-y: auto;
    transform: translateX(-100%); transition: transform .28s ease;
}
body.v2-comp-open .v2-comp { transform: translateX(0); }
.v2-comp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.v2-comp__brand { font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.v2-comp__close { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.v2-comp__close:hover { color: var(--red); }

.v2-comp__backs { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.1rem; }
.v2-comp__back {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--navy);
}
.v2-comp__back:hover { color: var(--red); text-decoration: none; }

.v2-comp__section { padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--line); }
.v2-comp__section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.v2-comp__title { display: block; margin-bottom: .6rem; font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.v2-comp__links { display: flex; flex-direction: column; }
.v2-comp__links a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .6rem .55rem; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .98rem;
}
.v2-comp__links a:hover { background: var(--soft); text-decoration: none; }
.v2-comp__links a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.v2-comp__ready { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1c7d47; background: #e7f4ec; border-radius: 999px; padding: 2px 8px; }

.v2-comp__select {
    width: 100%; padding: .55rem 2rem .55rem .7rem; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 10px; background-color: #fff;
    color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: .9rem; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2369737d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .45rem center; background-size: 18px;
}
.v2-comp__select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.v2-comp__note { margin-top: auto; padding-top: 1.2rem; font-size: .78rem; color: var(--muted); }

.v2-comp-backdrop { position: fixed; inset: 0; z-index: 195; background: rgba(16,30,40,.4); opacity: 0; visibility: hidden; transition: .28s; }
body.v2-comp-open .v2-comp-backdrop { opacity: 1; visibility: visible; }
