:root {
  color-scheme: only light;
  --background: #f7f7fb;
  --card: #ffffff;
  --surface: #f1edf7;
  --gold: #694299;
  --text: #19171f;
  --muted: #53505e;
  --border: #dedbe6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Noto Sans Thai", "Tahoma", system-ui, sans-serif;
  line-height: 1.5;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
header, main, footer { width: min(100% - 2rem, 61rem); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .85rem; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-size: .72rem; letter-spacing: .055em; line-height: 1.5; }
img { object-fit: contain; max-width: 100%; height: auto; }
.brand img { width: 2.75rem; }
nav { display: flex; flex-shrink: 0; padding: 3px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
button { min-width: 44px; min-height: 44px; padding: .4rem; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer; }
button[aria-pressed=true] { background: #6330ac; color: #ffffff; box-shadow: none; }
.hero { padding-block: clamp(1.4rem, 4vw, 2.4rem); }
.gold { margin: 0 0 .5rem; color: var(--gold); font-size: .65rem; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.3; font-weight: 700; }
.hero > #intro { margin: .6rem 0 0; color: var(--muted); font-size: 1rem; }
.grid { display: grid; gap: .85rem; }
.card { min-width: 0; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 4px 18px rgba(35, 19, 58, .04); transition: border-color .18s; }
.top { display: flex; align-items: center; gap: .85rem; }
.top > div { min-width: 0; }
.card img { width: 3.75rem; flex-shrink: 0; padding: .15rem; background: #f3eff9; border-radius: 12px; }
.card h2 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; min-height: 1.45em; }
.phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 1rem; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .85rem; }
.actions a { display: flex; justify-content: center; align-items: center; gap: .45rem; min-height: 46px; padding: .6rem .3rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 650; text-align: center; transition: background .18s, transform .18s; }
.actions a:first-child { background: #6330ac; border-color: #6330ac; color: #ffffff; }
.actions svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible { outline: 3px solid #6330ac; outline-offset: 4px; }
.actions a:active, button:active { transform: translateY(1px); }
footer { margin-top: 2rem; padding-block: 1.4rem 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
footer strong { color: var(--gold); font-size: .65rem; letter-spacing: .12em; }
footer p { margin-bottom: 0; }
@media (hover: hover) {
  .card:hover { border-color: #b58af3; }
  .actions a:hover { background: #dedbe6; }
  .actions a:first-child:hover { background: #51248f; }
  button:not([aria-pressed=true]):hover { color: var(--text); background: var(--surface); }
}
@media (min-width: 740px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .brand { font-size: .8rem; }
  .brand img { width: 3rem; }
  .card { padding: 1.3rem; }
  .card img { width: 4.25rem; }
  .card h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.hero .hours { margin: .65rem 0 0; color: #514260; font-size: .875rem; line-height: 1.6; padding: .65rem .85rem; border-left: 3px solid #9d7bc8; background: #eee8f5; border-radius: 0 8px 8px 0; }

.line-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  margin-top: 1rem;
  padding: .7rem 1.2rem;
  border-radius: 9px;
  background: #e8f7ed;
  color: #08632d;
  border: 1px solid #a8d9b9;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
@media (hover: hover) {
  .line-add:hover { background: #d6efdf; }
}
.line-add:active { background: #c6e8d2; }

.card > .line-add { display: flex; width: 100%; margin-top: .6rem; }

@media (max-width: 359px) { .brand { font-size: .65rem; gap: .4rem; } .top { gap: .65rem; } .card img { width: 3.25rem; } }
