/* ============================================================
   Managed Employment Services, LLC — Landing page
   Mobile-first. Brand: charcoal + gold, serif display + sans body.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --charcoal: #34373d;
  --charcoal-deep: #1f2124;
  --ink: #16181b;
  --gold: #c9a14a;
  --gold-light: #dcb863;
  --gold-soft: rgba(201, 161, 74, 0.14);
  --cream: #f5f1e8;
  --cream-dim: #c9c6bd;
  --paper: #ffffff;
  --paper-warm: #faf8f4;
  --line: #e7e2d8;
  --heading: #23262b;
  --body: #585b63;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(31, 33, 36, 0.06);
  --shadow-md: 0 18px 50px rgba(31, 33, 36, 0.16);
  --shadow-lg: 0 30px 70px rgba(31, 33, 36, 0.28);

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--charcoal-deep);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section { scroll-margin-top: 84px; }

/* ---------- Shared type helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--body);
  margin: 0 0 0.9rem;
}
.eyebrow--gold { color: var(--gold); }

.section-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}
.section-title--center { text-align: center; }

.section-head { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section-sub { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.9rem;
  --btn-pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  text-align: center;
  line-height: 1.1;
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(201, 161, 74, 0.34);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(31, 33, 36, 0.22);
  color: var(--heading);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name-main {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--heading);
  letter-spacing: 0.01em;
}
.brand__name-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Slightly larger brand in the header */
.site-header .brand__mark { width: 54px; height: 54px; }
.site-header .brand__name-main { font-size: 1.2rem; }
.site-header .brand__name-sub { font-size: 0.74rem; }

/* Nav (mobile drawer first) */
.nav {
  position: fixed;
  inset: 70px 0 auto 0;
  background: var(--charcoal-deep);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2rem 1.5rem 2.5rem;
  transform: translateY(-130%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}
.nav.is-open { transform: translateY(0); }
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.nav__list a {
  color: var(--cream);
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-block;
  padding: 0.2rem 0;
}
.nav__list a:hover { color: var(--gold); }
.nav__cta { align-self: flex-start; }

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  width: 24px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,161,74,0.10), transparent 60%),
    linear-gradient(180deg, var(--paper-warm), var(--paper));
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.hero__inner { display: grid; gap: 2.5rem; }
.hero__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 8.5vw, 4.2rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead {
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__media { display: flex; justify-content: center; }
.hero__photo-frame {
  position: relative;
  width: min(380px, 86vw);
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-deep));
  box-shadow: var(--shadow-lg);
}
.hero__photo-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 161, 74, 0.45);
  border-radius: 14px;
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 5 / 5.2;
  object-fit: cover;
  object-position: center top;
}
.hero__badge {
  position: absolute;
  left: 50%; bottom: -18px;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero__badge-name { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; }
.hero__badge-role { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal-deep); color: var(--cream); }
.stats__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.35rem; position: relative; }
.stat__num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
}
.stat__plus { color: var(--gold-light); }
.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 600;
}

/* ---------- About ---------- */
.about { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.about__inner { display: grid; gap: 2.5rem; align-items: center; }
.about__text p { font-size: 1.05rem; }
.pull-quote {
  margin: 1.8rem 0 0;
  padding: 1.2rem 0 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--heading);
  line-height: 1.4;
}
.about__aside { display: flex; justify-content: center; }
.about__emblem {
  width: clamp(150px, 40vw, 230px);
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* ---------- Services ---------- */
.services { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--paper-warm); }
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 161, 74, 0.5);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.service-card__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card__title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-card p { margin: 0; font-size: 0.98rem; }

/* ---------- Why / The Managed Difference ---------- */
.why {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(201,161,74,0.10), transparent 55%),
    linear-gradient(180deg, var(--charcoal), var(--charcoal-deep));
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.why__inner { display: grid; gap: 2.75rem; align-items: center; }
.why .section-title { color: var(--cream); }
.why__media { display: flex; justify-content: center; }
.why__photo-frame {
  position: relative;
  width: min(360px, 84vw);
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 161, 74, 0.4);
  box-shadow: var(--shadow-lg);
}
.why__photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 5 / 5.2;
  object-fit: cover;
  object-position: center top;
}
.diff-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 0.5rem; }
.diff { display: flex; gap: 1.1rem; align-items: flex-start; }
.diff__index {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  flex: none;
  line-height: 1;
  padding-top: 0.15rem;
  min-width: 2.2rem;
}
.diff__title { color: var(--cream); font-size: 1.18rem; margin-bottom: 0.3rem; font-weight: 600; }
.diff p { color: var(--cream-dim); margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--ink); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.testimonial__inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.testimonial__mark {
  font-family: var(--ff-display);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.6;
  display: block;
  margin-bottom: 0.5rem;
}
.testimonial__quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 4.2vw, 2.1rem);
  line-height: 1.4;
  color: var(--gold-light);
  margin: 0 0 1.5rem;
}
.testimonial__cite {
  color: var(--cream-dim);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(900px 460px at 100% 0%, rgba(201,161,74,0.12), transparent 55%),
    linear-gradient(180deg, var(--charcoal-deep), var(--ink));
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.contact__inner { display: grid; gap: 2.5rem; align-items: start; }
.contact .section-title { color: var(--cream); }
.contact__lead { color: var(--cream-dim); font-size: 1.08rem; max-width: 46ch; }

.contact__methods { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.8rem; }
.contact__methods a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}
.contact__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  flex: none;
}
.contact__meta { display: flex; flex-direction: column; }
.contact__meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact__meta-value { color: var(--cream); font-weight: 500; word-break: break-word; }
.contact__methods a:hover .contact__meta-value { color: var(--gold-light); }

/* Form */
.contact__form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.form__title {
  font-family: var(--ff-display);
  color: var(--cream);
  font-size: 1.45rem;
  margin-bottom: 1.3rem;
}
.field { margin-bottom: 1.05rem; }
.field--split { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  margin-bottom: 0.4rem;
}
.field label span { color: var(--gold); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 241, 232, 0.4); }
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e06c6c; }
.field__error {
  display: block;
  color: #f0a3a3;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1em;
}
.form__status {
  margin: 1rem 0 0;
  font-weight: 600;
  min-height: 1.2em;
}
.form__status.is-success { color: var(--gold-light); }
.form__status.is-error { color: #f0a3a3; }
.form__note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
}
.btn--block { margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream-dim); padding: 3rem 0 1.5rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand--footer .brand__name-main { color: var(--cream); }
.footer__tagline { margin-top: 1rem; max-width: 38ch; font-size: 0.95rem; }
.footer__nav h4, .footer__contact h4 {
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__nav ul, .footer__contact ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact a { word-break: break-word; }
.footer__bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}
.footer__bar p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 560px) {
  .stats__inner { grid-template-columns: repeat(3, 1fr); }
  .stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: 56px; width: 1px;
    background: rgba(201, 161, 74, 0.3);
  }
  .field--split { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; }
}

@media (min-width: 900px) {
  .container { padding-inline: 2rem; }
  .header__inner { min-height: 78px; }

  /* desktop nav */
  .nav-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; gap: 2rem; }
  .nav__list a { color: var(--heading); font-size: 0.98rem; font-weight: 500; position: relative; }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.25s var(--ease);
  }
  .nav__list a:hover { color: var(--heading); }
  .nav__list a:hover::after { width: 100%; }
  .nav__cta { align-self: auto; }

  .hero { padding: 5rem 0 4.5rem; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; }
  .hero__media { justify-content: flex-end; }

  .about__inner { grid-template-columns: 1.5fr 1fr; gap: 3.5rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

  .why__inner { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }

  .contact__inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
