/* Manifest HR Solutions - shared styles
   Colors are sampled from the logo: navy wordmark, lavender sunrise.
   Edit the values in :root to change the look everywhere. */

:root {
  --navy: #172c4a;
  --navy-hover: #2a4470;
  --ink-soft: #485775;
  --lav: #9c8abd;          /* decorative: sun, rules, bars */
  --lav-deep: #5f4e96;     /* readable lavender for links and focus */
  --lav-tint: #f2eff9;     /* soft background band */
  --lav-line: #ddd6ee;     /* dividers */
  --paper: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --page-pad: clamp(1.25rem, 5vw, 3rem);
  --page-max: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lav-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--lav-deep); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-pad); }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 1.1em; max-width: 42rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--lav-line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.6rem;
}
.brand img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a:not(.btn) {
  color: var(--navy); text-decoration: none; font-weight: 500;
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--lav); }
.nav a[aria-current="page"] { border-bottom-color: var(--lav); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--navy); color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  text-decoration: none; padding: 0.8rem 1.6rem; border-radius: 999px;
  border: 2px solid var(--navy); transition: background-color 0.15s ease;
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); text-decoration: none; }
.btn-small { padding: 0.45rem 1.1rem; }
.btn-large { font-size: 1.15rem; padding: 1rem 2rem; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--lav-tint); border-color: var(--lav-tint); }
.btn-light:focus-visible { outline-color: #fff; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--lav-line); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4.5rem, 10vw, 8.5rem); }
.hero h1 { max-width: 11em; margin-bottom: 1.4rem; }
.hero .lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 31rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }

/* The sun rises from the hero's bottom edge, echoing the logo mark */
.sun {
  position: absolute; z-index: 0; bottom: -6px;
  right: max(var(--page-pad), calc((100% - var(--page-max)) / 2 + var(--page-pad)));
  width: min(36rem, 54vw); height: auto; pointer-events: none;
}
.sun * { fill: none; stroke: var(--lav); stroke-width: 7; stroke-linecap: round; }
.sun .arc { stroke-dasharray: 1; animation: draw 1.3s cubic-bezier(0.3, 0.6, 0.3, 1) backwards; --len: 1; }
.sun .ray { stroke-dasharray: 60; animation: draw 0.7s ease-out backwards; --len: 60; }
.sun .ray:nth-of-type(1) { animation-delay: 1.0s; }
.sun .ray:nth-of-type(2) { animation-delay: 1.08s; }
.sun .ray:nth-of-type(3) { animation-delay: 1.16s; }
.sun .ray:nth-of-type(4) { animation-delay: 1.24s; }
.sun .ray:nth-of-type(5) { animation-delay: 1.32s; }
.sun .ray:nth-of-type(6) { animation-delay: 1.4s; }
.sun .ray:nth-of-type(7) { animation-delay: 1.48s; }
.sun .ray:nth-of-type(8) { animation-delay: 1.56s; }
.sun .ray:nth-of-type(9) { animation-delay: 1.64s; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

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

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.intro p {
  font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.4; max-width: 38rem; margin: 0;
}

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); padding-top: 0; }
.highlight::before {
  content: ""; display: block; width: 2.5rem; height: 4px; border-radius: 4px;
  background: var(--lav); margin-bottom: 1.1rem;
}
.highlight h3 { margin-bottom: 0.6rem; }
.highlight p { margin: 0; color: var(--ink-soft); }

.band { background: var(--lav-tint); }
.band p {
  font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
  line-height: 1.4; max-width: 36rem; margin: 0;
}

.cta { background: var(--navy); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { color: #fff; }
.cta p { margin: 0.5rem 0 0; color: #dcd6ee; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 1rem; }
.page-head p { font-size: 1.25rem; color: var(--ink-soft); margin: 0; }

.rows { margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.5rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 1.75rem; border-top: 1px solid var(--lav-line);
}
.row:last-child { border-bottom: 1px solid var(--lav-line); }
.row dt { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; }
.row dd { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.row dd a { overflow-wrap: anywhere; }
.row dd ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.row dd li { margin-bottom: 0.25rem; }
.row dd li::marker { color: var(--lav); }

.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .rows .row { grid-template-columns: 1fr; padding-block: 1.1rem; }
.split .rows .row dt { font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; }
.prose p { color: var(--navy); }

.contact-lead { font-size: 1.25rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--lav-line); padding-block: 2.25rem; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.site-footer p { margin: 0 0 0.25rem; max-width: 30rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .highlights { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; padding-block: 1.4rem; }
  .sun { position: relative; right: auto; bottom: -6px; width: min(30rem, 100%); margin: -1rem auto 0; display: block; }
  .hero .wrap { padding-bottom: 1.5rem; }
}
@media (max-width: 480px) {
  .hero .btn { width: 100%; text-align: center; }
}
@media (max-width: 640px) {
  .brand img { height: 60px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav .btn { display: none; }
  .nav { gap: 1.25rem; padding-bottom: 0.4rem; }
  body { font-size: 1.0625rem; }
}

/* ---------- Contact form ---------- */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 30rem; }
.contact-form .field { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit; color: var(--navy); background: var(--paper);
  border: 1px solid var(--lav-line); border-radius: 10px;
  padding: 0.7rem 0.9rem; resize: vertical;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid var(--lav-deep); outline-offset: 1px; }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }
