/* ==========================================================================
   Translation V3 — matches home-v3 / language-v3 brand system
   Namespace: .trl3
   ========================================================================== */

/* Break out of Astra container */
body.page-template-page-translation-v3 #primary,
body.page-template-page-translation-v3 #content,
body.page-template-page-translation-v3 .ast-container,
body.page-template-page-translation-v3 .entry-content,
body.page-template-page-translation-v3 article.post { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.page-template-page-translation-v3 #content > .ast-container { padding: 0 !important; }
body.page-template-page-translation-v3.ast-separate-container #content { padding: 0 !important; background: transparent !important; }
body.page-template-page-translation-v3 .site-content { padding: 0 !important; }
body.page-template-page-translation-v3 .entry-header,
body.page-template-page-translation-v3 .ast-article-single { padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; }
body.page-template-page-translation-v3 .entry-title,
body.page-template-page-translation-v3 .post-thumb-img-content { display: none !important; }

.trl3 { color: #1a1a2e; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.55; background: #fff; }
.trl3 * { box-sizing: border-box; }
.trl3 h1, .trl3 h2, .trl3 h3 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.0; color: #1a1a2e; margin: 0 0 .5em; }
.trl3 h1 em, .trl3 h2 em, .trl3 h3 em { font-style: normal; font-family: inherit; font-weight: 800; color: #D81818; }
.trl3 p { margin: 0 0 1em; }
.trl3 a { color: inherit; }

.trl3-container { max-width: 1400px; margin: 0 auto; padding: 0 32px; position: relative; }

/* Eyebrow */
.trl3-eyebrow {
  color: #1a1a2e; font-size: 12px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  margin: 0 0 20px; display: inline-flex; align-items: center; gap: 10px;
}
.trl3-eyebrow::before { content: ''; width: 36px; height: 3px; background: #D81818; }
.trl3-eyebrow-light { color: #fff; }
.trl3-eyebrow-light::before { background: #F0D818; }

/* Buttons */
.trl3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 13px; font-weight: 800;
  border-radius: 2px; text-decoration: none; border: 2px solid transparent;
  line-height: 1; text-transform: uppercase; letter-spacing: .12em;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.trl3-btn:hover { transform: translateY(-1px); }
.trl3 .trl3-btn-primary,
.trl3 .trl3-btn-primary:link,
.trl3 .trl3-btn-primary:visited { background: #D81818 !important; color: #fff !important; border-color: #D81818 !important; }
.trl3 .trl3-btn-primary:hover { background: #1a1a2e !important; border-color: #1a1a2e !important; color: #fff !important; }

.trl3 .trl3-btn-outline,
.trl3 .trl3-btn-outline:link,
.trl3 .trl3-btn-outline:visited { background: #fff !important; color: #000 !important; border-color: #000 !important; }
.trl3 .trl3-btn-outline:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }

.trl3 .trl3-btn-outline-light,
.trl3 .trl3-btn-outline-light:link,
.trl3 .trl3-btn-outline-light:visited { background: #fff !important; color: #000 !important; border-color: #fff !important; }
.trl3 .trl3-btn-outline-light:hover { background: #F0D818 !important; color: #000 !important; border-color: #F0D818 !important; }

/* ===== HERO — big, atmospheric, flag elements floating ===== */
.trl3-hero { background: #fff; padding: 100px 0 96px; border-bottom: 2px solid #1a1a2e; position: relative; overflow: hidden; min-height: 520px; }
.trl3-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.trl3-bg { position: absolute; mix-blend-mode: multiply; will-change: transform; transition: opacity .6s; }
.trl3-bg-1 { top:  8%; left:  4%; width:  9%; opacity: .4; }
.trl3-bg-2 { top: 14%; right:  6%; width:  7%; opacity: .55; }
.trl3-bg-3 { top: 58%; left:  2%; width:  8%; opacity: .5; }
.trl3-bg-4 { top: 24%; left: 46%; width:  3%; opacity: .7; }
.trl3-bg-5 { top: 42%; right: 18%; width:  5%; opacity: .6; }
.trl3-bg-6 { bottom: 10%; right: 10%; width:  4%; opacity: .65; }
.trl3-bg-7 { top: 30%; right: 30%; width:  6%; opacity: .45; }
.trl3-bg-8 { bottom: 14%; left: 22%; width:  7%; opacity: .4; }
.trl3-bg-9 { top:  6%; right: 36%; width:  5%; opacity: .5; }

.trl3-hero .trl3-container { z-index: 1; }
.trl3-hero-box {
  position: relative; z-index: 2;
  background: #fff;
  border: 2px solid #1a1a2e;
  padding: 56px 56px 48px;
  max-width: 1100px;
  box-shadow: 8px 8px 0 #1a1a2e;
}
.trl3-hero h1 { font-size: clamp(44px, 6vw, 88px); line-height: .94; letter-spacing: -.04em; margin-bottom: 24px; }
/* Rotator always occupies its own line, aligned to bottom of H1, so shorter words don't shift the layout */
.trl3-rotator {
  display: block;
  min-height: 1em;
  line-height: .94;
}
.trl3-rotator-word {
  display: inline-block;
  transition: opacity .2s;
  color: #D81818;
  vertical-align: baseline;
}
.trl3-hero-sub { font-size: 19px; color: #555; max-width: 720px; margin-bottom: 34px; line-height: 1.5; }
.trl3-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== CLIENTS TRUST STRIP ===== */
.trl3-clients { background: #1a1a2e; padding: 28px 0; color: #fff; overflow: hidden; }
.trl3-clients .trl3-container { display: flex; flex-direction: column; gap: 14px; }
.trl3-clients-label { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0; }
.trl3-clients-list { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.trl3-clients-list span { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.trl3-clients-list span:last-child { color: #F0D818; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ===== SERVICES GRID ===== */
.trl3-services { padding: 96px 0; background: #fafafa; }
.trl3-services h2 { font-size: clamp(36px, 4.5vw, 64px); margin-bottom: 44px; }
.trl3-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trl3-service {
  padding: 30px 26px; background: #fff; border: 2px solid #1a1a2e;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: #1a1a2e;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.trl3-service::before {
  content: ''; position: absolute; inset: 0;
  background: #D81818; transform: translateY(100%); transition: transform .22s;
  z-index: 0;
}
.trl3-service:hover::before { transform: translateY(0); }
.trl3-service:hover { color: #fff; transform: translateY(-2px); box-shadow: 5px 5px 0 #1a1a2e; }
.trl3-service > * { position: relative; z-index: 1; }
.trl3-service-num {
  font-size: 12px; font-weight: 800; letter-spacing: .22em; color: #D81818;
  transition: color .15s;
}
.trl3-service:hover .trl3-service-num { color: #F0D818; }
.trl3-service h3 { font-size: 22px; margin: 0; line-height: 1.15; transition: color .15s; }
.trl3-service p { font-size: 14px; line-height: 1.55; color: #555; margin: 0; flex: 1; transition: color .15s; }
.trl3-service:hover p { color: rgba(255,255,255,.92); }
.trl3-service-cta {
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #D81818; transition: color .15s;
}
.trl3-service:hover .trl3-service-cta { color: #F0D818; }

/* ===== ALSO SECTION ===== */
.trl3-also { padding: 96px 0; background: #fff; border-top: 1px solid #e5e5e5; }
.trl3-also h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 14px; }
.trl3-also-lead { font-size: 17px; color: #555; max-width: 620px; margin-bottom: 32px; }
.trl3-also-list {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px;
  max-width: 1100px;
}
.trl3-also-list li {
  padding: 14px 16px; border-left: 3px solid #D81818;
  background: #fafafa;
  font-size: 14px; font-weight: 600; color: #1a1a2e;
  transition: background .15s, border-color .15s, transform .15s;
}
.trl3-also-list li:hover { background: #1a1a2e; color: #fff; border-left-color: #F0D818; transform: translateX(3px); }

/* ===== DOCS ===== */
.trl3-docs { padding: 96px 0; background: #fafafa; }
.trl3-docs-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.trl3-docs h2 { font-size: clamp(30px, 3.5vw, 48px); margin-bottom: 20px; }
.trl3-docs p { font-size: 17px; line-height: 1.6; color: #444; }
.trl3-docs-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.trl3-docs-list li {
  padding: 14px 18px; background: #fff; border: 1.5px solid #1a1a2e;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #1a1a2e;
  transition: background .15s, color .15s;
}
.trl3-docs-list li:hover { background: #1a1a2e; color: #F0D818; }

/* ===== HOW IT WORKS ===== */
.trl3-how { padding: 96px 0; background: #fff; }
.trl3-how h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 44px; }
.trl3-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trl3-how-step { background: #fafafa; border: 1px solid #e5e5e5; padding: 28px 24px; }
.trl3-how-num { display: block; font-size: 14px; font-weight: 800; color: #D81818; letter-spacing: .22em; margin-bottom: 16px; }
.trl3-how-step h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.2; }
.trl3-how-step p { font-size: 14px; color: #555; line-height: 1.55; margin: 0; }
.trl3-how-step a { color: #D81818; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(216,24,24,.3); }
.trl3-how-step a:hover { border-bottom-color: #D81818; }

/* ===== FAQ ===== */
.trl3-faq { padding: 96px 0; background: #fafafa; }
.trl3-faq h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 36px; }
.trl3-faq-list { max-width: 920px; }
.trl3-faq-item { border-bottom: 1px solid #e5e5e5; background: #fff; margin-bottom: 2px; }
.trl3-faq-item summary {
  padding: 24px 26px; font-size: 18px; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: #1a1a2e;
}
.trl3-faq-item summary::-webkit-details-marker { display: none; }
.trl3-faq-item summary::after { content: '+'; font-size: 26px; font-weight: 300; color: #ccc; transition: transform .2s; }
.trl3-faq-item[open] summary::after { content: '−'; color: #D81818; }
.trl3-faq-answer { padding: 0 26px 24px; font-size: 16px; color: #555; line-height: 1.65; }
.trl3-faq-answer a { color: #D81818; font-weight: 600; text-decoration: none; }
.trl3-faq-answer a:hover { text-decoration: underline; }
.trl3-faq-answer code { background: #1a1a2e; color: #F0D818; padding: 2px 6px; font-size: 13px; font-family: 'SF Mono', Menlo, monospace; }

/* ===== GLOBALIZE MOSAIC ===== */
.trl3-globalize { background: #1a1a2e; color: #fff; padding: 120px 0; overflow: hidden; position: relative; }
.trl3-globalize h2, .trl3-globalize .trl3-eyebrow { color: #fff; }
.trl3-globalize .trl3-eyebrow::before { background: #F0D818; }
.trl3-globalize-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
.trl3-globalize-mosaic { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 520px; margin: 0 auto; }
.trl3-globalize-mosaic .fl {
  position: absolute; display: block;
  mix-blend-mode: screen; opacity: .85;
  filter: saturate(.9); will-change: transform;
}
.trl3-globalize-mosaic .fl-japan   { top: 2%;  left: 18%; width: 46%; }
.trl3-globalize-mosaic .fl-sweden  { top: 22%; left: 0%;  width: 48%; }
.trl3-globalize-mosaic .fl-france  { top: 0%;  right: 0%; width: 44%; }
.trl3-globalize-mosaic .fl-denmark { top: 42%; right: 6%; width: 48%; }
.trl3-globalize-mosaic .fl-greece  { top: 16%; right: 22%; width: 40%; }
.trl3-globalize-mosaic .fl-brazil  { top: 48%; left: 2%;  width: 40%; }
.trl3-globalize-mosaic .fl-eu      { bottom: 14%; left: 28%; width: 42%; }
.trl3-globalize-mosaic .fl-china   { bottom: 2%;  right: 18%; width: 38%; }
.trl3-globalize-mosaic .fl-spain   { bottom: 4%;  left: 6%;  width: 40%; }
.trl3-globalize-mosaic .fl-usa     { bottom: 28%; right: 0%; width: 36%; }
@media (prefers-reduced-motion: reduce) { .trl3-globalize-mosaic .fl { transform: none !important; } }
.trl3-display { font-size: clamp(48px, 7vw, 104px); line-height: .95; margin: 0 0 28px; letter-spacing: -.04em; font-weight: 800; }
.trl3-globalize-sub { font-size: 17px; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0 0 32px; max-width: 520px; }
.trl3-globalize-cta {
  display: inline-block; padding: 16px 32px;
  background: #D81818; color: #fff;
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .15em;
  text-decoration: none; transition: background .15s;
}
.trl3-globalize-cta:hover { background: #F0D818; color: #1a1a2e; }
@media (max-width: 899px) { .trl3-globalize-mosaic { display: none; } }
@media (min-width: 900px) {
  .trl3-globalize-inner { grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .trl3-globalize-mosaic { order: 2; }
  .trl3-globalize-copy { order: 1; }
}

/* ===== FINAL CTA ===== */
.trl3-final-cta { padding: 96px 0; background: #fff; border-top: 2px solid #1a1a2e; }
.trl3-final-cta h2 { color: #1a1a2e; font-size: clamp(40px, 5vw, 72px); margin-bottom: 20px; }
.trl3-final-cta h2 em { color: #D81818; }
.trl3-final-cta p { font-size: 17px; color: #555; max-width: 680px; line-height: 1.6; margin-bottom: 32px; }
.trl3-final-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.trl3-final-cta .trl3-btn-outline-light { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.trl3-final-cta .trl3-btn-outline-light:hover { background: #D81818; border-color: #D81818; color: #fff; }
.trl3-final-meta { font-size: 13px; color: #888; margin: 0; }
.trl3-final-meta a { color: #D81818; font-weight: 600; text-decoration: none; }
.trl3-final-meta a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .trl3-services-grid { grid-template-columns: repeat(2, 1fr); }
  .trl3-how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .trl3-docs-split { grid-template-columns: 1fr; gap: 36px; }
  .trl3-also-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .trl3-container { padding: 0 20px; }
  .trl3-hero { padding: 48px 0 40px; min-height: 0; }
  .trl3-hero-box { padding: 32px 26px 28px; box-shadow: 5px 5px 0 #1a1a2e; }
  .trl3-hero h1 { font-size: 40px; }
  .trl3-services, .trl3-also, .trl3-docs, .trl3-how, .trl3-faq, .trl3-globalize, .trl3-final-cta { padding: 56px 0; }
  .trl3-services-grid { grid-template-columns: 1fr; }
  .trl3-how-grid { grid-template-columns: 1fr; }
  .trl3-also-list { grid-template-columns: 1fr; }
  .trl3-docs-list { grid-template-columns: 1fr 1fr; }
  .trl3-clients-list { gap: 18px 24px; }
  .trl3-clients-list span { font-size: 16px; }
  .trl3-hero-ctas .trl3-btn { flex: 1; padding: 12px 14px; font-size: 11px; }
}

/* ===== Translation Child V3 (.trl3c) — service-detail pages ===== */
.trl3c-hero { padding: 64px 0 52px; min-height: 0; }
.trl3-crumb { font-size: 13px; color: #666; margin: 0 0 14px; }
.trl3-crumb a { color: #D81818; font-weight: 600; text-decoration: none; }
.trl3c-hero-box h1 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 20px; }
.trl3c-content { padding: 48px 0 24px; }
.trl3c-content .trl3-container { max-width: 860px; }
.trl3c-content .sv3-content h2 { margin-top: 1.6em; }
.trl3c-siblings { padding: 40px 0 64px; }
.trl3c-siblings-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.trl3c-chip { display: inline-block; padding: 9px 16px; border: 2px solid #1a1a2e; border-radius: 2px; font-size: 13.5px; font-weight: 600; color: #1a1a2e; text-decoration: none; transition: background .15s, color .15s; }
.trl3c-chip:hover { background: #1a1a2e; color: #fff; }
.trl3c-chip-hub { border-color: #D81818; color: #D81818; }
.trl3c-chip-hub:hover { background: #D81818; color: #fff; }
@media (max-width: 700px) {
  .trl3c-hero { padding: 44px 0 36px; }
  .trl3c-content { padding: 32px 0 12px; }
}
