/* ZAURIX / newzaurix — brand-aligned stylesheet */

/* -------------------------------------------------------------------------- */
/* Fonts                                                                      */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/AvenirNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/AvenirNext-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/AvenirNext-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/AvenirNext-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/SukhumvitSet-Text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/SukhumvitSet-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/SukhumvitSet-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: "Zaurix";
  src: url("assets/fonts/SukhumvitSet-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */

:root {
  --red: #ED1C24;
  --white: #FFFFFF;
  --charcoal: #121212;
  --red-soft: #E08A87;
  --red-deep: #3A0A0A;
  --line: #E6E6E6;
  --line-strong: #121212;
  --grad-light: linear-gradient(45deg, #E08A87 0%, #ED1C24 100%);
  --grad-primary: linear-gradient(45deg, #ED1C24 0%, #3A0A0A 100%);
  --crimson: #8B0F14;
  --crimson-deep: #5A0A0E;
  --grad-crimson: linear-gradient(45deg, #8B0F14 0%, #5A0A0E 100%);
  --grad-deep: linear-gradient(45deg, #6B1014 0%, #3A0A0A 100%);
  --grad-vivid: linear-gradient(45deg, #C4161C 0%, #5A0A0E 100%);
  --grad-contact: linear-gradient(45deg, #8B0F14 0%, #3A0A0A 100%);
  --grad-gallery: linear-gradient(45deg, #5A0A0E 0%, #3A0A0A 100%);
  --header-h: 80px;
  --wrap: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html, body {
  background: var(--white);
  color: var(--charcoal);
  font-family: "Zaurix", "Sukhumvit Set", "Avenir Next", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  /* never add shadow/glow/stroke to logos; applied globally to stay safe */
  filter: none;
  box-shadow: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* English labels use slightly tighter tracking */
.en {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.placeholder {
  font-family: "Zaurix", sans-serif;
  color: var(--red);
  font-weight: 500;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Skip + focus                                                               */
/* -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
}

.skip-link:focus {
  top: 16px;
}

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

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  /* sharp clipped corner — geometric, not rounded */
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

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

.btn-light {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-light:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--white);
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px 28px;
}

.site-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--red-deep);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media { z-index: 0; }

.hero-video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  background:
    linear-gradient(45deg, rgba(237, 28, 36, 0.58) 0%, rgba(58, 10, 10, 0.72) 100%),
    linear-gradient(to top, rgba(58, 10, 10, 0.55) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
  max-width: 860px;
  margin-left: max((100% - var(--wrap)) / 2, var(--gutter));
  margin-right: auto;
  width: auto;
}

.hero-logo {
  height: 44px;
  width: auto;
  margin-bottom: 36px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.6rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 38em;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-hint {
  position: absolute;
  z-index: 1;
  right: max((100% - var(--wrap)) / 2, var(--gutter));
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.68rem;
}

.scroll-hint i,
.scroll-hint .icon {
  width: 20px;
  height: 20px;
  color: var(--white);
  display: block;
  animation: scroll-line 1.8s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0.3); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 112px 0;
  background: var(--white);
  color: var(--charcoal);
  isolation: isolate;
}

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}

.section-index {
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 16px;
  letter-spacing: 0.2em;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em;
}

.section-lead {
  margin-top: 18px;
  font-size: 1.05rem;
  max-width: 38em;
}

.section-head.on-dark .eyebrow,
.section-head.on-dark .section-lead {
  color: rgba(255, 255, 255, 0.88);
}
.section-head.on-dark .section-index { color: var(--white); }

/* About                                                                     */

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  padding: 12%;
}

.about-visual img {
  width: 100%;
  height: auto;
}

.about-copy p + p { margin-top: 1.15em; }

/* Values                                                                    */

.section-values {
  border-top: 1px solid var(--line);
  padding-top: 112px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--charcoal);
}

.values-grid li {
  padding: 28px 22px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.values-grid li:first-child {
  border-left: 1px solid var(--line);
}

.values-grid li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.values-grid li:hover::before { transform: scaleX(1); }

.value-en {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.value-th {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
}

/* Why ZAURIX                                                                */

.section-why {
  background: var(--red);
  color: var(--white);
  background-image: var(--grad-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.why-card {
  padding: 36px 32px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.why-card:last-child { border-right: 0; }

.why-index {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.why-card p { color: rgba(255, 255, 255, 0.92); }

.license-note {
  margin-top: 32px;
  font-size: 0.92rem;
}

.section-why .license-note { color: rgba(255, 255, 255, 0.9); }
.section-why .placeholder { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* Services                                                                  */

.example-banner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid var(--red);
  background: #fff7f7;
  margin-bottom: 36px;
}

.example-tag {
  flex: 0 0 auto;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  line-height: 1;
}

.example-banner p { font-size: 0.98rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  border-top: 3px solid var(--red);
  background: var(--white);
  min-height: 100%;
}

.service-index {
  color: var(--red);
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card .placeholder {
  margin-top: 18px;
  font-size: 0.95rem;
}

.placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 18px;
}

.placeholder-list .placeholder {
  margin-top: 0;
  font-size: 0.95rem;
}

/* Gallery                                                                   */

.section-gallery { border-top: 1px solid var(--line); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--white);
  transition: transform 0.6s var(--ease);
}

.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { aspect-ratio: 21 / 9; }

.gallery-item:hover img { transform: scale(1.03); }

/* Contact                                                                   */

.section-contact {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff 0%, #fff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact-info .section-head { margin-bottom: 24px; }

.contact-intro { margin-bottom: 36px; max-width: 36em; }

.contact-meta {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.contact-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-meta dd { font-weight: 500; }

.contact-form {
  border: 1px solid var(--line);
  padding: 36px 32px 40px;
  background: var(--white);
}

.example-inline {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 24px;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: #fff7f7;
}

.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #cfcfcf;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.15s var(--ease);
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%),
    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-status {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--red);
  background: #fff7f7;
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--red);
  color: var(--white);
  padding: 72px 0 28px;
  background-image: var(--grad-primary);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand img {
  height: 36px;
  width: auto;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.footer-nav a {
  font-weight: 500;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-nav a:hover { border-bottom-color: var(--white); }

.footer-risk {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 22px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom .en { letter-spacing: 0.18em; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .values-grid li:nth-child(odd) { border-left: 1px solid var(--line); }
  .values-grid li:nth-child(5) { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 200px 1fr; gap: 36px; }
  .why-grid, .services-grid { grid-template-columns: 1fr; }
  .why-card { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
  .why-card:last-child { border-bottom: 0; }
  .contact-grid, .footer-main { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; z-index: 90; }

  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 24px 40px;
    gap: 8px;
    overflow: auto;
    border-top: 1px solid var(--line);
  }

  .is-nav-open .site-nav { display: flex; }
  .is-nav-open { overflow: hidden; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 16px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul a::after { display: none; }

  .header-cta {
    margin-top: 20px;
    width: 100%;
    min-height: 52px;
    clip-path: none;
  }

  .hero-content { padding: 56px 0 100px; }
  .hero-logo { height: 32px; margin-bottom: 28px; }
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 240px; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-wide { grid-column: auto; }
  .gallery-wide img, .gallery-item img { aspect-ratio: 16 / 9; }
  .contact-form { padding: 24px 20px 28px; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .scroll-hint { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid li,
  .values-grid li:nth-child(5) { grid-column: auto; border-left: 1px solid var(--line); }
  :root { --gutter: 18px; }
}

@media (max-width: 480px) {
  html, body { font-size: 16px; }
  .hero h1 { font-size: clamp(1.85rem, 10vw, 2.5rem); }
  .btn { width: 100%; clip-path: none; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .gallery-item:hover img { transform: none; }
}


/* -------------------------------------------------------------------------- */
/* LINE (this button only uses official LINE green)                           */
/* -------------------------------------------------------------------------- */

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  background: #06C755;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #06C755;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-line:hover {
  background: #05b34c;
  border-color: #05b34c;
}

.contact-info .btn-line {
  margin-top: 28px;
  width: 100%;
  max-width: 360px;
}

.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;
}

/* -------------------------------------------------------------------------- */
/* Chat widget                                                                */
/* -------------------------------------------------------------------------- */

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--red);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-toggle:hover { background: var(--red-deep); }

.chat-panel {
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100svh - 120px));
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  box-shadow: 8px 8px 0 rgba(18, 18, 18, 0.08);
}

/* Author display rules must not override [hidden] — this showed the panel
   open and empty when the page was opened from file:// */
.chat-panel[hidden] {
  display: none !important;
}

.chat-widget.is-open .chat-panel:not([hidden]) {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--red);
  color: var(--white);
}

.chat-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
}

.chat-bubble {
  max-width: 90%;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.chat-bubble.is-assistant {
  align-self: flex-start;
  background: #fff7f7;
  border-left: 3px solid var(--red);
}

.chat-bubble.is-user {
  align-self: flex-end;
  background: var(--red);
  color: var(--white);
}

.chat-bubble.is-status {
  align-self: flex-start;
  background: #f4f4f4;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.chat-line {
  margin: 0 16px 12px;
  width: calc(100% - 32px);
  min-height: 46px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  min-height: 48px;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--red);
}

.chat-form .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 72px;
  min-height: 48px;
  padding: 0 16px;
  clip-path: none;
}

.chat-widget.is-open .chat-toggle {
  display: none;
}

@media (max-width: 800px) {
  .chat-widget {
    right: 16px;
    bottom: 16px;
  }
  .chat-panel {
    width: calc(100vw - 32px);
    height: min(70svh, 560px);
  }
}

@media (max-width: 480px) {
  .chat-form .btn {
    width: auto;
  }
}


/* -------------------------------------------------------------------------- */
/* Icons (inline SVG sprite, works on file://)                                */
/* -------------------------------------------------------------------------- */

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex: 0 0 auto;
  display: inline-block;
  overflow: visible;
  vertical-align: -0.18em;
}

.icon-heading {
  width: 0.9em;
  height: 0.9em;
  color: var(--red);
}

.section-why .icon-heading,
.section-why .icon-card,
.site-footer .icon,
.hero .icon,
.chat-header .icon,
.chat-toggle .icon,
.btn-light .icon,
.btn-outline-light .icon,
.btn-primary .icon {
  color: currentColor;
}

.icon-card {
  width: 28px;
  height: 28px;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}

.section-why .icon-card { color: var(--white); }

.icon-launcher {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.site-nav .icon { width: 15px; height: 15px; }
.header-cta .icon { width: 16px; height: 16px; }
.footer-nav .icon { width: 15px; height: 15px; }
.contact-meta .icon { width: 15px; height: 15px; color: var(--red); }
.chat-close .icon { width: 18px; height: 18px; color: var(--white); }
.btn-line .icon { width: 18px; height: 18px; }

.why-card h3,
.service-card h3 {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

/* -------------------------------------------------------------------------- */
/* Animated section backgrounds                                               */
/* -------------------------------------------------------------------------- */

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

.bg-anim::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, rgba(237, 28, 36, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 18, 18, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-drift 48s linear infinite;
}

.bg-anim::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(237, 28, 36, 0.07), transparent);
  animation: light-sweep 18s ease-in-out infinite;
}

.bg-peaks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 28%;
  min-height: 90px;
  fill: rgba(237, 28, 36, 0.06);
  stroke: none;
  animation: peak-drift 36s ease-in-out infinite;
}

.bg-peaks .bg-stairs {
  fill: none;
  stroke: rgba(237, 28, 36, 0.16);
  stroke-width: 2;
}

.bg-sweep { display: none; }

.section-why .bg-anim::before,
.site-footer .bg-anim::before,
.hero .bg-anim::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.section-why .bg-anim::after,
.site-footer .bg-anim::after,
.hero .bg-anim::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.section-why .bg-peaks,
.site-footer .bg-peaks,
.hero .bg-peaks {
  fill: rgba(255, 255, 255, 0.08);
}

.section-why .bg-peaks .bg-stairs,
.site-footer .bg-peaks .bg-stairs,
.hero .bg-peaks .bg-stairs {
  stroke: rgba(255, 255, 255, 0.28);
}

.hero .bg-anim { z-index: 1; }
.hero-content { z-index: 2; }
.hero .scroll-hint { z-index: 2; }

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(56px, 56px); }
}

@keyframes light-sweep {
  0% { transform: translateX(-80%) skewX(-18deg); opacity: 0; }
  18% { opacity: 1; }
  50% { opacity: 0.55; }
  100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}

@keyframes peak-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4%); }
}

/* -------------------------------------------------------------------------- */
/* Scroll reveal                                                              */
/* -------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal:not(.is-inview) {
    opacity: 0;
    transform: translateY(22px);
  }
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg-anim::before,
  .bg-anim::after,
  .bg-peaks {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* -------------------------------------------------------------------------- */
/* Rich red sections — deeper than the previous white bands                   */
/* -------------------------------------------------------------------------- */

.section-on-red {
  color: var(--white);
  background-color: var(--crimson);
}

.section-on-red .section-index,
.section-on-red .eyebrow,
.section-on-red .icon-heading,
.section-on-red .icon-card,
.section-on-red .contact-meta dt,
.section-on-red .contact-meta .icon {
  color: var(--white);
}

.section-on-red .placeholder {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .placeholder {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* About: mid crimson */
.section-about {
  background-color: var(--crimson);
  background-image: var(--grad-crimson);
}

.section-about .about-visual {
  background: var(--red-deep);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Values: deepest red, lighter crimson panels */
.section-values {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--crimson-deep);
  background-image: var(--grad-deep);
}

.section-values .values-grid {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.section-values .values-grid li,
.section-values .values-grid li:first-child,
.section-values .values-grid li:nth-child(odd),
.section-values .values-grid li:nth-child(5) {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--crimson);
}

.section-values .value-en,
.section-values .value-th {
  color: var(--white);
}

.section-values .values-grid li::before {
  background: var(--grad-light);
}

/* Why: keep brand #ED1C24 → #3A0A0A; slightly darker cards for contrast */
.section-why .why-card {
  background: rgba(58, 10, 10, 0.32);
}

/* Services: brighter mid-red, white cards with red accents */
.section-services {
  background-color: #B8141A;
  background-image: var(--grad-vivid);
}

.section-services .example-banner {
  background: rgba(58, 10, 10, 0.45);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.section-services .example-tag {
  background: var(--white);
  color: var(--crimson);
}

.section-services .service-card {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--white);
  border-top: 3px solid var(--red);
}

.section-services .service-card .icon-card,
.section-services .service-index,
.section-services .service-card .placeholder {
  color: #B8141A; /* AA on white (6.66:1) */
  text-decoration: none;
}

/* Gallery: darkest field so photographs stand out */
.section-gallery {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--red-deep);
  background-image: var(--grad-gallery);
}

.section-gallery .gallery-item {
  background: var(--red-deep);
  border-color: rgba(255, 255, 255, 0.22);
}

.section-gallery .gallery-item img {
  background: var(--red-deep);
}

/* Contact: mid-to-deep crimson, white form card */
.section-contact {
  border-top: 0;
  background-color: var(--crimson);
  background-image: var(--grad-contact);
}

.section-contact .contact-meta {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.section-contact .contact-form {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.section-contact .contact-form .example-inline {
  color: var(--charcoal);
}

.section-contact .contact-form .placeholder,
.section-contact .form-status {
  color: var(--red);
  text-decoration: none;
}

/* Subtle white grid / sweep / peaks on every red section */
.section-on-red .bg-anim::before,
.site-footer .bg-anim::before,
.hero .bg-anim::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

.section-on-red .bg-anim::after,
.site-footer .bg-anim::after,
.hero .bg-anim::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.section-on-red .bg-peaks,
.site-footer .bg-peaks,
.hero .bg-peaks {
  fill: rgba(255, 255, 255, 0.08);
}

.section-on-red .bg-peaks .bg-stairs,
.site-footer .bg-peaks .bg-stairs,
.hero .bg-peaks .bg-stairs {
  stroke: rgba(255, 255, 255, 0.26);
}


/* -------------------------------------------------------------------------- */
/* WHITE ONLY FOR BUTTONS — no white cards / panels / form fills              */
/* -------------------------------------------------------------------------- */

html, body {
  background: var(--red-deep);
  color: var(--white);
  color-scheme: dark;
}

/* Primary buttons: white fill, deep red text */
.btn-primary {
  background: var(--white);
  color: var(--crimson);
  border-color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--crimson);
  border-color: var(--white);
}
.btn-light:hover,
.btn-light:focus-visible {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: var(--white);
  color: var(--crimson);
}

/* Header: deep red + reverse logo, white nav */
.site-header {
  background: var(--red-deep);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav a:not(.btn) {
  color: var(--white);
}

.site-nav a:not(.btn)::after {
  background: var(--white);
}

.nav-toggle span {
  background: var(--white);
}

@media (max-width: 800px) {
  .site-nav {
    background: var(--red-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .site-nav ul a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
  }
}

/* Shared dark crimson panels */
.about-visual,
.service-card,
.example-banner,
.example-inline,
.contact-form,
.form-status,
.values-grid li,
.why-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.section-about .about-visual {
  background: var(--red-deep);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-values .values-grid li,
.section-values .values-grid li:first-child,
.section-values .values-grid li:nth-child(odd),
.section-values .values-grid li:nth-child(5) {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-why .why-card {
  background: rgba(0, 0, 0, 0.28);
}

.section-services .example-banner {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.section-services .example-tag {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section-services .service-card {
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid rgba(255, 255, 255, 0.55);
}

.section-services .service-card .icon-card,
.section-services .service-index,
.section-services .service-card .placeholder {
  color: var(--white);
}

.section-services .service-card .placeholder {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-gallery .gallery-item,
.section-gallery .gallery-item img {
  background: var(--red-deep);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-contact .contact-form {
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-contact .contact-form .example-inline,
.section-contact .form-status {
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-contact .contact-form .placeholder,
.section-contact .form-status {
  color: var(--white);
  text-decoration: none;
}

.section-contact .form-status {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Form fields: dark, not white fill */
.field label {
  color: var(--white);
}

.field input,
.field select,
.field textarea,
.chat-form input {
  background: rgba(58, 10, 10, 0.72);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  caret-color: var(--white);
}

.field input::placeholder,
.field textarea::placeholder,
.chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-form input:focus {
  outline: none;
  border-color: var(--white);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(58, 10, 10, 0.72);
  color: var(--white);
}

.field select option {
  background: var(--red-deep);
  color: var(--white);
}

.field input:-webkit-autofill,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill,
.chat-form input:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px #3A0A0A inset;
  transition: background-color 9999s ease-out;
}

/* Chat: dark red body, red header, darker bubbles */
.chat-panel {
  background: var(--red-deep);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.chat-header {
  background: var(--red);
  color: var(--white);
}

.chat-messages {
  background: var(--red-deep);
}

.chat-bubble.is-assistant {
  background: #5A0A0E;
  color: var(--white);
  border-left: 3px solid rgba(255, 255, 255, 0.45);
}

.chat-bubble.is-user {
  background: #8B0F14;
  color: var(--white);
}

.chat-bubble.is-status {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.chat-form {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Launcher stays a compact button; white + red icon to match primary CTAs */
.chat-toggle {
  background: var(--white);
  color: var(--crimson);
}
.chat-toggle:hover,
.chat-toggle:focus-visible {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}

.chat-toggle .icon,
.chat-toggle:hover .icon {
  color: currentColor;
}

.icon-launcher {
  color: currentColor;
}


/* -------------------------------------------------------------------------- */
/* Open account — 3-step staircase                                            */
/* -------------------------------------------------------------------------- */

.section-steps {
  background-color: var(--crimson-deep);
  background-image: var(--grad-deep);
}

.steps-stair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 16px;
  position: relative;
}

.step-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid rgba(255, 255, 255, 0.55);
  padding: 28px 24px 32px;
  color: var(--white);
  position: relative;
  min-height: 260px;
}

.step-card:nth-child(1) { margin-top: 96px; }
.step-card:nth-child(2) { margin-top: 48px; }
.step-card:nth-child(3) { margin-top: 0; }

.step-card.reveal {
  transition-delay: calc(var(--step, 0) * 0.18s);
}

.step-index {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.step-card h3 {
  font-size: 1.6rem;
  margin: 0 0 14px;
}

.step-card p {
  color: rgba(255, 255, 255, 0.92);
}

.steps-cta {
  margin-top: 56px;
  display: flex;
  justify-content: flex-end;
}

/* -------------------------------------------------------------------------- */
/* FAQ accordion                                                              */
/* -------------------------------------------------------------------------- */

.section-faq {
  background-color: var(--crimson);
  background-image: var(--grad-contact);
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item {
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.icon-faq {
  width: 22px;
  height: 22px;
  color: var(--white);
  flex: 0 0 auto;
}

.icon-chevron-faq {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .icon-chevron-faq {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 22px 56px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 56em;
}

.faq-answer .placeholder {
  color: var(--white);
}

@media (max-width: 1280px) {
  .site-nav { gap: 8px 16px; }
  .site-nav ul { gap: 4px 14px; }
  .site-nav a:not(.btn) { font-size: 0.86rem; }
}

@media (max-width: 1024px) {
  .steps-stair { gap: 12px; }
  .step-card { min-height: 0; padding: 24px 18px 26px; }
  .step-card:nth-child(1) { margin-top: 64px; }
  .step-card:nth-child(2) { margin-top: 32px; }
}

@media (max-width: 800px) {
  .steps-stair { grid-template-columns: 1fr; }
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3) { margin-top: 0; }
  .step-card:nth-child(1) { margin-left: 0; }
  .step-card:nth-child(2) { margin-left: 20px; }
  .step-card:nth-child(3) { margin-left: 40px; }
  .steps-cta { justify-content: stretch; margin-top: 32px; }
  .steps-cta .btn { width: 100%; }
  .faq-answer { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .step-card.reveal { transition-delay: 0s; }
  .icon-chevron-faq { transition: none; }
}
