/* Levare components. All colors, spacing, gaps and sizes come from tokens.css (loaded first). */

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; }
body { margin: 0; font: var(--weight-body) var(--text-base)/var(--leading) var(--font); color: var(--ink); background: var(--bg); }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--brand); font-weight: var(--weight-link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.btn:hover, .social a:hover, .media-card:hover, .g-item:hover, .logo:hover, .footer-inner > a:hover, .badges a:hover, .footer-partner-link:hover { text-decoration: none; }
h1, h2, h3 { font-family: inherit; color: var(--heading); font-weight: var(--weight-heavy); line-height: var(--leading-tight); margin: 0 0 var(--space-3); letter-spacing: var(--tracking-tight); }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin: 0 0 var(--stack); }
.wrap { width: var(--wrap-pct); max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 860px) { .wrap { width: auto; padding: 0 var(--gutter); } }
.uppercase { text-transform: uppercase; }
.section-title { font-size: var(--text-title); text-align: center; }
.form-title { font-size: var(--text-title); }
.two-col .contact-form, .contact-full .contact-form { margin-top: var(--space-6); }
.contact-layout { display: grid; grid-template-columns: 1fr minmax(240px, 22%); gap: var(--space-12); align-items: start; margin-top: var(--space-6); }
.contact-aside { background: var(--bg-alt); border-radius: var(--radius); padding: var(--space-6) var(--space-7); color: var(--ink-on-alt); }
.contact-aside p:last-child { margin-bottom: 0; }
.contact-aside__person a.tel { color: inherit; font-weight: var(--weight-body); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: var(--space-8); } }
.form-photo { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.rounded { border-radius: var(--radius-media); }
/* Every content image and video gets the same corners (logos, badges and icons excluded). */
main img:not(.badges img), main video, .media-card__img, .media-card__img img { border-radius: var(--radius-media); }
main .carousel__slide img { border-radius: calc(var(--radius-media) - 4px); }
.icon { width: var(--icon); height: var(--icon); flex: none; vertical-align: -.2em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: var(--weight-bold); color: var(--brand); margin-bottom: var(--space-1); }
.meta { color: var(--muted); font-size: var(--text-sm); display: flex; align-items: center; gap: var(--gap-xs); flex-wrap: wrap; }
.lead p { font-size: var(--text-lg); }

/* ---------- button ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--gap-xs); background: var(--brand); color: var(--white); text-decoration: none; font: var(--weight-bold) var(--text-base) var(--font); padding: var(--btn-y) var(--btn-x); border-radius: var(--radius-sm); border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn.outline { background: var(--white); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn.outline:hover { background: var(--brand); color: var(--white); }
.btn.light { background: var(--white); color: var(--brand); box-shadow: var(--shadow-md); }
/* light = white button for very busy or dark images */
.btn.light:hover { background: var(--chip-bg); color: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- social icons ---------- */
.social { display: flex; gap: var(--gap-xs); }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--white); transition: background .15s, transform .15s; }
.social a:hover { background: var(--brand-dark); transform: translateY(-1px); }
.social .icon { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); }

.logo { margin-right: auto; }
.logo img { width: 148px; height: auto; }
.site-nav { display: flex; gap: var(--space-5); flex-wrap: nowrap; white-space: nowrap; }
.site-nav a { color: var(--nav-ink); text-decoration: none; font-weight: var(--weight-body); font-size: var(--text-base); padding: var(--space-1) 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2); color: var(--heading); cursor: pointer; }
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-row > .social { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--white); flex-direction: column; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero (one gradient over every banner image) ---------- */
.hero { position: relative; color: var(--white); background-image: var(--hero), var(--image-gradient); background-size: cover; background-position: center; background-repeat: no-repeat; background-blend-mode: var(--image-blend); text-align: center; min-height: var(--hero-h); display: flex; align-items: center; justify-content: center; padding: var(--space-10) 0; }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { color: var(--white); margin: 0; text-transform: uppercase; text-shadow: var(--text-shadow); }
.hero p { margin: var(--space-3) 0 0; font-weight: var(--weight-semibold); }
.hero a { color: var(--white); display: inline-flex; gap: var(--gap-xs); align-items: center; }
.hero--home { background-image: var(--hero), var(--image-gradient-home); background-size: 100% 100%; background-blend-mode: multiply; }
.hero--home h1 { max-width: 820px; margin: 0 auto var(--space-6); }

/* ---------- sections & layout ---------- */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--bg-alt); color: var(--ink-on-alt); }
.section.alt .section-heading .icon, .section.alt .feature-icon { background: var(--white); }
.section--objectives { background: linear-gradient(183deg, rgba(255,255,255,.92) 3%, rgba(255,255,255,.97) 62%, var(--white) 100%), url('/img/site/sketch.webp') center/cover; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-col); align-items: start; }
.cards { display: grid; gap: var(--gap-lg); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .two-col, .cards.three { grid-template-columns: 1fr; } }
.section-heading { display: flex; align-items: center; gap: var(--gap-sm); }
.section-heading .icon { width: 38px; height: 38px; padding: var(--space-2); border-radius: var(--radius); background: var(--chip-bg); color: var(--brand); }

/* ---------- stats strip ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-8) var(--space-6); text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); transition: background .15s; }
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--chip-bg); text-decoration: none; }
.stat__value { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: var(--weight-heavy); line-height: 1; letter-spacing: var(--tracking-tight); color: var(--brand); }
.stat__label { font-size: var(--text-base); color: var(--heading); font-weight: var(--weight-semibold); line-height: 1.35; }
.stat__source { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 960px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .stat { padding: var(--space-6) var(--space-4); } }
.section-cta { margin-top: var(--space-8); }
.home-projects .eyebrow { margin-bottom: var(--space-2); }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow-sm); }
.feature-card { background: none; border: 0; box-shadow: none; padding: 0; }
.feature-card h3 { font-size: var(--text-h3); }
.feature-card .feature-icon { width: 44px; height: 44px; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--chip-bg); color: var(--brand); margin-bottom: var(--space-4); }
.app-card { margin: 0; text-align: center; background: none; border: 0; box-shadow: none; padding: 0; }
.app-card img { width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: center; border-radius: var(--radius-media); }
.media-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.media-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.media-card__img { position: relative; }

.media-card__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.media-card { border-radius: var(--radius-media); }
.media-card__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.media-card__body h3 { margin-bottom: var(--space-2); }
.media-card .meta { margin-bottom: var(--space-1); }
.media-card .more { display: inline-flex; align-items: center; gap: var(--gap-xs); color: var(--brand); font-weight: var(--weight-bold); }

/* ---------- lists ---------- */
.icon-list { list-style: none; padding: 0; }
.icon-list li { display: flex; gap: var(--gap-sm); margin-bottom: var(--space-3); }
.icon-list .icon { color: var(--brand); margin-top: .25em; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: var(--space-1) 0 var(--space-5) var(--space-14); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: var(--weight-heavy); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 2px; width: 2px; background: var(--line); }

/* ---------- badges & media ---------- */
.badges { display: flex; gap: var(--gap-md); align-items: center; margin-top: var(--space-5); }
.badges img { height: 52px; width: auto; }
.badges a { display: inline-flex; border-radius: var(--radius-sm); transition: transform .15s, opacity .15s; }
.badges a:hover { transform: translateY(-2px); opacity: .9; }
.badges a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 4px; }
.badges--small { gap: var(--gap-md); margin: 0; }
.badges--small img { height: 44px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-media); overflow: hidden; background: var(--bg-dark); box-shadow: var(--shadow-md); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wide-video { width: 100%; max-width: 960px; }
.download-list { display: grid; gap: var(--gap-sm); justify-items: start; margin-bottom: var(--stack); }

/* ---------- galleries ---------- */
.gallery-group { margin-top: var(--space-12); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap-sm); }
.gallery.calc { grid-template-columns: repeat(3, 1fr); gap: var(--gutter-desktop); margin-top: var(--space-8); }
@media (max-width: 640px) { .gallery.calc { grid-template-columns: 1fr; } }
.g-item { position: relative; display: block; border-radius: var(--radius-media); overflow: hidden; background: var(--chip-bg); cursor: zoom-in; }
.g-item img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.gallery.calc .g-item img { aspect-ratio: 400/516; object-fit: contain; background: var(--white); }
.g-item:hover img { transform: scale(1.04); }
.g-badge { position: absolute; left: var(--space-2); bottom: var(--space-2); background: var(--scrim); color: var(--white); font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); }
.g-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); pointer-events: none; }
.g-play .icon { width: 54px; height: 54px; filter: drop-shadow(0 2px 8px rgba(var(--blue-gray-900-rgb), .6)); }
.g-pin { position: absolute; right: var(--space-2); top: var(--space-2); background: rgba(255,255,255,.92); color: var(--brand); border-radius: var(--radius-pill); padding: var(--space-1); display: grid; }
.g-pin .icon { width: 15px; height: 15px; }

.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--gap-md); flex-wrap: wrap; margin-bottom: var(--space-3); }
.chips { display: flex; gap: var(--gap-xs); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: var(--gap-xs); font: var(--weight-semibold) .92rem var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip .n { opacity: .75; font-weight: var(--weight-body); }
.toolbar-right { display: flex; gap: var(--gap-xs); flex-wrap: wrap; }
.select { display: inline-flex; align-items: center; gap: var(--gap-xs); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--space-3); color: var(--muted); background: var(--white); }
.select select { border: 0; font: var(--weight-semibold) .92rem var(--font); color: var(--ink); padding: var(--space-2) 0; background: transparent; }
.load-more { margin-top: var(--space-7); }
.gallery-note { margin-top: var(--space-6); justify-content: center; }

/* ---------- carousel ---------- */
.carousel { margin-top: var(--space-8); }
.carousel__track { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gutter-desktop)) / 3); gap: var(--gutter-desktop); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: var(--space-1); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.carousel__slide { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-media); padding: var(--space-3); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.carousel__slide:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.carousel__slide img { width: 100%; height: auto; aspect-ratio: 400 / 516; object-fit: contain; background: var(--white); }
.carousel__slide:hover img { transform: none; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--gap-md); margin-top: var(--space-5); }
.carousel__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--brand); cursor: pointer; transition: background .15s, color .15s; }
.carousel__btn:hover:not(:disabled) { background: var(--brand); color: var(--white); border-color: var(--brand); }
.carousel__btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 860px) { .carousel__track { grid-auto-columns: calc((100% - var(--gutter-desktop)) / 2); } }
@media (max-width: 560px) { .carousel__track { grid-auto-columns: 85%; } }

/* ---------- photo map ---------- */
.photo-map-wrap { margin: var(--space-2) 0 var(--space-8); }
.photo-map { height: clamp(320px, 45vw, 520px); border-radius: var(--radius-media); border: 1px solid var(--line); background: var(--chip-bg); z-index: 0; }
.photo-map-note { margin-top: var(--space-2); }
.photo-pin { background: none; border: 0; }
.photo-pin img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(var(--blue-gray-900-rgb), .45); transition: transform .15s; cursor: pointer; }
.photo-pin:hover img { transform: scale(1.15); }
.photo-cluster { position: relative; background: none; border: 0; }
.photo-cluster img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 2px 10px rgba(var(--blue-gray-900-rgb), .5); }
.photo-cluster span { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 var(--space-1); border-radius: var(--radius-pill); background: var(--brand); color: var(--white); font: var(--weight-bold) var(--text-xs)/24px var(--font); text-align: center; border: 2px solid var(--white); }
.leaflet-container { font-family: var(--font); }
.photo-map .leaflet-tile-pane { filter: grayscale(.55) contrast(.95) brightness(1.03); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: var(--overlay-modal); display: none; align-items: center; justify-content: center; padding: var(--space-5); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox iframe { width: min(92vw, 1280px); aspect-ratio: 16 / 9; height: auto; max-height: 80vh; border: 0; border-radius: var(--radius-media); display: block; margin: 0 auto; }
.lightbox img, .lightbox video { max-height: 80vh; max-width: 92vw; width: auto; border-radius: var(--radius-media); margin: 0 auto; }
.lightbox figcaption { color: var(--blue-gray-100); margin: var(--space-3) auto 0; font-size: .95rem; max-width: 760px; }
.lightbox .lb-meta { display: flex; gap: var(--gap-md); justify-content: center; flex-wrap: wrap; color: var(--blue-gray-300); font-size: var(--text-sm); margin-top: var(--space-2); }
.lightbox .lb-meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.lightbox figcaption a { color: var(--brand-light); }
.lightbox button { position: absolute; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--white); border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: var(--space-4); right: var(--space-4); }
.lightbox .lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

/* ---------- contact ---------- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: grid; }
.contact-form .label-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-form input, .contact-form textarea { font: inherit; font-size: var(--text-sm); font-weight: 400; padding: var(--space-4); border: 1px solid var(--input-line); border-radius: var(--radius-sm); width: 100%; color: var(--ink); background: var(--white); }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand-light); border-color: transparent; }
.contact-form .btn { justify-self: end; grid-column: 1 / -1; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: var(--weight-semibold); grid-column: 1 / -1; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.contact-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-md); margin-top: var(--space-5); }
.contact-person { display: grid; gap: var(--space-1); }
.contact-person--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.contact-person strong { color: var(--heading); }
.contact-person a { display: inline-flex; align-items: center; gap: var(--gap-xs); text-decoration: none; }
.contact-person a:hover span, .hero a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.post img { margin: var(--space-2) 0 var(--space-7); width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-footer); color: var(--footer-ink); padding: var(--section-y) 0; font-size: var(--text-base); text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: var(--space-6); }
.footer-logo { width: 170px; height: auto; }
.footer-contacts { display: flex; gap: var(--space-10); flex-wrap: wrap; justify-content: center; }
.footer-contacts .contact-person { justify-items: center; }
.footer-contacts .contact-person a { color: var(--brand-dark); }
.copyright { margin: 0; color: var(--footer-ink); }
.legal { margin: 0; max-width: 1100px; }
.footer-contact { margin: var(--space-4) 0 0; }
.footer-contact strong { color: var(--heading); }
.footer-contact a.tel { color: inherit; font-weight: var(--weight-body); }
.site-footer .badges--small img { height: 64px; }
/* Three logos with DOTD dead centre: equal side columns, BAA pushed right, Griffin pushed left. */
.footer-logos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-8); width: 100%; margin-top: var(--space-4); }
.site-footer .footer-logos .badges { display: contents; }
.footer-logos .badges a:first-child { justify-self: end; }
.footer-partner-link { justify-self: start; }
.footer-partner { display: block; width: auto; height: 80px; border-radius: 0; transition: opacity .15s; }
.footer-partner-link:hover .footer-partner { opacity: .8; }
@media (max-width: 600px) {
  .footer-logos { gap: var(--space-4); }
  .site-footer .badges--small img { height: 48px; }
  .footer-partner { height: 52px; }
}
.site-footer .badges { margin-top: var(--space-4); gap: var(--space-8); }

.coming-soon { text-align: center; padding: var(--space-16) 0; }
.coming-soon h2 { margin: 0 0 var(--space-4); }
.coming-soon p { margin: 0; }

/* Tall photos beside text: cap the height and crop to fill. */
.capped-photo { width: 100%; max-height: 520px; object-fit: cover; object-position: center 40%; }
.capped-photo { height: auto; }
@media (max-width: 767px) { .capped-photo { aspect-ratio: 4 / 3; max-height: 320px; } }
