/* ============================================================
   Albert Academy — company + trainer profile page
   The corporate credibility page Thai HR/L&D reads before booking.

   DESIGN CONTRACT
   ---------------
   * LIGHT conversion style (Albert, 2026-08-25): cream base, dark text,
     gold accents. Black/navy ONLY as bookends (nav, method band, footer).
     All-black-and-gold long-form is hard to read and is not used here.
   * Component DNA is inherited from ai.albert-academy.com — the gold pill
     label, the short gold rule under a headline, pill buttons, card grids —
     so the two properties read as one company. The PALETTE is inverted
     (cream ground instead of navy ground) per the rule above.
   * Brand v1 typography: Oswald for English caps, Anuphan for Thai body and
     headings, Kanit Black for the ONE loudest hook (the hero h1) and
     nowhere else. Kanit is not the general brand font.
   * Mobile-first. Base styles target 390px; media queries add up from there.

   CONTRAST NOTE — do not "fix" this back.
   #D4A935 gold on cream is ~2.2:1 and fails as body text. Gold is used for
   FILLS, rules and icons; gold TEXT on light ground uses --gold-ink
   (#8A6510, ~5.1:1). The bright gold only carries text on dark ground.
   ============================================================ */

/* ---------- self-hosted brand fonts (no Google Fonts runtime dep) ---------- */
@font-face{
  font-family:'Anuphan';
  src:url('../fonts/Anuphan.ttf') format('truetype-variations'),
      url('../fonts/Anuphan.ttf') format('truetype');
  font-weight:100 700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Oswald';
  src:url('../fonts/Oswald.ttf') format('truetype-variations'),
      url('../fonts/Oswald.ttf') format('truetype');
  font-weight:200 700; font-style:normal; font-display:swap;
}
/* Kanit Black 900 — loudest hook only. Static file, single weight. */
@font-face{
  font-family:'Kanit Black';
  src:url('../fonts/Kanit-Black.ttf') format('truetype');
  font-weight:900; font-style:normal; font-display:swap;
}

:root{
  /* ground */
  --cream:#F7F3E9;
  --cream-2:#F1EADA;      /* alternating section band */
  --paper:#FFFFFF;        /* cards, logo tiles */
  --navy:#0B0F1A;         /* bookends only */
  --navy-2:#0E1526;

  /* ink */
  --ink:#171310;
  --ink-2:#4A423A;        /* body copy on cream */
  --ink-3:#7A7167;        /* captions, meta */

  /* gold */
  --gold:#D4A935;         /* fills, rules, icons */
  --gold-soft:#E6C463;
  --gold-ink:#8A6510;     /* gold used as TEXT on light ground */

  --line:#E0D7C3;         /* hairline on cream */
  --line-2:rgba(212,169,53,.30);

  --max:1120px;
  --radius:16px;
  --shadow:0 12px 34px rgba(23,19,16,.08);
  --shadow-lift:0 18px 44px rgba(23,19,16,.14);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Anuphan','Sarabun',Tahoma,Arial,sans-serif;
  font-weight:400;
  background:var(--cream);
  color:var(--ink-2);
  line-height:1.72;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:'Anuphan',Tahoma,Arial,sans-serif;font-weight:600;line-height:1.3;color:var(--ink)}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;display:block}
::selection{background:var(--gold);color:var(--navy)}

/* Accessibility: a visible focus ring everywhere, not just on inputs. */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid var(--gold-ink);outline-offset:2px;border-radius:6px;
}

.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* English set in caps, Oswald — the brand's English voice. */
.en{
  font-family:'Oswald',Arial,sans-serif;
  text-transform:uppercase;letter-spacing:.14em;font-weight:500;
}

/* ---------- gold pill section label (from the ai. design system) ---------- */
.pill{
  display:inline-block;
  font-family:'Oswald',Arial,sans-serif;
  font-size:.7rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--navy);
  background:linear-gradient(135deg,var(--gold),var(--gold-soft));
  padding:6px 16px;border-radius:999px;margin-bottom:16px;
}
.pill.ghost{
  color:var(--gold-ink);background:transparent;border:1px solid var(--line-2);
}
.pill.on-dark{color:var(--navy)}

/* short gold rule under a headline */
.rule{width:54px;height:3px;background:var(--gold);border-radius:2px;margin:16px 0 0}
.rule.center{margin-left:auto;margin-right:auto}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:'Anuphan',Tahoma,Arial,sans-serif;font-weight:600;
  font-size:1rem;line-height:1.2;
  padding:15px 28px;border-radius:999px;border:0;cursor:pointer;
  text-align:center;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.btn-gold{
  background:linear-gradient(135deg,var(--gold),var(--gold-soft));
  color:var(--navy);
  box-shadow:0 10px 26px rgba(212,169,53,.34);
}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(212,169,53,.46)}
.btn-ink{background:var(--navy);color:#fff}
.btn-ink:hover{transform:translateY(-2px);background:var(--navy-2)}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--gold);background:rgba(212,169,53,.09)}
.btn-line{background:#06C755;color:#fff;box-shadow:0 10px 26px rgba(6,199,85,.28)}
.btn-line:hover{transform:translateY(-2px)}
.btn-block{display:flex;width:100%}
.btn:disabled{cursor:not-allowed;transform:none}

/* ---------- nav (dark bookend) ---------- */
header.nav{
  position:sticky;top:0;z-index:60;
  background:rgba(11,15,26,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(212,169,53,.18);
}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:62px;gap:14px}
.wordmark{
  font-family:'Oswald',Arial,sans-serif;font-weight:600;
  letter-spacing:.17em;font-size:.86rem;text-transform:uppercase;
  color:#fff;white-space:nowrap;
}
.wordmark .g{color:var(--gold)}
.nav-links{display:none;gap:26px;font-size:.94rem;color:#C9C3BA}
.nav-links a:hover{color:var(--gold)}
.nav-in .btn{padding:10px 18px;font-size:.88rem}
.nav-cta-sm{display:inline-flex}

/* ---------- sections ---------- */
section{padding:62px 0}
.band{background:var(--cream-2)}
.band-dark{background:var(--navy);color:#C9C3BA}
.band-dark h2,.band-dark h3,.band-dark h4{color:#fff}
.sec-head{margin-bottom:34px}
.sec-head.center{text-align:center}
.sec-head h2{font-size:1.65rem;letter-spacing:-.01em}
.sec-head .kicker{
  margin-top:14px;font-size:1rem;color:var(--ink-3);max-width:62ch;
}
.band-dark .sec-head .kicker{color:#A9A29A}
.sec-head.center .kicker{margin-left:auto;margin-right:auto}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1200px 520px at 85% 0%,rgba(212,169,53,.16),transparent 62%),
    linear-gradient(180deg,#FBF8F0 0%,var(--cream) 70%);
  padding:38px 0 0;
}
.hero-grid{display:grid;gap:26px}
.hero-copy{max-width:640px}
.hero h1{
  font-family:'Kanit Black','Anuphan',Tahoma,Arial,sans-serif;
  font-weight:900;
  font-size:2.5rem;line-height:1.08;letter-spacing:-.015em;
  color:var(--ink);
  margin:6px 0 0;
}
.hero h1 .g{
  background:linear-gradient(120deg,#A8811F,var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-claim{
  margin-top:20px;font-size:1.06rem;font-weight:600;color:var(--ink);
  line-height:1.6;
}
.hero-sub{margin-top:14px;font-size:1rem;color:var(--ink-2);max-width:54ch}
.hero-cta{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.hero-trust{
  display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:24px;
  font-size:.84rem;color:var(--ink-3);
}
.hero-trust span{display:inline-flex;align-items:center;gap:7px}
.hero-trust svg{flex:none;color:var(--gold-ink)}

/* The portrait is a 900x1746 cut-out — an aspect ratio of roughly 1:1.94.
   Sizing it by WIDTH is the trap: at 44vw on a 1440px screen it resolves to
   ~1230px tall and shoves the entire hero copy below the fold. So it is
   always sized by HEIGHT, with width:auto, and the height is capped against
   the viewport. Caught on the first desktop render. */
.hero-portrait{
  position:relative;justify-self:center;width:100%;
  display:flex;align-items:flex-end;justify-content:center;
}
.hero-portrait::before{
  content:'';position:absolute;inset:auto 0 0 0;height:74%;
  background:radial-gradient(60% 60% at 50% 100%,rgba(212,169,53,.22),transparent 70%);
  border-radius:50%;
}
.hero-portrait img{
  position:relative;
  height:clamp(340px,54vh,460px);width:auto;max-width:100%;
  object-fit:contain;object-position:bottom;
  filter:drop-shadow(0 24px 40px rgba(23,19,16,.22));
}

/* ============================================================
   TRAINER PROFILE
   ============================================================ */
.profile-grid{display:grid;gap:28px}
.profile-lead{font-size:1.04rem;color:var(--ink-2)}
.profile-lead strong{color:var(--ink);font-weight:600}
.claim-box{
  margin:22px 0;padding:20px 22px;background:var(--paper);
  border:1px solid var(--line);border-right:4px solid var(--gold);
  border-radius:14px;box-shadow:var(--shadow);
}
.claim-box p{font-size:1.02rem;font-weight:600;color:var(--ink);line-height:1.65}
.claim-box .cap{
  display:block;margin-top:8px;font-size:.78rem;font-weight:400;color:var(--ink-3);
  font-family:'Oswald',Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em;
}

/* credentials — placeholder until Albert supplies them */
.creds{margin-top:8px}
.creds h3{font-size:1.05rem;margin-bottom:14px}
.cred-list{list-style:none;display:grid;gap:10px}
.cred-list li{
  display:flex;gap:11px;align-items:flex-start;
  padding:13px 16px;background:var(--paper);
  border:1px solid var(--line);border-radius:12px;font-size:.95rem;
}
.cred-list li svg{flex:none;margin-top:4px;color:var(--gold-ink)}
.cred-pending{
  border-style:dashed;background:transparent;color:var(--ink-3);font-size:.9rem;
}

/* ============================================================
   PILLARS (จุดต่าง)
   ============================================================ */
.pillars{display:grid;gap:16px}
.pillar{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 22px;box-shadow:var(--shadow);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.pillar:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift);border-color:var(--line-2)}
.pillar .ico{
  width:46px;height:46px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(212,169,53,.2),rgba(212,169,53,.08));
  border:1px solid var(--line-2);color:var(--gold-ink);margin-bottom:16px;
}
.pillar h3{font-size:1.16rem;margin-bottom:6px}
.pillar .en-sub{
  font-family:'Oswald',Arial,sans-serif;text-transform:uppercase;
  letter-spacing:.13em;font-size:.68rem;color:var(--gold-ink);
  font-weight:600;margin-bottom:11px;
}
.pillar p{font-size:.96rem}

/* ============================================================
   METHOD (dark bookend band)
   ============================================================ */
.method-grid{display:grid;gap:18px;margin-top:6px}
.method-step{
  background:rgba(255,255,255,.04);border:1px solid rgba(212,169,53,.2);
  border-radius:var(--radius);padding:24px 22px;
}
.method-step .n{
  font-family:'Oswald',Arial,sans-serif;font-size:.82rem;letter-spacing:.2em;
  color:var(--gold);font-weight:600;
}
.method-step h3{font-size:1.1rem;margin:10px 0 8px}
.method-step p{font-size:.95rem;color:#A9A29A}
.signature{
  margin-top:26px;padding:24px 22px;border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(212,169,53,.16),rgba(212,169,53,.05));
  border:1px solid rgba(212,169,53,.34);
}
.signature .pill{margin-bottom:12px}
.signature h3{font-size:1.14rem;margin-bottom:8px}
.signature p{color:#BDB6AC;font-size:.96rem}

/* ============================================================
   COURSES
   ============================================================ */
.courses{display:grid;gap:16px}
.course{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 22px;box-shadow:var(--shadow);position:relative;overflow:hidden;
  display:flex;flex-direction:column;
}
.course::before{
  content:'';position:absolute;inset:0 auto 0 0;width:4px;
  background:linear-gradient(180deg,var(--gold),rgba(212,169,53,.25));
}
.course .tag{
  display:inline-block;font-family:'Oswald',Arial,sans-serif;font-size:.66rem;
  letter-spacing:.18em;text-transform:uppercase;font-weight:600;
  color:var(--gold-ink);border:1px solid var(--line-2);
  padding:4px 11px;border-radius:999px;margin-bottom:13px;align-self:flex-start;
}
.course h3{font-size:1.2rem;margin-bottom:4px}
.course .flag{font-size:.86rem;color:var(--ink-3);margin-bottom:14px}
.course dl{display:grid;gap:12px;margin-top:auto}
.course dt{
  font-family:'Oswald',Arial,sans-serif;font-size:.66rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-3);font-weight:600;margin-bottom:3px;
}
.course dd{font-size:.95rem;color:var(--ink-2)}
.course dd strong{color:var(--ink);font-weight:600}
.course-note{
  margin-top:22px;font-size:.9rem;color:var(--ink-3);text-align:center;
}

/* ============================================================
   CLIENTS — logo wall + real workshop photos
   ============================================================ */
/* Flex, not grid, on purpose: there are SEVEN logos. A 4-column grid leaves
   a short trailing row jammed to the left; flex-wrap + justify-content:center
   centres the 4+3 and reads as a deliberate arrangement. Every tile still
   shares one width and one height, which is what keeps the wall even. */
.logo-wall{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;
}
.logo-tile{
  flex:0 0 calc(50% - 6px);
  background:var(--paper);border:1px solid var(--line);border-radius:12px;
  aspect-ratio:220/100;display:grid;place-items:center;padding:14px;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.logo-tile:hover{border-color:var(--line-2);box-shadow:var(--shadow);transform:translateY(-2px)}
/* The source files are pre-normalised to a 440x200 white canvas, so every
   logo already sits on an identical ground. object-fit:contain then keeps
   optical weight even across wildly different original aspect ratios. */
.logo-tile img{width:100%;height:100%;object-fit:contain}

.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:34px}
.gallery figure{
  margin:0;border-radius:12px;overflow:hidden;background:var(--cream-2);
  border:1px solid var(--line);aspect-ratio:4/3;
}
.gallery img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .35s ease;
}
.gallery figure:hover img{transform:scale(1.05)}
.gallery-note{
  margin-top:16px;font-size:.84rem;color:var(--ink-3);text-align:center;
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
}
.gallery-note svg{color:var(--gold-ink);flex:none}

/* ============================================================
   CONTACT + ENQUIRY FORM
   ============================================================ */
.contact-grid{display:grid;gap:24px}
.channels{display:grid;gap:12px}
.channel{
  display:flex;align-items:center;gap:14px;padding:16px 18px;
  background:var(--paper);border:1px solid var(--line);border-radius:14px;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.channel:hover{border-color:var(--gold);transform:translateY(-2px);box-shadow:var(--shadow)}
.channel .ic{
  width:42px;height:42px;border-radius:12px;flex:none;display:grid;place-items:center;color:#fff;
}
.ic-line{background:#06C755}
.ic-fb{background:#1877F2}
.ic-mail{background:var(--navy)}
/* display:block — these are two stacked lines, not a run-on sentence. As
   inline spans they rendered as "LINE Official Account @albertacademy — ..."
   on one wrapping line. */
.channel .t{display:block;font-weight:600;color:var(--ink);font-size:.98rem;line-height:1.4}
.channel .s{display:block;font-size:.85rem;color:var(--ink-3);line-height:1.45}

.form-card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 20px;box-shadow:var(--shadow);
}
.form-card h3{font-size:1.15rem}
.form-card .hint{font-size:.88rem;color:var(--ink-3);margin:6px 0 20px}
.field{margin-bottom:15px}
.field label{
  display:block;font-size:.88rem;font-weight:600;color:var(--ink);margin-bottom:6px;
}
.field label .req{color:#C2410C;font-weight:400}
.field input,.field textarea,.field select{
  width:100%;font-family:inherit;font-size:1rem;color:var(--ink);
  background:#FCFAF5;border:1px solid var(--line);border-radius:11px;
  padding:13px 14px;transition:border-color .15s ease,box-shadow .15s ease;
}
.field textarea{min-height:104px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,169,53,.16);outline:none;
}
.field .err{display:none;font-size:.84rem;color:#B91C1C;margin-top:6px}
.field.has-err input,.field.has-err textarea{border-color:#B91C1C;background:#FEF6F5}
.field.has-err .err{display:block}
/* honeypot — off-screen, never display:none (bots skip hidden fields) */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

.form-msg{display:none}
.form-msg.show{
  display:block;margin-top:16px;padding:16px 18px;border-radius:12px;font-size:.94rem;
}
.form-msg.error{background:#FFF7ED;border:1px solid #F5C88B;color:#7C3A06}
.form-msg.ok{background:#F0FAF3;border:1px solid #A7D8B8;color:#14532D}
.form-msg .btn{margin-top:14px}
.privacy{margin-top:14px;font-size:.79rem;color:var(--ink-3);line-height:1.6}

/* ---------- footer ---------- */
footer.ft{background:var(--navy);color:#8D867E;padding:36px 0;font-size:.86rem}
.ft-in{display:grid;gap:16px}
.ft .wordmark{font-size:.92rem}
.ft-links{display:flex;flex-wrap:wrap;gap:14px 22px}
.ft-links a:hover{color:var(--gold)}

/* ============================================================
   REVEAL ON SCROLL — opt-in, and always visible without JS.
   ============================================================ */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  *{animation:none!important;scroll-behavior:auto!important}
}
/* If JS never runs, nothing may stay invisible. */
.no-js .reveal{opacity:1;transform:none}

/* ============================================================
   BREAKPOINTS  (mobile-first: base = 390px)
   ============================================================ */
@media (min-width:560px){
  .hero-cta{flex-direction:row;flex-wrap:wrap}
  .hero-cta .btn{flex:0 0 auto}
  .logo-wall{gap:14px}
  .logo-tile{flex:0 0 calc(33.333% - 10px)}
  .gallery{grid-template-columns:repeat(3,1fr);gap:12px}
  .pillars,.courses{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:820px){
  section{padding:78px 0}
  .sec-head h2{font-size:2rem}
  .hero{padding:52px 0 0}
  .hero h1{font-size:3.3rem}
  .hero-grid{grid-template-columns:1.08fr .92fr;align-items:end;gap:34px}
  .hero-portrait{align-self:end}
  /* Height-capped so the headline, claim and both CTAs stay above the fold
     on a 900px-tall laptop. Never re-express this as a width. */
  .hero-portrait img{height:clamp(420px,64vh,580px)}
  .nav-links{display:flex}
  .profile-grid{grid-template-columns:1.15fr .85fr;gap:44px;align-items:start}
  .method-grid{grid-template-columns:repeat(3,1fr)}
  .pillars{grid-template-columns:repeat(3,1fr);gap:20px}
  .courses{grid-template-columns:repeat(2,1fr);gap:20px}
  .logo-tile{flex:0 0 calc(25% - 15px)}
  .contact-grid{grid-template-columns:.85fr 1.15fr;gap:34px;align-items:start}
  .form-card{padding:30px 28px}
  .ft-in{grid-template-columns:1fr auto;align-items:center}
}
@media (min-width:1100px){
  .hero h1{font-size:3.7rem}
  .gallery{grid-template-columns:repeat(3,1fr);gap:14px}
}
