/* Company Profile — client-ready v2.1 (theme-aware body, dark hero) */
.cp-wrap {
  background: var(--bg);
  color: var(--text-secondary);
}
.cp-hero {
  background: linear-gradient(135deg, #0C1B2A 0%, #16324A 55%, #1A3A52 100%);
  color: #fff !important;
  padding: 48px 0 56px;
}
/* Override global h1–h6 navy color inside dark hero */
.cp-hero,
.cp-hero h1,
.cp-hero h2,
.cp-hero h3,
.cp-hero h4,
.cp-hero p,
.cp-hero span,
.cp-hero a:not(.btn) {
  color: #fff;
}
.cp-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.cp-hero__copy { color: #fff; }
.cp-hero__brand { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.cp-hero__logo {
  width: 72px; height: 72px; object-fit: contain;
  background: var(--surface); border-radius: 12px; padding: 8px;
  flex-shrink: 0;
}
/* Logo marks always contain — never crop like photography */
.cp-hero__logo,
.cp-contact-card__logo,
img[src*="bth-logo"] {
  object-fit: contain !important;
}
.cp-kicker {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.78) !important;
}
.cp-disciplines {
  font-size: 15px; font-weight: 600; margin-top: 4px;
  color: #F28C28 !important;
}
.cp-disciplines__en {
  display: block; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.75) !important; margin-top: 2px;
}
.cp-hero__title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15;
  margin: 0 0 14px;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.cp-hero__lead {
  font-size: 16px; line-height: 1.65;
  color: rgba(255,255,255,.92) !important;
  margin: 0 0 10px; max-width: 52ch;
}
.cp-hero__lead--en {
  color: rgba(255,255,255,.78) !important;
  font-size: 15px;
}
.cp-doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,.72) !important;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.cp-doc-meta span { color: inherit; }
.cp-lang-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px;
}
.cp-lang-switch__label {
  font-size: 13px;
  color: rgba(255,255,255,.78) !important;
  margin-right: 4px;
}
.cp-lang-switch__btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  color: #fff !important; font-weight: 700; font-size: 13px; text-decoration: none;
  background: rgba(255,255,255,.06);
}
.cp-lang-switch__btn:hover {
  border-color: #F28C28; color: #F28C28 !important; background: rgba(242,140,40,.12);
}
.cp-lang-switch__btn.is-active {
  background: #F28C28; border-color: #F28C28; color: #0C1B2A !important;
}
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-hero .btn--primary {
  color: #0C1B2A;
}
.cp-hero .btn--outline {
  color: #fff !important;
  border-color: rgba(255,255,255,.45);
  background: transparent;
}
.cp-hero .btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff !important;
}
.cp-hero__media {
  margin: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
  aspect-ratio: 4/3; background: #0a1520;
  border: 1px solid rgba(255,255,255,.08);
}
.cp-hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}

.cp-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}
.cp-toc {
  position: sticky; top: 96px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-2); padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.cp-toc__title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.cp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-toc a {
  font-size: 13px; color: var(--text-secondary); text-decoration: none; line-height: 1.35;
}
.cp-toc a:hover { color: var(--color-orange); }

.cp-main { min-width: 0; }
.cp-section {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-sm);
  border-radius: 12px; padding: 32px 32px 36px; margin-bottom: 24px;
}
.cp-section--contact { border-top: 4px solid var(--color-orange, #F28C28); }
.cp-h2 {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 26px; font-weight: 800; color: var(--text);
  margin: 0 0 16px; line-height: 1.2;
}
.cp-h2__vi { display: block; }
.cp-h2__en {
  display: block; margin-top: 4px;
  font-size: 16px; font-weight: 600; color: var(--text-muted);
}
.cp-h3 {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 18px 0 8px;
}
.cp-main p { margin: 0 0 12px; color: var(--text-secondary); line-height: 1.7; font-size: 15.5px; }
.cp-bi { display: block; }
.cp-bi--vi { margin-bottom: 4px; }
.cp-bi--en {
  color: var(--text-muted); font-size: 0.95em; line-height: 1.6; margin-bottom: 10px;
}
.cp-list { margin: 8px 0 0; padding-left: 18px; }
.cp-list li { margin-bottom: 8px; color: var(--text-secondary); line-height: 1.55; }

.cp-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start;
}
.cp-figure { margin: 0; border-radius: 10px; overflow: hidden; background: #0C1B2A; aspect-ratio: 4/3; }
.cp-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card-bg); }
.cp-table th, .cp-table td {
  text-align: left; vertical-align: top;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.cp-table th {
  width: 32%; color: var(--text-muted); font-weight: 600; background: var(--surface-2);
}
.cp-table td { color: var(--text); background: var(--card-bg); }
.cp-table-wrap { overflow-x: auto; border-radius: var(--radius-2); border: 1px solid var(--card-border); }
.cp-table--matrix th { background: var(--color-navy, #0C1B2A); color: #fff; width: auto; }
.cp-table--matrix td { min-width: 140px; background: var(--card-bg); color: var(--text); }

.cp-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px;
}
.cp-card {
  border: 1px solid var(--card-border); border-top-width: 4px;
  border-radius: var(--radius-2); overflow: hidden; background: var(--card-bg); padding-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.cp-card__media { margin: 0; aspect-ratio: 16/10; background: #0C1B2A; }
.cp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-card .cp-h3, .cp-card p, .cp-card .cp-list { padding-left: 16px; padding-right: 16px; }
.cp-card .cp-list { font-size: 14px; }

.cp-process { list-style: none; margin: 16px 0 0; padding: 0; }
.cp-process > li {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.cp-process__num {
  flex: 0 0 auto; min-width: 2.5rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: var(--color-orange); font-size: 13px; letter-spacing: 0.08em; padding-top: 2px;
}
.cp-process__body { flex: 1; min-width: 0; }
.cp-process__title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cp-process__text { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.cp-projects { display: grid; gap: 28px; margin-top: 8px; }
.cp-project {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px;
  border: 1px solid var(--card-border); border-radius: var(--radius-2); overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.cp-project__media {
  margin: 0;
  min-height: 220px;
  max-height: 320px;
  background: #0C1B2A;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.cp-project__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Site photos only — if a logo path ever leaks, don't zoom-crop it */
.cp-project__media img[src*="logo"],
.cp-card__media img[src*="logo"] {
  object-fit: contain !important;
  background: var(--surface);
  padding: 16px;
}
.cp-project__body { padding: 20px 22px 22px; }
.cp-project__meta {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-orange); margin-bottom: 8px;
}
.cp-project__dl { margin: 0 0 10px; display: grid; gap: 6px; }
.cp-project__dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 14px; }
.cp-project__dl dt { color: var(--text-muted); margin: 0; }
.cp-project__dl dd { margin: 0; color: var(--text); font-weight: 600; }
.cp-project__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cp-project__thumbs img {
  width: 88px; height: 64px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border);
}

.cp-why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.cp-why__item {
  border: 1px solid var(--card-border); border-radius: var(--radius-2); padding: 18px 18px 16px;
  background: var(--surface-2);
}

.cp-contact-card {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--card-border); border-radius: var(--radius-2); padding: 22px;
  background: var(--surface-2);
}
.cp-contact-card__logo {
  width: 72px; height: 72px; object-fit: contain; background: var(--card-bg);
  border-radius: 10px; padding: 8px; border: 1px solid var(--border);
}
.cp-contact-card__name { font-weight: 800; font-size: 18px; color: var(--text); }
.cp-contact-card__legal { font-size: 13px; color: var(--text-muted); margin: 4px 0 12px; }
.cp-contact-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.cp-contact-card__list a { color: var(--text); }
.cp-contact-card__list a:hover { color: var(--color-orange); }

@media (max-width: 1024px) {
  .cp-hero__grid, .cp-split, .cp-project, .cp-two, .cp-why, .cp-cards { grid-template-columns: 1fr; }
  .cp-shell { grid-template-columns: 1fr; }
  .cp-toc { position: static; }
}
@media (max-width: 640px) {
  .cp-section { padding: 22px 18px 26px; }
  .cp-hero { padding: 32px 0 40px; }
  .cp-project__dl div { grid-template-columns: 1fr; }
}
