/* Kepler Forensic Partners — temporary static site */
:root {
  --navy: #2a3245;
  --navy-deep: #1b2130;
  --navy-ink: #141925;
  --steel: #78a0ba;
  --sand: #dbba88;
  --text: #eef1f5;
  --muted: #b4bfcc;
  --line: rgba(255, 255, 255, .14);
  --radius: 4px;
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --font: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(120, 160, 186, .6); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--sand); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

/* language switching: PT by default; .lang-en on <html> swaps */
[lang="en"]:not(html) { display: none; }
html.lang-en [lang="pt"]:not(html) { display: none; }
html.lang-en [lang="en"]:not(html) { display: revert; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--sand); color: var(--navy-ink); padding: 8px 14px; text-decoration: none;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 1.25rem;
}
.label::before { content: ""; width: 32px; height: 1px; background: var(--sand); }

h1, h2, h3 { font-weight: 300; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 2rem; }

/* header */
.top {
  position: absolute; inset: 0 0 auto; z-index: 10;
  padding: 22px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top img { width: 132px; }
.langs { display: flex; gap: 2px; font-size: .8rem; letter-spacing: .12em; }
.langs button {
  font: inherit; color: var(--muted); background: none; border: 1px solid transparent;
  padding: 6px 10px; cursor: pointer; border-radius: var(--radius);
}
.langs button[aria-pressed="true"] { color: #fff; border-color: var(--line); }
.langs button:hover { color: #fff; }

/* photo sections */
.photo { position: relative; isolation: isolate; overflow: hidden; }
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; }

.hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 96px; }
.hero::before {
  background-image: url("assets/hero-800.jpg");
  background-image: image-set(url("assets/hero-800.webp") type("image/webp"), url("assets/hero-800.jpg") type("image/jpeg"));
  background-position: 70% center;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::after { background: linear-gradient(90deg, rgba(20, 25, 37, .92) 0%, rgba(20, 25, 37, .7) 45%, rgba(20, 25, 37, .25) 100%); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-inner { max-width: 680px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); margin-bottom: 1.5rem; }
.hero .note {
  color: var(--muted); max-width: 540px; margin: 0 0 2.5rem;
  padding-left: 18px; border-left: 1px solid var(--sand);
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); color: #fff; transition: background .2s, border-color .2s;
  cursor: pointer; font-family: inherit; background: transparent;
}
.btn:hover { border-color: var(--steel); background: rgba(120, 160, 186, .12); }
.btn.solid { background: var(--steel); border-color: var(--steel); color: var(--navy-ink); }
.btn.solid:hover { background: #8fb3ca; color: var(--navy-ink); }

/* plain sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.navy { background: var(--navy); }

.grid {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  border: 1px solid var(--line);
}
.grid li { background: var(--navy); padding: 32px 30px; list-style: none; }
.grid ul, ul.grid { margin: 0; padding: 0; }
.grid h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: .6rem; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.industries { margin: 2rem 0 0; color: var(--muted); font-size: .9rem; }
.industries strong { color: var(--steel); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; display: block; margin-bottom: .4rem; }

.people { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.person { border-top: 1px solid var(--line); padding-top: 28px; display: flex; gap: 20px; }
.initials {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--sand); color: var(--sand);
  display: grid; place-items: center; font-size: .95rem; letter-spacing: .08em;
}
.person h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.person p { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.links { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.links li { margin: .2rem 0; overflow-wrap: anywhere; }

/* contact */
.contact::before {
  background-image: url("assets/contact-800.jpg");
  background-image: image-set(url("assets/contact-800.webp") type("image/webp"), url("assets/contact-800.jpg") type("image/jpeg"));
}
.contact::after { background: rgba(20, 25, 37, .84); }
.contact-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.big-mail { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 300; overflow-wrap: anywhere; }
.contact address { font-style: normal; color: var(--muted); margin-bottom: 1.5rem; }
.contact dl { margin: 0; }
.contact dt:first-child { margin-top: 0; }
.contact dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-top: 1.25rem; }
.contact dd { margin: .25rem 0 0; }

/* footer */
.foot { background: var(--navy-ink); padding: 48px 0; font-size: .85rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot img { width: 110px; opacity: .9; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* simple pages */
.page { min-height: 100svh; padding: 120px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.15rem; font-weight: 500; margin: 2rem 0 .5rem; }
.page p, .page li { color: var(--muted); }

@media (min-width: 900px) {
  .hero::before { background-image: url("assets/hero-1600.jpg"); background-image: image-set(url("assets/hero-1600.webp") type("image/webp"), url("assets/hero-1600.jpg") type("image/jpeg")); }
  .contact::before { background-image: url("assets/contact-1600.jpg"); background-image: image-set(url("assets/contact-1600.webp") type("image/webp"), url("assets/contact-1600.jpg") type("image/jpeg")); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
}
