/*!
 * Hines Precision — Joomla site template
 * Ported from the approved homepage mockup (Oct 2026).
 * Brand: black H mark + cyan #29abe2. Headings Barlow Condensed, body Inter.
 */

:root {
  --hp-navy: #14181e;
  --hp-navy2: #1e242c;
  --hp-steel: #4a5b72;
  --hp-line: #dfe5ec;
  --hp-bg: #ffffff;
  --hp-soft: #f2f6f9;
  --hp-ink: #181d24;
  --hp-mut: #5b6a7a;
  --hp-acc: #1d8dbf;
  --hp-acc2: #156f98;
  --hp-cyan: #29abe2;
  --hp-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --hp-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hp-radius: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--hp-body); color: var(--hp-ink); background: var(--hp-bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--hp-acc); }
a:hover { color: var(--hp-acc2); }
h1, h2, h3, h4 { font-family: var(--hp-head); text-transform: uppercase; letter-spacing: .5px; line-height: 1.08; color: var(--hp-navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.hp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp-skip { position: absolute; left: 12px; top: -60px; background: var(--hp-acc); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 100; text-decoration: none; font-weight: 600; }
.hp-skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--hp-cyan); outline-offset: 2px; }

/* ---------- Buttons (also styles Joomla's own .btn) ---------- */
.hp-btn, .btn, button.btn, input[type=submit].btn {
  display: inline-block; background: var(--hp-acc); color: #fff; font-family: var(--hp-body); font-weight: 600;
  padding: 13px 26px; border-radius: 4px; text-decoration: none; font-size: 15px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.hp-btn:hover, .btn:hover { background: var(--hp-acc2); color: #fff; }
.hp-btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.hp-btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-secondary { background: var(--hp-steel); }
.btn-link { background: none; color: var(--hp-acc); padding: 0; }
.hp-kicker { font-family: var(--hp-head); text-transform: uppercase; letter-spacing: 2.5px; font-weight: 700; font-size: 15px; color: var(--hp-acc); margin-bottom: 6px; }

/* ---------- Utility bar ---------- */
.hp-util { background: var(--hp-navy); color: #b9c4d2; font-size: 13px; }
.hp-util .hp-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.hp-util__items span { margin-right: 18px; }
.hp-util a { color: #fff; text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .hp-util__items { display: none; } .hp-util .hp-wrap { justify-content: center; } }

/* ---------- Header ---------- */
.hp-header { background: #fff; border-bottom: 1px solid var(--hp-line); box-shadow: 0 1px 8px rgba(20,31,46,.06); z-index: 50; }
.hp-header--sticky { position: sticky; top: 0; }
.hp-header .hp-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.hp-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.hp-logo svg { display: block; width: 46px; height: 46px; }
.hp-logo__name { font-family: var(--hp-body); line-height: 1.05; }
.hp-logo__hines { display: block; font-size: 23px; font-weight: 800; color: #111; letter-spacing: .5px; }
.hp-logo__prec { display: block; font-size: 12.5px; font-weight: 600; color: var(--hp-cyan); letter-spacing: 4.2px; margin-top: 2px; }

/* Main navigation (mod_menu, layout "mainnav") */
.hp-nav__toggle { display: none; background: none; border: 1px solid var(--hp-line); border-radius: 6px; padding: 9px 10px; cursor: pointer; color: var(--hp-navy); }
.hp-nav__toggle svg { display: block; }
.hp-nav ul { list-style: none; margin: 0; padding: 0; }
.hp-nav > ul { display: flex; gap: 28px; align-items: center; }
.hp-nav li { position: relative; }
.hp-nav a, .hp-nav .hp-nav__label { color: var(--hp-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.hp-nav > ul > li > a:hover, .hp-nav > ul > li.active > a { color: var(--hp-acc); }
.hp-nav > ul > li > a.hp-btn, .hp-nav > ul > li > a.btn { color: #fff; padding: 11px 20px; }
.hp-nav__sub-toggle { background: none; border: 0; padding: 4px; margin-left: 2px; cursor: pointer; color: var(--hp-steel); font-size: 11px; line-height: 1; vertical-align: middle; }
.hp-nav__sub-toggle::after { content: "▾"; }
.hp-nav ul ul { position: absolute; left: -16px; top: 100%; min-width: 240px; background: #fff; border: 1px solid var(--hp-line); border-top: 3px solid var(--hp-acc); border-radius: 0 0 6px 6px; box-shadow: 0 12px 28px rgba(20,31,46,.14); padding: 8px 0; margin-top: 14px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.hp-nav ul ul::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.hp-nav ul ul a { display: block; padding: 8px 18px; font-size: 14px; font-weight: 500; }
.hp-nav ul ul a:hover { background: var(--hp-soft); color: var(--hp-acc); }
@media (min-width: 941px) {
  .hp-nav li:hover > ul, .hp-nav li:focus-within > ul, .hp-nav li.is-open > ul { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 940px) {
  .hp-nav__toggle { display: block; }
  .hp-nav > ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hp-line); box-shadow: 0 14px 24px rgba(20,31,46,.12); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .hp-nav.is-open > ul { display: flex; }
  .hp-nav > ul > li { border-bottom: 1px solid var(--hp-line); display: flex; flex-wrap: wrap; align-items: center; }
  .hp-nav > ul > li:last-child { border-bottom: 0; padding-top: 14px; }
  .hp-nav > ul > li > a, .hp-nav > ul > li > .hp-nav__label { flex: 1; padding: 14px 0; font-size: 16px; }
  .hp-nav > ul > li > a.hp-btn, .hp-nav > ul > li > a.btn { text-align: center; padding: 13px 20px; }
  .hp-nav__sub-toggle { padding: 10px 12px; font-size: 14px; }
  .hp-nav ul ul { position: static; flex-basis: 100%; min-width: 0; margin: 0 0 10px; border: 0; box-shadow: none; padding: 0 0 0 12px; opacity: 1; visibility: visible; transform: none; display: none; }
  .hp-nav ul ul::before { display: none; }
  .hp-nav li.is-open > ul { display: block; }
  .hp-header .hp-wrap { position: relative; }
}

/* ---------- Homepage: hero ---------- */
.hp-hero { position: relative; background: linear-gradient(115deg, #14181e 0%, #1e242c 55%, #2a333f 100%); color: #fff; overflow: hidden; }
.hp-hero::before { content: ""; position: absolute; right: -140px; top: -80px; width: 560px; height: 560px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px); transform: rotate(8deg); pointer-events: none; }
.hp-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--hp-cyan) 0 34%, rgba(41,171,226,.25) 34% 100%); }
.hp-hero .hp-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 90px; position: relative; }
.hp-hero h1 { font-size: 62px; font-weight: 700; color: #fff; margin: 0; }
.hp-hero h1 em { font-style: normal; color: var(--hp-cyan); }
.hp-hero .hp-kicker { color: var(--hp-cyan); }
.hp-hero__lead { margin: 20px 0 30px; font-size: 18px; color: #c9d3e0; max-width: 540px; }
.hp-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.hp-photo { margin: 0; border-radius: var(--hp-radius); overflow: hidden; }
.hp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-photo--dark { box-shadow: 0 14px 34px rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.14); }
.hp-hero .hp-photo { aspect-ratio: 16 / 9; }
.hp-hero .hp-photo img { object-position: center 45%; }
@media (max-width: 940px) { .hp-hero .hp-wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 36px; } .hp-hero h1 { font-size: 44px; } }
@media (max-width: 480px) { .hp-hero h1 { font-size: 36px; } .hp-hero__lead { font-size: 16.5px; } }

/* ---------- Stat band ---------- */
.hp-stats { background: #fff; border-bottom: 1px solid var(--hp-line); }
.hp-stats .hp-wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.hp-stat { padding: 26px 10px; border-left: 1px solid var(--hp-line); }
.hp-stat:first-child { border-left: 0; }
.hp-stat__n { font-family: var(--hp-head); font-size: 38px; font-weight: 700; color: var(--hp-navy); line-height: 1; margin: 0; }
.hp-stat__l { font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hp-steel); margin: 6px 0 0; font-weight: 600; }
@media (max-width: 940px) { .hp-stats .hp-wrap { grid-template-columns: repeat(2, 1fr); } .hp-stat { border: 0; } }

/* ---------- Sections ---------- */
.hp-section { padding: 78px 0; }
.hp-section--soft { background: var(--hp-soft); }
.hp-sec-head { max-width: 720px; margin-bottom: 42px; }
.hp-sec-head h2 { font-size: 40px; margin: 0; }
.hp-sec-head p { color: var(--hp-mut); margin: 12px 0 0; }
.hp-h2 { font-size: 38px; margin: 0; }
.hp-h2 + p, .hp-h2 + ul { margin-top: 14px; }
@media (max-width: 640px) { .hp-section { padding: 56px 0; } .hp-sec-head h2, .hp-h2 { font-size: 32px; } }

/* Capability cards */
.hp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .hp-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hp-grid3 { grid-template-columns: 1fr; } }
.hp-card { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 28px; position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.hp-card:hover { box-shadow: 0 10px 26px rgba(20,31,46,.12); transform: translateY(-2px); }
.hp-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--hp-navy); }
.hp-card:hover::before { background: var(--hp-acc); }
.hp-card__ico { width: 46px; height: 46px; border-radius: 6px; background: var(--hp-soft); display: flex; align-items: center; justify-content: center; margin: 0 0 16px; }
.hp-card__ico img { width: 26px; height: 26px; }
.hp-card h3 { font-size: 22px; margin: 0; }
.hp-card p { font-size: 14.5px; color: var(--hp-mut); margin: 8px 0 0; }

/* Why Hines */
.hp-why .hp-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.hp-why .hp-photo { aspect-ratio: 4 / 5; border: 1px solid var(--hp-line); box-shadow: 0 10px 28px rgba(20,31,46,.16); }
.hp-why .hp-photo img { object-position: center 40%; }
@media (max-width: 940px) { .hp-why .hp-wrap { grid-template-columns: 1fr; } .hp-why .hp-photo { aspect-ratio: 16 / 10; } }
.hp-check { list-style: none; margin: 20px 0 0; padding: 0; }
.hp-check li { padding: 12px 0 12px 38px; position: relative; border-bottom: 1px solid var(--hp-line); font-size: 15.5px; }
.hp-check li strong, .hp-check li b { color: var(--hp-navy); }
.hp-check li::before { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--hp-acc);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/16px no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/16px no-repeat; }

/* Industries */
.hp-inds { background: var(--hp-navy); color: #fff; }
.hp-inds .hp-kicker { color: var(--hp-cyan); }
.hp-inds .hp-sec-head h2 { color: #fff; }
.hp-inds .hp-sec-head p { color: #aeb9c8; }
.hp-chipgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 940px) { .hp-chipgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .hp-chipgrid { grid-template-columns: 1fr; } }
.hp-chip { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 20px; font-family: var(--hp-head); text-transform: uppercase; letter-spacing: 1px; font-size: 19px; font-weight: 600; background: rgba(255,255,255,.04); transition: background .15s, border-color .15s; margin: 0; color: #fff; }
.hp-chip:hover { background: rgba(41,171,226,.16); border-color: var(--hp-cyan); }
.hp-chip small { display: block; font-family: var(--hp-body); font-size: 12px; letter-spacing: .2px; text-transform: none; color: #aeb9c8; font-weight: 400; margin-top: 5px; }
a.hp-chip { text-decoration: none; display: block; }

/* Two-column "text + form" sections (RFQ, Apply) */
.hp-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
@media (max-width: 940px) { .hp-split { grid-template-columns: 1fr; } }
.hp-split__text > p { color: var(--hp-mut); }
.hp-phone { font-weight: 600; color: var(--hp-navy); }
.hp-phone a { color: var(--hp-acc); text-decoration: none; }
.hp-fine { font-size: 13.5px; color: var(--hp-mut); margin-top: 26px; }
.hp-formbox { background: #fff; border: 1px solid var(--hp-line); border-radius: 10px; padding: 30px; box-shadow: 0 8px 24px rgba(20,31,46,.07); }
.hp-formbox--placeholder { border: 2px dashed #b8c6d4; box-shadow: none; text-align: center; color: var(--hp-mut); padding: 48px 30px; background: #fbfcfe; }
.hp-formbox--placeholder strong { display: block; font-family: var(--hp-head); text-transform: uppercase; letter-spacing: 1px; color: var(--hp-navy); font-size: 20px; margin-bottom: 6px; }

/* Careers band */
.hp-careers { background: linear-gradient(115deg, #1e242c, #2b3440); color: #fff; position: relative; overflow: hidden; }
.hp-careers::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); pointer-events: none; }
.hp-careers .hp-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; }
@media (max-width: 940px) { .hp-careers .hp-wrap { grid-template-columns: 1fr; } }
.hp-careers h2 { font-size: 38px; color: #fff; margin: 0; }
.hp-careers .hp-kicker { color: #7fd4f5; }
.hp-careers p { color: #c9d3e0; margin: 14px 0 24px; max-width: 560px; }
.hp-careers .hp-photo { aspect-ratio: 4 / 3; }
.hp-careers .hp-photo img { object-position: center 45%; }

/* CTA band (interior pages, bottom) */
.hp-ctaband { background: var(--hp-navy); color: #fff; position: relative; overflow: hidden; }
.hp-ctaband::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--hp-cyan) 0 34%, rgba(41,171,226,.25) 34% 100%); }
.hp-ctaband .hp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.hp-ctaband h2 { color: #fff; font-size: 32px; margin: 0; }
.hp-ctaband p { color: #c9d3e0; margin: 6px 0 0; }

/* ---------- Interior pages ---------- */
.hp-pagehead { background: linear-gradient(115deg, #14181e 0%, #1e242c 60%, #2a333f 100%); color: #fff; position: relative; overflow: hidden; }
.hp-pagehead::before { content: ""; position: absolute; right: -100px; top: -140px; width: 420px; height: 420px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px); transform: rotate(8deg); pointer-events: none; }
.hp-pagehead::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--hp-cyan) 0 34%, rgba(41,171,226,.25) 34% 100%); }
.hp-pagehead .hp-wrap { position: relative; padding-top: 52px; padding-bottom: 50px; }
.hp-pagehead h1 { color: #fff; font-size: 52px; margin: 0; }
@media (max-width: 640px) { .hp-pagehead h1 { font-size: 38px; } .hp-pagehead .hp-wrap { padding-top: 38px; padding-bottom: 36px; } }
/* Joomla breadcrumbs inside the band */
.hp-pagehead .mod-breadcrumbs__wrapper, .hp-pagehead nav[aria-label] { margin: 0 0 10px; }
.hp-pagehead ol.breadcrumb, .hp-pagehead .mod-breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: #93a3b8; }
.hp-pagehead .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: #5d6b7d; }
.hp-pagehead .breadcrumb a { color: #c9d3e0; text-decoration: none; }
.hp-pagehead .breadcrumb a:hover { color: #fff; }
.hp-pagehead .mod-breadcrumbs__here, .hp-pagehead .float-start { display: none; }

.hp-main { padding: 56px 0 72px; }
.hp-main__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hp-main__grid.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 940px) { .hp-main__grid.has-aside { grid-template-columns: minmax(0, 1fr); } }
.hp-aside .moduletable, .hp-aside > div { background: var(--hp-soft); border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 22px; margin-bottom: 20px; }
.hp-aside h3 { font-size: 20px; }

/* Article typography */
.hp-content { max-width: 820px; font-size: 16.5px; }
.hp-content h2 { font-size: 32px; margin-top: 1.4em; }
.hp-content h3 { font-size: 23px; margin-top: 1.3em; }
.hp-content > :first-child, .hp-content .item-page > :first-child { margin-top: 0; }
.hp-content ul, .hp-content ol { padding-left: 1.3em; }
.hp-content li { margin-bottom: .35em; }
.hp-content ul.hp-check { padding-left: 0; }
.hp-content ul.hp-check li { margin-bottom: 0; }
.hp-content .hp-formbox { margin: 28px 0; }
.hp-content blockquote { border-left: 4px solid var(--hp-cyan); margin: 1.5em 0; padding: .3em 0 .3em 1.2em; color: var(--hp-steel); font-size: 18px; }
.hp-content table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 15px; }
.hp-content th, .hp-content td { border: 1px solid var(--hp-line); padding: 10px 12px; text-align: left; }
.hp-content th { background: var(--hp-soft); font-weight: 600; }
.hp-content .lead, .hp-lead { font-size: 19px; color: var(--hp-steel); }
.hp-content .page-header h1, .hp-content .page-header h2 { font-size: 34px; }
.hp-content .article-info, .hp-content dl.article-info { font-size: 13px; color: var(--hp-mut); margin: 0 0 1.5em; }
.hp-content .article-info dd { margin: 0; display: inline; }
/* Capability / industry blocks on interior pages */
.hp-block { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--hp-line); scroll-margin-top: 110px; }
.hp-block:first-of-type { border-top: 0; }
.hp-block h2, .hp-block h3 { margin-top: 0; font-size: 26px; }
.hp-block p { margin: 0; color: var(--hp-mut); }
.hp-block .hp-card__ico { margin: 0; }
.hp-block--plain { grid-template-columns: 1fr; padding: 20px 0; }
.hp-block--plain h2 { font-size: 24px; margin-bottom: 4px; }
/* Single article: the title band already shows the page title */
.hp-is-inner .com-content-article > .page-header { display: none; }
[id] { scroll-margin-top: 110px; }

/* Joomla blog / category views */
.blog-item, .com-content-category-blog__item { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--hp-line); }
.readmore a, a.readmore { font-weight: 600; text-decoration: none; }
.pagination, .com-content-category-blog__pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.pagination .page-link { display: block; padding: 6px 12px; border: 1px solid var(--hp-line); border-radius: 4px; text-decoration: none; }
.pagination .active .page-link { background: var(--hp-acc); color: #fff; border-color: var(--hp-acc); }

/* Core forms (contact, login, search) */
.hp-content input[type=text], .hp-content input[type=email], .hp-content input[type=tel], .hp-content input[type=password], .hp-content input[type=search], .hp-content select, .hp-content textarea,
.form-control, .form-select { width: 100%; padding: 11px 12px; border: 1px solid var(--hp-line); border-radius: 5px; font-family: var(--hp-body); font-size: 15px; background: #fbfcfe; color: var(--hp-ink); }
.hp-content label, .form-label, .control-label label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--hp-steel); margin-bottom: 5px; }
.control-group, .mb-3 { margin-bottom: 16px; }
.star { color: #b4232c; }

/* System messages */
#system-message-container joomla-alert, .alert { display: block; padding: 14px 18px; border-radius: 6px; margin: 0 0 20px; border: 1px solid var(--hp-line); background: var(--hp-soft); }
.alert-success, joomla-alert[type=success] { background: #e9f7ef; border-color: #b9e3c9; }
.alert-warning, joomla-alert[type=warning] { background: #fff7e6; border-color: #f2d49b; }
.alert-danger, .alert-error, joomla-alert[type=danger], joomla-alert[type=error] { background: #fdecec; border-color: #f1b8b8; }
.hp-messages:empty { display: none; }
.hp-messages { padding-top: 20px; }

/* ---------- Footer ---------- */
.hp-footer { background: var(--hp-navy); color: #9fb0c4; font-size: 14px; }
.hp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 940px) { .hp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hp-footer__grid { grid-template-columns: 1fr; } }
.hp-footer h3, .hp-footer h4, .hp-footer .moduletable > h3 { font-family: var(--hp-head); text-transform: uppercase; color: #fff; font-size: 17px; letter-spacing: 1px; margin: 0 0 14px; }
.hp-footer a { color: #9fb0c4; text-decoration: none; }
.hp-footer a:hover { color: #fff; }
.hp-footer ul { list-style: none; margin: 0; padding: 0; }
.hp-footer li { margin-bottom: 8px; }
.hp-footer p { margin: 0 0 8px; }
.hp-footer__brand { font-family: var(--hp-body); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.hp-footer__brand span { color: var(--hp-cyan); font-weight: 600; }
.hp-footer__blurb { margin-top: 10px; max-width: 280px; }
.hp-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.hp-footer__bottom .hp-wrap { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Error page */
.hp-error { min-height: 60vh; display: flex; align-items: center; }
.hp-error > .hp-wrap { width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hp-error__code { font-family: var(--hp-head); font-size: 120px; line-height: 1; color: var(--hp-cyan); font-weight: 700; margin: 0; }

/* Print */
@media print {
  .hp-util, .hp-header, .hp-nav, .hp-footer, .hp-ctaband { display: none !important; }
  .hp-pagehead { background: none; color: #000; }
  .hp-pagehead h1 { color: #000; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
