@font-face { font-family: "Saira Condensed"; font-weight: 300; font-display: swap; src: url("fonts/saira-condensed-300.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 500; font-display: swap; src: url("fonts/saira-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url("fonts/saira-condensed-700.woff2") format("woff2"); }

:root {
  --red: #e10600;
  --red-text: #c00500;
  --ink: #14181f;
  --ink-2: #2a313c;
  --muted: #5b6472;
  --line: #dfe2e6;
  --paper: #f6f6f3;
  --white: #fff;
  --tint: #eef0f2;
  --radius: 14px;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: normal; color: var(--red); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9em; display: flex; align-items: center; gap: .6em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225, 6, 0, .15); }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; }
.small { font-size: .85rem; color: var(--muted); }

.button { display: inline-flex; align-items: center; gap: .5em; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; padding: .8em 1.3em; border-radius: 999px; border: 2px solid var(--red); transition: background .15s, color .15s; }
.button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.text-link:hover { color: var(--red-text); }

/* Header */
.topline { background: var(--ink); color: #c9ced6; font-size: .82rem; }
.topline-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topline a { color: #fff; text-decoration: none; margin-left: 18px; }
.topline a:hover { color: #ff8a85; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 300; font-size: 2.1rem; color: var(--red); letter-spacing: -0.01em; line-height: 1; }
.wordmark-light { color: #ff4a43; }
.brand-tag { font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--red-text); }
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta .button { padding: .6em 1.2em; color: #fff; }
.sub-toggle { display: none; }
.main-nav .sub { list-style: none; margin: 0; padding: 10px; position: absolute; left: 0; top: 100%; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(20, 24, 31, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; font-size: .95rem; }
.main-nav .sub a:hover { background: var(--tint); color: var(--red-text); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0; background: radial-gradient(circle at 85% 20%, rgba(225, 6, 0, .08), transparent 42%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel { background: var(--ink); color: #e9ecf0; border-radius: 22px; padding: 30px 30px 24px; box-shadow: 0 30px 60px rgba(20, 24, 31, .22); position: relative; overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--red); }
.panel-title { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: #fff; margin-bottom: 14px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.status { width: 9px; height: 9px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 4px rgba(52, 210, 123, .15); flex: none; }
.panel-foot { margin: 16px 0 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #9aa3af; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 24px; }
.section-dark { background: var(--ink); color: #dfe3e8; }
.section-dark .eyebrow { color: #9aa3af; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #fff; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 80px); }
.split-center { align-items: center; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 52px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 24, 31, .08); color: var(--ink); }
.card p { color: var(--muted); margin: 0; }
.card-index { font-family: var(--display); color: var(--red); font-size: 1rem; font-weight: 700; display: block; margin-bottom: 18px; }
.card-arrow { position: absolute; right: 24px; bottom: 18px; color: var(--red); font-size: 1.3rem; }
.logos { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.logos img { background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); width: 150px; height: auto; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { display: block; background: var(--white); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.news-card:hover { border-color: var(--red); color: var(--ink); }
.news-card time { font-size: .82rem; color: var(--red-text); font-weight: 600; }
.news-card h3 { margin-top: 8px; font-size: 1.3rem; }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.cta-band { background: var(--red); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band .button { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .button-ghost { background: transparent; color: #fff; border-color: #fff; }

/* Overview pages */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 24px; }
.group { margin-top: 48px; }
.group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.group-head h2 { font-size: 1.8rem; margin: 0; }
.group-head h2 a { color: var(--ink); text-decoration: none; }
.group-head h2 a:hover { color: var(--red-text); }
.group-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--red); color: var(--ink); }
.tile-image { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }
.tile-image img { max-height: 100%; object-fit: contain; }
.tile-title { padding: 14px 16px; font-weight: 600; font-size: .95rem; line-height: 1.4; }

/* Joomla component output */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) 0 80px; align-items: start; }
.content-body { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 48px); min-width: 0; }
.content-body h1, .content-body .page-header h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.content-body h2 { font-size: 1.9rem; margin-top: 1.2em; }
.content-body h3 { margin-top: 1.2em; }
.content-body img { border-radius: 8px; }
.content-body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.content-body th, .content-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content-body th { background: var(--tint); }
.content-body ul, .content-body ol { padding-left: 1.3em; }
.content-body iframe { max-width: 100%; border: 0; border-radius: 8px; aspect-ratio: 16 / 9; height: auto; width: 100%; }
.content-body .blog-item, .content-body .com-content-category-blog__item { border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 24px; }
.content-body .blog-item h2, .content-body .item-title { font-size: 1.6rem; margin: 0 0 .3em; }
.content-body .blog-item h2 a, .content-body .item-title a { color: var(--ink); text-decoration: none; }
.content-body .blog-item h2 a:hover { color: var(--red-text); }
.content-body .readmore a, .content-body a.btn { display: inline-block; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--red); }
.content-body .article-info, .content-body dl.article-info { color: var(--muted); font-size: .85rem; margin: 0 0 1em; }
.content-body .article-info dt { display: none; }
.content-body .article-info dd { margin: 0; }
.content-body .item-image, .content-body figure { margin: 0 0 1em; }
.content-body .pagination, .content-body .com-content-category-blog__navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.content-body .page-link { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.content-body .active .page-link { background: var(--ink); color: #fff; border-color: var(--ink); }
.content-body .counter { color: var(--muted); font-size: .85rem; }
.content-body .cat-children h3 a, .content-body .com-content-category-blog__children a { font-weight: 600; }
.content-aside { position: sticky; top: 100px; background: var(--ink); color: #dfe3e8; border-radius: 18px; padding: 28px; }
.content-aside h2 { color: #fff; font-size: 1.8rem; }
.content-aside .eyebrow { color: #9aa3af; }
.content-aside .button { margin: 6px 0 14px; }
.content-aside .text-link { color: #fff; display: inline-block; font-size: .92rem; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1em 0 1.5em; }
.contact-cards > div { background: var(--tint); border-radius: var(--radius); padding: 20px; }
.contact-cards h2 { font-size: 1.4rem; margin: 0 0 .4em; }
.contact-cards p { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c0ca; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff8a85; }
.site-footer .eyebrow { color: #8a93a0; }
.site-footer .small { color: #a3abb6; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid address { font-style: normal; margin-top: 14px; line-height: 1.6; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--white); padding: 88px 20px 24px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; z-index: 30; }
  .nav-open .main-nav { transform: none; visibility: visible; box-shadow: -20px 0 50px rgba(20, 24, 31, .2); }
  .menu-toggle { position: relative; z-index: 40; }
  .nav-open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav > ul > li > a { flex: 1; padding: 14px 4px; font-size: 1.1rem; }
  .sub-toggle { display: block; background: none; border: 0; font-size: 1.1rem; padding: 10px 14px; cursor: pointer; color: var(--ink); }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; width: 100%; min-width: 0; }
  .main-nav .has-sub.is-open > .sub { display: block; }
  .main-nav .has-sub:hover > .sub { display: none; }
  .main-nav .has-sub.is-open:hover > .sub { display: block; }
  .main-nav .nav-cta { margin: 18px 0 0; border: 0; }
  .hero-grid, .split, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .content-aside { position: static; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topline-inner > span:first-child { display: none; }
  .topline-inner { justify-content: center; }
  .topline a { margin: 0 8px; }
  .wordmark { font-size: 1.75rem; }
  .brand-tag { display: none; }
  .card-grid, .news-grid, .contact-cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
