/* =========================================================
   ApexOne Asia — shared stylesheet
   Palette: deep navy + gold accent
   ========================================================= */

:root {
  /* Brand palette: orange · charcoal/black · grey · white */
  --navy: #262626;        /* dark neutral (was navy) — used for dark UI */
  --navy-900: #141414;    /* near-black */
  --navy-700: #3a3a3a;    /* charcoal */
  --gold: #f5811f;        /* brand orange */
  --gold-dark: #d76a0f;   /* deeper orange for hover/text */
  --ink: #1f1f1f;         /* headings */
  --body: #4a4f55;        /* body text (warm grey) */
  --muted: #7c8288;       /* muted grey */
  --line: #e6e7e9;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --bg-navy-soft: #141414;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(20, 20, 20, 0.32);
  --shadow-sm: 0 8px 24px -14px rgba(20, 20, 20, 0.36);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Montserrat", "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Montserrat", "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1.1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.lede { font-size: 1.18rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav__logo { color: var(--ink); display: inline-flex; }
.nav__logo img { height: 38px; width: auto; }
.brand__img { height: 40px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav__links li { flex: 0 0 auto; }
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-dark); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18,18,18,.94) 0%, rgba(20,20,20,.74) 45%, rgba(31,31,31,.5) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 104px 0 92px; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .4em; line-height: 1.1; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.62); letter-spacing: .02em; }

/* page hero (shorter, for interior pages) */
.pagehero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.pagehero::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(18,18,18,.94), rgba(31,31,31,.66)); }
.pagehero__inner { position: relative; z-index: 2; padding: 92px 0 78px; max-width: 720px; }
.pagehero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.pagehero p { color: rgba(255,255,255,.82); font-size: 1.14rem; max-width: 620px; margin: 0; }

/* ---------- Section headers ---------- */
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #dfe3ea; }
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(245,129,31,.14);
  color: var(--gold-dark);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.card h3 { font-family: var(--font); font-size: 1.18rem; letter-spacing: -0.01em; }
.card h4 { font-family: var(--font); font-size: 1.05rem; }
.card p { font-size: .96rem; color: var(--body); margin: 0; }
.card__tag { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-dark); }

/* pillar card with top accent */
.pillar { border-top: 3px solid var(--gold); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

/* ---------- Check list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--body);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(245,129,31,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d76a0f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* pill tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

/* ---------- HRD Corp band ---------- */
.hrd {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.hrd__logos { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hrd__logos img { height: 100px; width: auto; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px -6px rgba(0,0,0,.45); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } .wa-float svg { width: 26px; height: 26px; } }
.hrd h3 { font-family: var(--font); margin-bottom: .3rem; }

/* ---------- Logo strip ---------- */
.logostrip { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.logostrip img { height: 108px; width: 210px; object-fit: contain; padding: 16px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; opacity: .9; filter: grayscale(100%); transition: .25s; }
.logostrip img:hover { opacity: 1; filter: grayscale(0); border-color: #dfe1e5; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { border-radius: 12px; height: 220px; width: 100%; object-fit: cover; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; }

/* ---------- Trainer cards ---------- */
.trainer { text-align: left; }
.trainer img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; margin-bottom: 18px; }
.trainer h3 { font-family: var(--font); font-size: 1.15rem; margin-bottom: .25rem; }
.trainer__role { color: var(--gold-dark); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.trainer__areas { font-size: .92rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  color: #fff;
  text-align: center;
  background: var(--navy-900);
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.cta::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(18,18,18,.86), rgba(18,18,18,.93)); }
.cta__inner { position: relative; z-index: 2; padding: 88px 0; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 720px; margin: 0 auto .4em; }
.cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 2rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.info-block { margin-bottom: 26px; }
.info-block .label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.info-block .value { font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,129,31,.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .86rem; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--gold); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand .brand__img { height: 46px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: .95rem; max-width: 340px; }
.footer__contact { font-size: .92rem; margin-top: 12px; }
.footer h4 { color: #fff; font-family: var(--font); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: .95rem; }
.footer__social { display: flex; gap: 14px; margin-top: 18px; }
.footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.footer__social a:hover { border-color: var(--gold); }
.footer__bottom { padding-top: 26px; font-size: .84rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__bottom a { color: rgba(255,255,255,.55); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.legal h3 { font-family: var(--font); font-size: 1.1rem; margin: 1.6rem 0 .5rem; color: var(--ink); }
.legal p, .legal li { color: var(--body); font-size: 1rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.legal li { margin-bottom: .5rem; }
.legal .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 2.4rem; }
.legal .toc h4 { font-family: var(--font); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 12px; }
.legal .toc ol { columns: 2; column-gap: 32px; margin: 0; font-size: .95rem; }
.legal .note { background: rgba(245,129,31,.08); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 1.6rem 0; font-size: .95rem; }
.legal a { color: var(--gold-dark); text-decoration: underline; }
@media (max-width: 560px){ .legal .toc ol { columns: 1; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 8px; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--navy); font-weight: 600; line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-sm);
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta a { display: flex; justify-content: center; align-items: center; width: 100%; padding: 13px 20px; border-bottom: none; border-radius: 999px; }
  .nav__toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .stat-row { gap: 28px; }
  .hero__inner { padding: 84px 0 72px; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.post-card__img { height: 190px; width: 100%; object-fit: cover; background: var(--bg-soft); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.post-card h3 { font-family: var(--font); font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; }
.post-card p { font-size: .94rem; color: var(--body); margin: 0 0 16px; }
.post-card__meta { margin-top: auto; font-size: .82rem; color: var(--muted); }
.post-card a.readmore { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* article body */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; object-fit: cover; }
.article p, .article li { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.article h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.article h3 { font-family: var(--font); font-size: 1.2rem; margin: 1.8rem 0 .6rem; color: var(--ink); }
.article blockquote { margin: 1.8rem 0; padding: 6px 24px; border-left: 3px solid var(--gold); color: var(--body); font-style: italic; }
.article img { max-width: 100%; border-radius: var(--radius); margin: 1.4rem 0; }
.article a { color: var(--gold-dark); text-decoration: underline; }

@media (max-width: 900px){ .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .post-grid { grid-template-columns: 1fr; } .article p, .article li { font-size: 1rem; } }

/* ---------- Featured event band ---------- */
.event-band { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.event-band__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.event-band__body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.event-band__body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .35rem; }
.event-band__meta { color: var(--gold-dark); font-weight: 600; font-size: .95rem; margin: 0 0 1rem; }
.event-band__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 800px){ .event-band { grid-template-columns: 1fr; } .event-band__media img { min-height: 220px; } .event-band__body { padding: 32px 26px; } }

/* ---------- Accessibility: skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy-900); padding: 10px 18px; font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

/* ---------- Scroll reveal (respects reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow-sm); }
.quote-card__mark { color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: .4; display: block; margin-bottom: 14px; }
.quote-card p { font-size: 1.06rem; line-height: 1.7; color: var(--ink); margin: 0 0 18px; }
.quote-card__who { font-weight: 600; color: var(--ink); font-size: .98rem; }
.quote-card__role { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px){ .quote-grid { grid-template-columns: 1fr; } }
