/* BSA Management System Services Ltd - site styles (v2)
   Brand: navy + blue on white. Set exact hex codes in the tokens below. */
:root {
  --ink: #0a1240;
  --navy: #1a237e;
  --blue: #009de0;
  --blue-ink: #00669e;       /* blue for text on white (AA contrast) */
  --mist: #eef3fa;
  --mist-2: #e1e9f5;
  --line: #d3dcea;
  --text: #36405c;
  --white: #fff;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --util-h: 38px;
  --bar-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0; letter-spacing: -.015em; line-height: 1.12; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 500; background: var(--navy); color: #fff; padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 26px; border: 2px solid transparent; border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .005em; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--blue-ink); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.linkrow { display: inline-flex; align-items: center; gap: .55em; font-family: var(--display); font-weight: 700; color: var(--blue-ink); }
.linkrow .ico { transition: transform .25s var(--ease); }
.linkrow:hover .ico { transform: translateX(4px); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; }
.iconbtn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.iconbtn--dark { border-color: var(--line); }

/* Utility strip */
.util { background: var(--ink); color: #c9d2ee; font-size: .875rem; height: var(--util-h); }
.util__in { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.util__status { margin: 0; display: flex; align-items: center; gap: 10px; max-width: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6c7bb0; flex: none; }
.dot.is-open { background: #3ad07d; box-shadow: 0 0 0 4px rgba(58,208,125,.2); }
.util__right { display: flex; align-items: center; gap: 26px; }
.util a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.util a:hover, .util .linkbtn:hover { color: #fff; }
.util b { color: #fff; font-weight: 600; }

/* Header bar */
.bar { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); height: var(--bar-h); }
.bar__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: #fff; background: var(--navy); padding: 10px 12px 9px; letter-spacing: .01em; border-bottom: 4px solid var(--blue); }
.brand__name { font-family: var(--display); font-weight: 600; font-size: .8125rem; line-height: 1.2; color: var(--navy); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__mark { background: #fff; color: var(--navy); }
.menu { margin-left: auto; height: 100%; }
.menu__list { display: flex; height: 100%; align-items: stretch; }
.menu__list > li { display: flex; }
.menu__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; background: none; border: 0; font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink); transition: color .2s; }
.menu__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu__link:hover, .has-panel.is-open > .menu__link, .menu__link.is-current { color: var(--blue-ink); }
.menu__link:hover::after, .has-panel.is-open > .menu__link::after, .menu__link.is-current::after { transform: scaleX(1); }
.chev { width: .9em; height: .9em; transition: transform .25s var(--ease); }
.has-panel.is-open .chev { transform: rotate(180deg); }
.bar__end { display: flex; align-items: center; gap: 12px; flex: none; }
.bar__cta { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.menu__toggle { display: none; }
.dock { display: none; }

/* Mega panels (desktop) */
.panel { background: #fff; }
.panel__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 32px; padding-block: 8px; }
.pitem { display: block; padding: 20px 0; border-top: 2px solid var(--line); transition: border-color .25s; }
.pitem b { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.pitem span { display: block; font-size: .9rem; line-height: 1.5; color: var(--text); }
.pitem:hover { border-top-color: var(--blue); }
.pitem:hover b { color: var(--blue-ink); }
.pitem--note { background: var(--mist); padding-inline: 18px; border-top-color: var(--mist); }
@media (min-width: 1001px) {
  .panel { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -18px rgba(10,18,64,.28); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .3s var(--ease), visibility .22s; }
  .has-panel.is-open > .panel { opacity: 1; visibility: visible; transform: none; }
  .pitem { margin-block: 10px 14px; }
}

/* Section scaffold */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--mist { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.split__side { position: sticky; top: calc(var(--bar-h) + 32px); }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; margin-bottom: 20px; }
.h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 3.9vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 26px; }
.ln { text-wrap: balance; display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: block; animation: lineUp .9s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .1s; }
.ln:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { font-size: 1.15rem; margin-bottom: 32px; animation: fadeIn .8s .45s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeIn .8s .55s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__stage { min-width: 0; }
.frame { position: relative; aspect-ratio: 16 / 12; overflow: hidden; background: var(--navy); animation: unveil 1.1s .15s var(--ease) both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide .ph { position: absolute; inset: 0; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .ph { transform: scale(1); }
.cap { position: absolute; left: 0; bottom: 0; background: #fff; padding: 22px 28px 24px; width: min(440px, 88%); border-top: 4px solid var(--blue); transform: translateY(14px); opacity: 0; transition: transform .6s .2s var(--ease), opacity .6s .2s; }
.slide.is-active .cap { transform: none; opacity: 1; }
.cap h2 { font-size: 1.5rem; margin-bottom: 8px; }
.cap p { margin-bottom: 14px; font-size: 1rem; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0 18px; align-items: end; margin-top: 14px; }
.tab { position: relative; text-align: left; background: none; border: 0; border-top: 2px solid var(--line); padding: 14px 0 0; font-family: var(--display); font-weight: 600; font-size: .95rem; color: #6b7494; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--blue); }
.tab.is-active { color: var(--navy); }
.tab.is-active::after { animation: fill 7s linear forwards; }
.hero.is-paused .tab.is-active::after { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.tabs__ctl { display: flex; gap: 8px; }

/* Blueprint placeholder (swap for real photos with a background-image) */
.ph { position: relative; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 36px 36px; }
.ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.2); pointer-events: none; }
.ph--b { background-color: #101a66; }
.ph--c { background-color: #16418f; }

/* Week strip */
.week { background: var(--mist); border-block: 1px solid var(--line); }
.week__in { display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 0 28px; padding-block: 22px; }
.week__head h2 { font-size: 1.15rem; }
.week__note { margin: 2px 0 0; font-size: .9rem; }
.week__days { display: grid; grid-template-columns: repeat(6, 1fr); }
.wday { position: relative; padding: 8px 14px 12px; border-left: 1px solid var(--line); font-size: .9rem; line-height: 1.35; }
.wday b { display: block; font-family: var(--display); color: var(--navy); font-size: 1rem; }
.wday span { display: flex; align-items: center; gap: 7px; }
.wday i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.wday::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(var(--n) * 90ms); }
.week.is-in .wday::after { transform: scaleX(1); }
.wday--partial i { background: linear-gradient(90deg, var(--blue) 50%, var(--line) 50%); }
.wday--partial::after { background: #7fcbee; }
.wday--full { background: var(--mist-2); }
.wday--full i { background: var(--navy); }
.wday--full::after { background: var(--navy); }
.wday--today b::after { content: " today"; font-family: var(--body); font-weight: 500; font-size: .8rem; color: var(--blue-ink); }

/* Services rows */
.rows { border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) 28px; gap: 12px 32px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.row::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--blue); transition: width .45s var(--ease); }
.row:hover { background: var(--mist); padding-inline: 18px; }
.row:hover::before { width: 100%; }
.row__t { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--navy); line-height: 1.2; }
.row__d { max-width: 58ch; }
.row__i { margin-top: 4px; color: var(--blue-ink); transition: transform .3s var(--ease); }
.row:hover .row__i { transform: translateX(6px); }

/* Why / values */
.portrait { margin: 32px 0 0; width: min(280px, 100%); }
.portrait__img { aspect-ratio: 4 / 5; background: #c9d4ec; display: grid; place-items: end center; overflow: hidden; border-bottom: 5px solid var(--navy); }
.portrait__img svg { width: 80%; color: #7e8dc4; }
.portrait figcaption { font-size: .9rem; margin-top: 8px; }
.acc { border-bottom: 1px solid var(--line); }
.acc__item { border-top: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--navy); text-align: left; transition: color .2s, padding .3s var(--ease); }
.acc__btn:hover { color: var(--blue-ink); padding-left: 8px; }
.acc__btn .ico { transition: transform .35s var(--ease); }
.acc__item.is-open .acc__btn .ico { transform: rotate(180deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body p { overflow: hidden; margin: 0; padding-right: 40px; }
.acc__item.is-open .acc__body p { padding-bottom: 24px; }

/* Testimonials */
.who { display: grid; margin-top: 8px; }
.who__btn { text-align: left; background: none; border: 0; border-left: 3px solid var(--line); padding: 12px 0 12px 18px; transition: border-color .25s, background .25s, padding .25s var(--ease); }
.who__btn b { display: block; font-family: var(--display); color: var(--navy); }
.who__btn span { display: block; font-size: .88rem; line-height: 1.4; }
.who__btn:hover { border-left-color: var(--blue); }
.who__btn.is-active { border-left-color: var(--blue); background: var(--mist); padding-left: 24px; }
.quote { display: none; margin: 0; }
.quote.is-active { display: block; animation: swap .5s var(--ease); }
.quote p { max-width: 30em; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.5vw, 2.15rem); line-height: 1.32; color: var(--ink); letter-spacing: -.01em; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* News */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.25; transition: background .2s, color .2s, border-color .2s; }
.chip small { font-family: var(--body); font-weight: 400; font-size: .75rem; opacity: .75; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.news { border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.news li { border-top: 1px solid var(--line); }
.news li.is-hidden { display: none; }
.news:not(.is-expanded) li.more { display: none; }
.npost { width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr) 24px; gap: 22px; align-items: center; padding: 18px 12px 18px 0; background: none; border: 0; text-align: left; transition: background .25s, padding .3s var(--ease); }
.npost:hover { background: #fff; padding-left: 16px; }
.npost__thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.npost__thumb::after { inset: 6px; }
.npost__txt { display: block; }
.npost__meta { display: block; margin: 0 0 4px; font-size: .84rem; color: var(--blue-ink); font-weight: 600; max-width: none; }
.npost__t { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--navy); }
.npost .ico { color: var(--blue-ink); transition: transform .3s var(--ease); }
.npost:hover .ico { transform: translateX(5px); }
.empty { font-weight: 500; }

/* Media */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--navy); }
.video .ph { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.video:hover .ph { transform: scale(1.04); }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 1.5rem; transition: transform .3s var(--ease), background .2s, color .2s; }
.video:hover .video__play { transform: scale(1.1); background: var(--blue); color: var(--ink); }
.video__cap { position: absolute; left: 0; bottom: 0; background: #fff; padding: 10px 18px; font-family: var(--display); font-weight: 700; color: var(--navy); border-top: 3px solid var(--blue); }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 14px; margin-bottom: 8px; scrollbar-width: thin; }
.ig { flex: 0 0 clamp(130px, 18vw, 170px); aspect-ratio: 1; scroll-snap-align: start; display: grid; place-items: center; color: #fff; font-size: 1.6rem; overflow: hidden; }
.ig .ico { opacity: 0; transform: scale(.7); transition: all .3s var(--ease); }
.ig:hover .ico { opacity: 1; transform: none; }

/* Clients */
.logos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-bottom: 1px solid var(--line); }
.logos li { border-top: 1px solid var(--line); }
.logos a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--navy); transition: color .2s, padding .3s var(--ease); }
.logos a .ico { color: var(--blue-ink); transition: transform .3s var(--ease); }
.logos a:hover { color: var(--blue-ink); padding-left: 8px; }
.logos a:hover .ico { transform: translate(3px, -3px); }

/* Contact / pay */
.facts { display: grid; gap: 18px; margin-top: 8px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .ico { margin-top: 4px; color: var(--blue-ink); width: 1.3em; height: 1.3em; }
.facts a { font-weight: 600; color: var(--navy); }
.panelbox { border: 1px solid var(--line); background: #fff; }
.ptabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ptab { padding: 18px 12px; background: var(--mist); border: 0; border-bottom: 3px solid transparent; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #55608a; transition: background .2s, color .2s, border-color .2s; }
.ptab:hover { color: var(--navy); }
.ptab.is-active { background: #fff; color: var(--navy); border-bottom-color: var(--blue); }
.form { display: none; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(22px, 4vw, 40px); }
.form.is-active { display: grid; animation: swap .4s var(--ease); }
.field { display: grid; gap: 6px; }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid #b9c5dc; border-radius: 3px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,157,224,.2); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field__err { font-size: .85rem; color: #b3261e; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__msg { margin: 0; font-size: .92rem; }

/* Footer */
.foot { background: var(--ink); color: #b8c2e3; font-size: .98rem; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 64px 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot__lead { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; max-width: 20ch; line-height: 1.15; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-block: 52px; }
.foot h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.foot__about { margin-top: 18px; max-width: 34ch; }
.foot ul { display: grid; gap: 10px; }
.foot p { margin-bottom: .6em; }
.foot a { transition: color .2s; }
.foot a:hover { color: #fff; }
.foot__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 22px 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 400; background: rgba(10,18,64,.55); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.search.is-open { opacity: 1; visibility: visible; }
.search__box { width: min(640px, 100%); background: #fff; transform: translateY(-14px); transition: transform .35s var(--ease); max-height: 70vh; overflow: auto; }
.search.is-open .search__box { transform: none; }
.search__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.search__row input { flex: 1; border: 0; font-size: 1.1rem; padding: 10px 0; background: none; color: var(--ink); }
.search__row input:focus { outline: 0; }
.search__list a { display: block; padding: 14px 22px; border-bottom: 1px solid var(--line); transition: background .15s; }
.search__list a:hover, .search__list a:focus { background: var(--mist); outline: 0; }
.search__list b { display: block; font-family: var(--display); color: var(--navy); }
.search__list span { font-size: .9rem; }
.search__none { padding: 18px 22px; margin: 0; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 450; visibility: hidden; transition: visibility .4s; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(10,18,64,.5); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer__nav { display: flex; gap: 8px; }
.gal { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.gal__s { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: .9rem; }
.gal__s.is-active { opacity: 1; }
.gal__b { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; z-index: 2; transition: background .2s; }
.gal__b:hover { background: var(--blue); }
.gal__b--p { left: 14px; } .gal__b--n { right: 14px; }
.gal__n { position: absolute; right: 0; bottom: 0; background: #fff; color: var(--navy); font-size: .82rem; font-weight: 600; padding: 4px 12px; z-index: 2; }
.drawer__body { padding: clamp(24px, 4vw, 44px); }
.drawer__body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.drawer__body .btn { margin-top: 12px; }

/* Company modal */
.modal { position: fixed; inset: 0; z-index: 460; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__bg { position: absolute; inset: 0; background: rgba(10,18,64,.6); }
.modal__panel { position: relative; background: #fff; width: min(680px, 100%); max-height: 94vh; overflow: auto; padding: clamp(28px, 5vw, 48px); border-top: 5px solid var(--blue); transform: translateY(18px); transition: transform .45s var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__x { position: absolute; right: 14px; top: 14px; }
.modal h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 44px; margin-bottom: 10px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 26px; }
.pick__btn { text-align: left; padding: 16px 18px; background: #fff; border: 1.5px solid var(--line); border-radius: 3px; transition: border-color .2s, background .2s; }
.pick__btn b { display: block; font-family: var(--display); color: var(--navy); line-height: 1.25; margin-bottom: 4px; }
.pick__btn span { font-size: .9rem; line-height: 1.4; display: block; }
.pick__btn:hover { border-color: var(--blue); }
.pick__btn.is-selected { border-color: var(--navy); background: var(--mist); box-shadow: inset 4px 0 0 var(--blue); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Schedule page */
.banner { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.banner h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; margin-bottom: 10px; }
.crumbs { font-size: .92rem; margin: 0; }
.crumbs a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.sched { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.notice { display: none; align-items: center; gap: 12px; padding: 16px 20px; margin-bottom: 24px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 600; border-left: 5px solid var(--blue); }
.notice.is-on { display: flex; animation: swap .4s var(--ease); }
.cal { border: 1px solid var(--line); background: #fff; }
.cal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cal__head h2 { font-size: 1.4rem; }
.cal__nav { display: flex; gap: 8px; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--mist); }
.cal__dow div { padding: 10px 6px; text-align: center; font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--navy); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.day { position: relative; aspect-ratio: 1 / .85; padding: 8px 10px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); transition: background .2s; }
.day:nth-child(7n) { border-right: 0; }
.day small { position: absolute; left: 10px; bottom: 7px; font-family: var(--body); font-weight: 500; font-size: .72rem; }
.day--blank { background: var(--mist); }
.day--past { color: #a5adc6; background: #fafbfd; }
.day--partial { background: #e4f4fc; }
.day--full { background: var(--navy); color: #fff; }
.day--today::after { content: ""; position: absolute; right: 9px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
button.day:not(:disabled):hover { background: var(--mist-2); }
.day--full:hover { background: var(--navy); }
.day.is-picked { outline: 3px solid var(--blue); outline-offset: -3px; z-index: 1; }
.side-note { border-top: 4px solid var(--blue); background: var(--mist); padding: 24px; margin-bottom: 20px; }
.side-note h2 { font-size: 1.2rem; margin-bottom: 12px; }
.legend li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.legend i { width: 22px; height: 22px; border: 1px solid #b9c5dc; background: #fff; flex: none; }
.legend .l-partial { background: #e4f4fc; } .legend .l-full { background: var(--navy); border-color: var(--navy); }
.pickbox { min-height: 120px; }
.pickbox p { margin-bottom: 12px; }

/* Responsive */
@media (max-width: 1180px) {
  .brand__name { display: none; }
  .menu__link { padding: 0 11px; font-size: .93rem; }
  .menu__link::after { left: 11px; right: 11px; }
}
@media (max-width: 1000px) {
  :root { --bar-h: 68px; }
  .util { display: none; }
  .menu__toggle { display: grid; }
  .bar__cta { display: none; }
  .brand__name { display: block; }
  .menu { position: fixed; inset: var(--bar-h) 0 0 0; height: auto; background: #fff; overflow-y: auto; padding: 8px 24px 120px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu__list { flex-direction: column; height: auto; }
  .menu__list > li { display: block; border-bottom: 1px solid var(--line); }
  .menu__link { width: 100%; justify-content: space-between; padding: 20px 0; font-size: 1.3rem; }
  .menu__link::after { display: none; }
  .panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .has-panel.is-open > .panel { max-height: 700px; }
  .panel__in { display: block; width: 100%; padding: 0 0 12px 14px; }
  .pitem { padding: 14px 0; border-top: 0; border-left: 3px solid var(--line); padding-left: 16px; margin-bottom: 6px; }
  .pitem--note { background: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(10,18,64,.25); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-family: var(--display); font-weight: 600; font-size: .78rem; color: var(--navy); }
  .dock a .ico { font-size: 1.3rem; color: var(--blue-ink); }
  body { padding-bottom: 62px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__side { position: static; }
  .week__in { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .week__days { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .wday:nth-child(3n+1) { border-left: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .sched { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 32px); }
  .brand__name { display: none; }
  .frame { aspect-ratio: 4 / 4.4; }
  .cap { width: 100%; padding: 18px 20px 20px; }
  .tabs { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .tabs__ctl { grid-column: 1 / -1; }
  .tab { font-size: .82rem; }
  .row { grid-template-columns: 1fr 24px; }
  .row__d { grid-column: 1; grid-row: 2; }
  .row__i { grid-column: 2; grid-row: 1; }
  .npost { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .npost > .ico { display: none; }
  .npost__t { font-size: 1.05rem; }
  .logos { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .pick { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__top { padding-block: 44px 32px; }
  .acc__btn { font-size: 1.2rem; }
  .gal { aspect-ratio: 4 / 3; }
  .modal { align-items: end; padding: 0; }
  .day { aspect-ratio: 1; padding: 5px; font-size: .9rem; }
  .day small { display: none; }
  .cal__dow div { font-size: .72rem; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tab.is-active::after { width: 100%; animation: none; }
  .wday::after { transform: scaleX(1); }
}

/* ---------- Added with the dashboard: logo, jobs phase, document lists, inner pages ---------- */
.brand__logo { height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.strip .ig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.job[hidden] { display: none; }
.job__main b { display: block; color: var(--navy); font-weight: 600; }
.job__main span { color: #4a557a; font-size: .92rem; }
.job__bar { grid-column: 1 / -1; height: 4px; background: var(--line); overflow: hidden; }
.job__bar i { display: block; height: 100%; width: var(--p); background: var(--blue); transform-origin: left; animation: barIn 1s var(--ease, ease) both; }
.job--completed .job__bar i { background: var(--navy); }
@keyframes barIn { from { transform: scaleX(0); } }
.pill { font-size: .8rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); white-space: nowrap; }
.pill--ongoing { color: var(--blue-ink); border-color: #9fd5f0; background: #eaf7fd; }
.pill--completed { color: #fff; background: var(--navy); border-color: var(--navy); }
.pill--not_started { color: #4a557a; }
#jobMore { margin-top: 22px; }
.prose section { padding-bottom: 44px; scroll-margin-top: 130px; }
.prose p { max-width: 68ch; line-height: 1.7; }
.sidenav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 130px; align-self: start; }
.sidenav a { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); color: var(--navy); font-weight: 500; text-decoration: none; transition: border-color .2s, padding .2s; }
.sidenav a:hover, .sidenav a:focus-visible { border-color: var(--blue); padding-left: 20px; }
.defs { margin: 0; display: grid; gap: 0; }
.defs div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 600; color: var(--navy); }
.defs dd { margin: 0; }
.docs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; transition: padding .2s, background .2s; }
.docs a:hover, .docs a:focus-visible { padding-left: 10px; background: var(--mist); }
.docs__ext { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--navy); padding: 4px 7px; }
.vid { margin: 0 0 22px; }
.vid video { width: 100%; max-height: 520px; background: #000; display: block; }
.vid figcaption { padding-top: 8px; color: #4a557a; font-size: .92rem; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-bottom: 40px; }
.gridpics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.gridpics img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.form--req { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .defs div { grid-template-columns: minmax(0, 1fr); } .sidenav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; } .sidenav a { border: 1px solid var(--line); padding: 8px 12px; } }

/* ---------- pages added for each menu link ---------- */
.sidenav a.is-current { border-color: var(--blue); padding-left: 20px; color: var(--blue-ink); font-weight: 600; }
.lead { font-size: 1.15rem; max-width: 62ch; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); color: var(--text); transition: border-color .2s, transform .25s var(--ease); height: 100%; }
a.card:hover, a.card:focus-visible { border-top-color: var(--blue); transform: translateY(-3px); }
.card h2 { font-size: 1.3rem; }
.card p { margin: 0; }
.card .linkrow { margin-top: auto; padding-top: 10px; }
.card__sub { font-size: .9rem; color: #5b6580; }
.cards--jobs { margin-bottom: 24px; }
.cjobs { display: grid; margin-top: 6px; }
.cjobs li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.cjobs b { display: block; color: var(--navy); font-weight: 600; line-height: 1.35; }
.cjobs div span { font-size: .85rem; color: #4a557a; }
.portrait__img--photo { background: var(--mist-2); }
.portrait__img--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credit { font-size: .9rem; opacity: .85; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--blue); }

/* a row that is plain text, not a link */
.row--text { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); }
.row--text:hover { background: transparent; padding-inline: 0; }
.row--text:hover::before { width: 0; }
@media (max-width: 900px) { .row--text { grid-template-columns: minmax(0, 1fr); } }

/* Jobs phase table */
.tbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 18px; }
.tbar__f input, .tbar__f select { font: inherit; padding: 11px 14px; border: 1px solid var(--line); background: #fff; color: var(--navy); min-width: 230px; border-radius: 8px; }
.tbar__f input:focus, .tbar__f select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.tbar__n { margin: 0 0 0 auto; color: #4a557a; font-size: .92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.twrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.jtable { width: 100%; border-collapse: collapse; min-width: 640px; }
.jtable th, .jtable td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.jtable thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; position: sticky; top: 0; }
.jtable tbody tr:last-child > * { border-bottom: 0; }
.jtable tbody tr:nth-child(even) { background: #f6f9fe; }
.jtable tbody tr:hover { background: #eaf3fd; }
.jtable tbody th b { display: block; color: var(--navy); font-weight: 600; }
.jtable tbody th span { display: block; color: #4a557a; font-size: .88rem; font-weight: 400; margin-top: 2px; }
.jtable td { color: #26324f; }
.jtable tr[hidden] { display: none; }
.jtable .pill { display: inline-block; white-space: normal; }
@media (max-width: 720px) {
  .twrap { border: 0; background: transparent; overflow: visible; }
  .jtable { min-width: 0; }
  .jtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jtable, .jtable tbody, .jtable tr, .jtable th, .jtable td { display: block; }
  .jtable tbody tr { border: 1px solid var(--line); border-radius: 10px; background: #fff !important; margin-bottom: 12px; padding: 6px 0; }
  .jtable tbody th, .jtable td { border: 0; padding: 8px 16px; }
  .jtable td::before { content: attr(data-label); display: block; font-size: .78rem; color: #4a557a; margin-bottom: 2px; }
  .tbar__f, .tbar__f input, .tbar__f select { width: 100%; }
  .tbar__n { margin-left: 0; }
}
