/* Visual style ported from the original agilord.com: black header, brick-red
   (#991010) accents, Lucida font stack, full-bleed photo hero.
   Uses theme variables emitted by jaspr_content (--background, --text, ...). */
:root {
  --brand: #991010;
  --muted: var(--content-lead);
  --line: var(--content-hr);
  --card: color-mix(in srgb, var(--text) 5%, var(--background));
}
body { font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Geneva, Verdana, sans-serif;
       line-height: 1.5; margin: 0; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 52rem; margin: 0 auto; padding: 0 .75rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }

.site-header { background: #000; color: #fff; padding: .5rem 0; box-shadow: 0 0 16px #000;
               position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: auto; }
.lang { margin-left: auto; display: flex; gap: .25rem; }
.lang a { font-size: .8rem; font-weight: bold; color: #ccc; padding: .1rem .45rem;
          border: 1px solid #555; border-radius: 4px; }
.lang a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.hero { background: #333 url('/images/hero.jpg') no-repeat center center; background-size: cover;
        color: #fff; min-height: 28rem; display: flex; align-items: center; justify-content: center;
        padding: 1rem; text-align: center; letter-spacing: 1px; }
.hero-box { background: rgba(0,0,0,.4); padding: 1.5rem 2rem; max-width: 40rem; }
.hero-box img { max-width: 100%; height: auto; }
.hero h1, .hero p { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.3; margin: 1rem 0 .5rem; font-weight: normal; color: #fff; }
.hero p { font-size: 1.1rem; margin: 0 0 1.5rem; white-space: pre-line; }

a.button, .page a.button { display: inline-block; background: var(--brand); color: #fff;
          padding: 10px 12px; border-radius: 4px; font-weight: bold; cursor: pointer; text-decoration: none; }
a.button:hover { filter: brightness(1.15); }

.page { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }

.page > h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1.5rem; color: var(--content-headings); }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; }
.page h3 { margin: 1.75rem 0 0; font-size: .8rem; font-weight: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--text); -webkit-text-stroke: .3px currentColor; }
.page h3 + table { margin-top: .4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.25rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--content-headings); }
.card p { margin: 0; color: var(--muted); }

.card.promo { padding: 0; overflow: hidden; background: none; border: none; }
.promo-overlay { position: relative; overflow: hidden; border-radius: 4px; }
.cards:has(.promo) { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 40rem) { .cards:has(.promo) { grid-template-columns: 1fr; } }
.cards:has(.person) { grid-template-columns: 1fr; }
.promo-overlay img { display: block; width: 100%; aspect-ratio: 4 / 1; min-height: 6rem; object-fit: cover; }
.promo-overlay.banner { margin: 0 0 1rem; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; margin: 2rem 0; }
.service > :last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .services { grid-template-columns: 1fr; } }
.promo-overlay .promo-text { margin: 0; }
.card.person { display: flex; gap: 1rem; align-items: center; padding: .6rem .9rem; background: color-mix(in srgb, var(--text) 2.5%, var(--background)); border-color: color-mix(in srgb, var(--line) 50%, var(--background)); }
.card.person img { margin: 0; border-radius: 50%; flex: none; width: 7.5rem; height: 7.5rem; object-fit: cover; }
.card.person p { margin: 0 0 .25rem; }
.card.person h3 { margin-bottom: .1rem; }
.logos img { height: 6.5rem; width: auto; max-width: 18rem; object-fit: contain; }
.promo-overlay .promo-text { position: absolute; inset: 0 0 auto 0; margin: 0; padding: .6rem .8rem;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.1rem; }
.promo-body { padding: .75rem 0 0; }
.promo-body p { margin: 0; color: var(--text); }

.site-footer { margin-top: 1em; border-top: 1px solid var(--line); background: var(--card);
               color: var(--muted); font-size: small; padding: 1em 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 40rem) { .site-footer .footer-cols { grid-template-columns: 1fr; } }
.site-footer .footer-col > b { display: block; color: var(--text); margin-bottom: .4rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .legal-ids { border-collapse: collapse; }
.site-footer .legal-ids th { text-align: left; font-weight: normal; padding: 0 1rem 0 0; white-space: nowrap; }
.site-footer .legal-ids td { padding: 0; font-variant-numeric: tabular-nums; }
.site-footer .copyright { margin: 1.5rem 0 0; }

.logos { display: flex; flex-flow: row wrap; align-items: center; gap: 1rem 2rem; margin: 1rem 0; }
.logos a { display: block; }

.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin: 2.5rem 0; }
.lead p { margin: 0; }
@media (max-width: 40rem) { .lead { grid-template-columns: 1fr; gap: 1rem; } }
.buttons { display: flex; flex-flow: row wrap; gap: .75rem 1rem; margin: 1.5rem 0; }
.buttons.center { justify-content: center; }
.lead > p:only-child { grid-column: 1 / -1; }
.promo-overlay img { margin: 0; }
.service .cards { grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0 0; }
.service .card { padding: .5rem .75rem; }
.service .card h3 { font-size: 1rem; margin-bottom: .1rem; }
.service .card p { font-size: .9rem; }

.page table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.page th:first-child, .page td:first-child { white-space: nowrap; }
.page td:first-child { width: 15rem; }
@media (max-width: 40rem) { .page td:first-child { white-space: normal; width: auto; } }
.page thead th { border-bottom-width: 2px; }
.page thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page tbody tr:first-child td, .page tbody tr:first-child th { border-top: 1px solid var(--line); }

/* Meet: upcoming events */
.meet[hidden], .event[hidden] { display: none; }
.events { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.event { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.25rem; }
.event .event-logo { width: auto; max-width: 150px; height: auto; flex: none; margin: 0 .5rem 0 0; }
.page .event h3 { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 600; text-transform: none; letter-spacing: 0; -webkit-text-stroke: 0; color: var(--content-headings); }
.event p { margin: 0 0 .25rem; color: var(--muted); }
.event .event-date { font-weight: 600; color: var(--text); }
.meet { margin-top: 3rem; }
