/* =========================================================
   About Us — dark elegant theme (AYANO-inspired)
   Loaded AFTER style.css, overrides for .about-page
   ========================================================= */

.about-page {
  --bg: #141416;
  --bg-2: #1b1b1e;
  --panel: #202024;
  --head: #f3f2ef;
  --body: #b9b8b4;
  --muted: #82817d;
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  background: var(--bg);
  color: var(--body);
  font-weight: 300;
}

.about-page .container { max-width: var(--max); }

/* ---------- Header: transparent over the video, white bar on scroll ---------- */
.about-page .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: background .3s ease, border-color .3s ease;
}
.about-page .site-header.scrolled {
  position: fixed;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
/* over the hero (transparent) → light text */
.about-page .main-nav a { color: #fff; }
.about-page .main-nav a:hover,
.about-page .main-nav a.active { color: var(--gold-2); }
.about-page .main-nav a.active::after { background: var(--gold-2); }
.about-page .phone-btn {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  box-shadow: none;
  background: rgba(255, 255, 255, .08);
}
.about-page .phone-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.about-page .nav-toggle span { background: #fff; }

/* scrolled (white bar) → dark text */
.about-page .site-header.scrolled .main-nav a { color: var(--ink); }
.about-page .site-header.scrolled .main-nav a:hover,
.about-page .site-header.scrolled .main-nav a.active { color: var(--gold); }
.about-page .site-header.scrolled .phone-btn {
  border: 1px solid #e7e7e7;               /* concrete light border like other pages (about's --line is white-10%) */
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.about-page .site-header.scrolled .phone-btn:hover { border-color: var(--gold); color: var(--gold); }
.about-page .site-header.scrolled .nav-toggle span { background: var(--ink); }

/* =========================================================
   HERO / BANNER
   ========================================================= */
.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;              /* rotating text centered vertically */
  overflow: hidden;
  color: #fff;
  background: #1a1a1d;               /* fallback before the video loads */
}
.about-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.about-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.6) 100%);
  z-index: 1;
}
.about-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
/* rotating headline — lines stacked, each fades up */
.about-rotator { position: relative; min-height: 150px; }
.about-rotator .rot-line {
  position: absolute;
  left: 0; bottom: 0;
  margin: 0;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.25;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 3px 26px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
}
.about-rotator .rot-line.is-active { opacity: 1; transform: translateY(0); }

.about-hero .scroll-down {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.about-hero .scroll-down span { display: block; font-size: 18px; margin-top: 6px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================
   Section shells (dark)
   ========================================================= */
.about-page .sec { padding: 96px 0; }
.about-page .sec-line { border-top: 1px solid var(--line); }

.about-page .overline-sm {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: none;              /* keep "Sustainability" as written, not all-caps */
  color: var(--gold-2);
  margin-bottom: 20px;
}
.about-page .h-center { text-align: center; }
.about-page .h-center h2 {
  font-weight: 300;
  font-size: 40px;
  color: var(--head);
  margin: 0;
  letter-spacing: .5px;
}

/* ---------- Intro: 25 years (2-col) ---------- */
.about-page .ab-intro-sec {
  min-height: 648px;
  display: flex;
  align-items: center;
  padding: 50px 0;
  background: #121212;
}
.ab-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  width: 100%;
}
/* push the description down so it lines up with "ความเชื่อมั่น และประสบการณ์" */
.ab-intro-body { padding-top: 132px; }
.ab-eyebrow {
  font-weight: 700;
  font-size: 50px;
  line-height: 1.2;
  letter-spacing: .5px;
  color: var(--gold-2);
  margin: 0;
  text-transform: uppercase;
}
.ab-eyebrow-th {
  margin-top: 16px;
  font-size: 35px;
  font-weight: 500;
  color: var(--head);
}
.ab-intro-body p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.9;
  color: #cdccc8;
  margin: 0 0 22px;
}
.ab-intro-body p:last-child { margin-bottom: 0; }

/* ---------- B&W band ---------- */
.ab-band { width: 100%; overflow: hidden; }
.ab-band img { width: 100%; height: 300px; object-fit: cover; display: block; filter: grayscale(100%); }

/* ---------- Gradient band behind KPI + statement + quotes ---------- */
.ab-mid { background: linear-gradient(180deg, #121212 0%, #2E1A0D 100%); }

/* CSR + Sustainability sit on solid #2E1A0D (continues the gradient's bottom) */
.about-page #csr,
.about-page #sustain { background: #2E1A0D; }

/* ---------- KPI ---------- */
.ab-kpi-sec { padding: 96px 0; }
.ab-kpi-title {
  text-align: center;
  font-weight: 500;
  font-size: 35px;                     /* match "ความเชื่อมั่น และประสบการณ์" */
  color: var(--head);
  margin: 0 0 46px;
}
.ab-kpi-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* top #2E1A0D at 60% (−40%), fading to fully transparent at the bottom; no border */
  background: linear-gradient(180deg, rgba(46, 26, 13, .6) 0%, rgba(46, 26, 13, 0) 100%);
  border-radius: 6px;
  padding: 48px 30px;
}
.ab-kpi { text-align: center; padding: 0 18px; position: relative; }
.ab-kpi + .ab-kpi::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: rgba(255, 255, 255, .12);
}
.ab-kpi-label { font-size: 18px; font-weight: 400; color: #c9c8c4; margin-bottom: 14px; }
.ab-kpi-num { font-weight: 600; font-size: 52px; line-height: 1; color: var(--gold-2); margin-bottom: 16px; }
.ab-kpi-num span { font-weight: 500; }
.ab-kpi-desc { font-size: 18px; font-weight: 400; color: var(--muted); line-height: 1.6; }

/* ---------- Statement heading (reused inside the exec section) ---------- */
.ab-statement {
  max-width: 560px;
  margin: 0;
  padding-left: 26px;
  border-left: 3px solid var(--gold-2);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.4;
  color: var(--head);
}

/* ---------- Executives: sticky heading (left) + scrolling profiles (right) ---------- */
.ab-exec { padding: 110px 0; }
.ab-exec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}
/* left column pins while the right column scrolls through both people */
.ab-exec-heading { position: sticky; top: 120px; align-self: start; }

.ab-exec-list { display: flex; flex-direction: column; gap: 150px; }
.ab-exec-item { max-width: 440px; }
.ab-exec-photo { max-width: 300px; margin-bottom: 30px; }
.ab-exec-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.ab-qmark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  height: 30px;
  color: var(--gold-2);
  display: block;
}
.ab-exec-item p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: #d5d4d0;
  margin: 0 0 24px;
}
.ab-quote-name { font-weight: 400; font-size: 20px; color: var(--gold-2); }
.ab-quote-role { font-weight: 400; font-size: 20px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-top: 4px; line-height: 1.3; }

/* motion: each profile fades up as it scrolls into view */
.has-motion .ab-exec-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.25,1);
}
.has-motion .ab-exec-item.reveal-in { opacity: 1; transform: none; }

/* ---------- Split (CSR / Sustainability) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split .split-media {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split .split-media img { width: 100%; height: 100%; object-fit: cover; }
.split .split-body h2 {
  font-weight: 500;
  font-size: 34px;
  color: var(--head);
  margin: 0 0 20px;
  line-height: 1.35;
}
.split .split-body p { font-size: 20px; font-weight: 400; color: #cdccc8; line-height: 1.8; margin: 0 0 22px; }
.split .pts { list-style: none; margin: 0; padding: 0; }
.split .pts li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 300;
  color: var(--body);
}
.split .pts li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold-2);
  border-radius: 50%;
}

/* ---------- CTA band ---------- */
.about-cta {
  text-align: center;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.about-cta h2 { font-weight: 300; font-size: 36px; color: var(--head); margin: 0 0 14px; }
.about-cta p { color: var(--muted); margin: 0 0 30px; }
.about-cta .btn-gold {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gold);
  color: #17130a;
  font-weight: 500;
  border-radius: 3px;
  letter-spacing: .5px;
  transition: background .2s;
}
.about-cta .btn-gold:hover { background: var(--gold-2); }

/* Footer uses the shared dark (#1D1008) style from style.css on every page */

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .about-page .ab-intro-sec { min-height: 0; }
  .ab-intro { grid-template-columns: 1fr; gap: 26px; }
  .ab-intro-body { padding-top: 0; }
  .ab-eyebrow { font-size: 38px; }
  .ab-eyebrow-th { font-size: 28px; }
  .ab-statement { font-size: 30px; max-width: none; }
  /* exec section: stack, disable the sticky pin */
  .ab-exec-grid { grid-template-columns: 1fr; gap: 44px; }
  .ab-exec-heading { position: static; top: auto; }
  .ab-exec-list { gap: 80px; }
  .ab-exec-item { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: -1; }
  .about-rotator .rot-line { font-size: 40px; }
}

@media (max-width: 820px) {
  /* mobile dropdown menu: white with dark links */
  .about-page .main-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0,0,0,.12);
  }
  .about-page .main-nav a { color: var(--ink); border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  /* KPI: 2 per row, drop the vertical dividers */
  .ab-kpi-box { grid-template-columns: 1fr 1fr; gap: 40px 0; padding: 40px 20px; }
  .ab-kpi + .ab-kpi::before { display: none; }
}

@media (max-width: 600px) {
  .about-page .sec { padding: 62px 0; }
  .about-page .ab-intro-sec { padding: 90px 0 70px; }
  .about-hero { min-height: 92vh; }
  .about-rotator { min-height: 118px; }
  .about-rotator .rot-line { font-size: 29px; }
  .ab-eyebrow { font-size: 30px; }
  .ab-eyebrow-th { font-size: 24px; }
  .ab-kpi-title { font-size: 30px; }
  .ab-kpi-num { font-size: 42px; }
  .ab-quote-name, .ab-quote-role { font-size: 18px; }
  .ab-statement { font-size: 23px; padding-left: 18px; }
  .ab-band img { height: 200px; }
}
