/* =========================================================
   AltCtrl Intelligence: content-page components
   (About, Insights, Contact, Careers)
   Loaded AFTER styles.css, which provides tokens, reset,
   body, the shared navbar, and the shared footer.
   ========================================================= */
:root { --text-tertiary: #8A8D8A; }

/* The shared navbar is fixed; offset the page content below it. */
.subpage { padding-top: var(--nav-h); }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent-bar { display: flex; gap: 6px; margin: 30px 0 0; max-width: 240px; }
.accent-bar span { height: 3px; flex: 1; border-radius: 2px; }
.accent-bar span:nth-child(1) { background: var(--green); }
.accent-bar span:nth-child(2) { background: var(--teal); }
.accent-bar span:nth-child(3) { background: var(--violet); }

/* ---------- Hero ---------- */
.phero { padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 64px); }
.phero h1 {
  font-size: clamp(40px, 6.2vw, 76px); font-weight: 600;
  line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 0; max-width: 16ch;
}
.phero .lead {
  font-size: clamp(17px, 1.6vw, 20px); color: var(--text-secondary);
  max-width: 60ch; margin-top: 26px; line-height: 1.62;
}
.phero .lead + .lead { margin-top: 14px; }

/* ---------- Generic section ---------- */
.psec { padding: clamp(48px, 8vh, 92px) 0; border-top: 1px solid var(--border); }
.psec-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; color: var(--text-tertiary); margin-bottom: 20px; }
.psec h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; max-width: 22ch; }
.psec p.body { color: var(--text-secondary); font-size: clamp(16px, 1.4vw, 18px); max-width: 64ch; margin-top: 18px; }
.psec p.body + p.body { margin-top: 14px; }

/* ---------- Numbered principle / value cards ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 40px; }
.pcard { background: var(--surface); padding: 30px 28px; }
.pcard .num { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.pcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.pcard p { font-size: 15px; color: var(--text-secondary); line-height: 1.58; }
.pcards.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .pcards { grid-template-columns: 1fr; } }

/* large mail link (careers openings) */
.maillink { display: inline-block; margin-top: 24px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; border-bottom: 2px solid var(--gold-soft); padding-bottom: 2px; transition: border-color 0.25s var(--ease); }
.maillink:hover { border-bottom-color: var(--text-primary); }
.maillink .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.maillink:hover .arrow { transform: translateX(5px); }

/* chips row */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; background: var(--surface); }

/* ---------- Contact / inquiry channels ---------- */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.channel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 30px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.channel:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.channel .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--text-tertiary); margin-bottom: 14px; }
.channel h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.channel p { font-size: 15px; color: var(--text-secondary); line-height: 1.58; margin-bottom: 18px; }
.channel a.mail { font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold-soft); padding-bottom: 1px; }
.channel a.mail:hover { border-bottom-color: var(--text-primary); }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; } }

/* ---------- Operating presence ---------- */
.presence { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.market { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px; }
.market .live { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 16px; }
.market .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(0,226,141,0.16); }
.market .city { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.market .country { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 860px) { .presence { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Insights: article list ---------- */
.posts { margin-top: 40px; border-top: 1px solid var(--border); }
.post { display: block; padding: 30px 0; border-bottom: 1px solid var(--border); transition: padding-left 0.3s var(--ease); text-decoration: none; color: inherit; }
.post .read { font-size: 12px; letter-spacing: 0.05em; color: var(--text-tertiary); }
.post:hover { padding-left: 10px; }
.post .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.post .cat { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.post .date { font-size: 12px; letter-spacing: 0.06em; color: var(--text-tertiary); }
.post h3 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; max-width: 30ch; }
.post p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-top: 12px; max-width: 76ch; }
.post .more { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); }
.post .more .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.post:hover .more .arrow { transform: translateX(4px); }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface); cursor: pointer; user-select: none; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.filter span:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter span.active { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.filter span:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.posts-empty { padding: 48px 0 8px; font-size: 15px; color: var(--text-secondary); }
/* Once filtering is active, keep cards stable (the scroll-reveal no longer governs them). */
.posts.filtered .post { opacity: 1 !important; transform: none !important; }

/* ---------- Form ---------- */
.iform { margin-top: 36px; max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--text-tertiary); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(183,154,91,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.iform button {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: #171717; color: #fff; border: none; border-radius: 100px;
  padding: 15px 32px; transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.iform button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(23,23,23,0.6); }
.form-note { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band { margin: clamp(56px, 9vh, 100px) 0 0; padding: clamp(48px, 8vh, 88px) var(--gutter); background: #171717; color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; max-width: 20ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.6); font-size: 16px; margin: 18px auto 0; max-width: 50ch; }
.cta-band a.btn-cta { display: inline-block; margin-top: 32px; background: #fff; color: #171717; font-size: 14px; font-weight: 600; text-decoration: none; padding: 14px 30px; border-radius: 100px; transition: transform 0.26s var(--ease); }
.cta-band a.btn-cta:hover { transform: translateY(-2px); }

/* ---------- Blog article (detail page) ---------- */
.article { padding-top: var(--nav-h); }
.article-head { padding: clamp(40px, 7vh, 84px) 0 clamp(26px, 4vh, 44px); border-bottom: 1px solid var(--border); }
.art-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.art-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.art-date, .art-read { font-size: 12px; letter-spacing: 0.05em; color: var(--text-tertiary); }
.art-title { font-size: clamp(31px, 4.6vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; }
.art-dek { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-secondary); max-width: 60ch; margin-top: 22px; line-height: 1.55; }
.article-body { max-width: 720px; margin: 0 auto; padding: clamp(34px, 6vh, 60px) 0 clamp(40px, 6vh, 72px); }
.article-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 42px 0 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 17px; line-height: 1.74; color: #2a2c2a; margin-bottom: 18px; }
.article-body ul { margin: 0 0 20px 0; padding: 0; list-style: none; }
.article-body li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 16px; line-height: 1.62; color: var(--text-secondary); }
.article-body li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.article-body blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--gold-soft); font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--text-primary); }
.article-body strong { font-weight: 600; color: var(--text-primary); }
.art-keystats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 30px 0; }
.art-stat { background: var(--surface); padding: 22px 20px; }
.art-stat .v { font-size: 25px; font-weight: 600; letter-spacing: -0.01em; display: block; }
.art-stat .l { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.4; }
.art-foot { max-width: 720px; margin: 0 auto; padding-bottom: clamp(40px, 7vh, 80px); }
.art-back { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-primary); border-bottom: 1.5px solid var(--gold-soft); padding-bottom: 2px; }
.art-back:hover { border-bottom-color: var(--text-primary); }
.art-disclaimer { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.6; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 860px) { .art-keystats { grid-template-columns: 1fr; } }
[dir="rtl"] .article-body li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .article-body li::before { left: auto; right: 2px; }
[dir="rtl"] .article-body blockquote { border-left: none; border-right: 3px solid var(--gold-soft); padding-left: 0; padding-right: 24px; }

/* ---------- RTL adjustments for content ---------- */
[dir="rtl"] .accent-bar { margin-left: auto; margin-right: 0; }
[dir="rtl"] .post:hover { padding-left: 0; padding-right: 10px; }
[dir="rtl"] .maillink:hover .arrow,
[dir="rtl"] .post:hover .more .arrow { transform: translateX(-5px); }
