@import url("/hq/theme.css");

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px 150px;
  color: #fff;
  background:
    radial-gradient(circle at 11% 18%, rgba(201,161,74,.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.05), transparent 25%),
    linear-gradient(135deg, #0f1927 0%, #17273c 62%, #101b2b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-32deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 18px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 27%, var(--gold) 27%, var(--gold) 35%, rgba(255,255,255,.10) 35%, rgba(255,255,255,.10) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.logo { display: block; max-width: 200px; max-height: 58px; width: auto; height: auto; object-fit: contain; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark span {
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.header-contact { color: rgba(255,255,255,.56); font-size: 11px; text-align: right; }
.header-contact strong { display: block; margin-top: 2px; color: #fff; font-size: 15px; }
.header-contact a { color: inherit; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  animation: rise .6s ease both;
}
.eyebrow::before { content: ""; width: 29px; height: 2px; background: var(--gold); }

h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #fff;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  animation: rise .6s .08s ease both;
}
h1 em { font-style: normal; color: var(--gold-light); }

.lead {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 17px;
  animation: rise .6s .16s ease both;
}

/* ── Doors ────────────────────────────────────────────── */

.doors {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: -96px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.door {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 26px 60px -34px rgba(15,28,46,.42), 0 4px 13px rgba(15,28,46,.05);
  animation: rise .7s ease both;
}
.door:nth-child(2) { animation-delay: .1s; }
.door:nth-child(3) { animation-delay: .2s; }

.door-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.door-kicker i {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-light);
  font-style: normal;
  font-size: 13px;
}

.door h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.door p { margin: 0 0 18px; font-size: 14px; color: #5a636f; }

.door .spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(193,18,31,.8); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { margin-top: 10px; background: var(--soft); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: #eef0f3; }

.fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Team tile list inside the second door */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.tiles a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color .15s, background .15s, transform .15s;
}
.tiles a small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.tiles a:hover { border-color: var(--gold); background: #fffdf7; transform: translateY(-1px); }

/* ── Strip ────────────────────────────────────────────── */

.strip {
  max-width: 1040px;
  margin: 44px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.strip div {
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
}
.strip strong { display: block; color: var(--navy); font-size: 13px; }
.strip span { font-size: 12.5px; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────── */

footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 22px 46px;
  color: #858c95;
  font-size: 11.5px;
  line-height: 1.9;
  text-align: center;
}
footer a { color: #747c86; }
footer a:hover { color: var(--red); }
footer .sep { margin: 0 7px; opacity: .45; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

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

@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; margin-top: -84px; }
  .strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 22px 16px 132px; }
  .topbar { margin-bottom: 44px; }
  .logo { max-width: 150px; max-height: 46px; }
  .wordmark span { display: none; }
  .header-contact span { display: none; }
  .header-contact strong { font-size: 13px; }
  .doors { padding: 0 14px; margin-top: -76px; gap: 14px; }
  .door { padding: 22px 18px 20px; border-radius: 12px; }
  .strip { grid-template-columns: 1fr; padding: 0 14px; margin-top: 30px; }
  footer { padding: 36px 16px 40px; }
}

/* ── Top nav (Employee Portal link) ──────────────────── */

.topnav { display: flex; align-items: center; gap: 22px; }
.topnav-phone { color: rgba(255,255,255,.56); font-size: 11px; text-align: right; }
.topnav-phone span { display: block; }
.topnav-phone strong { display: block; margin-top: 2px; color: #fff; font-size: 15px; }
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .15s, border-color .15s;
}
.portal-link i { font-style: normal; color: var(--gold-light); }
.portal-link:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* Two-door layout keeps the cards generous */
.doors.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.doors.two .door { padding: 32px 30px 28px; }

/* ── Employee Portal page ─────────────────────────────── */

.hero.compact { padding-bottom: 118px; }
.hero.compact .topbar { margin-bottom: 44px; }
.hero.compact h1 { font-size: clamp(34px, 5vw, 50px); }

.page {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: -84px auto 0;
  padding: 0 22px 56px;
}
.page.narrow { max-width: 480px; }

.field { display: block; margin: 0 0 14px; }
.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(16,27,43,.08); }
.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: #fff5f5;
  border-radius: 0 8px 8px 0;
  color: #8f1118;
  font-size: 13px;
}
#signinButton[disabled] { opacity: .7; cursor: progress; }

.whoami {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 60px -34px rgba(15,28,46,.42), 0 4px 13px rgba(15,28,46,.05);
}
.whoami strong { display: block; color: var(--navy); font-family: "Libre Franklin", Arial, sans-serif; font-size: 18px; letter-spacing: -.02em; }
.whoami span { font-size: 12.5px; color: var(--muted); }
.btn-inline { width: auto; margin: 0; padding: 10px 16px; font-size: 13px; }

.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.apps a {
  display: block;
  height: 100%;
  padding: 20px 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  color: var(--navy);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.apps a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(15,28,46,.45); border-color: var(--gold); }
.apps strong { display: block; margin-bottom: 4px; font-family: "Libre Franklin", Arial, sans-serif; font-size: 17px; letter-spacing: -.02em; }
.apps small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.guides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
}
.guides strong { color: var(--navy); margin-right: 6px; }
.guides a { color: var(--navy); border-bottom: 1px solid rgba(16,27,43,.25); }
.guides a:hover { color: var(--red); border-bottom-color: var(--red); }

@media (max-width: 900px) {
  .doors.two { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topnav { gap: 10px; }
  .topnav-phone { display: none; }
  .portal-link { padding: 9px 12px; font-size: 12px; }
  .page { padding: 0 14px 44px; margin-top: -72px; }
  .apps { grid-template-columns: 1fr; }
  .whoami { flex-direction: column; align-items: flex-start; }
}

/* Planned modules render as coming-soon tiles */
.apps .planned > span { display: block; height: 100%; padding: 20px 20px 18px; background: var(--soft); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.apps .planned strong { display: block; margin-bottom: 4px; color: #6b7480; font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }
.apps .planned em { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 999px; background: #ece9e1; color: #7a6a3d; font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
