/* ──────────────────────────────────────────────
   AvaHR Jobs — Homepage styles
   ────────────────────────────────────────────── */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-roman.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --ava-teal-900:    #0b363c;
  --ava-teal-950:    #0b2428;
  --ava-navy-700:    #184866;
  --ava-mint-500:    #1bb387;
  --ava-mint-700:    #1e664c;
  --ava-mint-800:    #135941;
  --ava-citrus-200:  #e3ffcc;
  --ava-cream-200:   #f9eec2;
  --ava-sky-300:     #88c6fb;
  --ava-amber-500:   #dd9f4e;
  --ava-white:       #ffffff;
  --ava-paper:       #f7f9fb;
  --ava-line:        #dddee2;
  --ava-steel-400:   #7a8dae;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm:  5px;
  --radius-md:  6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--font-sans);
  color: var(--ava-teal-900);
  background: var(--ava-white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
[data-lucide] { stroke-width: 1.5; }

/* ---------- Logo mask ---------- */
.ava-logo {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("../images/ava-logo-mask.svg") center / contain no-repeat;
          mask: url("../images/ava-logo-mask.svg") center / contain no-repeat;
}

/* ---------- Feather watermark ---------- */
.ava-feather {
  display: block;
  background-color: currentColor;
  pointer-events: none;
  -webkit-mask: url("../images/ava-feather.svg") center / contain no-repeat;
          mask: url("../images/ava-feather.svg") center / contain no-repeat;
}

/* ---------- Buttons ---------- */
.ava-btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  height: 45px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.ava-btn--primary { background: var(--ava-teal-900); color: var(--ava-citrus-200); }
.ava-btn--primary:hover { background: var(--ava-teal-950); }
.ava-btn--ghost {
  background: transparent;
  color: var(--ava-teal-900);
  box-shadow: inset 0 0 0 1px var(--ava-teal-900);
}
.ava-btn--ghost:hover { background: var(--ava-teal-900); color: var(--ava-white); }
.ava-btn--on-dark { background: var(--ava-citrus-200); color: var(--ava-teal-900); }
.ava-btn--on-dark:hover { background: var(--ava-white); }
.ava-btn--sm { height: 37px; padding: 0 16px; border-radius: var(--radius-md); font-size: 16px; }

/* ---------- Arrow link ---------- */
.ava-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ava-navy-700);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: color 150ms ease-out;
}
.ava-arrow-link:hover { color: var(--ava-teal-900); }
.ava-arrow-link::after {
  content: "";
  width: 22px;
  height: 11px;
  background-color: currentColor;
  clip-path: polygon(0 38%, 76% 38%, 76% 0%, 100% 50%, 76% 100%, 76% 62%, 0 62%);
}

/* ---------- Hamburger button ---------- */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ava-line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ava-teal-900);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-hamburger [data-lucide] { width: 22px; height: 22px; pointer-events: none; }
.nav-hamburger .ham-close { display: none; }
.nav-hamburger.is-open .ham-open  { display: none; }
.nav-hamburger.is-open .ham-close { display: block; }

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  display: none; /* only rendered on mobile */
  flex-direction: column;
  background: var(--ava-white);
  border-bottom: 1px solid var(--ava-line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms ease-out;
  position: sticky;
  top: 64px; /* below sticky nav */
  z-index: 99;
}
.mobile-menu.is-open { max-height: 480px; }
.mobile-menu a:not(.ava-btn) {
  display: block;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ava-teal-900);
  border-bottom: 1px solid var(--ava-line);
}
.mobile-menu a:not(.ava-btn):hover { color: var(--ava-mint-500); }
.mobile-menu .mobile-menu-ctas {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

/* ---------- Utility bar ---------- */
.utility {
  background: var(--ava-navy-700);
  color: var(--ava-white);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 60px;
  font-size: 13px;
  gap: 22px;
}
.utility a { color: rgba(255,255,255,0.85); }
.utility a:hover { color: var(--ava-white); }

/* ---------- Nav ---------- */
.site-nav {
  height: 76px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--ava-white);
  border-bottom: 1px solid var(--ava-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand .logo {
  width: 130px;
  height: 26px;
  color: var(--ava-teal-900);
}
.brand .divider { width: 1px; height: 22px; background: var(--ava-line); }
.brand .tag { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ava-mint-500); }
.nav-links { display: flex; gap: 26px; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--ava-mint-500); }
.nav-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 60px 90px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.pill-highlight {
  position: absolute;
  left: 60px;
  top: 215px;
  width: 470px;
  height: 76px;
  border-radius: 15px;
  background: var(--ava-citrus-200);
  z-index: 0;
}
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--ava-teal-900);
}
.hero .lead {
  font-size: 19px;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--ava-teal-900);
}
.hero .cta-row { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.hero .trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ava-steel-400);
}
.hero .trust .stars { color: var(--ava-amber-500); letter-spacing: 1px; font-size: 15px; }

/* Hero visual / UI mockup */
.hero-visual {
  position: relative;
  background: var(--ava-mint-500);
  border-radius: 14px;
  padding: 28px;
  aspect-ratio: 1.05 / 1;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11,54,60,0.18);
}
.hero-visual .feather {
  position: absolute;
  left: -30px;
  top: -40px;
  width: 280px;
  height: 720px;
  color: var(--ava-white);
  opacity: 0.18;
}
.mock {
  position: relative;
  z-index: 1;
  background: var(--ava-white);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 14px 30px rgba(11,54,60,0.18);
}
.mock h6 {
  font-size: 12px;
  color: var(--ava-steel-400);
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock .post {
  border: 1px solid var(--ava-line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.mock .post .badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ava-citrus-200);
  display: grid;
  place-items: center;
  color: var(--ava-teal-900);
  flex-shrink: 0;
}
.mock .post .role { font-weight: 700; font-size: 14px; }
.mock .post .sub  { font-size: 12px; color: var(--ava-steel-400); }
.mock .post .status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ava-mint-500);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}
.mock .post .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ava-mint-500);
}
.mock .summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.mock .summary div { text-align: center; }
.mock .summary .num { font-weight: 800; font-size: 20px; color: var(--ava-teal-900); letter-spacing: -0.01em; }
.mock .summary .cap { font-size: 10px; color: var(--ava-steel-400); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Job boards strip ---------- */
.boards {
  background: var(--ava-paper);
  padding: 36px 60px;
  text-align: center;
  border-top: 1px solid var(--ava-line);
  border-bottom: 1px solid var(--ava-line);
}
.boards .label {
  font-size: 13px;
  color: var(--ava-steel-400);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.boards .logos {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.boards .logos span {
  color: var(--ava-teal-900);
  opacity: 0.55;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 18px;
}

/* ---------- Features ---------- */
.block {
  padding: 80px 60px;
  max-width: 1240px;
  margin: 0 auto;
}
.block-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}
.eyebrow {
  color: var(--ava-mint-500);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.block-head h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 800;
}
.block-head p { font-size: 17px; color: var(--ava-teal-900); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--ava-white);
  border: 1px solid var(--ava-line);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ava-citrus-200);
  color: var(--ava-teal-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature.mint .ico { background: var(--ava-mint-500); color: var(--ava-white); }
.feature.blue .ico { background: var(--ava-sky-300); }
.feature .ico [data-lucide] { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -0.005em; }
.feature p { font-size: 14px; line-height: 1.5; color: var(--ava-teal-900); margin: 0; }
.feature .lnk {
  font-weight: 700;
  font-size: 14px;
  color: var(--ava-navy-700);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature .lnk:hover { color: var(--ava-teal-900); }

/* ---------- Split highlight ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 60px 80px;
  background: var(--ava-white);
}
.split .pane {
  padding: 56px 48px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.split .pane.mint { background: var(--ava-mint-500); color: var(--ava-white); }
.split .pane:not(.mint) { background: var(--ava-paper); border: 1px solid var(--ava-line); }
.split .pane.mint .pane-feather {
  position: absolute;
  right: -50px;
  top: -40px;
  width: 280px;
  height: 720px;
  color: var(--ava-white);
  opacity: 0.16;
}
.split .pane.mint .eyebrow { color: rgba(255,255,255,0.85); }
.split h3 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 18px;
}
.split p { font-size: 16px; line-height: 1.5; margin: 0 0 22px; max-width: 480px; }
.split .pane.mint h3,
.split .pane.mint p { color: var(--ava-white); }
.split ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; max-width: 460px; }
.split ul li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.split .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ava-mint-500);
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
}
.split .pane.mint .check { background: var(--ava-citrus-200); }
.split .check::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2.5px solid var(--ava-white);
  border-bottom: 2.5px solid var(--ava-white);
  transform: rotate(40deg) translate(-1px, -1px);
}
.split .pane.mint .check::after {
  border-right-color: var(--ava-mint-500);
  border-bottom-color: var(--ava-mint-500);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--ava-teal-900);
  color: var(--ava-citrus-200);
  padding: 70px 60px;
  position: relative;
  overflow: hidden;
}
.stats-band .band-feather {
  position: absolute;
  right: -120px;
  top: -100px;
  width: 360px;
  height: 880px;
  color: var(--ava-citrus-200);
  opacity: 0.08;
}
.stats-band .inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.stats-band h2 {
  text-align: center;
  font-size: 36px;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 36px;
  color: var(--ava-citrus-200);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: rgba(227,255,204,0.08);
  border: 1px solid rgba(227,255,204,0.18);
  border-radius: 8px;
  padding: 24px;
  color: var(--ava-citrus-200);
}
.stat .big { font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.stat .cap { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ---------- Final CTA ---------- */
.final {
  background: var(--ava-citrus-200);
  padding: 70px 60px;
  position: relative;
  overflow: hidden;
}
.final-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.final h3 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ava-teal-900);
}
.final p { color: var(--ava-teal-900); font-size: 16px; margin: 0; max-width: 560px; }
.final .cta-feather {
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 320px;
  height: 800px;
  color: var(--ava-mint-500);
  opacity: 0.15;
}
.final .cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ava-teal-950);
  color: rgba(255,255,255,0.7);
  padding: 30px 60px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer .logo {
  width: 110px;
  height: 22px;
  color: var(--ava-citrus-200);
}
.site-footer .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .footer-links a:hover { color: var(--ava-citrus-200); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .utility { padding: 0 30px; }
  .site-nav { padding: 0 30px; gap: 20px; }
  .hero { padding: 60px 30px 70px; }
  .boards { padding: 30px; }
  .block { padding: 60px 30px; }
  .split { padding: 30px 30px 60px; }
  .stats-band { padding: 60px 30px; }
  .final { padding: 60px 30px; }
  .site-footer { padding: 24px 30px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-nav { gap: 0; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; top: 76px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; }
  .pill-highlight { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .pane { min-height: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .final-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .utility { padding: 0 16px; gap: 12px; font-size: 12px; }
  .utility a:first-child { display: none; } /* hide phone number, keep avahr.com link */
  .site-nav { padding: 0 16px; height: 64px; }
  .mobile-menu { top: 64px; }
  .nav-right .ava-btn--ghost { display: none; } /* hide Login, keep primary CTA */
  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 40px; }
  .boards { padding: 24px 16px; }
  .boards .logos { gap: 20px; }
  .boards .logos span { font-size: 15px; }
  .block { padding: 50px 16px; }
  .features { grid-template-columns: 1fr; }
  .split { padding: 16px 16px 50px; }
  .split .pane { padding: 36px 28px; }
  .split h3 { font-size: 28px; }
  .stats-band { padding: 50px 16px; }
  .stats-band h2 { font-size: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat .big { font-size: 30px; }
  .final { padding: 50px 16px; }
  .final h3 { font-size: 30px; }
  .site-footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
