/* Fynn-Michaels HR Solutions
   Palette: white, black, gold. */

:root {
  --white: #ffffff;
  --tint: #f7f4ee;
  --black: #111111;
  --ink: #1c1c1c;
  --text: #5c5c5c;
  --muted: #8d8d8d;
  --line: #e8e3da;
  --gold: #b8924a;
  --gold-dark: #9a7735;
  --gold-soft: #f3ead9;

  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --section: 96px;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 48px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }

/* ---------- Top bar ---------- */

.topbar { background: var(--black); color: #cfcfcf; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar-info a:hover { color: var(--gold); }
.topbar-info svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-cta { color: var(--gold); font-weight: 600; }
.topbar-cta:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--black);
  color: var(--gold);
  font-family: var(--head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--gold); }

.site-nav a.active:not(.btn),
.sub-toggle.active { color: var(--gold); }

.topbar-tagline { color: var(--gold); font-weight: 600; letter-spacing: .04em; }

/* Services dropdown */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.sub-toggle:hover { color: var(--gold); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  min-width: 290px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 21px; }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle svg,
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.sub-menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.sub-menu a:hover, .sub-menu a.active { background: var(--tint); color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle .bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle .bar:nth-child(2) { top: 15px; }
.nav-toggle .bar:nth-child(3) { top: 21px; }
.nav-toggle .bar:nth-child(4) { top: 27px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.65) 45%, rgba(10,10,10,.15) 100%),
    url("https://images.unsplash.com/photo-1758518730162-09a142505bfd?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
  color: var(--white);
}
.hero-inner { padding: 140px var(--gutter) 150px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  margin: 16px 0 20px;
  max-width: 760px;
}
.hero-text { max-width: 520px; font-size: 17px; color: #dcdcdc; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tint { background: var(--tint); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2, .about-text h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; margin-top: 10px; }

.eyebrow {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.light { color: var(--gold); }

/* ---------- Service cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 30px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 19px; font-weight: 700; margin: 24px 0 12px; }
.card p { font-size: 15px; }

.icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  transition: background .25s ease, color .25s ease;
}
.icon svg { width: 30px; height: 30px; }
.card:hover .icon { background: var(--gold); color: var(--white); }
.icon-sm { width: 52px; height: 52px; flex: none; }
.icon-sm svg { width: 22px; height: 22px; }

/* ---------- Why choose us ---------- */

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.reasons li { display: flex; gap: 16px; }
.reasons .num {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  width: 64px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  height: 28px;
}
.reasons .num::after { content: ""; width: 32px; height: 1px; background: var(--gold); }
.reasons h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.reasons p { font-size: 15px; }

/* ---------- Stats ---------- */

.stats-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }

.circle-art { position: relative; width: 380px; height: 380px; margin: 0 auto; }
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 60%, var(--black) 100%);
}
.circle {
  position: absolute;
  inset: 50px 0 0 50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.circle-num { font-family: var(--head); font-weight: 700; font-size: 110px; line-height: 1; color: var(--black); }
.circle-label { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--ink); line-height: 1.3; margin-top: 6px; }
.dot { position: absolute; border-radius: 50%; background: var(--gold); }
.dot-a { width: 36px; height: 36px; top: 0; right: -30px; }
.dot-b { width: 18px; height: 18px; top: 80px; right: -50px; background: var(--black); }

.stats { display: grid; gap: 36px; }
.stats li { display: flex; flex-direction: column; padding-left: 24px; border-left: 3px solid var(--gold); }
.stat-num { font-family: var(--head); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--black); }
.stat-label { font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.about-img { position: relative; }
.about-img::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--gold);
  border-radius: 6px;
}
.about-img img { position: relative; border-radius: 6px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.about-text h2 { margin: 10px 0 20px; }
.about-text p + p { margin-top: 14px; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.about-text .btn { margin-top: 28px; }

/* ---------- Service cards (home) ---------- */

.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-4 .card { padding: 36px 24px; }
.card-link { display: flex; flex-direction: column; align-items: center; }
.card-link p { flex: 1; }
.card-more {
  margin-top: 20px;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
}
.center-note { text-align: center; margin-top: 40px; }
.center-note a { font-family: var(--head); font-weight: 600; color: var(--gold-dark); margin-left: 6px; }
.center-note a:hover { text-decoration: underline; }

/* ---------- Inner page banner ---------- */

.page-hero {
  background:
    linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.7) 55%, rgba(10,10,10,.35) 100%),
    var(--hero-img) center / cover no-repeat;
  color: var(--white);
  padding: 88px 0 92px;
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 760px; margin: 14px 0 14px; }
.page-hero-text { color: #dcdcdc; font-size: 17px; }
.crumbs { font-size: 13px; color: #bdbdbd; }
.crumbs a { color: var(--gold); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #e6e6e6; }

/* ---------- Service detail ---------- */

.service-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.service-main h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 10px 0 18px; }
.lead { font-size: 17px; }
.list-title { font-size: 19px; font-weight: 700; margin: 36px 0 18px; }
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.includes li {
  position: relative;
  padding: 16px 18px 16px 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}
.includes li::before {
  content: "";
  position: absolute;
  left: 16px; top: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ideal {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--black);
  color: #e6e6e6;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
}
.ideal-label {
  display: block;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.ideal p { font-size: 17px; color: var(--white); }

.service-side { position: sticky; top: 110px; display: grid; gap: 0; }
.service-side img { border-radius: 6px 6px 0 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.side-card { background: var(--tint); padding: 28px; border-radius: 0 0 6px 6px; }
.side-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.side-card p { margin-bottom: 20px; }

.mini-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, color .2s, transform .2s;
}
.mini-links a:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }

.footer-tagline { margin-top: 16px; color: var(--gold); font-family: var(--head); font-weight: 600; font-size: 14px; }
.footer-tagline + .footer-about { margin-top: 8px; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--black); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-cards { display: grid; gap: 16px; align-content: start; }
.contact-cards li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.contact-cards h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.contact-cards a:hover { color: var(--gold); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 36px;
  border-radius: 6px;
  background: var(--tint);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form-foot.full { grid-column: 1 / -1; }
.field label { font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input, .field select { height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field.invalid input, .field.invalid textarea { border-color: #b2453a; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: #a8a8a8; padding-top: 72px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer .brand-name { color: var(--white); }
.site-footer .mark { background: var(--gold); color: var(--black); }
.footer-about { margin-top: 18px; max-width: 260px; }
.site-footer h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: #7a7a7a; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .site-nav { gap: 22px; }
  .cards, .reasons { grid-template-columns: 1fr 1fr; }
  .stats-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .about-img { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-4, .mini-links { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-side { position: static; max-width: 560px; }
}

@media (max-width: 860px) {
  .has-sub { border-bottom: 1px solid var(--line); }
  .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 14px; }
  .sub-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .sub-menu::before { display: none; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { padding: 10px 0; }
  .sub-menu a:hover, .sub-menu a.active { background: none; }
  .site-nav { max-height: calc(100vh - 80px); overflow-y: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 18px; justify-content: center; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 72px; }
  .topbar-info a:nth-child(2) { display: none; }
  .header-inner { height: 70px; }
  .site-nav { top: 70px; }
  .hero { background-position: 70% center; }
  .hero-inner { padding: 90px var(--gutter) 100px; }
  .cards, .reasons, .stats { grid-template-columns: 1fr; }
  .circle-art { width: 280px; height: 280px; }
  .circle { inset: 36px 0 0 36px; width: 224px; height: 224px; }
  .circle-num { font-size: 80px; }
  .circle-label { font-size: 16px; }
  .dot-a { right: -10px; }
  .dot-b { right: -20px; }
  .about-img::before { inset: 14px -10px -14px 14px; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-4, .mini-links, .includes { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 0 68px; }
  .topbar-tagline { display: none; }
}
