/*
Theme Name: STA Account Solution
Theme URI: https://staaccount.com/
Author: STA Account Solution Co., Ltd.
Description: ธีมเว็บไซต์สำนักงานบัญชี STA Account Solution — หน้าเดียวครบทุกส่วน (บริการ เกี่ยวกับเรา บทความ ดาวน์โหลด ติดต่อ) รองรับมือถือ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sta-account
*/

:root {
  --navy: #1F3864;
  --navy-2: #2B4A80;
  --navy-dark: #152847;
  --gold: #C9A84C;
  --gold-2: #E0C474;
  --card: #EDF1F8;
  --ink: #1B2333;
  --muted: #5B6578;
  --line: #DCE3EF;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 56, 100, .10);
  --shadow-lg: 0 20px 50px rgba(21, 40, 71, .18);
  --max: 1200px;
  --head: 'Prompt', 'Sarabun', sans-serif;
  --body: 'Sarabun', 'Prompt', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--card); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  color: #9A7A22;
  background: rgba(201, 168, 76, .12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 500; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .25s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { background: var(--gold-2); color: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,168,76,.35); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn--line { background: #06C755; color: #fff; }
.btn--line:hover { background: #05a948; color: #fff; }

/* Top bar */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.8); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold); }
.topbar__items { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__items span, .topbar__items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__hours { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31,56,100,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img, .brand .custom-logo { height: 52px; width: auto; }
.brand__mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 19px; }
.brand__tag { font-size: 13px; color: var(--muted); }

.nav ul { display: flex; gap: 6px; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-family: var(--head); font-size: 15px; font-weight: 500; color: var(--ink);
}
.nav a:hover, .nav a.is-active { color: var(--navy); background: var(--card); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 10px 22px; font-size: 15px; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff;
  padding: 110px 0 130px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; right: -160px; top: -120px; border: 70px solid rgba(255,255,255,.04); }
.hero::after { width: 380px; height: 380px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(201,168,76,.22), transparent 70%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--gold-2); margin-bottom: 24px;
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 19px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; padding: 32px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.hero-card ul li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.88);
}
.hero-card ul li:last-child { border-bottom: 0; }
.hero-card .check {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-dark);
  display: grid; place-items: center; margin-top: 2px;
}
.hero-card .check svg { width: 14px; height: 14px; }

.stats {
  position: relative; z-index: 2; margin-top: -64px;
}
.stats__grid {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 16px;
}
.stat { text-align: center; padding: 8px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--head); font-size: 36px; color: var(--navy); line-height: 1.1; }
.stat b span { color: var(--gold); }
.stat small { color: var(--muted); font-size: 15px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all .3s; position: relative; overflow: hidden;
}
.service::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--gold); transition: width .35s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { width: 100%; }
.service__icon {
  width: 60px; height: 60px; border-radius: 16px; background: var(--card); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 22px; transition: all .3s;
}
.service:hover .service__icon { background: var(--navy); color: var(--gold); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 21px; }
.service p { color: var(--muted); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__media .placeholder {
  border-radius: 24px; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: grid; place-items: center; color: var(--gold); font-family: var(--head); font-size: 28px; font-weight: 700;
}
.about__exp {
  position: absolute; right: -20px; bottom: -28px; background: var(--gold); color: var(--navy-dark);
  border-radius: 20px; padding: 22px 28px; box-shadow: var(--shadow-lg); text-align: center;
}
.about__exp b { display: block; font-family: var(--head); font-size: 42px; line-height: 1; }
.about__exp small { font-weight: 600; font-size: 15px; }
.about h2 { font-size: clamp(28px, 3.2vw, 38px); }
.about__lead { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 32px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--card); color: var(--navy);
  display: grid; place-items: center;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h4 { font-size: 16px; margin: 0 0 2px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Value band */
.value-band {
  background: var(--navy); color: #fff; border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.value-band::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  right: -100px; top: -140px; border: 50px solid rgba(201,168,76,.12);
}
.value-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.value-band h2 em { font-style: normal; color: var(--gold); }
.value-band p { color: rgba(255,255,255,.8); }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.value-list li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; align-items: center;
  font-family: var(--head); font-size: 15px;
}
.value-list li:last-child:nth-child(odd) { grid-column: span 2; }
.value-list svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 22px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s;
}
.post-card:hover { transform: translateY(-6px); }
.post-card__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--navy-2)); position: relative; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(201,168,76,.9); }
.post-card__thumb .ph svg { width: 56px; height: 56px; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.read-more { font-family: var(--head); font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }

/* Downloads */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  font-family: var(--head); font-size: 15px; padding: 9px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dl {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px; transition: all .25s;
}
.dl:hover { box-shadow: var(--shadow); border-color: transparent; }
.dl.is-hidden { display: none; }
.dl__type {
  flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--head); font-size: 12px; font-weight: 700; color: #fff;
}
.dl__type--pdf { background: #D9483B; }
.dl__type--xlsx { background: #1E7A45; }
.dl__type--docx { background: #2B5DB8; }
.dl__info { flex: 1; min-width: 0; }
.dl__info h4 { font-size: 16px; margin: 0; }
.dl__info small { color: var(--muted); font-size: 14px; }
.dl__btn {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--navy);
  display: grid; place-items: center; transition: all .2s;
}
.dl__btn:hover { background: var(--gold); color: var(--navy-dark); }
.dl__btn svg { width: 20px; height: 20px; }

/* Contact */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.ci {
  display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow);
}
.ci__icon {
  flex: 0 0 50px; height: 50px; border-radius: 14px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
}
.ci__icon svg { width: 22px; height: 22px; }
.ci h4 { font-size: 16px; margin: 0 0 2px; }
.ci p, .ci a { margin: 0; color: var(--muted); font-size: 16px; }
.ci a:hover { color: var(--gold); }
.contact-form {
  background: #fff; border-radius: 22px; padding: 36px; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 24px; }
.contact-form > p { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--head); font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input, .field select { height: 52px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31,56,100,.1);
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.map { margin-top: 40px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);
  padding: 64px 0;
}
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--navy-dark); font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 6px; }
.cta p { margin: 0; color: var(--navy); font-size: 18px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.72); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold); }
.site-footer li { margin-bottom: 10px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: rgba(255,255,255,.6); }
.footer-about { margin-top: 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 16px; margin-top: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Floating LINE */
.float-line {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #06C755; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(6,199,85,.4);
  transition: transform .25s;
}
.float-line:hover { transform: scale(1.08); color: #fff; }
.float-line svg { width: 30px; height: 30px; }

/* Inner pages */
.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 72px 0; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin: 0; }
.page-hero .meta { color: var(--gold-2); margin-top: 8px; }
.entry { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.entry h2 { font-size: 28px; margin-top: 1.6em; }
.entry h3 { font-size: 22px; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.4em; margin-bottom: 1em; list-style: revert; }
.entry img { border-radius: 14px; margin: 1.5em 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; }
.entry td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.archive-list { padding: 64px 0 96px; }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 8px 16px; border-radius: 10px; background: var(--card); }
.pagination .current { background: var(--navy); color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav, .header-cta .btn--navy { display: none; }
  .menu-toggle { display: block; }
  .nav.is-open {
    display: block; position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 24px 20px;
  }
  .nav.is-open ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.is-open a { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 110px; }
  .hero .container, .about, .contact, .value-band { grid-template-columns: 1fr; }
  .services-grid, .posts { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stat:nth-child(2) { border-right: 0; }
  .about__exp { right: 16px; }
  .value-band { padding: 40px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .topbar .hide-sm { display: none; }
  .services-grid, .posts, .downloads, .features, .value-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .value-list li:last-child:nth-child(odd) { grid-column: auto; }
  .brand__tag { display: none; }
  .hero-card { padding: 24px; }
  .contact-form { padding: 26px 20px; }
  .btn { padding: 12px 22px; }
}
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }
