/* brand.css — ยกมาจาก ll-accounting-landing-page / static/css/main.css @ fb94899

   ห้ามแก้ไฟล์นี้ในฝั่ง bank-reconcile เด็ดขาด — แก้ที่ต้นทางแล้วก๊อปทับ
   ทุกชิ้นคั่นด้วยคอมเมนต์ marker บรรทัดเดียวข้างล่าง และต้องเป็นข้อความต่อเนื่องของต้นทาง
   ตรวจว่ายังตรงกัน: python scripts/check_brand_css.py ~/01_SAKOW/ll-accounting-landing-page

   ของเฉพาะแอพนี้อยู่ที่ app.css ไม่ใช่ที่นี่ */

/* @from main.css */
/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Brand.
     `--brand-blue` and `--brand-gold` are the identity colours (reference site and
     L&L respectively). Neither reaches 4.5:1 against white text — #3d9be9 is 2.97,
     #b89300 is 2.91 — so they are used for fills, borders and large type only.
     The `-ink` variants are the darkened versions used wherever white text or a
     link sits on top, keeping the palette WCAG AA. */
  --brand-navy: #1a395a;
  --brand-navy-dark: #12283f;
  --brand-blue: #3d9be9;
  --brand-blue-ink: #1f6fb2;       /* 5.28:1 with white */
  --brand-blue-ink-dark: #155f9e;  /* 6.64:1 with white */
  --brand-gold: #b89300;
  --brand-gold-ink: #8a6f00;       /* 4.82:1 with white */
  --brand-gold-ink-dark: #7d6400;  /* 5.68:1 with white */

  /* Neutrals */
  --neutral-lightest: #f4f5f8;
  --neutral-lighter: #d8ebfb;
  --neutral-light: #9ecdf4;
  --neutral: #e6e8ee;
  --neutral-dark: #61646c;
  --white: #fff;

  /* Semantic */
  --text-primary: #23222b;
  --text-secondary: #61646c;
  --text-inverse: #fff;
  --bg-primary: #fff;
  --bg-secondary: var(--neutral-lightest);
  --bg-navy: var(--brand-navy);
  --border: #e2e5ea;
  --link: var(--brand-blue-ink);

  /* Spacing scale */
  --s-0-25: .25rem;
  --s-0-5: .5rem;
  --s-0-75: .75rem;
  --s-1: 1rem;
  --s-1-25: 1.25rem;
  --s-1-5: 1.5rem;
  --s-2: 2rem;
  --s-2-5: 2.5rem;
  --s-3: 3rem;
  --s-4: 4rem;
  --s-5: 5rem;
  --s-6: 6rem;

  /* Section rhythm */
  --section-pad: var(--s-6);
  --section-pad-sm: var(--s-3);

  /* Radius */
  --radius-sm: .375rem;
  --radius: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px #0000001a, 0 1px 2px #0000000f;
  --shadow: 0 4px 24px #96a3b514;
  --shadow-md: 0 4px 8px -2px #0000001a, 0 2px 4px -2px #0000000f;
  --shadow-lg: 0 12px 16px -4px #00000014, 0 4px 6px -2px #00000008;
  --shadow-xl: 0 20px 24px -4px #00000014, 0 8px 8px -4px #00000008;

  /* Type */
  --font-sans: "Archivo", "Noto Sans Thai", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;

  --transition: all .2s ease;
}


/* @from main.css */
/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The mobile nav drawer parks itself off-canvas to the right; without this it
     widens the document and the whole page scrolls sideways. `clip` is used instead
     of `hidden` because `hidden` on the root would break the sticky header. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }


/* @from main.css */
/* --- Type --------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-1);
  font-weight: 500;
  color: var(--text-primary);
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.15; }
h2, .h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); line-height: 1.2; }
h3, .h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.25; }
h4, .h4 { font-size: 1.5rem; line-height: 1.3; }
h5, .h5 { font-size: 1.25rem; line-height: 1.4; }
h6, .h6 { font-size: 1.125rem; line-height: 1.4; }

p { margin: 0 0 var(--s-1); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-navy); text-decoration: underline; }

strong, b { font-weight: 600; }

.lead { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; }
.text-muted { color: var(--text-secondary); }
.text-gold { color: var(--brand-gold); }
.text-navy { color: var(--brand-navy); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  margin-bottom: var(--s-0-75);
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-2) 0; }


/* @from main.css */
/* --- Accessibility ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: var(--s-1);
  top: -100px;
  z-index: 200;
  padding: var(--s-0-75) var(--s-1-25);
  background: var(--brand-navy);
  color: var(--white);
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: var(--s-1); color: var(--white); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* @from main.css */
/* --- Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-1-25);
}
.container--narrow { max-width: var(--container-narrow); }

/* Reference rhythm: 3rem on mobile, 6rem from tablet up. */
.section { padding-block: var(--section-pad-sm); }
.section--tight { padding-block: var(--s-2-5); }

@media (min-width: 768px) {
  .section { padding-block: var(--section-pad); }
  .section--tight { padding-block: var(--s-3); }
}
.section--alt { background: var(--bg-secondary); }
.section--navy { background: var(--bg-navy); color: var(--text-inverse); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5, .section--navy h6 { color: var(--text-inverse); }
.section--navy .lead, .section--navy .text-muted { color: #c5d3e2; }
.section--navy a { color: var(--neutral-light); }

.section-header { max-width: 46rem; margin-bottom: var(--s-2-5); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header p { color: var(--text-secondary); font-size: 1.0625rem; }

.grid { display: grid; gap: var(--s-1-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.stack > * + * { margin-top: var(--s-1); }


/* @from main.css */
/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-0-5);
  padding: var(--s-0-75) var(--s-1-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-blue-ink);
  border-color: var(--brand-blue-ink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brand-blue-ink-dark);
  border-color: var(--brand-blue-ink-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--navy {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--brand-navy-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn--gold {
  background: var(--brand-gold-ink);
  border-color: var(--brand-gold-ink);
  color: var(--white);
}
.btn--gold:hover { background: var(--brand-gold-ink-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}
.btn--outline:hover { background: var(--brand-navy); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--brand-navy); }
.btn--light:hover { background: var(--neutral-lightest); color: var(--brand-navy); }

.btn--lg { padding: var(--s-1) var(--s-2); font-size: 1.0625rem; }
.btn--sm { padding: var(--s-0-5) var(--s-1); font-size: .9375rem; }
.btn--block { width: 100%; }

.btn .icon { flex: none; }


/* @from main.css */
/* --- Cards -------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--neutral-lightest); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: var(--s-1-5); display: flex; flex-direction: column; flex: 1; gap: var(--s-0-75); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: var(--neutral-lighter);
  color: var(--brand-navy);
  flex: none;
}

.card__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.4; margin: 0; }
.card__title a { color: var(--text-primary); }
.card__title a:hover { color: var(--brand-blue-ink); text-decoration: none; }

.card__text { color: var(--text-secondary); font-size: .9688rem; margin: 0; flex: 1; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-0-25);
  font-weight: 500;
  font-size: .9375rem;
  margin-top: auto;
}
.card__link .icon { transition: transform .2s; }
.card__link:hover { text-decoration: none; }
.card__link:hover .icon { transform: translateX(3px); }

/* Whole card clickable, link still keyboard-reachable */
.card--link { position: relative; }
.card--link .card__title a::after { content: ""; position: absolute; inset: 0; }


/* @from main.css */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
}

/* `backdrop-filter` is desktop-only on purpose. A non-none backdrop-filter makes the
   header a containing block for its `position: fixed` descendants, which collapsed the
   mobile nav drawer into the 80px header box instead of the full viewport. The nav is
   only a fixed drawer below 1024px, so the frosted effect is safe from there up. */
@media (min-width: 1024px) {
  .site-header { backdrop-filter: blur(10px); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  min-height: var(--header-h);
  padding-block: var(--s-0-5);
}

.site-logo { display: inline-flex; align-items: center; gap: var(--s-0-75); flex: none; }
.site-logo img { height: 52px; width: auto; }
.site-logo__text { font-weight: 600; font-size: 1rem; color: var(--brand-navy); line-height: 1.25; }

/* @from main.css */
/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--brand-navy-dark);
  color: #b9c8d8;
  padding-top: var(--s-4);
  font-size: .9375rem;
}
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.0625rem; font-weight: 600; margin-bottom: var(--s-1); }
.site-footer a { color: #b9c8d8; }
.site-footer a:hover { color: var(--white); text-decoration: none; }

.footer-grid {
  display: grid;
  gap: var(--s-2-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding-bottom: var(--s-3);
}
.footer-col--brand { grid-column: span 1; }
@media (min-width: 1024px) { .footer-col--brand { grid-column: span 1; max-width: 24rem; } }

.footer-logo img { height: 64px; width: auto; margin-bottom: var(--s-1); }

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: var(--s-0-5); }
.footer-list a { display: inline-flex; align-items: flex-start; gap: var(--s-0-5); }

.footer-contact li { display: flex; align-items: flex-start; gap: var(--s-0-75); }
.footer-contact .icon { flex: none; margin-top: 3px; color: var(--neutral-light); }

.footer-office + .footer-office { margin-top: var(--s-1-25); }
.footer-office strong { color: var(--white); display: block; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid #ffffff1f;
  padding-block: var(--s-1-25);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-0-75);
  font-size: .875rem;
}

/* @from main.css */
@media print {
  .site-header, .topbar, .site-footer, .float-contact, .hero__nav, .hero__dots { display: none !important; }
}
