/* ==========================================================================
   MC Employment Service — Layer 2: reset, layout primitives, buttons
   Part of a three-layer stylesheet. Load order matters:
     1-tokens.css  ->  2-base.css  ->  3-components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1.0625rem;              /* 17px — comfortable across 5 scripts */
  line-height: var(--lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* <picture> is the real box the <img> sizes against. Without this it keeps its
   intrinsic height and any img{height:100%} inside silently falls back to auto,
   leaving a gap under photos in fixed-ratio containers. */
.hero__media picture,
.dest-card__media picture,
.office__media picture,
.workers__figure picture,
.gal picture { width: 100%; height: 100%; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: var(--lh-head);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r1);
}

::selection { background: var(--navy-800); color: #fff; }

.u-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: var(--gutter);
  z-index: 500; background: var(--navy-800); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r2) var(--r2);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy-800); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Eyebrow: the small uppercase label that carries the institutional voice */
.eyebrow {
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-600);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: var(--s2);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--red-600);
  flex: none;
}
.section--navy .eyebrow { color: var(--sand-300); }
.section--navy .eyebrow::before { background: var(--sand-300); }
/* CJK/Lao/Thai are not designed for wide tracking at small sizes */
html:not([lang="en"]) .eyebrow { letter-spacing: .08em; text-transform: none; }

.h-display {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 600;
}
.h-section {
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  font-weight: 600;
}
.h-card {
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 62ch;
}
.section--navy .lead { color: var(--on-navy-2); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .lead { margin-top: var(--s3); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--navy .rule { background: var(--line-on-navy); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 48px;
  padding: .875rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r2);
  font-family: var(--f-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: var(--e1);
}
.btn:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: var(--e1); }

.btn--cta { --btn-bg: var(--red-600); --btn-bd: var(--red-600); }
.btn--cta:hover { --btn-bg: var(--red-700); --btn-bd: var(--red-700); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bd: var(--navy-800); box-shadow: none; }

.btn--on-navy {
  --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.34);
  box-shadow: none;
}
.btn--on-navy:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: rgba(255,255,255,.6); box-shadow: none; }

.btn__icon { width: 18px; height: 18px; flex: none; }
