/* ==========================================================================
   Audit Services — Design system
   Palette derived from the brand mark (navy / steel-blue / slate grey),
   composition language borrowed from the Luxembourg RCS company-extract
   format the firm deals in every day: hairline rules, label/value pairs,
   small-caps mono reference tags.
   ========================================================================== */

:root {
  --navy: #0F2B46;
  --navy-light: #1D3F60;
  --steel: #2E6CA4;
  --steel-light: #5A8FBE;
  --slate: #5C6B78;
  --paper: #F6F4EF;
  --paper-dim: #EFECE4;
  --white: #FFFFFF;
  --line: #DBD6CB;
  --line-dark: #2B4863;
  --brass: #9C7A3C;
  --ink: #182127;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--steel);
  text-decoration: none;
}
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6em;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 46ch;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--paper-dim { background: var(--paper-dim); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #C7D4DF; }

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.section--navy .hr { border-top-color: var(--line-dark); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.main-nav__links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__links a {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav__links a:hover,
.main-nav__links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--brass);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.lang-switch a, .lang-switch span {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  color: var(--slate);
  border-radius: 2px;
}
.lang-switch a:hover { border-color: var(--steel); color: var(--steel); }
.lang-switch [aria-current="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; width: 18px; background: var(--navy); }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; width: 18px; background: var(--navy); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__links { flex-direction: column; gap: 1.1rem; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gap);
  align-items: center;
}

.hero__shield {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(46vw, 620px);
  transform: translateY(-50%);
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero__figures {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  margin-top: 2.2rem;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__shield { display: none; }
}

/* -------------------------------- Page hero -------------------------------- */

.page-hero {
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-bottom: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--line-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.section--navy .btn-outline { border-color: var(--white); color: var(--white); }
.section--navy .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ------------------------------- Extract cards ----------------------------- */
/* Signature device: mimics the label / hairline / mono-value layout of an
   RCS "extrait" register entry — the document language this audience reads
   every day, repurposed as the key-figures component. */

.extract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.extract-card {
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--line);
}
.extract-card:last-child { border-right: none; }
.extract-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 0.7rem;
}
.extract-card__value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy);
  font-weight: 600;
  display: block;
}
.extract-card__sub {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.4rem;
}

@media (max-width: 720px) {
  .extract-grid { grid-template-columns: 1fr; }
  .extract-card { border-right: none; border-bottom: 1px solid var(--line); }
  .extract-card:last-child { border-bottom: none; }
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.9rem 1.7rem 2.1rem;
  display: flex;
  flex-direction: column;
}
.service-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  border: 1px solid var(--brass);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { flex-grow: 1; }
.service-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--slate);
  font-size: 0.93rem;
}
.service-card ul li { margin-bottom: 0.4rem; }
.service-card__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------- Trust bar ------------------------------ */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  padding-top: 0.5rem;
}
.trust-bar span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  opacity: 0.75;
}

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

.cta-band {
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band .lead { margin: 0 auto 1.6rem; text-align: center; }
.cta-band .hero__actions { justify-content: center; }

/* ------------------------------- Two column block ----------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.media-frame {
  border: 1px solid var(--line);
  background: var(--paper-dim);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--placeholder {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
}

/* ------------------------------- Approach cards -------------------------------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.approach-card {
  border-top: 3px solid var(--brass);
  padding-top: 1.2rem;
}
@media (max-width: 820px) {
  .approach-grid { grid-template-columns: 1fr; }
}

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

.contact-person {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
}
.contact-person img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-person__name { font-weight: 600; color: var(--navy); }
.contact-person__role { font-size: 0.85rem; color: var(--slate); }

/* ----------------------------------- Why-us grid -------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.why-card {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.why-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--steel);
}
.why-card__icon svg { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
}

.commitments {
  list-style: none;
  margin: 0;
  padding: 0;
}
.commitments li {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.commitments li:first-child { border-top: 1px solid var(--line); }
.commitments__index {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--steel);
  outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.contact-details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  margin: 1.2rem 0 1.6rem;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--slate);
  align-self: start;
  padding-top: 0.15rem;
}
.contact-details dd { margin: 0; color: var(--ink); }

.map-frame {
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { color: #2A6B45; }
.form-status.error { color: #A23B3B; }

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

.site-footer {
  background: var(--navy);
  color: #C7D4DF;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.6rem;
  font-size: 0.9rem;
}
.site-footer a { color: #E4ECF2; }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #E4ECF2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8FA4B6;
}

/* ----------------------------------- Utilities -------------------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
