/* ============================================================
   harco.css — Harco Consults Brand Stylesheet
   Corporate authority: restrained, trustworthy, expert.
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --harco-blue:       #0D1F4E;
  --harco-blue-mid:   #1A3A7A;
  --harco-blue-light: #2B5CC8;
  --harco-white:      #FFFFFF;
  --harco-off-white:  #F4F6FA;
  --harco-grey:       #6B7280;
  --harco-border:     #E2E8F0;
  --harco-accent:     #F59E0B;
  --harco-accent-dark:#D97706;

  /* Spacing scale — 4pt base */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  clamp(2rem, 4vw + 1rem, 3rem);
  --text-hero: clamp(2.5rem, 5vw + 1rem, 4rem);

  /* Transitions */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-mid:  0.3s var(--ease-out-quart);
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-kerning: normal;
  /* Clip horizontal overflow at the root — catches anything that
     escapes the body (position:fixed elements, translated layers, etc.) */
  overflow-x: hidden;
  /* Prevent iOS Safari auto-scaling text on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--harco-blue);
  background-color: var(--harco-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Belt-and-suspenders: clip body as well so no horizontal scrollbar
     appears on any viewport width, including narrow Android WebViews */
  overflow-x: hidden;
  /* Constrain the body to the viewport width exactly */
  max-width: 100vw;
}

/* Prevent media and embeds from punching past their containers */
img,
video,
svg,
iframe,
embed,
object {
  max-width: 100%;
}

/* Flex and grid children can overflow when content is wider than
   the track — min-width:0 makes them honour their container */
* {
  min-width: 0;
}

/* --- Navbar ----------------------------------------------- */

/* Fixed navbar: compensate height for non-hero pages (~64px) */
body:not(.has-hero-nav) #main-content {
  padding-top: 64px;
}

.harco-nav {
  background-color: var(--harco-white);
  border-bottom: 1px solid var(--harco-border);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  transition:
    background-color 0.32s var(--ease-out-quart),
    border-color 0.32s var(--ease-out-quart),
    box-shadow 0.32s var(--ease-out-quart);
}

.navbar-scrolled {
  box-shadow: 0 4px 24px rgba(13, 31, 78, 0.10);
}

/* ── Hero-page transparent → solid transition ──────────────── */

/* Start transparent when body has .has-hero-nav */
.has-hero-nav .harco-nav {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Becomes solid once user scrolls past the hero */
.has-hero-nav .harco-nav.nav-solid {
  background-color: var(--harco-white);
  border-bottom-color: var(--harco-border);
  box-shadow: 0 4px 24px rgba(13, 31, 78, 0.10);
}

/* Nav links — white while transparent */
.has-hero-nav .harco-nav:not(.nav-solid) .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.has-hero-nav .harco-nav:not(.nav-solid) .nav-link:hover,
.has-hero-nav .harco-nav:not(.nav-solid) .nav-link.active {
  color: #fff;
}

.has-hero-nav .harco-nav:not(.nav-solid) .nav-link::after {
  background: rgba(255, 255, 255, 0.65);
}

/* Hamburger icon — white variant for dark backgrounds */
.has-hero-nav .harco-nav:not(.nav-solid) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.38);
}

.has-hero-nav .harco-nav:not(.nav-solid) .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* CTA button — ghost outline while transparent */
.has-hero-nav .harco-nav:not(.nav-solid) .btn-quote {
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  padding-top: calc(var(--space-2) - 1.5px);
  padding-bottom: calc(var(--space-2) - 1.5px);
}

.has-hero-nav .harco-nav:not(.nav-solid) .btn-quote:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow: none;
  transform: none;
}

/* ── Auth nav buttons ───────────────────────────────────────── */

/* Default: dark outline — visible on the solid white navbar */
.btn-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--harco-blue);
  border: 1.5px solid rgba(13, 31, 78, 0.32);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-nav-auth:hover {
  background: rgba(13, 31, 78, 0.06);
  color: var(--harco-blue);
  border-color: rgba(13, 31, 78, 0.55);
}

/* Transparent hero state — flip to white */
.has-hero-nav .harco-nav:not(.nav-solid) .btn-nav-auth {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.40);
}

.has-hero-nav .harco-nav:not(.nav-solid) .btn-nav-auth:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.65);
}

/* Bootstrap's dropdown caret: flip white when over hero */
.has-hero-nav .harco-nav:not(.nav-solid) .btn-nav-auth.dropdown-toggle::after {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.harco-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.harco-nav .brand-logo {
  height: 40px;
  width: auto;
}

.harco-nav .brand-text {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--harco-blue);
  line-height: 1.2;
  text-transform: uppercase;
}

/* Nav links */
.harco-nav .nav-link {
  color: var(--harco-grey);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-3);
  position: relative;
  transition: color var(--transition-fast);
}

.harco-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--harco-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-fast);
}

.harco-nav .nav-link:hover,
.harco-nav .nav-link.active,
.harco-nav .nav-link:focus-visible {
  color: var(--harco-blue);
}

.harco-nav .nav-link:hover::after,
.harco-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.harco-nav .dropdown-menu {
  background-color: var(--harco-white);
  border: 1px solid var(--harco-border);
  border-radius: 6px;
  padding: var(--space-2) 0;
  margin-top: var(--space-1);
  box-shadow: 0 8px 32px rgba(13, 31, 78, 0.12);
  min-width: 220px;
}

.harco-nav .dropdown-item {
  color: var(--harco-grey);
  font-size: var(--text-sm);
  font-weight: 400;
  padding: var(--space-2) var(--space-4);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.harco-nav .dropdown-item:hover,
.harco-nav .dropdown-item:focus {
  background-color: var(--harco-off-white);
  color: var(--harco-blue);
}

.harco-nav .dropdown-toggle::after {
  vertical-align: 0.15em;
  margin-left: var(--space-1);
}

/* Hamburger toggler */
.harco-nav .navbar-toggler {
  border-color: var(--harco-border);
  padding: var(--space-2) var(--space-3);
}

.harco-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
}

.harco-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813%2C 31%2C 78%2C 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Quote CTA button — outline, fills on hover */
.btn-quote {
  background-color: transparent;
  color: var(--harco-blue);
  border: 1.5px solid var(--harco-blue);
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: calc(var(--space-2) - 1.5px) var(--space-6);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-quote:hover,
.btn-quote:focus-visible {
  background-color: var(--harco-blue);
  color: #fff;
  border-color: var(--harco-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(13, 31, 78, 0.20);
}

.btn-quote:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Mobile nav */
@media (max-width: 991.98px) {
  /* Default (solid) collapse panel */
  .harco-nav .navbar-collapse {
    background-color: var(--harco-white);
    margin: 0 -12px;
    padding: var(--space-4) var(--space-4) var(--space-6);
    border-top: 1px solid var(--harco-border);
    box-shadow: 0 8px 32px rgba(13, 31, 78, 0.10);
  }

  .harco-nav .nav-link {
    padding: var(--space-3) var(--space-2);
  }

  .harco-nav .nav-link::after {
    left: var(--space-2);
    right: var(--space-2);
  }

  .harco-nav .dropdown-menu {
    background-color: var(--harco-off-white);
    border: none;
    box-shadow: none;
    padding-left: var(--space-4);
  }

  .harco-nav .dropdown-item {
    color: var(--harco-grey);
  }

  .harco-nav .d-lg-flex {
    margin-top: var(--space-4);
  }

  /* CTA + auth group — stack vertically on mobile */
  .harco-nav .nav-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-2);
  }

  .harco-nav .nav-cta-group .btn-nav-auth,
  .harco-nav .nav-cta-group .btn-quote {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Authenticated dropdown wrapper: full width so button fills it */
  .harco-nav .nav-cta-group .dropdown {
    width: 100%;
  }

  .harco-nav .nav-cta-group .dropdown .btn-nav-auth {
    width: 100%;
    justify-content: center;
  }

  /* Transparent state — collapse panel becomes dark navy */
  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse {
    background-color: var(--harco-blue);
    border-top-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(13, 31, 78, 0.35);
  }

  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse .nav-link {
    color: rgba(255, 255, 255, 0.80);
  }

  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse .nav-link:hover,
  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse .nav-link.active {
    color: #fff;
  }

  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.07);
  }

  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse .dropdown-item {
    color: rgba(255, 255, 255, 0.72);
  }

  .has-hero-nav .harco-nav:not(.nav-solid) .navbar-collapse .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
  }
}

/* --- Footer ----------------------------------------------- */
.harco-footer {
  background-color: var(--harco-white);
  border-top: 1px solid var(--harco-border);
  color: var(--harco-grey);
  padding: var(--space-16) 0 0;
}

.harco-footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--harco-blue);
  margin-bottom: var(--space-6);
}

.harco-footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--harco-grey);
  margin-top: var(--space-4);
  max-width: 26ch;
}

.harco-footer .footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.harco-footer .footer-social a {
  color: var(--harco-grey);
  font-size: 1.2rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  line-height: 1;
}

.harco-footer .footer-social a:hover {
  color: var(--harco-accent);
  transform: translateY(-2px);
}

.harco-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.harco-footer ul li {
  margin-bottom: var(--space-3);
}

.harco-footer ul a {
  color: var(--harco-grey);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.harco-footer ul a:hover {
  color: var(--harco-blue);
}

.harco-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--harco-grey);
}

.harco-footer .footer-contact-item i {
  color: var(--harco-blue-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.harco-footer hr {
  border-color: var(--harco-border);
  margin: var(--space-12) 0 0;
  opacity: 1;
}

.harco-footer-bottom {
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  color: var(--harco-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.harco-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.harco-footer-bottom a {
  color: var(--harco-grey);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.harco-footer-bottom a:hover {
  color: var(--harco-blue);
}

/* Footer logo/brand treatment */
.harco-footer .footer-brand-text {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--harco-blue);
  text-transform: uppercase;
}

/* --- Utility classes -------------------------------------- */
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harco-blue-light);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--harco-blue);
  line-height: 1.2;
}

.section-lead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--harco-grey);
  line-height: 1.7;
  max-width: 60ch;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--harco-accent);
  outline-offset: 3px;
}

/* --- Page entrance animation ------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s var(--ease-out-quart) both;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   Fixed top-right, slides in from right, auto-dismisses.
   ═══════════════════════════════════════════════════════════════ */

#hc-toast-container {
  position: fixed;
  top: 80px;          /* clear both main navbar (~64px) and auth header (76px) */
  right: 1.5rem;
  z-index: 1040;
  width: 360px;
  max-width: calc(100vw - 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none; /* let clicks fall through the empty gap */
}

.hc-toast {
  pointer-events: auto;
  background: var(--harco-white);
  border: 1px solid var(--harco-border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13, 31, 78, 0.10);
  /* Entrance: parked off-screen to the right */
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.25, 1, 0.5, 1),
    opacity   0.28s ease;
}

.hc-toast--in {
  transform: translateX(0);
  opacity: 1;
}

.hc-toast--out {
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
}

.hc-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.hc-toast-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.5;   /* align with text cap-height */
}

.hc-toast-msg {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--harco-blue);
  margin: 0;
}

.hc-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  color: var(--harco-grey);
  transition: color var(--transition-fast);
  margin-top: 1px;
}

.hc-toast-close:hover {
  color: var(--harco-blue);
}

.hc-toast-close i {
  font-size: 1.125rem;
}

/* Progress track at the bottom of each toast */
.hc-toast-progress {
  height: 2px;
  background: var(--harco-border);
  overflow: hidden;
}

.hc-toast-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  /* duration is set via JS to match DURATION constant */
  transition: transform 5000ms linear;
}

/* ── Type colours ────────────────────────────────────────────── */

.hc-toast[data-type="success"] .hc-toast-icon { color: #16a34a; }
.hc-toast[data-type="success"] .hc-toast-progress-bar { background: #16a34a; }

.hc-toast[data-type="error"] .hc-toast-icon { color: #dc2626; }
.hc-toast[data-type="error"] .hc-toast-progress-bar { background: #dc2626; }

.hc-toast[data-type="warning"] .hc-toast-icon { color: var(--harco-accent-dark); }
.hc-toast[data-type="warning"] .hc-toast-progress-bar { background: var(--harco-accent-dark); }

.hc-toast[data-type="info"] .hc-toast-icon { color: var(--harco-blue-light); }
.hc-toast[data-type="info"] .hc-toast-progress-bar { background: var(--harco-blue-light); }

.hc-toast[data-type="debug"] .hc-toast-icon { color: var(--harco-grey); }
.hc-toast[data-type="debug"] .hc-toast-progress-bar { background: var(--harco-grey); }

/* ── Mobile: stretch to fill screen width ───────────────────── */

@media (max-width: 575.98px) {
  #hc-toast-container {
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
  }

  .hc-toast--in {
    /* On mobile, slide down from top instead of in from the side */
    transform: translateY(0);
    opacity: 1;
  }

  .hc-toast {
    transform: translateY(-1rem);
  }

  .hc-toast--out {
    transform: translateY(-1rem);
    opacity: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH SPLIT LAYOUT — Sign Up & Login
   Split two-panel: navy branding left, white form right.
   Square corners throughout — authoritative, architectural.
   ═══════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--harco-off-white);
  color: var(--harco-blue);
}

/* ── Minimal header ─────────────────────────────────────────── */

.auth-header {
  height: 76px;
  border-bottom: 1px solid var(--harco-border);
  background: var(--harco-white);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.auth-header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.auth-header-logo {
  height: 40px;
  width: auto;
}

.auth-header-back {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--harco-grey);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--transition-fast);
}

.auth-header-back:hover {
  color: var(--harco-blue);
}

/* ── Main centring wrapper ──────────────────────────────────── */

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* ── Split container ────────────────────────────────────────── */

.auth-split {
  display: flex;
  width: 100%;
  max-width: 1100px;
  border: 1px solid var(--harco-border);
  overflow: hidden;
  /* No border-radius — sharp, engineered */
}

/* ── Left: branding panel ───────────────────────────────────── */

.auth-split-left {
  flex: 0 0 41.666%;
  background: var(--harco-blue);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Subtle concentric ring watermark */
.auth-split-left::before {
  content: '';
  position: absolute;
  bottom: -5rem;
  right: -5rem;
  width: 320px;
  height: 320px;
  border: 48px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.auth-split-left::after {
  content: '';
  position: absolute;
  bottom: -10rem;
  right: -10rem;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.auth-split-left-content {
  position: relative;
  z-index: 1;
}

.auth-split-eyebrow {
  display: block;
  width: 2.5rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.auth-split-left h1 {
  font-size: clamp(1.5rem, 2.2vw + 0.4rem, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 22ch;
}

.auth-split-left p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 34ch;
}

/* ── Right: form panel ──────────────────────────────────────── */

.auth-split-right {
  flex: 1;
  background: var(--harco-white);
  padding: 3.5rem 3rem;
  display: flex;
  align-items: flex-start;
}

.auth-split-right-inner {
  width: 100%;
  max-width: 420px;
}

/* ── Form header ────────────────────────────────────────────── */

.auth-form-head {
  margin-bottom: 2.25rem;
}

.auth-form-head h2 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--harco-blue);
  margin-bottom: 0.375rem;
}

.auth-form-head p {
  font-size: 0.9375rem;
  color: var(--harco-grey);
  margin: 0;
}

/* ── Non-field errors ───────────────────────────────────────── */

.auth-non-field-errors {
  background: #fdf2f2;
  border: 1px solid #f5c2be;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #ba1a1a;
}

/* ── Field groups ───────────────────────────────────────────── */

.auth-field {
  margin-bottom: 1.375rem;
}

.auth-field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--harco-blue);
  margin-bottom: 0.5rem;
}

.auth-fields-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.375rem;
}

/* ── Square inputs ──────────────────────────────────────────── */

.auth-split-right input[type="text"],
.auth-split-right input[type="email"],
.auth-split-right input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--harco-white);
  border: 1px solid var(--harco-border);
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--harco-blue);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.auth-split-right input[type="text"]::placeholder,
.auth-split-right input[type="email"]::placeholder,
.auth-split-right input[type="password"]::placeholder {
  color: #c4c6cf;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.auth-split-right input[type="text"]:focus,
.auth-split-right input[type="email"]:focus,
.auth-split-right input[type="password"]:focus {
  border-color: var(--harco-blue);
  box-shadow: none;
}

.auth-field-has-error input[type="text"],
.auth-field-has-error input[type="email"],
.auth-field-has-error input[type="password"] {
  border-color: #ba1a1a;
}

.auth-field-errors {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.auth-field-errors li {
  font-size: 0.75rem;
  color: #ba1a1a;
  font-weight: 500;
}

.auth-field-meta {
  font-size: 0.75rem;
  color: var(--harco-grey);
  margin-top: 0.4rem;
  line-height: 1.55;
}

/* Django renders password help text as <ul> — strip bullets */
.auth-field-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Forgot password ────────────────────────────────────────── */

.auth-field-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.auth-field-action a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--harco-grey);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-field-action a:hover {
  color: var(--harco-blue);
}

/* ── Submit button ──────────────────────────────────────────── */

.auth-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--harco-blue);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 1.75rem;
}

.auth-submit:hover {
  background: var(--harco-blue-mid);
}

/* ── Switch link ────────────────────────────────────────────── */

.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--harco-grey);
}

.auth-switch a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--harco-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.auth-switch a:hover {
  color: var(--harco-blue-mid);
}

/* ── Trust indicators ───────────────────────────────────────── */

.auth-trust {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--harco-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.42;
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--harco-blue);
}

.auth-trust-item i {
  font-size: 1rem;
}

/* ── Minimal footer ─────────────────────────────────────────── */

.auth-footer {
  border-top: 1px solid var(--harco-border);
  background: var(--harco-white);
  padding: 1.75rem 2rem;
  flex-shrink: 0;
}

.auth-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-footer-copy {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--harco-grey);
}

.auth-footer-links {
  display: flex;
  gap: 1.5rem;
}

.auth-footer-links a {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--harco-grey);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-links a:hover {
  color: var(--harco-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .auth-split {
    flex-direction: column;
    border: none;
  }

  .auth-split-left {
    flex: none;
    min-height: 260px;
    padding: 2.5rem 1.5rem;
  }

  .auth-split-left h1 {
    font-size: 1.5rem;
  }

  .auth-split-right {
    padding: 2rem 1.5rem;
  }

  .auth-fields-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-main {
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }

  .auth-trust {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .auth-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TRUSTED BY — client logo marquee strip
   Sits just above the footer; globally visible on every template.
   CSS-only infinite scroll: only transform animated (no layout).
   ═══════════════════════════════════════════════════════════════ */

.hc-clients-strip {
  background-color: var(--harco-off-white);
  padding: var(--space-12) 0;
  overflow: hidden;
  border-top: 1px solid var(--harco-border);
  border-bottom: 1px solid var(--harco-border);
}

.hc-clients-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.hc-clients-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--harco-grey);
}

/* Viewport: clips overflow and fades edges for seamless feel */
.hc-marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* Scrolling track — translateX(-50%) loops over exactly one set */
.hc-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  padding: var(--space-3) 0;
  animation: hc-marquee-scroll 48s linear infinite;
  will-change: transform;
}

.hc-marquee-viewport:hover .hc-marquee-track {
  animation-play-state: paused;
}

@keyframes hc-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual logo card */
.hc-client-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--harco-white);
  border: 1px solid var(--harco-border);
  border-radius: 4px;
  padding: var(--space-4) var(--space-6);
  width: 172px;
  height: 96px;
  margin: 0;
  transition: box-shadow var(--transition-mid), transform var(--transition-mid);
}

.hc-client-item:hover {
  box-shadow: 0 4px 18px rgba(13, 31, 78, 0.10);
  transform: translateY(-2px);
}

/* Logo image — muted by default, vivid on hover */
.hc-client-img {
  max-height: 36px;
  max-width: 136px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter var(--transition-mid);
}

.hc-client-item:hover .hc-client-img {
  filter: grayscale(0%) opacity(1);
}

/* Company name — always visible below the logo */
.hc-client-text-fallback {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--harco-grey);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color var(--transition-mid);
}

.hc-client-item:hover .hc-client-text-fallback {
  color: var(--harco-blue);
}

/* Reduced motion: disable marquee, show only the 3 canonical logos */
@media (prefers-reduced-motion: reduce) {
  .hc-marquee-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hc-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 var(--space-6);
    gap: var(--space-4);
  }

  /* Hide all duplicates — only the 3 canonical items remain */
  .hc-client-item[aria-hidden="true"] {
    display: none;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .hc-clients-strip {
    padding: var(--space-8) 0;
  }

  .hc-client-item {
    width: 136px;
    height: 80px;
    padding: var(--space-3) var(--space-4);
  }

  .hc-client-img {
    max-height: 32px;
    max-width: 108px;
  }

  .hc-marquee-track {
    gap: var(--space-4);
  }
}
