:root {
  --blue: #0b4f8a;
  --blue-deep: #08365f;
  --ink: #142233;
  --muted: #3f4e5e;
  --line: #e1e8ef;
  --wash: #f3f7fb;
  --white: #ffffff;
  --header: 7.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: #c9dff1;
  color: var(--ink);
}

.shop-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shop-bg img {
  position: absolute;
  left: -4%;
  top: -22%;
  width: 108%;
  height: 150%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  filter: blur(2.5px);
  transform: translate3d(0, 0, 0);
}

.shop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 0.75rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.utility {
  border-bottom: 1px solid var(--line);
}

.utility-inner,
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-inner {
  min-height: 3rem;
  flex-wrap: wrap;
  row-gap: 0.15rem;
}

.utility-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.4;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.utility-phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.utility-phone + .utility-phone {
  margin: 0;
  padding: 0;
  border: 0;
}

.utility-phone:hover {
  color: var(--blue);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.status[data-state="open"] .status-dot,
.status[data-state="soon"] .status-dot,
.status[data-state="opening"] .status-dot {
  background: var(--blue);
}

.status[data-state="open"] #status-text,
.status[data-state="soon"] #status-text,
.status[data-state="opening"] #status-text {
  color: var(--blue-deep);
}

.status[data-state="closed"] .status-dot,
.status[data-state="shut"] .status-dot {
  background: #c0392b;
}

.status[data-state="closed"] #status-text,
.status[data-state="shut"] #status-text {
  color: #c0392b;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--blue);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 2.75rem;
  min-height: 2rem;
  padding: 0 0.7rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
}

.bar {
  min-height: 9.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  height: 8.5rem;
  width: auto;
  object-fit: contain;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-th,
.brand-en {
  margin: 0;
}

html[lang="th"] .brand-th {
  font-size: 2.35rem;
  font-weight: 600;
}

html[lang="th"] .brand-en {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="en"] .brand-en {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="en"] .brand-th {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

@media (min-width: 861px) and (max-width: 1040px) {
  html[lang="th"] .brand-th {
    font-size: clamp(1.75rem, 5.39vw - 1.15rem, 2.35rem);
  }

  html[lang="en"] .brand-en {
    font-size: clamp(1.36rem, 5.75vw - 1.74rem, 2rem);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.25rem 0 2.25rem;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 500;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 4.35rem);
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span.hero-offer {
  color: #c0392b;
}

.hero-list {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  padding: 0 0 0 1.2rem;
  color: #111;
  font-size: 1.12rem;
  font-weight: 400;
}

.hero-list li + li {
  margin-top: 0.28rem;
}

.hero-note {
  max-width: 38rem;
  margin: 0.95rem 0 0;
  color: #111;
  font-size: 1.12rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--blue);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--wash);
}

.section {
  padding: 2.4rem 0;
}

.section-head {
  margin-bottom: 1.25rem;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 3.8vw, 2.75rem);
}

#services,
#hours,
#contact {
  scroll-margin-top: 9.5rem;
}

.lede {
  max-width: 36rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service {
  padding: 0 1.5rem 0 1.5rem;
  border-left: 1px solid var(--line);
}

.service:first-child {
  padding-left: 0;
  border-left: 0;
}

.index {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 500;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
}

.service p:last-child,
.work-item p {
  margin: 0;
}

.work-list {
  margin: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.work-item:last-child {
  border-bottom: 1px solid var(--line);
}

.work-item .index {
  margin: 0;
  padding-top: 0.2rem;
}

.work-item p + p {
  margin-top: 0.75rem;
}

.work-item .step-label {
  margin: 1rem 0 0.3rem;
  font-weight: 700;
  color: #111;
}

.step-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: #111;
}

.step-list li + li {
  margin-top: 0.22rem;
}

.work-item .step-note,
.work-item .step-list + p {
  margin-top: 0.4rem;
}

.subhead {
  margin-top: 2.4rem;
}

.visit {
  padding: 2.4rem 0 2.6rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 4rem;
  margin-bottom: 2rem;
}

.visit-grid > * > h2:first-child {
  margin-top: 0;
}

.hours table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr:first-child th,
.hours tr:first-child td {
  padding-top: 0;
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--blue-deep);
  font-weight: 500;
}

@media (min-width: 861px) {
  /* Grid stretch gives #hours the row height. height:100% does not,
     because the row is content-sized. The table then fills that box. */
  #hours {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
  }

  #hours > table {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin: 0;
  }

  /* Rows share the free space. display:contents skips the tbody box, which ignores flex. */
  #hours tbody {
    display: contents;
  }

  #hours tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  #hours tr:first-child {
    margin-top: 0;
  }

  #hours tr:not(:first-child) {
    margin-top: auto;
  }

  #hours th,
  #hours td {
    display: block;
    width: auto;
    border-bottom: 0;
  }
}

address {
  font-style: normal;
  margin: 0 0 0.75rem;
}

.coords {
  margin: 0 0 1rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.text-link {
  color: var(--blue);
}

.contact-list {
  margin: 0.4rem 0 0;
}

.contact-list div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list div:first-child {
  border-top: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-list dd {
  margin: 0.1rem 0 0;
}

.contact-list a {
  color: var(--blue);
}

.phone-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.phone-links a {
  display: block;
}

.map-block {
  position: relative;
}

.map {
  position: relative;
  height: 420px;
  width: 100%;
  background: #e8eaed;
  border: 1px solid #dadce0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.map-guard[hidden] {
  display: none;
}

.map-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-zoom-btn {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.3);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.map-zoom-btn:hover {
  background: var(--wash);
}

.map-zoom-btn:disabled {
  color: #9aa7b5;
  background: #fff;
  cursor: default;
}

.map-guard-hint {
  background: #fff;
  color: #202124;
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.3);
}

.map-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  width: min(300px, calc(100% - 24px));
  background: #fff;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.3);
  overflow: hidden;
}

.map-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.map-card-body {
  padding: 8px 10px 10px;
}

.map-card p {
  margin: 0;
}

.map-card-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.map-card-phones {
  margin-top: 0.35rem;
}

.map-card-phones a {
  display: block;
  color: var(--blue);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.map-card-hours {
  margin-top: 0.4rem;
  color: #5f6368;
  font-size: 0.84rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.map-card-hours span {
  display: block;
}

.map-card-directions {
  margin-top: 0.5rem;
}

.map-card-directions a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.map-card-phones a:hover,
.map-card-directions a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.footer-phones a {
  display: block;
}

.footer-meta a:hover {
  color: var(--blue);
}

.callbar {
  display: none;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 31;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: var(--white);
  place-items: center;
  cursor: pointer;
  box-shadow: none;
}

.to-top:not([hidden]) {
  display: grid;
}

.to-top:hover {
  background: var(--blue-deep);
}

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

@media (max-width: 860px) {
  .hero {
    padding-top: 2.75rem;
  }

  .services,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service {
    padding: 1.35rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .bar {
    flex-wrap: wrap;
    padding: 0.85rem 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .map {
    height: 300px;
  }

  .map-card {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }
}

@media (max-width: 700px) {
  .utility-phones {
    display: none;
  }

  .actions {
    display: grid;
  }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--blue);
    color: var(--white);
    font-weight: 500;
  }

  .callbar a {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.5rem;
    color: inherit;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }

  .callbar a + a {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .callbar a:hover {
    background: var(--blue-deep);
  }

  body {
    padding-bottom: 5.5rem;
  }

  .to-top {
    bottom: 6.75rem;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    height: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shop-bg img {
    transform: none;
  }
}

@media print {
  .shop-bg {
    display: none;
  }

  .site-header {
    position: static;
  }

  .lang,
  .nav,
  .callbar,
  .to-top,
  .actions {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .map {
    height: 280px;
  }

  .map-guard,
  .map-zoom {
    display: none;
  }

  .map-card {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }
}

#why,
#how {
  scroll-margin-top: 9.5rem;
}

#why {
  border-top: 1px solid var(--line);
}

.copy {
  max-width: 42rem;
}

.copy p {
  margin: 0;
}

.copy p + p {
  margin-top: 0.95rem;
}

.work-item .benefit {
  margin-top: 0.45rem;
  color: var(--muted);
}

.close-line {
  margin: 0.15rem 0 0.35rem;
  max-width: 34rem;
  font-weight: 500;
}
