/* ------------------------------------------------------------
   Palette: blush paper + ink, one deep pink accent used only for
   actions (buttons, links you click, focus). Keeping the accent
   rare is what makes the "ขอใบเสนอราคา" button stand out.
   ------------------------------------------------------------ */
:root {
  /* Penne Studio pink: soft blush paper, one deep pink for actions.
     #c2185b on white is about 5.9:1 contrast, so white button text passes WCAG AA. */
  --paper: #f8f1ee;
  --paper-2: #f1e4e0;
  --card: #fdf9f7;
  --ink: #241a1d;
  --muted: #6b5a5f;
  --line: #e3d1cc;
  --accent: #c2185b;
  --accent-ink: #fff7fa;
  --accent-hover: #9c1449;

  --serif: 'Noto Serif Thai', Georgia, serif;
  --sans: 'IBM Plex Sans Thai', system-ui, sans-serif;

  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font: 700 20px/1 var(--serif); text-decoration: none; white-space: nowrap; min-width: 0; }
.logo img { flex: none; }
.logo span { overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font: 600 13px/1 var(--sans); padding: 9px 10px; cursor: pointer;
}
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 88px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

.terms { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.terms strong { color: var(--ink); font-weight: 600; }
.terms li::before { content: '✓'; color: var(--accent); margin-right: 10px; font-weight: 600; }

.hero-shot { margin: 0; }
.browser {
  display: flex; align-items: center; gap: 6px;
  background: var(--ink); padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0;
}
.browser span { width: 9px; height: 9px; border-radius: 50%; background: #5e4f54; }
.browser em { margin-left: 10px; font: 400 12px/1 var(--sans); color: #c4b2b8; font-style: normal; }
.hero-shot img {
  border: 1px solid var(--ink); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-lead { margin-top: 10px; color: var(--muted); max-width: 40em; }

/* Work: one big case (the one with the most to show) + three smaller */
.feature {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start;
  margin-top: 48px;
}
.feature-img img { border-radius: var(--radius); border: 1px solid var(--line); }
.feature h3 { font-size: 30px; }
.kind { color: var(--muted); font-size: 15px; margin-top: 2px; }
.feature-body > p:not(.kind) { margin-top: 16px; }
.did { margin: 18px 0 22px; padding-left: 20px; }
.did li { margin: 6px 0; }
.did li::marker { color: var(--accent); }

.more-work {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line);
}
.work { text-decoration: none; }
.work img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.work h3 { font-size: 20px; margin-top: 16px; }
.work:hover h3 { color: var(--accent); }
.work p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.pkg { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pkg-main { border: 2px solid var(--ink); }
.pkg h3 { font-size: 22px; }
.pkg-for { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 3.4em; }
.price { margin-top: 20px; color: var(--muted); font-size: 15px; }
.price b { display: block; font: 700 34px/1.2 var(--serif); color: var(--ink); }
.pkg ul { margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 15px; }
.pkg li::before { content: '✓'; color: var(--accent); margin-right: 10px; }
.fine { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 52em; }

/* Process: numbered with a real <ol>, the numbers drawn by CSS counters */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 15px/1 var(--serif); color: var(--accent); }
.steps h3 { font-size: 20px; margin-top: 10px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* FAQ */
#faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-text p { margin-top: 14px; color: var(--muted); }
.channels { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.channels a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--card);
}
.channels a:hover { border-color: var(--ink); }
.ch { font-weight: 600; min-width: 80px; }
.channels a > span:last-child { color: var(--muted); overflow-wrap: anywhere; }

.form { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.form input, .form select, .form textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status[data-kind='ok'] { color: #276749; font-weight: 600; }
.form-status[data-kind='error'] { color: #b42318; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero, .feature, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .packages { grid-template-columns: 1fr; max-width: 560px; }
  .pkg-for { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .more-work { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-row { gap: 12px; height: 60px; }
  .logo { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
  .top-actions .btn-sm { display: none; } /* the hero button does this job on phones */
  .section { padding: 64px 0; }
  .lead { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .steps, .more-work, .row2 { grid-template-columns: 1fr; }
  .form, .pkg { padding: 20px; }
}
