:root {
  color-scheme: dark;
  --navy: #020713;
  --bright-blue: #087cff;
  --electric-blue: #0a9dff;
  --text: #f3f5fa;
  --gutter: clamp(18px, 6.5vw, 27px);
  --content-width: 100%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(2, 35, 83, 0.23), transparent 52%),
    #020713;
  color: var(--text);
  font-family: "Inter", "IBM Plex Sans Thai", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 15px;
  border-radius: 999px;
  background: #087cff;
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

.business-card {
  position: relative;
  width: min(100%, var(--content-width));
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  padding: 0 var(--gutter) 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(0, 30, 79, 0.24), transparent 48%),
    linear-gradient(180deg, #02050b 0%, #020814 47%, #020916 100%);
}

.business-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='42' viewBox='0 0 48 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 1h24l11 20-11 20H12L1 21z' fill='none' stroke='%230b56b9' stroke-opacity='.28'/%3E%3C/svg%3E");
  background-position: center 0;
  background-size: 48px 42px;
  content: "";
  mask-image: linear-gradient(180deg, #000 0, transparent 290px, transparent 78%, #000 96%);
  pointer-events: none;
}

.hero {
  margin-inline: calc(0px - var(--gutter));
}

.brand-art {
  display: block;
  width: 100%;
  height: auto;
}

.brand-link {
  display: block;
}

.intro {
  position: relative;
  margin-top: -2px;
  padding-top: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.intro h1 {
  margin: 0 0 3px;
  color: #f6f6f8;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(18px, 5.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.english-title {
  margin: 0;
  color: #f5f6f8;
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.19;
}

.language-panel {
  position: relative;
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid #099cff;
  border-radius: 17px;
  background: linear-gradient(110deg, rgba(4, 11, 23, 0.96), rgba(2, 9, 22, 0.97));
  box-shadow:
    0 0 5px rgba(8, 161, 255, 0.93),
    0 0 17px rgba(0, 115, 255, 0.53),
    inset 0 0 15px rgba(9, 98, 203, 0.19);
}

.language-panel::before {
  position: absolute;
  top: -2px;
  left: 47%;
  width: 24px;
  height: 2px;
  background: #a7e5ff;
  box-shadow: 0 0 12px 3px #098dff;
  content: "";
}

.flags {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.flag {
  display: block;
  width: 38px;
  height: 26px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.language-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
  background: rgba(239, 245, 255, 0.73);
  box-shadow: 0 0 5px rgba(107, 179, 255, 0.34);
}

.language-copy {
  min-width: 0;
}

.language-copy p {
  overflow: hidden;
  margin: 0;
  color: #f0f2f6;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(8.4px, 2.45vw, 9.5px);
  font-weight: 500;
  line-height: 1.52;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-copy p:last-child {
  color: #c5cfdd;
  font-family: "Inter", sans-serif;
}

.link-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.link-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  padding: 2px 11px 2px 8px;
  border: 1.5px solid rgba(0, 159, 255, 0.92);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(1, 15, 34, 0.97), rgba(1, 8, 20, 0.99));
  box-shadow:
    0 0 5px rgba(0, 164, 255, 0.88),
    0 0 13px rgba(0, 113, 255, 0.3),
    inset 0 0 14px rgba(0, 83, 182, 0.16);
  color: #f5f7fb;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

a.link-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.icon-box {
  display: grid;
  width: 47px;
  height: 37px;
  flex: 0 0 47px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.icon-box svg {
  display: block;
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.button-copy {
  display: grid;
  min-width: 0;
  gap: 0;
  align-content: center;
  line-height: 1.15;
}

.button-copy b {
  overflow: hidden;
  color: #f7f8fb;
  font-size: clamp(12px, 3.7vw, 15px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-copy small {
  overflow: hidden;
  color: #f0f1f4;
  font-family: "IBM Plex Sans Thai", "Inter", sans-serif;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-arrow {
  display: grid;
  width: 22px;
  flex: 0 0 22px;
  place-items: center;
  margin-left: auto;
  color: #f5f8ff;
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 200;
  line-height: 0.8;
}

.link-green {
  min-height: 43px;
  border-color: #00f43e;
  background: linear-gradient(180deg, #04fb39 0%, #00d72f 42%, #00a822 100%);
  box-shadow:
    0 0 5px #00ff43,
    0 0 16px rgba(0, 255, 65, 0.84),
    inset 0 1px 4px rgba(255, 255, 255, 0.52),
    inset 0 -7px 13px rgba(0, 94, 27, 0.34);
}

.link-green::before,
.link-blue::before,
.link-youtube::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 56px;
  background: rgba(0, 35, 13, 0.25);
  content: "";
  pointer-events: none;
}

.link-green .icon-box {
  z-index: 1;
  color: #fff;
}

.link-green .button-copy,
.link-blue .button-copy,
.link-youtube .button-copy {
  z-index: 1;
}

.link-green .button-copy b,
.link-green .button-copy small {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 55, 16, 0.35);
}

.link-green .button-arrow,
.link-blue .button-arrow,
.link-youtube .button-arrow {
  z-index: 1;
}

.line-icon {
  background: #00ca2d;
}

.line-icon svg {
  width: 36px;
  height: 36px;
}

.line-icon .icon-cutout {
  fill: #00bd2c;
}

.whatsapp-icon {
  background: transparent;
}

.whatsapp-icon svg {
  width: 39px;
  height: 39px;
}

.link-blue {
  border-color: #18b6ff;
  background: linear-gradient(180deg, #087fff 0%, #0069ef 47%, #064ab2 100%);
  box-shadow:
    0 0 5px #09b4ff,
    0 0 16px rgba(0, 142, 255, 0.82),
    inset 0 1px 4px rgba(255, 255, 255, 0.5),
    inset 0 -7px 13px rgba(0, 39, 134, 0.38);
}

.link-blue::before {
  background: rgba(0, 38, 111, 0.38);
}

.phone-icon {
  background: #0870dc;
}

.phone-icon svg {
  width: 31px;
  height: 31px;
}

.link-youtube {
  border-color: #ff3150;
  background: linear-gradient(180deg, #a50020 0%, #770016 55%, #440011 100%);
  box-shadow:
    0 0 5px #ff3150,
    0 0 16px rgba(255, 21, 60, 0.68),
    inset 0 1px 4px rgba(255, 205, 214, 0.39),
    inset 0 -7px 13px rgba(32, 0, 7, 0.35);
}

.link-youtube::before {
  background: rgba(23, 0, 4, 0.46);
}

.youtube-icon {
  color: #fff;
}

.youtube-icon svg {
  width: 45px;
  height: 34px;
}

.youtube-icon .play-cutout {
  fill: #d80927;
}

.link-social {
  min-height: 43px;
  border-color: #00a8ff;
  border-radius: 13px;
  background: linear-gradient(100deg, #000a17, #020817 58%, #010713);
  box-shadow:
    0 0 4px rgba(0, 174, 255, 0.9),
    0 0 12px rgba(0, 136, 255, 0.34),
    inset 0 0 12px rgba(0, 95, 201, 0.17);
}

.link-social .icon-box,
.link-google .icon-box {
  position: relative;
  z-index: 1;
  width: 47px;
  height: 37px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
}

.link-social .button-copy b {
  font-size: clamp(12px, 3.7vw, 15px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.link-social .button-copy small {
  color: #eff2f6;
}

.tiktok-icon svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(-2px 0 #16e7ed) drop-shadow(2px 1px #fb255b);
}

.instagram-icon svg {
  width: 35px;
  height: 35px;
  color: #fff;
  filter: drop-shadow(0 0 1px #fe2c91);
}

.facebook-icon {
  border-radius: 50%;
  background: #1278ed !important;
}

.facebook-icon svg {
  width: 37px;
  height: 37px;
  align-self: end;
}

.link-google {
  min-height: 46px;
  border-color: #d0d9eb;
  background: linear-gradient(180deg, rgba(147, 161, 186, 0.72), rgba(75, 91, 118, 0.8));
  box-shadow:
    0 0 5px rgba(215, 232, 255, 0.95),
    0 0 15px rgba(153, 191, 255, 0.52),
    inset 0 1px 4px rgba(255, 255, 255, 0.64),
    inset 0 -7px 13px rgba(30, 48, 77, 0.34);
  cursor: default;
}

.link-google .icon-box {
  background: rgba(20, 40, 76, 0.48);
}

.google-icon svg {
  width: 33px;
  height: 33px;
}

.link-google .button-copy b {
  color: #f1f3f8;
  font-size: clamp(12px, 3.7vw, 15px);
  font-weight: 500;
}

.link-google .button-copy small {
  color: #dfe5f0;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.link-google .button-arrow {
  color: #c4cede;
}

.footer-art {
  position: relative;
  height: 115px;
  margin: 2px calc(0px - var(--gutter)) 0;
  overflow: hidden;
  background-image: url("assets/images/chiang-mai-footer-artwork.jpg");
  background-position: center 56%;
  background-size: cover;
  isolation: isolate;
}

.footer-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #020916 0%, rgba(2, 9, 22, 0.14) 35%, rgba(0, 3, 8, 0.18) 100%);
}

@media (min-width: 600px) {
  :root {
    --content-width: 768px;
    --gutter: clamp(34px, 6.5vw, 52px);
  }

  .business-card {
    box-shadow: 0 0 50px rgba(0, 40, 103, 0.3);
  }

  .intro h1 {
    font-size: clamp(27px, 3.1vw, 38px);
  }

  .english-title {
    font-size: clamp(25px, 2.8vw, 34px);
  }

  .language-panel {
    min-height: 96px;
    gap: 20px;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 29px;
  }

  .flags {
    gap: 13px;
  }

  .flag {
    width: 76px;
    height: 52px;
    border-radius: 7px;
  }

  .language-divider {
    height: 60px;
  }

  .language-copy p {
    font-size: clamp(17px, 1.55vw, 20px);
  }

  .link-list {
    gap: 11px;
    margin-top: 18px;
  }

  .link-button {
    min-height: 86px;
    gap: 22px;
    padding: 7px 22px 7px 16px;
    border-radius: 24px;
  }

  .link-green,
  .link-blue,
  .link-youtube {
    min-height: 86px;
  }

  .link-social {
    min-height: 86px;
    border-radius: 22px;
  }

  .icon-box,
  .link-social .icon-box,
  .link-google .icon-box {
    width: 94px;
    height: 74px;
    flex-basis: 94px;
    border-radius: 17px;
  }

  .icon-box svg {
    width: 69px;
    height: 69px;
  }

  .line-icon svg {
    width: 72px;
    height: 72px;
  }

  .whatsapp-icon svg {
    width: 78px;
    height: 78px;
  }

  .phone-icon svg {
    width: 62px;
    height: 62px;
  }

  .youtube-icon svg {
    width: 90px;
    height: 68px;
  }

  .tiktok-icon svg {
    width: 60px;
    height: 60px;
  }

  .instagram-icon svg {
    width: 70px;
    height: 70px;
  }

  .facebook-icon svg {
    width: 74px;
    height: 74px;
  }

  .google-icon svg {
    width: 66px;
    height: 66px;
  }

  .button-copy b,
  .link-social .button-copy b,
  .link-google .button-copy b,
  .button-line .button-copy b {
    font-size: clamp(21px, 2vw, 27px);
  }

  .button-copy small,
  .link-google .button-copy small {
    font-size: clamp(17px, 1.55vw, 20px);
  }

  .link-google {
    min-height: 88px;
  }

  .button-arrow {
    width: 43px;
    flex-basis: 43px;
    font-size: 68px;
  }

  .link-green::before,
  .link-blue::before,
  .link-youtube::before {
    width: 112px;
  }

  .link-list {
    gap: 11px;
  }

  .footer-art {
    height: 230px;
  }
}

@media (max-width: 350px) {
  :root {
    --gutter: 15px;
    --content-width: 100%;
  }

  .flag {
    width: 33px;
    height: 23px;
  }

  .language-panel {
    gap: 7px;
    padding-inline: 6px;
  }

  .link-button {
    gap: 8px;
    padding-right: 8px;
  }

  .icon-box,
  .link-social .icon-box,
  .link-google .icon-box {
    width: 43px;
    flex-basis: 43px;
  }

  .button-arrow {
    width: 19px;
    flex-basis: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
