/* Corporate layouts: advisory (site 2), assurance (site 4), agency (site 5). Markup: src/corporate.js (cx- classes).
   Clean business look: white + neutral sections, one brand color, photos, line icons, pill buttons. */

.layout-advisory, .layout-assurance, .layout-agency { --radius: 12px; }
.layout-advisory body, .layout-assurance, .layout-agency { }

/* ---------- header (white) ---------- */
.layout-advisory .site-header, .layout-assurance .site-header, .layout-agency .site-header {
  background: rgba(255, 255, 255, .96); color: var(--text); border-bottom: 1px solid var(--line);
}
:is(.layout-advisory, .layout-assurance, .layout-agency) .site-header .brand-name { color: var(--ink); font-weight: 700; }
:is(.layout-advisory, .layout-assurance, .layout-agency) .site-header .brand-en { color: var(--gold); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .nav a { color: var(--muted); font-weight: 500; }
:is(.layout-advisory, .layout-assurance, .layout-agency) .nav a:hover,
:is(.layout-advisory, .layout-assurance, .layout-agency) .nav a[aria-current="page"] { color: var(--ink); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .nav a[aria-current="page"]::after { background: var(--gold); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .header-cta { border-radius: 999px; background: var(--ink); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .header-cta:hover { background: var(--gold); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .menu-toggle { border-color: var(--line); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .menu-toggle span { background: var(--ink); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .mobile-nav { border-color: var(--line); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .mobile-nav a:not(.btn) { color: var(--ink); border-color: var(--line); }
:is(.layout-advisory, .layout-assurance, .layout-agency) main { background: var(--card); }

/* ---------- type & atoms ---------- */
.cx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--gold); }
.cx-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.cx-eyebrow.cx-light { color: var(--gold-soft); }
.cx-h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: #fff; margin: 0; }
.cx-h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.cx-h2.cx-on-dark { color: #fff; }
.cx-h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; color: var(--ink); line-height: 1.3; margin: 0 0 12px; }
.cx-h4 { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0 0 8px; }
.cx-sub { color: var(--muted); font-size: 17px; line-height: 1.75; }
.cx-sub p { margin: 0 0 .8em; }
.cx-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.cx-head .cx-sub { margin-top: 14px; }
.cx-center { text-align: center; margin-inline: auto; }
.cx-center.cx-head .cx-eyebrow { justify-content: center; }
.cx-narrow { max-width: 760px; margin-inline: auto; margin-bottom: 40px; }
.hl { background: linear-gradient(transparent 62%, var(--gold-soft) 62%, var(--gold-soft) 92%, transparent 92%); padding: 0 2px; }
.cx-on-dark .hl, .cx-h1 .hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 70%, transparent) 62%, color-mix(in srgb, var(--gold) 70%, transparent) 92%, transparent 92%); }

.cx-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 8px 0 22px; padding-inline: 22px 8px; border-radius: 999px; font: 600 15.5px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cx-btn-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.cx-btn-ic .ico { width: 16px; height: 16px; }
.cx-btn-primary { background: var(--gold); color: #fff; }
.cx-btn-primary:hover { background: var(--ink); }
.cx-btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; padding: 0 22px; }
.cx-btn-ghost-light:hover { background: #fff; color: var(--ink); }
.cx-btn-ghost { border-color: var(--line); color: var(--ink); padding: 0 22px; }
.cx-btn-block { width: 100%; justify-content: center; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cx-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cx-more .ico { width: 14px; height: 14px; }
.cx-more:hover { border-color: var(--gold); color: var(--gold); }
.cx-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, #fff); border: 1px solid color-mix(in srgb, var(--gold) 18%, transparent); flex: none; }
.cx-icon svg { width: 24px; height: 24px; }
.cx-ph { width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--paper), color-mix(in srgb, var(--paper) 80%, var(--ink))); }
.cx-pill { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); color: #fff; }
.cx-pill-dark { background: rgba(255, 255, 255, .1); }

.cx-section { padding-block: clamp(64px, 8vw, 110px); background: var(--card); }
.cx-tint { background: var(--paper); }
.cx-dark { background: var(--ink); color: #fff; }

/* ---------- heroes ---------- */
.cx-hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.cx-hero-media, .cx-hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 45%, color-mix(in srgb, var(--ink) 25%, transparent) 100%); }
.cx-hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: #fff; opacity: .92; margin: 18px 0 0; max-width: 620px; line-height: 1.5; font-weight: 500; }
.cx-hero-text { color: rgba(255, 255, 255, .78); margin: 12px 0 0; max-width: 600px; }

.cx-hero-photo .cx-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.cx-hero-form { background: #fff; color: var(--text); border-radius: 16px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.cx-form-title { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.cx-form-intro { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.cx-hero-form .form { gap: 12px; }
.cx-hero-form .field > span, .cx-contact-form .field > span { font-size: 13px; }
:is(.layout-advisory, .layout-assurance, .layout-agency) .field input,
:is(.layout-advisory, .layout-assurance, .layout-agency) .field textarea,
:is(.layout-advisory, .layout-assurance, .layout-agency) .field select { border-radius: 10px; background: var(--paper); }

.cx-stats { background: var(--paper); padding: 0 0 clamp(56px, 7vw, 90px); }
.cx-stat-grid { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: translateY(-40px); }
.cx-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .05); }
.cx-stat dd { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; font-weight: 500; }
.cx-stat dt { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; }

.cx-hero-full { min-height: min(720px, 86vh); display: flex; align-items: center; }
.cx-hero-solo { position: relative; padding-block: clamp(80px, 10vw, 130px); max-width: 1200px; }
.cx-hero-solo > * { max-width: 640px; }
.cx-checks { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: none !important; }
.cx-checks li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.cx-checks svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }

.cx-hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: var(--ink); }
.cx-split-color { display: flex; align-items: center; justify-content: flex-start; padding: clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-inline-end: clamp(32px, 5vw, 72px); }
.cx-split-in { max-width: 560px; }
.cx-split-photo { position: relative; min-height: 360px; }
.cx-split-photo > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-float { background: var(--card); }
.cx-float-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .08); transform: translateY(-64px); margin-bottom: -24px; position: relative; z-index: 2; }
.cx-float-card { padding: 28px; border-inline-start: 1px solid var(--line); }
.cx-float-card:first-child { border-inline-start: 0; }
.cx-float-card h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin: 16px 0 6px; }
.cx-float-card p { color: var(--muted); font-size: 15px; margin: 0; }

.cx-pagehero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.cx-pagehero-in { position: relative; padding-block: clamp(64px, 8vw, 110px); }
.cx-pagehero .cx-h1 { font-size: clamp(34px, 4.4vw, 56px); }

/* ---------- blocks ---------- */
.cx-head-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.cx-iconrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-block: 1px solid var(--line); }
.cx-iconrow-item { display: flex; gap: 16px; padding: 30px 24px; border-inline-start: 1px solid var(--line); }
.cx-iconrow-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cx-iconrow-item p { color: var(--muted); font-size: 15.5px; margin: 0; }

.cx-rows { display: grid; gap: clamp(36px, 5vw, 64px); }
.cx-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cx-row:nth-child(even) .cx-row-media { order: 2; }
.cx-frame { background: color-mix(in srgb, var(--paper) 60%, var(--line)); border-radius: 16px; padding: clamp(12px, 2vw, 24px); }
.cx-frame img, .cx-frame .cx-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.cx-row-body p { color: var(--muted); }

.cx-darksplit { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; }
.cx-darksplit-copy { display: flex; align-items: center; }
.cx-darksplit-in { padding: clamp(56px, 7vw, 100px) clamp(24px, 6vw, 96px); max-width: 680px; }
.cx-darksplit-media { position: relative; min-height: 420px; }
.cx-darksplit-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-darksplit-rev .cx-darksplit-media { order: -1; }
.cx-checklist { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.cx-checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.cx-checklist svg { width: 22px; height: 22px; color: var(--gold-soft); margin-top: 3px; }
.cx-checklist b { display: block; font-weight: 600; margin-bottom: 2px; }
.cx-checklist span { color: rgba(255, 255, 255, .72); font-size: 15.5px; }

.cx-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cx-two .cx-h2 { margin-bottom: 16px; }
.cx-two-rev > :first-child { order: 2; }

.cx-imgcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cx-imgcard-media { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; }
.cx-imgcard-media img, .cx-imgcard-media .cx-ph { width: 100%; height: 100%; object-fit: cover; }
.cx-imgcard-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 45%); }
.cx-imgcard-media h3 { position: absolute; top: 18px; inset-inline: 18px; z-index: 1; margin: 0; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.35; }
.cx-imgcard p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

.cx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cx-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.cx-card .cx-icon { margin-bottom: 18px; }
.cx-card-img { margin: -28px -28px 20px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px 14px 0 0; }
.cx-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cx-card-cat { font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 0 6px; }
.cx-card p { color: var(--muted); font-size: 15.5px; }

.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cx-steps li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 26px; }
.cx-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; margin-bottom: 26px; }
.cx-steps .cx-h4 { color: #fff; display: flex; justify-content: space-between; gap: 10px; }
.cx-step-arrow .ico { width: 18px; height: 18px; opacity: .6; }
.cx-steps p { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 0; }

.cx-collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: end; }
.cx-collage img, .cx-collage .cx-ph { width: 100%; object-fit: cover; border-radius: 14px; display: block; }
.cx-collage-a img, .cx-collage-a .cx-ph { aspect-ratio: 3 / 4; }
.cx-collage-b img, .cx-collage-b .cx-ph { aspect-ratio: 4 / 5; margin-bottom: 40px; }

.cx-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chips li { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.cx-chips li.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cx-names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cx-names li { display: grid; place-items: center; text-align: center; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink); background: #fff; font-size: 16px; }

.cx-svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cx-svc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.cx-svc-img { aspect-ratio: 16 / 11; overflow: hidden; padding: 10px 10px 0; }
.cx-svc-img img, .cx-svc-img .cx-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; min-height: 0; }
.cx-svc-body { padding: 22px 24px 26px; }
.cx-svc-body p { color: var(--muted); font-size: 15.5px; }

.cx-bigpoints { display: grid; gap: 22px; margin-top: 34px; }
.cx-bigpoints > div { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; }
.cx-bigpoints span { grid-row: span 2; font-size: 30px; font-weight: 600; color: var(--gold-soft); line-height: 1; }
.cx-bigpoints b { font-weight: 600; }
.cx-bigpoints p { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.cx-wide img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 16px; display: block; }

/* ---------- inner pages ---------- */
.cx-about { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cx-about-full { grid-template-columns: 1fr; max-width: 860px; }
.cx-profile { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.cx-profile dl { margin: 14px 0 22px; display: grid; gap: 14px; }
.cx-profile dl > div { display: flex; gap: 12px; align-items: flex-start; }
.cx-profile .cx-icon { width: 38px; height: 38px; border-radius: 10px; }
.cx-profile .cx-icon svg { width: 19px; height: 19px; }
.cx-profile dt { font-size: 13px; color: var(--muted); }
.cx-profile dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); line-height: 1.45; }
.cx-article-sec { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.cx-article-sec:last-child { border: 0; margin: 0; padding: 0; }
.cx-article-img { margin: 0 0 24px; }
.cx-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cx-contact-single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.cx-contact-info .detail-list li > a, .cx-contact-info .detail-list li > div { border-color: var(--line); }
.cx-contact-info .ci { border-radius: 12px; }
.cx-contact-form { padding: clamp(24px, 3vw, 36px); box-shadow: 0 20px 50px rgba(0, 0, 0, .06); }

/* ---------- CTA band + misc on corporate layouts ---------- */
:is(.layout-advisory, .layout-assurance, .layout-agency) .cta-band { background: var(--card); border: 0; padding-block: 0 clamp(64px, 8vw, 100px); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .cta-inner { background: var(--ink); border-radius: 20px; padding: clamp(32px, 5vw, 60px); }
:is(.layout-advisory, .layout-assurance, .layout-agency) .cta-band .btn-gold { border-radius: 999px; }
:is(.layout-advisory, .layout-assurance, .layout-agency) .h2.light { font-weight: 600; }

/* per-layout touches */
.layout-assurance .cx-btn-primary { background: #fff; color: var(--ink); }
.layout-assurance .cx-btn-primary .cx-btn-ic { background: var(--gold); color: #fff; }
.layout-assurance .cx-section .cx-btn-primary, .layout-assurance .cx-contact-form .cx-btn-primary, .layout-assurance .cx-profile .cx-btn-primary { background: var(--gold); color: #fff; }
.layout-assurance .cx-section .cx-btn-primary .cx-btn-ic { background: rgba(255, 255, 255, .18); }
.layout-agency .cx-hero-split .cx-btn-primary { background: var(--gold-soft); color: var(--ink); }
.layout-agency .cx-hero-split .cx-btn-primary .cx-btn-ic { background: rgba(0, 0, 0, .08); }
.layout-agency .cx-pagehero .cx-hero-media::after { background: color-mix(in srgb, var(--ink) 82%, transparent); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cx-stat-grid { grid-template-columns: 1fr 1fr; }
  .cx-hero-photo .cx-hero-grid { grid-template-columns: 1fr; }
  .cx-hero-form { max-width: 560px; }
}
@media (max-width: 820px) {
  .cx-head-split, .cx-row, .cx-darksplit, .cx-two, .cx-about, .cx-contact, .cx-hero-split { grid-template-columns: 1fr; }
  .cx-row:nth-child(even) .cx-row-media, .cx-two-rev > :first-child { order: 0; }
  .cx-darksplit-media { min-height: 280px; order: -1; }
  .cx-hero-split { min-height: 0; }
  .cx-split-photo { min-height: 280px; order: -1; }
  .cx-split-color { padding: 48px var(--gutter); }
  .cx-float-grid { transform: none; margin: 24px 0 0; }
  .cx-float-card { border-inline-start: 0; border-top: 1px solid var(--line); }
  .cx-float-card:first-child { border-top: 0; }
  .cx-iconrow-item, .cx-iconrow-item:first-child { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .cx-iconrow-item:first-child { border-top: 0; }
  .cx-profile { position: static; }
  .cx-collage { grid-template-columns: 1fr 1fr; }
  .cx-stat-grid { transform: translateY(-24px); }
}
@media (max-width: 520px) {
  .cx-stat-grid { grid-template-columns: 1fr; }
  .cx-actions .cx-btn { flex: 1 1 100%; justify-content: center; }
}

/* advisory hero without the form */
.cx-hero-noform .cx-hero-grid { grid-template-columns: 1fr; }
.cx-hero-noform .cx-hero-copy { max-width: 760px; }
