/* =============================================================
   Morrison Web Design — Demo Vault landing template
   Ported from the client-portal mockup. This template owns the
   whole page (Cassiopeia's CSS preset is intentionally not loaded
   from index.php), so the base resets below are deliberate.
   ============================================================= */

:root {
  --bg: oklch(12% 0.02 260);
  --surface: oklch(16% 0.018 260);
  --fg: oklch(95% 0.005 260);
  --muted: oklch(60% 0.015 260);
  --border: oklch(24% 0.015 260);
  --btn-gradient: linear-gradient(51deg, #ee3040 50%, #e4212e 65%, #e65522 100%);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  /*display: flex;
  flex-direction: column;*/
  display:grid;
}


/* Header */
.header {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  align-self:start;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

.logo span {
  color: var(--muted);
  font-weight: 400;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  background: var(--btn-gradient);
  padding:10px 20px;
  display:flex;
  align-content: center;
  justify-content: center;
  width:fit-content;
  border-radius:100vh;
  color: #fff;
  opacity:1;
  line-height:1;
  &:hover {
    opacity: 0.92;
    transition: opacity 0.15s, transform 0.15s;
  }
}

.header-nav a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ee3040;
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 3rem;
}

/* Login Form */
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.login-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}
.mod-login__remember {
  .form-check {
    display:flex;
  align-items:center;
  gap:20px;
    justify-content: center;
    .form-check-input {
      width:auto;
    }
    .form-check-label {
      margin:0;
    }
  }
}
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--fg);
  transition: border-color 0.15s;
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-group input:focus {
  outline: none;
  border-color: #ee3040;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--btn-gradient);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 0.5rem;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.98);
}

.login-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);

}
p.login-footer {
  margin-bottom:1.25rem;
}

.login-footer a {
  color: var(--fg);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}
/* =============================================================
   Contact page — article with {convertforms 1} shortcode.
   Markup: .contact-wrapper > (.contact-form, .contact-graphic).
   Ported from static/contact-page.html. Convert Forms ships its
   own stylesheet (loaded AFTER this file) and themes itself with
   CSS custom properties scoped to #cf_1 via an inline <style>, so
   the variable overrides below are scoped to `.contact-wrapper #cf_1`
   to out-specify that inline block.
   ============================================================= */
.contact-wrapper {
  display: grid;
  align-items: stretch;
  min-height: calc(100vh - 160px);
  grid-template-columns:1fr 1fr;
}

/* Left — heading, intro copy and the form */
.contact-wrapper .contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
 .contact-form-inner {
   max-width: 640px;
   margin-inline: auto;
 }
}

/* "Get in touch" pill above the heading */
.contact-wrapper .contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-wrapper .contact-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ee3040;
}

.contact-wrapper .contact-form h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.contact-wrapper .contact-form > p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 420px;
}

/* Right — animated dot-grid + accent glow (canvas injected by
   js/contact-graphic.js). Falls back to a flat surface panel if JS
   is off or the canvas can't initialise. */
.contact-graphic {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.contact-graphic__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Convert Forms (#cf_1) themed to match the mockup ----
   Re-map the form's CSS variables to the dark palette, then patch
   the few rules that read fixed values or use cf-width-auto. */
.contact-wrapper #cf_1 {
  --max-width: 100%;
  --control-gap: 0.6rem;
  --label-color: var(--muted);
  --label-size: 0.8125rem;
  --label-weight: 400;
  --input-color: var(--fg);
  --input-placeholder-color: var(--muted);
  --input-background-color: var(--surface);
  --input-border-color: var(--border);
  --input-border-radius: 8px;
  --input-size: 0.9375rem;
  --input-padding: 0.75rem 1rem;
  .cf-form-wrap {
    padding-inline:0;
  }
}

/* Selectors below are scoped to #cf_1 (id) so they out-specify
   Convert Forms' own .convertforms-prefixed rules, which load after
   this file and would otherwise win on source order. */

/* CF tags Company/Phone inputs with cf-width-auto; force full width */
.contact-wrapper #cf_1 .cf-input,
.contact-wrapper #cf_1 .cf-select,
.contact-wrapper #cf_1 .cf-select.cf-width-auto {
  width: 100%;
}

.contact-wrapper #cf_1 .cf-select.cf-width-auto {
  display: block;
}

.contact-wrapper #cf_1 .cf-label {
  margin-bottom: 0.5rem;
}

.contact-wrapper #cf_1 .cf-input:focus {
  border-color: #ee3040;
}

/* Native select caret colour to match the mockup */
.contact-wrapper #cf_1 .cf-select:after {
  border-top-color: var(--muted);
}

.contact-wrapper #cf_1 .cf-select:hover:after {
  border-top-color: var(--fg);
}

/* Submit button — gradient pill, left aligned like the mockup.
   CF sets background via --button-background-color (a flat colour),
   so the gradient is applied directly to .cf-btn. */
.contact-wrapper #cf_1 .cf-btn {
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  border-radius: 100vh;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  width: auto;
  margin-top: 0.75rem;
  transition: opacity 0.15s, transform 0.15s;
}

.contact-wrapper #cf_1 .cf-btn:hover {
  opacity: 0.92;
}

.contact-wrapper #cf_1 .cf-btn:active {
  transform: scale(0.98);
}

/* Stack the layout on narrow screens */
@media ( width < 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact-wrapper .contact-form {
    max-width: none;
    padding: 3rem 1.5rem;
  }

  .contact-graphic {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 300px;
  }
}
/* ---- Joomla login module (mod_login) inside the hero card ----
   The module ships Bootstrap-flavoured markup; these rules adapt it
   to the mockup without loading Bootstrap or the Cassiopeia icon font. */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.login-card .mod-login {
  display: flex;
  flex-direction: column;
}

/* No icon font is loaded, so drop the username icon addon and the
   password reveal toggle; the bare inputs inherit `.form-group input`. */
.login-card .input-group-text,
.login-card .input-password-toggle {
  display: none;
}

.login-card .mod-login__options {
  margin: 1.25rem 0 0;
  text-align: center;
}

.login-card .mod-login__options li {
  margin-bottom: 0.25rem;
}

.login-card .mod-login__options a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.login-card .mod-login__options a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* Features */
.features {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-right {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-right a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-right a:hover {
  color: var(--fg);
}
.plg_system_webauthn_login_button, .blog-featured  {display:none;}
.header {
  height: fit-content;
}
footer.footer {
  height: fit-content;
  align-self: end;
}
.header-nav {
  ul {
    list-style: none;
    flex-direction:row;
    display:flex;
    gap:20px;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    padding: 1rem 1.25rem;
  }

  /*.header-nav {
    display: none;
  }*/

  .hero {
    padding: 3rem 1.25rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .features {
    padding: 3rem 1.25rem;
  }

  .footer {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    text-align: center;
  }
}
@media (width < 455px) {
  header.header {
    gap:20px;
    flex-flow:row wrap;
    justify-content: center;
  }
a.logo {
  width:295px;
}
}
