/* ================================================================
   English site styles (orangezh-pro 3.2.0-rc1)
   Loaded only on /en/ pages (see inc/ozh-en.php). Every colour comes
   from the existing custom properties in assets/css/ozh-2026.css —
   nothing new is invented here.

   Two reasons this file exists:
   1. Chinese display typography uses a serif face ("OZH Display" +
      Source Han Serif). Latin text in that stack looks wrong, so the
      English pages switch headings to a system sans stack.
   2. The English pages bring components the Chinese site does not have:
      capability cards, two/three-column blocks, FAQ and a contact form.
   ================================================================ */

.ozh-en {
  /* English UI stack. No webfont request: Latin system faces are good
     enough and load instantly. */
  --z-en-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --z-en-max: 62ch;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Typography ---------- */
.ozh-en h1, .ozh-en h2, .ozh-en .z-h1, .ozh-en .z-h2, .ozh-en .z-page-hero__title {
  font-family: var(--z-en-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ozh-en h3, .ozh-en h4 { font-family: var(--z-en-sans); }

/* Smaller type floor: body copy stays readable, helper text never goes
   below 14px, form labels and tags never below 12px. */
.ozh-en .z-note,
.ozh-en .z-en-note { font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.ozh-en .z-lede { font-size: 18px; line-height: 1.7; }
.ozh-en .z-fact p,
.ozh-en .z-head p { font-size: 16px; line-height: 1.7; }
.ozh-en .z-step p { font-size: 16px; }

/* ---------- Hero ---------- */
.ozh-en .z-hero__copy .z-h1 { max-width: 20ch; }
.ozh-en .z-note { max-width: 62ch; }

/* ---------- Capability cards (home + 404) ---------- */
.z-en-caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--z-line-2);
}
.z-en-cap {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 28px 36px 0;
  border-left: 1px solid var(--z-line);
  text-decoration: none; color: inherit;
  transition: background-color .18s var(--z-ease);
}
.z-en-cap:first-child { border-left: 0; padding-left: 0; }
.z-en-cap:hover { background: var(--z-bg-2); }
.z-en-cap h3 {
  margin: 0; font-size: 21px; font-weight: 600; line-height: 1.35; color: var(--z-text);
}
.z-en-cap p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--z-text-2); }
.z-en-cap .z-link { margin-top: auto; }

/* ---------- Two / three column text blocks (capability pages) ---------- */
.z-en-two, .z-en-three {
  display: grid; gap: 1px;
  background: var(--z-line);
  border: 1px solid var(--z-line);
}
.z-en-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.z-en-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.z-en-block { background: var(--z-bg); padding: 32px 28px; }
.z-en-block h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--z-text); }
.z-en-block p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--z-text-2); }

/* ---------- Work cards ---------- */
.z-en-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.z-en-work__client {
  margin: 0; font-size: 15px; font-weight: 600; color: var(--z-text-2);
}
.z-en-work__stack {
  margin: 0; font-family: var(--z-mono); font-size: 13px; letter-spacing: .02em; color: var(--z-text-3);
}
.z-en-work .z-case-card__body { gap: 12px; }
.z-en-work__link { margin-top: 4px; }

/* ---------- FAQ ---------- */
.z-en-faq { border-top: 1px solid var(--z-line-2); }
.z-en-faq details { border-bottom: 1px solid var(--z-line); }
.z-en-faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--z-text);
}
.z-en-faq summary::-webkit-details-marker { display: none; }
.z-en-faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--z-brand); border-bottom: 2px solid var(--z-brand);
  transform: rotate(45deg); transition: transform .18s var(--z-ease);
}
.z-en-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.z-en-faq summary:hover { color: var(--z-brand-text); }
.z-en-faq p {
  margin: 0; padding: 0 40px 26px 0; max-width: var(--z-en-max);
  font-size: 17px; line-height: 1.7; color: var(--z-text-2);
}

/* ---------- Contact page ---------- */
.z-en-contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.z-en-contact__intro { display: flex; flex-direction: column; gap: 32px; }
.z-en-contact__spec { border-top: 0; }
.z-en-contact__spec a { color: var(--z-text); text-decoration: none; }
.z-en-contact__spec a:hover { color: var(--z-brand-text); }

.z-en-alert {
  margin: 0 0 24px; padding: 16px 18px; border-radius: var(--z-radius);
  font-size: 16px; line-height: 1.6; border: 1px solid var(--z-line-2);
}
.z-en-alert--ok { border-color: var(--z-ok); background: var(--z-ok-bg); color: var(--z-ok-text); }
.z-en-alert--err { border-color: var(--z-stamp); color: var(--z-text); }

.z-en-contact__form form { display: flex; flex-direction: column; gap: 20px; }
.z-en-field { display: flex; flex-direction: column; gap: 8px; }
.z-en-field label { font-size: 14px; font-weight: 600; color: var(--z-text-2); }
.z-en-field label span { color: var(--z-brand); }
.z-en-field input[type="text"],
.z-en-field input[type="email"],
.z-en-field select,
.z-en-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px; border-radius: var(--z-radius);
  border: 1px solid var(--z-line-2); background: var(--z-bg-2); color: var(--z-text);
  font-family: var(--z-en-sans); font-size: 17px; line-height: 1.5;
}
.z-en-field textarea { resize: vertical; min-height: 140px; }
.z-en-field input:focus, .z-en-field select:focus, .z-en-field textarea:focus {
  outline: 2px solid var(--z-brand); outline-offset: 1px; border-color: var(--z-brand);
}
.z-en-field input::placeholder, .z-en-field textarea::placeholder { color: var(--z-text-3); }
.z-en-field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.z-en-field--check input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.z-en-field--check label { font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--z-text-2); }
.z-en-field--check label a { color: var(--z-brand-text); }
.z-en-note { margin: 0; font-family: var(--z-mono); font-size: 14px; color: var(--z-text-3); }
.z-en-contact__form .z-btn { align-self: flex-start; }
/* Honeypot: kept out of the layout but not display:none, so naive bots
   still fill it in. */
.z-en-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Privacy / prose pages ---------- */
.z-en-prose { max-width: 74ch; }
.z-en-prose h2 {
  margin: 40px 0 12px; font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--z-text);
}
.z-en-prose p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--z-text-2); }
.z-en-prose ul { margin: 0 0 14px; padding-left: 22px; color: var(--z-text-2); }
.z-en-prose li { margin-bottom: 8px; font-size: 17px; line-height: 1.7; }
.z-en-prose a { color: var(--z-brand-text); }
.z-en-prose .z-note { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .z-en-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .z-en-cap { border-left: 0; border-bottom: 1px solid var(--z-line); padding: 26px 0; }
  .z-en-cap:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--z-line); }
  .z-en-two, .z-en-three { grid-template-columns: minmax(0, 1fr); }
  .z-en-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .ozh-en { font-size: 16px; }
  .z-en-caps { grid-template-columns: minmax(0, 1fr); }
  .z-en-cap, .z-en-cap:nth-child(even) { padding: 24px 0; border-left: 0; }
  .z-en-block { padding: 24px 18px; }
  /* One card per row: two columns of case cards are unreadable at this width. */
  .ozh-en .z-case-grid { grid-template-columns: minmax(0, 1fr); }
  .z-en-faq p, .z-en-faq summary { padding-right: 30px; }
  .ozh-en .z-note { font-size: 14px; }
}

/* Nothing on an English page may scroll sideways. */
.ozh-en img, .ozh-en svg, .ozh-en table { max-width: 100%; }
.ozh-en .z-en-work__stack,
.ozh-en .z-en-tags,
.ozh-en .z-chips { overflow-wrap: anywhere; }
