/* =========================================================================
   QA Adjusting — Professional corporate system
   Benchmarked to North American loss-adjusting firms: clean, white,
   navy + corporate blue, one sans-serif, structured grids, real photography.
   ========================================================================= */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --navy-900: #0b2440;
  --navy-800: #12365c;
  --blue-700: #14497f;
  --blue-600: #1a5fa6;
  --blue-500: #2a72c0;
  --blue-50:  #e9f1fa;
  --text:     #3c4856;
  --muted:    #6c7785;
  --border:   #e2e8f1;
  --bg:       #ffffff;
  --bg-alt:   #f4f7fb;

  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(11,36,64,.05), 0 2px 8px rgba(11,36,64,.05);
  --shadow-md: 0 8px 24px rgba(11,36,64,.10), 0 2px 6px rgba(11,36,64,.06);
  --shadow-lg: 0 20px 50px rgba(11,36,64,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-700); }
h1,h2,h3,h4 { color: var(--navy-900); margin: 0; line-height: 1.12; letter-spacing: -.018em; font-weight: 750; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 3px; }

/* --------------------------- Typography -------------------------------- */
.display { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.07; letter-spacing: -.025em; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 750; letter-spacing: -.02em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }

/* --------------------------- Layout ------------------------------------ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-900); color: #c9d6e6; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: #aebfd4; }
.section--navy .eyebrow { color: #7fb0e6; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.center { text-align: center; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* --------------------------- Buttons ----------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1; padding: 14px 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; transition: all .22s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--blue-50); color: var(--navy-900); transform: translateY(-1px); }
.btn--outline { border-color: var(--border); color: var(--navy-900); background: #fff; }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.textlink { font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.textlink .ar { transition: transform .25s var(--ease); }
.textlink:hover .ar { transform: translateX(4px); }

/* --------------------------- Header ------------------------------------ */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow .25s var(--ease); }
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.3rem; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; }
.brand__sub { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--navy-800); padding: 9px 14px; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--blue-600); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--blue-600); }
.nav__cta { margin-left: 8px; }
.nav__lang { font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--navy-900); border: 1.5px solid var(--border); padding: 7px 11px; border-radius: var(--radius-sm); }
.nav__lang:hover { border-color: var(--blue-600); color: var(--blue-600); background: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 46px; height: 46px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px auto; transition: .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 22px; gap: 2px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--bg-alt); border-radius: 0; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta.btn { justify-content: center; }
}

/* --------------------------- Hero -------------------------------------- */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,26,48,.92) 0%, rgba(8,26,48,.82) 42%, rgba(8,26,48,.55) 100%); }
.hero__in { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 132px); max-width: 760px; }
.hero h1 { color: #fff; }
.hero__lead { font-size: clamp(1.12rem, 1.8vw, 1.35rem); color: #cdd9ea; margin: 18px 0 30px; max-width: 56ch; }
.hero .eyebrow { color: #7fb0e6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }

/* stat strip */
.stats { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 26px 0; }
.stats__n { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stats__n span { color: #7fb0e6; }
.stats__l { font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #93a6bf; margin-top: 8px; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 0 24px; } .stats__item { padding: 18px 0; } }

/* --------------------------- Grids / cards ----------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deeb; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .textlink { margin-top: 16px; font-size: .9rem; }

.icon-chip { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 18px; }
.icon-chip svg { width: 26px; height: 26px; }
.section--navy .icon-chip { background: rgba(127,176,230,.14); color: #7fb0e6; }

/* value row */
.value { display: flex; gap: 16px; align-items: flex-start; }
.value h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }
.value .icon-chip { flex: none; margin: 0; }

/* --------------------------- Split feature ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-first .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--media-first .split__media { order: 0; } }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--border); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 10px; border: solid var(--blue-600); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* --------------------------- Credentials band -------------------------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } }
.cred { background: var(--navy-900); padding: 28px; }
.cred__k { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fb0e6; margin-bottom: 14px; }
.cred ul { list-style: none; margin: 0; padding: 0; }
.cred li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #e7eef7; font-weight: 600; }
.cred li:last-child { border-bottom: 0; }
.cred li span { display: block; font-size: .8rem; font-weight: 400; color: #93a6bf; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { font-size: .85rem; font-weight: 600; color: #cdd9ea; padding: 8px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }

/* --------------------------- Interior page hero ------------------------ */
.page-hero { background: var(--navy-900); color: #cdd9ea; padding-block: clamp(52px, 7vw, 92px) clamp(44px, 6vw, 72px); position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #aebfd4; margin-top: 16px; max-width: 52ch; }
.crumbs { font-size: .85rem; color: #8fa6c2; margin-bottom: 18px; }
.crumbs a { color: #b9cce3; } .crumbs a:hover { color: #fff; }

/* --------------------------- Services list (detailed) ------------------ */
.svc { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: #fff; box-shadow: var(--shadow-sm); }
.svc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc ul { columns: 2; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 560px){ .svc ul { columns: 1; } }
.svc li { padding: 8px 0 8px 26px; position: relative; color: var(--text); }
.svc li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 14px; border-radius: 4px; background: var(--blue-50); border: 1px solid #cfe0f2; }

/* --------------------------- Team -------------------------------------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px){ .people { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .people { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.person__name { font-weight: 700; color: var(--navy-900); font-size: 1.1rem; }
.person__role { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.person__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--blue-700); background: var(--blue-50); padding: 4px 10px; border-radius: 4px; }

/* --------------------------- Contact ----------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-row .icon-chip { flex: none; margin: 0; width: 44px; height: 44px; }
.info-row .icon-chip svg { width: 22px; height: 22px; }
.info-row h3 { font-size: 1.02rem; margin-bottom: 2px; }
.info-row a, .info-row p { margin: 0; color: var(--text); }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,4vw,36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-900); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(42,114,192,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 14px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status.is-ok { display: block; background: #e7f6ec; color: #1c6b3f; border: 1px solid #b6e2c8; }
.form-status.is-err { display: block; background: #fdecec; color: #9b2c2c; border: 1px solid #f3c3c3; }
.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }

/* --------------------------- CTA band ---------------------------------- */
.cta { background: var(--blue-50); border-radius: var(--radius); padding: clamp(36px, 5vw, 60px); text-align: center; }
.cta h2 { color: var(--navy-900); }
.cta p { color: var(--text); max-width: 56ch; margin-inline: auto; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* --------------------------- Footer ------------------------------------ */
.footer { background: var(--navy-900); color: #9fb2c9; font-size: .95rem; padding: clamp(48px,6vw,72px) 0 28px; }
.footer a { color: #cdd9ea; } .footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px){ .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__name { color: #fff; }
.footer p { color: #93a6bf; margin: 14px 0 0; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: .84rem; color: #7f93ac; }

/* --------------------------- Motion ------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
