/* ============================================================
   CLOUDPANG — About page styles
   white reading canvas, magazine layout, bilingual blocks
   ============================================================ */

/* ===== HERO ===== */
.about-hero {
  padding: 32px 0 48px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--hairline);
}

.about-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

.about-hero .eyebrow { margin-bottom: 24px; }

.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.about-hero h1 em { font-style: italic; color: var(--accent); }

.about-hero .h1-th {
  font-family: var(--font-thai-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.about-hero .standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 720px;
}

.about-hero .standfirst-th {
  font-family: var(--font-thai-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

/* ===== SECTION (numbered, magazine-style) ===== */
.about-section {
  padding: 56px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--hairline);
}

.about-section:last-of-type { border-bottom: none; }

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}

.section-marker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 88px;
}

.section-marker .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.section-marker .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.section-marker .label .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 4px;
  font-weight: 400;
}

.section-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-body h2 em { font-style: italic; }

.section-body .h2-th {
  font-family: var(--font-thai-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== BILINGUAL BLOCKS ===== */
.lang-block {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--hairline);
}

.lang-block:last-child { margin-bottom: 0; }

.lang-block .lang-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-left: -22px;
  padding-left: 0;
  display: inline-block;
  background: var(--bg-canvas);
  position: relative;
  padding: 2px 6px 2px 0;
}

.lang-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 14px;
}

.lang-block p:last-child { margin-bottom: 0; }

.lang-block p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Thai language block uses Thai body font */
.lang-block:has(.lang-label:contains("TH")) p,
.lang-block + .lang-block p {
  font-family: var(--font-thai-body);
  font-size: 15px;
  line-height: 1.8;
}

/* fallback: target the second lang-block (TH) by sibling */
.section-body .lang-block:nth-of-type(2) p {
  font-family: var(--font-thai-body);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== DISCLOSURE highlight box ===== */
.disclosure-section .lang-block {
  border-left-color: var(--accent);
  border-left-width: 3px;
}

.disclosure-section {
  background: linear-gradient(to bottom, var(--bg-canvas) 0%, #FAFAFA 100%);
}

/* ===== PILLARS GRID ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.pillar-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--hairline);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  background: var(--bg-canvas);
}

.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pillar-card.pillar-volt:hover {
  border-color: var(--accent-ent);
}

.pillar-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 12px;
}

.pillar-volt .pillar-num { color: var(--accent-ent); color: #B8B400; }

.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pillar-card h3 .th {
  font-family: var(--font-thai-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pillar-card .en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.pillar-card .th-text {
  font-family: var(--font-thai-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-card .sub-note {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.pillar-card .sub-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pillar-card .sub-note a:hover {
  border-bottom-color: var(--accent);
}

/* ===== PRINCIPLE LIST ===== */
.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: principle;
}

.principle-list li {
  counter-increment: principle;
  position: relative;
  padding: 16px 0 16px 40px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

.principle-list li:last-child { border-bottom: none; }

.principle-list li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.principle-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* TH principle list uses Thai font */
.section-body .lang-block:nth-of-type(2) .principle-list li {
  font-family: var(--font-thai-body);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin-bottom: 40px;
}

.contact-block {
  padding: 20px 0;
  border-top: 1px solid var(--text-primary);
}

.contact-block h4 {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.contact-block h4 .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.contact-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 6px;
}

.contact-block p:last-child { margin-bottom: 0; }

.contact-block p.muted {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.contact-block a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.contact-block a:hover { color: var(--accent); }

.contact-block strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== LEGAL LINE ===== */
.legal-line {
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}

.legal-line p {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-line p.muted {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .about-hero-inner,
  .about-inner {
    padding: 0 var(--gutter-tablet);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-marker {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
  }

  .section-marker .num { font-size: 22px; }
}

@media (max-width: 700px) {
  .about-hero { padding: 20px 0 36px; }
  .about-hero-inner,
  .about-inner {
    padding: 0 var(--gutter-mobile);
  }
  .about-hero h1 { font-size: 36px; }
  .about-hero .h1-th { font-size: 18px; margin-bottom: 18px; }
  .about-hero .standfirst { font-size: 16px; }
  .about-hero .standfirst-th { font-size: 13px; }

  .about-section { padding: 36px 0; }
  .section-body h2 { font-size: 26px; }
  .section-body .h2-th { font-size: 15px; margin-bottom: 24px; }

  .lang-block { padding-left: 16px; margin-bottom: 24px; }
  .lang-block p { font-size: 15px; }
  .section-body .lang-block:nth-of-type(2) p { font-size: 14px; }

  .pillars-grid { grid-template-columns: 1fr; gap: 12px; }
  .pillar-card { padding: 20px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  .principle-list li { font-size: 14px; padding: 14px 0 14px 32px; }
}
