/* =============================================
   MANNET — Global Stylesheet
   Token System:
   --navy:   #0B1F3A  (deep navy)
   --mid:    #1C3558  (mid navy)
   --green:  #509e4f  (Mannet green / key color)
   --green-d:#3d7a3c  (green hover)
   --white:  #FFFFFF
   --light:  #F4F7FB  (section bg)
   --text:   #0B1F3A
   --muted:  #5A6B82
   --border: #D6E0EE
============================================= */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #0B1F3A;
  background: #FFFFFF;
  line-height: 1.6;
}
.jp-page { font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- VARIABLES ---- */
:root {
  --navy:    #0B1F3A;
  --mid:     #1C3558;
  --green:   #509e4f;
  --green-d: #3d7a3c;
  --white:   #FFFFFF;
  --light:   #F4F7FB;
  --text:    #0B1F3A;
  --muted:   #5A6B82;
  --border:  #D6E0EE;
}

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ---- TYPOGRAPHY ---- */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  display: block; margin-bottom: 10px;
}
.section-head { margin-bottom: 52px; }
.section-h2 {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.025em; line-height: 1.15; margin-top: 8px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 3px; font-weight: 600;
  font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border: none;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-d); }
.btn-outline { border: 1.5px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--light); }

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: 110px; height: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--navy); transition: color .15s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: var(--white);
  font-size: 14px; font-weight: 700;
  padding: 12px 26px; border-radius: 6px;
  box-shadow: 0 7px 20px rgba(80,158,79,.3);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-cta::after { content: '\2192'; font-size: 17px; line-height: 1; transition: transform .2s; }
.nav-cta:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(61,122,60,.35); }
.nav-cta:hover::after { transform: translateX(3px); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy); padding: 72px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(80,158,79,.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.page-hero-h1 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  line-height: 1.1; color: var(--white);
  letter-spacing: -.03em; margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,.65);
  max-width: 560px; margin-bottom: 32px;
}

/* ---- IMAGE PLACEHOLDER ---- */
.img-ph {
  background: linear-gradient(135deg, #e8eef6 0%, #d6dfe9 100%);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.img-ph svg { opacity: .2; }
.img-ph span { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.img-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---- CTA BAND ---- */
.cta-band {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(11,31,58,.6), rgba(11,31,58,.6)), url('../img/contact-cta-background.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 80px 0;
}
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-h2 {
  font-size: 30px; font-weight: 800; color: var(--white);
  letter-spacing: -.025em; line-height: 1.2; max-width: 480px;
}
.cta-h2 span { color: rgba(255,255,255,.4); }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }
.cta-band .cta-actions .btn-green { min-width: 210px; justify-content: center; gap: 12px; padding: 18px 42px; border-radius: 6px; font-size: 16px; font-weight: 700; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.cta-band .cta-actions .btn-green::after { content: '\2192'; font-size: 20px; line-height: 1; transition: transform .2s; }
.cta-band .cta-actions .btn-green:hover::after { transform: translateX(4px); }

/* ---- SERVICE CARDS ---- */
.svc-card {
  background: var(--white); padding: 36px 32px;
  border-radius: 6px; border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.svc-card:hover {
  box-shadow: 0 8px 32px rgba(11,31,58,.1);
  transform: translateY(-3px);
}
.svc-icon {
  width: 80px; height: 80px; border-radius: 10px;
  background: #EBF4EB;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.svc-icon svg {
  width: 56px; height: 56px;
  color: var(--green); stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.svc-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; text-align: center; }
.svc-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.svc-link {
  font-size: 13px; font-weight: 600; color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .15s;
}
.svc-link:hover { gap: 10px; }

/* ---- WHY MANNET ICONS ---- */
.why-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #EBF4EB; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 48px;
}
.why-icon svg {
  width: 30px; height: 30px; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- CHECK LIST ---- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* ---- CASE STUDY CARDS ---- */
.case-card {
  padding: 30px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--light);
}
.case-flag { font-size: 22px; margin-bottom: 8px; }
.case-country { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.case-role { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 12px; }
.case-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- GRID HELPERS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.grid-2-col-rev { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* ---- CONTACT FORM ---- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit;
  outline: none; background: var(--white); color: var(--text);
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
}
.form-textarea { resize: vertical; line-height: 1.6; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; cursor: pointer; }
.form-consent input { margin-top: 4px; accent-color: var(--green); }
.form-consent a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.form-result { max-width: 680px; margin: 0 auto; padding: 64px 48px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; text-align: center; box-shadow: 0 14px 40px rgba(11,31,58,.06); }
.form-result h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.04em; margin: 12px 0 20px; }
.form-result p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 30px; }

/* ---- FOOTER ---- */
footer { background: #060F1E; padding: 64px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { width: 128px; height: auto; filter: brightness(0) invert(1); }

/* ---- CONTENT LAYOUT ---- */
.section-space { padding: 96px 0; }
.section-space-compact { padding: 80px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-square { aspect-ratio: 1 / 1; }
.content-heading { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 20px; }
.content-heading-lg { font-size: 36px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 20px; }
.content-copy { font-size: 15px; color: var(--muted); line-height: 1.75; }
.content-copy + .content-copy { margin-top: 16px; }
.content-copy-action { margin-bottom: 28px; }
.section-title-spaced { margin-bottom: 40px; }

/* ---- HOME HERO ---- */
.home-hero {
  background-color: var(--navy);
  background-image: url('../img/home-hero.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
}
.home-hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,31,58,.97) 0%, rgba(11,31,58,.9) 6%, rgba(11,31,58,.1) 68%, rgba(11,31,58,.18) 100%);
  pointer-events: none;
}
.home-hero > .container { position: relative; z-index: 1; }
.home-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.home-hero-content { padding-bottom: 80px; }
.home-hero-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.home-hero-title { font-size: clamp(36px,4.5vw,54px); font-weight: 800; line-height: 1.1; color: var(--white); letter-spacing: -.03em; margin-bottom: 24px; }
.home-hero-title-muted { color: rgba(255,255,255,.4); }
.home-hero-copy { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 480px; margin-bottom: 36px; }
.home-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.home-hero-visual { height: 420px; visibility: hidden; }
.home-hero-visual-inner { width: 100%; height: 100%; border-radius: 8px 8px 0 0; overflow: hidden; }

/* ---- HOME EXPLORE ---- */
.home-explore { padding: 72px 0 0; background: var(--white); }
.home-explore-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 30px;
}
.home-explore-head h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; }
.home-explore-head > p { max-width: 390px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.home-explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-explore-card {
  min-width: 0; min-height: 300px; padding: 24px 24px 28px;
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  transition: background .2s, color .2s;
}
.home-explore-card:first-child { border-left: 1px solid var(--border); }
.home-explore-number { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.home-explore-icon {
  width: 52px; height: 52px; margin: 30px 0 22px; border-radius: 50%;
  background: #EBF4EB; color: var(--green); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.home-explore-icon svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-explore-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.home-explore-copy { color: var(--muted); font-size: 13px; line-height: 1.65; }
.home-explore-link { margin-top: auto; padding-top: 22px; color: var(--green); font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.home-explore-card:hover { background: var(--navy); color: var(--white); }
.home-explore-card:hover .home-explore-number, .home-explore-card:hover .home-explore-copy { color: rgba(255,255,255,.58); }
.home-explore-card:hover .home-explore-icon { background: rgba(255,255,255,.1); color: #78bd72; }
.home-explore-card:hover .home-explore-link { color: #78bd72; }
.why-list { display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.why-item { display: flex; gap: 16px; }
.why-item-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.why-item-copy { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---- REUSABLE DETAIL COMPONENTS ---- */
.process-heading { margin-bottom: 28px; }
.process-step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: 0; }
.process-number { font-size: 13px; font-weight: 700; color: var(--green); flex-shrink: 0; padding-top: 2px; }
.detail-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.detail-copy { font-size: 14px; color: var(--muted); line-height: 1.65; }
.info-panel { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 28px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-label { font-size: 13px; color: var(--muted); }
.info-value { font-size: 13px; font-weight: 600; text-align: right; }
.check-text { font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-item { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.category-card { background: var(--white); padding: 18px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.category-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ---- CONTACT ---- */
.page-hero-compact { padding: 56px 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.contact-heading { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { align-self: flex-start; padding: 14px 32px; }
.contact-details { padding-top: 48px; }
.contact-company { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 42px; height: 42px; border-radius: 6px; background: #EBF4EB; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.contact-item-copy { font-size: 13px; color: var(--muted); line-height: 1.7; white-space: pre-line; }

/* ---- ABOUT / PRIVACY ---- */
.office-card { padding: 32px; border-radius: 6px; border: 1px solid var(--border); background: var(--light); }
.office-icon { width: 40px; height: 40px; border-radius: 6px; background: #EBF4EB; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.office-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.office-address { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; white-space: pre-line; }
.office-tel { font-size: 13px; color: var(--muted); }
.license-card { background: var(--white); padding: 28px; border-radius: 6px; border: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.license-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.license-copy { font-size: 13px; color: var(--muted); line-height: 1.65; }
.privacy-title { font-size: 36px; }
.privacy-updated { font-size: 14px; color: rgba(255,255,255,.45); margin-top: 12px; }
.privacy-content { max-width: 720px; }
.privacy-block { margin-bottom: 44px; }
.privacy-block:last-child { margin-bottom: 0; }
.privacy-heading { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.privacy-copy { font-size: 15px; color: var(--muted); line-height: 1.8; white-space: pre-line; }

/* ---- SHARED INNER PAGE SYSTEM ---- */
.detail-hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .92fr);
  align-items: stretch;
  background: var(--navy);
}
.detail-hero-copy {
  padding: 96px 7vw 90px max(32px, calc((100vw - 1100px) / 2 + 32px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail-hero-reverse .detail-hero-copy {
  order: 2;
  padding-right: max(32px, calc((100vw - 1100px) / 2 + 32px));
  padding-left: 7vw;
}
.detail-hero-reverse .detail-hero-image { order: 1; }
.detail-eyebrow {
  color: #78bd72;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.detail-hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin-bottom: 28px;
}
.detail-hero h1 span { color: rgba(255,255,255,.45); }
.detail-hero-copy > p:not(.detail-eyebrow) { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.75; max-width: 580px; margin-bottom: 36px; }
.detail-hero-image { position: relative; align-self: stretch; min-height: 590px; overflow: hidden; }
.detail-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staffing-page .detail-hero-image img { object-position: 54% center; }
.recruiting-page .detail-hero-image img { object-position: 38% center; }
.detail-content-image { border-radius: 8px; overflow: hidden; min-height: 420px; }
.detail-content-image img { width: 100%; height: 100%; object-fit: cover; }

.service-detail .content-heading { font-size: 38px; line-height: 1.12; margin: 12px 0 22px; }
.service-detail .section-h2, .about-page .section-h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.035em; }
.staffing-approach, .recruiting-process, .about-story { padding: 112px 0; }
.staffing-page .feature-grid { gap: 10px; }
.staffing-page .feature-item { background: var(--light); border: 1px solid var(--border); border-radius: 4px; padding: 14px; align-items: flex-start; }
.staffing-page .feature-dot { margin-top: 6px; }
.staffing-fields { padding: 112px 0; }
.staffing-fields .section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: end; }
.staffing-fields .category-card { min-height: 74px; padding: 20px; border-radius: 0; border-color: transparent; border-bottom-color: var(--border); background: transparent; transition: background .2s, transform .2s; }
.staffing-fields .category-card:hover { background: var(--white); transform: translateY(-2px); }
.staffing-cases, .recruiting-cases { padding: 112px 0; }
.staffing-cases .grid-3, .recruiting-cases .grid-2 { gap: 24px; }
.staffing-cases .case-card, .recruiting-cases .case-card { min-height: 330px; padding: 36px; border-radius: 8px; background: var(--white); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.staffing-cases .case-card:hover, .recruiting-cases .case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(11,31,58,.08); }
.staffing-cases .case-desc, .recruiting-cases .case-desc { margin-top: auto; }

.recruiting-process .process-step { padding: 24px 0; }
.recruiting-process .process-number { width: 38px; }
.recruiting-process .detail-title { font-size: 17px; }
.recruiting-fees { padding: 112px 0; }
.recruiting-fees .info-panel { border-radius: 0; border: 0; border-top: 1px solid var(--border); padding: 0; }
.recruiting-fees .info-row { padding: 15px 0; }

.about-story { background: var(--white); }
.about-offices, .about-licenses { padding: 112px 0; }
.about-offices .section-head, .about-licenses .section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; }
.about-page .office-card { padding: 36px; min-height: 290px; border-radius: 8px; background: var(--white); position: relative; overflow: hidden; }
.about-page .office-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.about-page .office-card:hover::after { transform: scaleX(1); }
.about-page .office-icon { width: 52px; height: 52px; border-radius: 50%; }
.office-map { height: 420px; margin-top: 36px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--light); }
.office-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.about-page .license-card { min-height: 150px; padding: 34px; border-radius: 8px; }

.contact-simple-hero { padding: 104px 0 96px; background: var(--white); border-bottom: 1px solid var(--border); }
.contact-simple-hero h1 { max-width: 800px; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.05em; margin: 16px 0 30px; }
.contact-simple-hero > .container > p:last-child { max-width: 690px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.contact-main { padding: 112px 0; background: var(--light); }
.contact-page .contact-grid { gap: 90px; }
.contact-page .contact-grid > div:first-child { background: var(--white); padding: 46px; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 40px rgba(11,31,58,.06); }
.contact-page .contact-heading { font-size: 38px; margin: 10px 0 34px; }
.contact-page .form-input, .contact-page .form-select, .contact-page .form-textarea { padding: 14px 15px; background: #FAFCFE; border-width: 1px; }
.contact-page .contact-details { padding-top: 46px; }
.contact-page .contact-company { font-size: 30px; margin: 10px 0 36px; }
.contact-page .contact-item { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.contact-page .contact-item:last-child { border-bottom: 0; }

.legal-hero { padding: 96px 0 80px; background: var(--navy); }
.legal-hero .page-hero-h1 { font-size: clamp(44px, 6vw, 72px); margin-top: 14px; }
.legal-page .section-space-compact { padding: 100px 0 112px; }
.legal-page .privacy-content { max-width: 840px; }
.legal-page .privacy-block { display: grid; grid-template-columns: 220px 1fr; gap: 52px; margin: 0; padding: 34px 0; border-bottom: 1px solid var(--border); }
.legal-page .privacy-block:first-child { border-top: 1px solid var(--border); }
.legal-page .privacy-heading { font-size: 15px; line-height: 1.45; }
.legal-page .privacy-copy { font-size: 14px; line-height: 1.85; }

/* ---- PAYROLL / EOR PAGE ---- */
.payroll-page { overflow: hidden; }
.payroll-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .92fr);
  align-items: stretch;
  background: var(--navy);
}
.payroll-hero-copy {
  padding: 104px 7vw 96px max(32px, calc((100vw - 1100px) / 2 + 32px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.payroll-eyebrow {
  color: #78bd72;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.payroll-hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 680px;
  margin-bottom: 28px;
}
.payroll-hero h1 span { color: rgba(255,255,255,.45); }
.payroll-hero-copy > p:not(.payroll-eyebrow) {
  color: rgba(255,255,255,.7);
  font-size: 16px;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 36px;
}
.payroll-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.payroll-text-link { color: var(--white); font-size: 13px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.payroll-text-link span { color: #78bd72; font-size: 18px; }
.payroll-hero-image { position: relative; align-self: stretch; min-height: 610px; overflow: hidden; }
.payroll-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }

.payroll-intro { padding: 112px 0; background: var(--white); }
.payroll-intro-inner { text-align: center; max-width: 850px; }
.payroll-intro h2 {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 12px 0 26px;
}
.payroll-intro-inner > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 750px; margin: 0 auto; }

.payroll-services { padding: 112px 0; background: var(--light); }
.payroll-services-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: start; }
.payroll-services-lead h2 { font-size: 38px; line-height: 1.12; letter-spacing: -.035em; margin: 12px 0 22px; }
.payroll-services-lead > p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 36px; }
.payroll-services-lead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.payroll-service-list { border-top: 1px solid var(--border); }
.payroll-service-item { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.payroll-service-item > span { color: var(--green); font-size: 12px; font-weight: 700; padding-top: 3px; }
.payroll-service-item h3 { font-size: 18px; letter-spacing: -.015em; margin-bottom: 5px; }
.payroll-service-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.payroll-eor { padding: 112px 0; background: var(--light); }
.payroll-eor .label { color: var(--green); }
.payroll-eor-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.payroll-eor-head h2 { color: var(--navy); font-size: 42px; line-height: 1.1; letter-spacing: -.035em; margin-top: 12px; }
.payroll-eor-head > p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 460px; }
.payroll-eor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.payroll-eor-card { padding: 32px; min-height: 300px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 32px rgba(11,31,58,.05); }
.payroll-eor-card + .payroll-eor-card { padding-left: 32px; }
.payroll-eor-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.payroll-eor-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #EBF4EB; color: var(--green); }
.payroll-eor-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.payroll-eor-number { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.payroll-eor-card h3 { color: var(--navy); font-size: 20px; margin: 42px 0 12px; letter-spacing: -.02em; }
.payroll-eor-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }

.payroll-cases { padding: 112px 0; background: var(--white); }
.payroll-section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.payroll-section-head h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.035em; margin-top: 12px; }
.payroll-section-head > p { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 430px; }
.payroll-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.payroll-case-card { padding: 36px; border: 1px solid var(--border); border-radius: 8px; transition: transform .2s, box-shadow .2s; }
.payroll-case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(11,31,58,.08); }
.payroll-case-meta { display: flex; justify-content: space-between; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 52px; }
.payroll-case-card h3 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 8px; }
.payroll-case-card h4 { color: var(--green); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.payroll-case-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 240px; }
.footer-col-title {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }

/* ---- DESIGN NOTE ---- */
.design-note {
  position: fixed; bottom: 16px; right: 16px;
  background: rgba(11,31,58,.9); color: rgba(255,255,255,.6);
  font-size: 11px; padding: 8px 14px; border-radius: 4px;
  pointer-events: none; z-index: 999;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-logo img { width: 96px; }
  .grid-2, .grid-2-col, .grid-2-col-rev { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section-space { padding: 72px 0; }
  .home-hero { padding-top: 72px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .home-hero-content { padding-bottom: 56px; }
  .home-hero-visual { height: 340px; }
  .home-explore { padding-top: 56px; }
  .home-explore-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-explore-grid { grid-template-columns: 1fr 1fr; }
  .home-explore-card { min-height: 280px; }
  .home-explore-card:nth-child(3) { border-left: 1px solid var(--border); }
  .home-explore-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-details { padding-top: 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 52px 0; }
  .detail-hero { grid-template-columns: 1fr; min-height: 0; }
  .detail-hero-copy { padding: 72px 20px 64px; }
  .detail-hero-reverse .detail-hero-copy { order: 1; padding: 72px 20px 64px; }
  .detail-hero-reverse .detail-hero-image { order: 2; }
  .detail-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .detail-hero-image { min-height: 380px; }
  .detail-content-image { min-height: 0; aspect-ratio: 16 / 10; }
  .staffing-approach, .staffing-fields, .staffing-cases, .recruiting-process, .recruiting-fees, .recruiting-cases, .about-story, .about-offices, .about-licenses, .contact-main { padding: 80px 0; }
  .staffing-fields .section-head, .about-offices .section-head, .about-licenses .section-head { grid-template-columns: 1fr; gap: 24px; }
  .office-map { height: 360px; margin-top: 28px; }
  .contact-page .contact-grid { gap: 48px; }
  .contact-simple-hero { padding: 72px 0 64px; }
  .contact-simple-hero h1 { font-size: clamp(42px, 11vw, 60px); }
  .contact-page .contact-grid > div:first-child { padding: 32px 24px; }
  .legal-page .section-space-compact { padding: 72px 0 88px; }
  .legal-page .privacy-block { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .payroll-hero { grid-template-columns: 1fr; min-height: 0; }
  .payroll-hero-copy { padding: 72px 20px 64px; }
  .payroll-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .payroll-hero-image { min-height: 390px; }
  .payroll-intro, .payroll-services, .payroll-eor, .payroll-cases { padding: 80px 0; }
  .payroll-services-layout, .payroll-eor-head, .payroll-section-head { grid-template-columns: 1fr; gap: 40px; }
  .payroll-services-lead img { aspect-ratio: 16 / 10; }
  .payroll-eor-grid { grid-template-columns: 1fr; }
  .payroll-eor-card, .payroll-eor-card + .payroll-eor-card { padding: 30px; min-height: 0; border: 1px solid var(--border); }
  .payroll-eor-card h3 { margin-top: 24px; }
  .payroll-case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .form-row, .feature-grid { grid-template-columns: 1fr; }
  .home-hero-visual { height: 280px; }
  .home-explore-grid { grid-template-columns: 1fr; }
  .home-explore-card { min-height: 0; padding: 22px 20px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .home-explore-card:last-child { border-bottom: 0; }
  .home-explore-icon { margin: 22px 0 18px; }
  .home-explore-link { margin-top: 8px; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-value { text-align: left; }
  .detail-hero-image { min-height: 290px; }
  .service-detail .content-heading, .contact-page .contact-heading { font-size: 32px; }
  .service-detail .section-h2, .about-page .section-h2 { font-size: 34px; }
  .office-map { height: 300px; }
  .staffing-page .feature-grid { grid-template-columns: 1fr; }
  .staffing-cases .case-card, .recruiting-cases .case-card { min-height: 0; }
  .payroll-hero-image { min-height: 300px; }
  .payroll-intro h2, .payroll-eor-head h2, .payroll-section-head h2 { font-size: 34px; }
  .payroll-services-lead h2 { font-size: 32px; }
  .payroll-service-item { grid-template-columns: 34px 1fr; gap: 12px; }
  .payroll-case-card { padding: 28px 24px; }
}
