/* ==========================================================================
   พัทธ์ธีรา การบัญชี — Pattheera Accounting
   Homepage stylesheet
   ========================================================================== */

:root {
  --bg: #fafcfd;
  --navy: #16324c;
  --blue: #1a9cd8;
  --border: #e2e9ee;
  --panel: #f2f9fd;
  --ink-1: #16324c;
  --ink-2: #4a5a68;
  --ink-3: #5a6b7d;
  --ink-4: #7b8a99;
  --ink-5: #9fb0bf;
  --star: #f5b942;
  --shell: 1240px;
  --gutter: 64px;
  --font-head: 'Prompt', sans-serif;
  --font-body: 'Sarabun', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--bg);
}

/* section separators */
.divider { border-bottom: 1px solid var(--border); }

/* ---------- Header / Nav ---------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.site-header .logo { height: 46px; width: auto; }

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-family: var(--font-head);
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--blue); }
.nav .is-active { color: var(--blue); font-weight: 500; }

.nav .nav-cta {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 9px 22px;
  border-radius: 99px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav .nav-cta:hover { background: var(--navy); color: #fff; }
.nav .nav-cta.is-active { border-color: var(--blue); color: var(--blue); }
.nav .nav-cta.is-active:hover { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity .15s, background .15s, color .15s;
}
.btn-solid { background: var(--navy); color: #fff; padding: 14px 30px; font-size: 15.5px; }
.btn-solid:hover { opacity: .9; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); padding: 14px 30px; font-size: 15.5px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Generic section layout ----------------------------------------- */
.section { padding: 76px var(--gutter); }

.split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}
.split.align-start { align-items: start; }

.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0;
}
.section-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-4);
  margin: 14px 0 0;
}

/* ---------- Hero ------------------------------------------------------------ */
.hero { padding: 96px var(--gutter) 84px; border-bottom: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--blue);
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 60px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0;
  max-width: 940px;
}
.hero h1 .accent { color: var(--blue); }

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 44px;
}
.hero-row p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-3);
  margin: 0;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }

.stats {
  display: flex;
  gap: 56px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-1);
}
.stat .label { font-size: 14.5px; color: var(--ink-4); }

/* ---------- Services list --------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 0; }
.service-row .idx { font-family: var(--font-head); font-size: 15px; color: var(--ink-5); }
.service-row .title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.service-row .title a { text-decoration: none; color: var(--ink-1); }
.service-row .title a:hover { color: var(--blue); }
.service-row .desc { font-size: 15.5px; line-height: 1.7; color: var(--ink-3); max-width: 560px; }
.service-row .price { font-size: 14px; color: var(--blue); font-family: var(--font-head); white-space: nowrap; }

/* ---------- Pricing --------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.plan { padding: 34px 28px; border-right: 1px solid var(--border); }
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--panel); }
.plan .head {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: center;
}
.plan.featured .head { color: var(--ink-1); }
.badge {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-family: var(--font-head);
  padding: 2px 9px;
  border-radius: 99px;
}
.plan .amount {
  margin: 12px 0 4px;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink-1);
}
.plan .meta { font-size: 13.5px; color: var(--ink-5); margin-bottom: 20px; }
.plan .features { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.note { font-size: 13.5px; color: var(--ink-5); margin: 14px 4px 0; }

/* ---------- Expertise grid -------------------------------------------------- */
.intro { font-size: 16px; line-height: 1.75; color: var(--ink-3); margin: 0 0 24px; max-width: 640px; }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.tile .thumb {
  height: 160px;
  background: linear-gradient(135deg, #eef5fa, #f6fafd);
  overflow: hidden;
}
.tile .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile .cap { padding: 16px 22px; font-family: var(--font-head); font-size: 16px; color: var(--ink-1); }

/* ---------- About ----------------------------------------------------------- */
.about-copy { max-width: 720px; }
.about-copy .lead {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}
.about-copy .lead a { text-decoration: none; color: var(--ink-1); }
.about-copy .lead a:hover { color: var(--blue); }
.about-copy p { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); margin: 0 0 16px; }
.about-copy p:last-child { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.step { padding: 22px 20px; border-right: 1px solid var(--border); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--font-head); font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.step .t { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.locale { font-size: 15px; color: var(--ink-4); margin: 20px 4px 0; }

/* ---------- Reviews --------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
}
.review .stars { color: var(--star); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; }
.review .who { font-family: var(--font-head); font-size: 14px; color: var(--ink-1); font-weight: 500; }

/* ---------- Final CTA ------------------------------------------------------- */
.cta { padding: 88px var(--gutter); text-align: center; }
.cta h2 {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 14px;
}
.cta .sub { font-size: 17px; color: var(--ink-3); margin: 0 0 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill {
  padding: 15px 34px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.pill.solid { background: var(--navy); color: #fff; }
.pill.ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.cta .hours { font-size: 14px; color: var(--ink-5); margin: 26px 0 0; }

/* ---------- Footer ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px var(--gutter); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-top .brand { max-width: 380px; }
.footer-top .brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer-top .brand p { font-size: 14px; line-height: 1.7; color: var(--ink-4); margin: 0; }
.footer-contact { font-size: 14px; line-height: 2; color: var(--ink-4); text-align: right; }
.footer-contact a { color: var(--ink-4); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 18px;
  font-size: 13.5px;
  color: var(--ink-5);
}

/* ---------- Breadcrumb ------------------------------------------------------ */
.breadcrumb {
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--ink-5);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-5); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .current { color: var(--blue); }

/* ---------- Page hero (sub-pages) ------------------------------------------- */
.page-hero { padding: 88px var(--gutter) 76px; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0;
  max-width: 900px;
}
.page-hero h1 .accent { color: var(--blue); }
.page-hero .hero-row { margin-top: 40px; }
.page-hero .lead-only { font-size: 18px; line-height: 1.75; color: var(--ink-3); margin: 24px 0 0; max-width: 520px; }

/* ---------- Numbered rows (why-us / faq) ------------------------------------ */
.why-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.why-row:last-child { border-bottom: 0; }
.why-row .idx { font-family: var(--font-head); font-size: 15px; color: var(--ink-5); }
.why-row .title { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink-1); margin-bottom: 6px; }
.why-row .desc { font-size: 15.5px; line-height: 1.7; color: var(--ink-3); max-width: 620px; }
.why-row.faq .title { font-size: 19px; }
.why-row.faq .desc { max-width: 640px; }

/* ---------- Feature grid (2-col numbered) ------------------------------------ */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.feature-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.feature-item .idx { font-family: var(--font-head); font-size: 15px; color: var(--ink-5); }
.feature-item .text { font-size: 16px; line-height: 1.7; color: #33475b; }

/* ---------- Info card grids (values / service area / contact) --------------- */
.card-grid { display: grid; gap: 18px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 26px 30px;
}
.info-card.highlight { border: 1.5px solid #d8ecf7; background: var(--panel); }
.info-card .title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--ink-1); margin-bottom: 8px; }
.info-card .title.lg { font-size: 18px; }
.info-card .body { font-size: 15px; line-height: 1.9; color: var(--ink-3); }
.info-card .body a { color: var(--ink-3); }
.info-card .body .accent { color: var(--blue); }

/* ---------- Hours + map ------------------------------------------------------ */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.hours-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid #eef2f6;
  font-size: 15.5px;
  color: #33475b;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row .time { font-family: var(--font-head); font-weight: 500; color: var(--ink-1); }
.hours-row .time.closed { color: var(--ink-5); font-weight: 400; }

.map-placeholder {
  height: 220px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, #eef5fa, #f6fafd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-5);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ---------- Article grid / cards --------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.article-card:hover { border-color: var(--blue); }
.article-card .thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(135deg, #eef5fa, #f6fafd);
}
.article-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .tag {
  font-family: var(--font-head);
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: .02em;
}
.article-card .title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.4;
}
.article-card .excerpt { font-size: 14.5px; line-height: 1.7; color: var(--ink-3); flex: 1; }
.article-card .meta { font-size: 13px; color: var(--ink-5); margin-top: 4px; }

/* ---------- Article detail (prose) -------------------------------------------- */
.article-meta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--ink-5);
  margin-bottom: 20px;
}
.article-meta-row .tag { color: var(--blue); font-weight: 500; }
.article-body-content { max-width: 760px; }
.article-body-content h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 40px 0 16px;
}
.article-body-content h2:first-child { margin-top: 0; }
.article-body-content p { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); margin: 0 0 18px; }
.article-body-content ul, .article-body-content ol { margin: 0 0 18px; padding-left: 22px; }
.article-body-content li { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); margin-bottom: 8px; }
.article-body-content strong { color: var(--ink-1); }
.article-cta-box {
  border: 1.5px solid #d8ecf7;
  background: var(--panel);
  border-radius: 14px;
  padding: 28px 30px;
  margin-top: 40px;
}
.article-cta-box .title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink-1); margin-bottom: 8px; }
.article-cta-box p { font-size: 15px; color: var(--ink-3); margin: 0 0 18px; }

.article-toc {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 32px;
  max-width: 760px;
}
.article-toc .toc-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 10px;
}
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { font-size: 14.5px; line-height: 1.9; color: var(--ink-3); margin: 0; }
.article-toc a { color: var(--blue); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

.related-articles { max-width: 760px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-articles .heading { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink-1); margin-bottom: 16px; }
.related-articles .list { display: grid; gap: 10px; }
.related-articles .list a { font-size: 15px; color: var(--blue); text-decoration: none; display: block; }
.related-articles .list a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 46px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step { border-bottom: 1px solid var(--border); }

  .page-hero h1 { font-size: 42px; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 20;
  }
  .site-header { position: relative; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }

  .hero { padding: 56px var(--gutter); }
  .hero h1 { font-size: 34px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; }

  .section { padding: 52px var(--gutter); }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row .price { grid-column: 2; }

  .pricing { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--border); }
  .plan:last-child { border-bottom: 0; }

  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }

  .reviews { grid-template-columns: 1fr; }

  .cta { padding: 56px var(--gutter); }
  .cta h2 { font-size: 30px; }

  .footer-top { flex-direction: column; }
  .footer-contact { text-align: left; }

  .page-hero { padding: 56px var(--gutter); }
  .page-hero h1 { font-size: 30px; }

  .why-row { grid-template-columns: 40px 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .card-grid.cols-3 { grid-template-columns: 1fr; }
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-body-content h2 { font-size: 21px; }
}

@media (max-width: 460px) {
  .tile-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
}
