/* C&A Audit Office — Design System
   Original system designed from logo marks + Pantone 1797U + K:50 */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Sans+Thai:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --ca-red: #CB2027;       /* Pantone 1797 U */
  --ca-red-deep: #A51A20;
  --ca-red-soft: #F5E3E4;
  --ca-gray: #878787;      /* K:50 */
  --ca-gray-light: #D6D4D1;
  --ca-gray-soft: #EEEBE6;

  /* Surface */
  --ink: #1A1A1A;
  --ink-2: #3D3A36;
  --ink-mute: #6B6762;
  --paper: #FAF8F5;
  --paper-warm: #F1ECE4;
  --line: #D6D2CB;
  --line-dash: #C9C3B9;

  /* Type */
  --f-serif: 'Libre Caslon Text', 'Noto Serif Thai', Georgia, serif;
  --f-sans: 'IBM Plex Sans', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Typography ============================================= */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ca-red);
  font-weight: 500;
}
.eyebrow.muted { color: var(--ink-mute); }

h1, h2, h3, h4, .display {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}

.display-xl { font-size: clamp(56px, 8vw, 112px); line-height: 0.98; letter-spacing: -0.025em; }
.display-lg { font-size: clamp(42px, 5.5vw, 72px); }
.display-md { font-size: clamp(32px, 3.5vw, 48px); }
.display-sm { font-size: clamp(22px, 2vw, 28px); }

.italic { font-style: italic; }
.red { color: var(--ca-red); }
.mono { font-family: var(--f-mono); }

/* Grid / Layout ========================================== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* Dashed cell — echoes brand-guide crop marks */
.dashed-cell {
  border: 1px dashed var(--line-dash);
  padding: var(--s-6);
  background: #fff;
}

/* Thin top rule with red accent tick */
.rule {
  border-top: 1px solid var(--ink);
  position: relative;
  padding-top: var(--s-4);
}
.rule::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 3px;
  background: var(--ca-red);
}

/* Nav ==================================================== */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1400px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-brand-mark { width: 28px; height: 36px; }
.nav-brand-text {
  font-family: var(--f-serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav-brand-text small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-top: 4px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
}
.nav-link:hover { color: var(--ca-red); }
.nav-link.active { color: var(--ca-red); }
.nav-link.active::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--ca-red);
}
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-lang {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.12em;
}
.nav-lang strong { color: var(--ca-red); font-weight: 500; }

/* Buttons ================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-weight: 500;
}
.btn-primary { background: var(--ca-red); color: #fff; }
.btn-primary:hover { background: var(--ca-red-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  padding: 0; background: none; border: 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.arrow {
  display: inline-block; width: 18px;
  transition: transform .2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Footer ================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.footer .wrap { max-width: 1280px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer h4 {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li { font-size: 14px; color: rgba(255,255,255,0.8); }
.footer li a:hover { color: var(--ca-red); }
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--f-mono); font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.12em;
}

/* Logo marks (inline SVG usage) =========================== */
.logo-mark { display: inline-block; }

/* Misc */
.sep { height: 1px; background: var(--line); margin: var(--s-7) 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ca-red); display: inline-block; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); background: #fff;
  border-radius: 999px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .7s ease both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
