/* ==========================================================================
   Cotrading Thailand - stylesheet
   Sections: 1 Tokens & base | 2 Layout helpers | 3 Top bar | 4 Header & nav
             5 Hero slider | 6 Page hero | 7 Home sections | 8 Brands page
             9 Contact page | 10 Footer & floating buttons | 11 Reveal
             12 Thai | 13 Reduced motion
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
:root {
  --navy: #001155;
  --blue: #0083d7;
  --blue-mid: #0088cb;
  --blue-dark: #00346d;
  --grad: linear-gradient(65deg, #001155 0%, #0083d7 100%);
  --btn-grad: linear-gradient(to right, #00346d, #0088cb, #00346d);
  --light: #f9f9f9;
  --footer: #363636;
  --footer-text: #e9e9e9;
  --text: #6c6c6c;
  --heading: #232323;
  --line: #ececf2;
  --radius: 14px;
  --container: 1200px;
  --font: 'Poppins', 'Prompt', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* sticky header height, so #anchors are not hidden */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3 { color: var(--heading); font-weight: 500; line-height: 1.25; margin: 0; text-wrap: balance; }

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

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* 2. Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1320px; }

.section { padding: 90px 0; }
.section-light { background: var(--light); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 12px 0 0; }
.section-title { font-size: 34px; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}

.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 15px 38px; border-radius: 50px;
  background: var(--btn-grad); background-size: 200% 100%; background-position: 0 0;
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 52, 109, .25);
  transition: background-position .4s, transform .25s, box-shadow .25s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 52, 109, .32); }

/* 3. Top bar ------------------------------------------------------------- */
.topbar { background: var(--grad); color: #fff; font-size: 13px; height: 34px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .icon { width: 14px; height: 14px; }
.topbar-right { display: flex; align-items: center; gap: 24px; }

.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang span { opacity: .55; }
.lang button {
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 400; letter-spacing: .06em;
}
.lang button:hover { color: #fff; }
.lang button.is-active {
  color: #fff; font-weight: 700;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.lang button:focus-visible { outline-color: #fff; outline-offset: 0; }

/* 4. Header & navigation -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(0, 17, 85, .12); }

/* Desktop: three columns, logo in the middle, one list on each side */
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 92px;
}
.logo { grid-column: 2; grid-row: 1; padding: 8px 0; }
.logo img { height: 76px; width: auto; }

.nav { display: contents; }
.nav-list { display: flex; gap: 38px; grid-row: 1; }
.nav-left { grid-column: 1; justify-content: flex-end; padding-right: 56px; }
.nav-right { grid-column: 3; justify-content: flex-start; padding-left: 56px; }

.nav a {
  position: relative; display: inline-block; padding: 8px 0;
  color: var(--navy); font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.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); }

/* Below 992px: logo left, hamburger right, menu opens as a dropdown panel */
@media (max-width: 991.98px) {
  html { scroll-padding-top: 84px; }
  .header-inner { display: flex; justify-content: space-between; min-height: 72px; }
  .logo { padding: 6px 0; }
  .logo img { height: 58px; }
  .nav-toggle { display: block; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 17, 85, .14);
    padding: 6px 20px 14px;
  }
  .nav.is-open { display: block; animation: drop .25s ease; }
  .nav-list { flex-direction: column; gap: 0; padding: 0; }
  .nav-left, .nav-right { padding: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav-right li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 15px 4px; font-size: 15px; }
  .nav a::after { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 5. Hero slider (home) --------------------------------------------------- */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--navy); color: #fff; }

.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* keep the subject of each photo in frame when it is cropped on narrow screens */
.slide-1 > img { object-position: 68% 40%; }
.slide-2 > img { object-position: 62% 50%; }
.slide-3 > img { object-position: 82% 50%; }

/* soft dark overlay so the headline is readable on any photo */
.slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0, 4, 24, .78) 0%, rgba(0, 4, 24, .38) 42%, rgba(0, 4, 24, .08) 100%),
    linear-gradient(90deg, rgba(0, 17, 85, .45) 0%, rgba(0, 17, 85, 0) 65%);
}
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 104px; }
.hero-title {
  max-width: 700px; margin: 0;
  color: #fff; font-size: 56px; font-weight: 500; line-height: 1.15; letter-spacing: .01em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
}
.hero-title::before {
  content: ''; display: block; width: 56px; height: 4px; margin-bottom: 22px;
  border-radius: 4px; background: linear-gradient(90deg, #0083d7, #6cc4ff);
}
.slide.is-active .hero-title { animation: rise .9s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; }
.hero-controls-inner { position: relative; display: flex; justify-content: center; align-items: center; min-height: 48px; }
.hero-dots { display: flex; align-items: center; }
.dot { width: 26px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dot::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  transform: translate(-50%, -50%); border-radius: 10px; background: rgba(255, 255, 255, .5);
  transition: width .3s, background .3s;
}
.dot:hover::before { background: rgba(255, 255, 255, .85); }
.dot.is-active::before { width: 28px; background: #fff; }
.dot:focus-visible { outline-color: #fff; }

.hero-next {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  transition: transform .25s;
}
.hero-next:hover { transform: translateY(-50%) scale(1.08); }
.hero-next:focus-visible { outline-color: #fff; }

@media (max-width: 1199.98px) {
  .hero-title { font-size: 44px; }
}
@media (max-width: 767.98px) {
  .hero { height: 420px; }
  .hero-title { font-size: 34px; }
  .hero-title::before { width: 44px; height: 3px; margin-bottom: 16px; }
  .slide-text { padding-bottom: 92px; }
  .hero-controls { bottom: 22px; }
  .hero-next { width: 44px; height: 44px; }
}

/* 6. Page hero (brands, contact) ------------------------------------------ */
.page-hero {
  position: relative; display: grid; place-items: center; height: 380px; overflow: hidden;
  background: var(--navy); color: #fff; text-align: center;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.page-hero-inner { position: relative; z-index: 1; padding: 0 20px; max-width: 900px; }
.page-hero h1 { color: #fff; font-size: 52px; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.page-hero h1::after {
  content: ''; display: block; width: 56px; height: 4px; margin: 16px auto 18px;
  border-radius: 4px; background: linear-gradient(90deg, #0083d7, #6cc4ff);
}
.page-hero p { margin: 0; font-size: 18px; font-weight: 300; color: rgba(255, 255, 255, .92); }

@media (max-width: 767.98px) {
  .page-hero { height: 280px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero h1::after { margin: 12px auto 14px; }
  .page-hero p { font-size: 16px; }
}

/* 7. Home sections ---------------------------------------------------------- */

/* What we do: three photo cards */
.section-cards { padding: 80px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--radius); background: var(--navy); color: #fff;
  box-shadow: 0 14px 34px rgba(0, 17, 85, .14);
}
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 8, 40, .9) 0%, rgba(0, 8, 40, .5) 38%, rgba(0, 8, 40, 0) 72%);
}
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px; }
.card-link .card-body { padding-right: 88px; }
.card h3 { margin-bottom: 8px; color: #fff; font-size: 22px; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.card-arrow {
  position: absolute; right: 26px; bottom: 30px; z-index: 1;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 20px;
  border: 1px solid rgba(255, 255, 255, .5);
  transition: transform .3s;
}
.card-link:hover > img { transform: scale(1.06); }
.card-link:hover .card-arrow { transform: translateX(4px); }

/* About */
.section-about { padding-top: 70px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about-text h2 { margin-bottom: 26px; font-size: 38px; line-height: 1.25; }
.about-text p { margin: 0 0 16px; }
.about-text .btn { margin-top: 14px; }

.rotator .rw { display: none; color: var(--blue); font-weight: 600; }
.rotator .rw.on { display: inline; animation: word .7s ease both; }
@keyframes word { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.about-img { position: relative; isolation: isolate; }
.about-img::before {
  content: ''; position: absolute; z-index: -1; right: -14px; bottom: -14px; width: 72%; height: 72%;
  border-radius: 22px; background: var(--grad); opacity: .9;
}
.about-img img { width: 100%; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 17, 85, .2); }

/* Retail partners */
.partner-grid { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 14px) / var(--cols));
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 14px;
  background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0, 17, 85, .06);
  transition: transform .25s, box-shadow .25s;
}
.partner:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 17, 85, .12); }
.partner img { width: 70%; height: 100%; object-fit: contain; }

@media (min-width: 768px) { .partner-grid { --cols: 4; } }
@media (min-width: 1200px) { .partner-grid { --cols: 8; } }

/* Brand strip: infinite marquee.
   Two identical lists sit side by side and the track slides by exactly one list (-50%). */
.section-brands { padding-bottom: 80px; }
.section-brands .section-head { margin-bottom: 36px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex: none; }
.marquee-list img { height: 70px; width: auto; max-width: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip-cta { margin-top: 44px; text-align: center; }

/* 8. Brands page ------------------------------------------------------------ */
.brand-intro-section { padding: 70px 0 10px; }
.brand-intro { max-width: 720px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.8; }
.brand-grid-section { margin-top: 60px; padding: 70px 0 90px; }

.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.brand-card {
  display: flex; flex-direction: column; padding: 20px 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0, 17, 85, .13); border-color: transparent; }
.brand-card img { width: 100%; height: 120px; object-fit: contain; }
.brand-card p { margin: 14px 0 0; font-size: 13px; line-height: 1.5; text-align: center; color: #888; }

@media (min-width: 576px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .brand-grid { grid-template-columns: repeat(6, 1fr); } }

/* 9. Contact page ----------------------------------------------------------- */
.contact-section { padding: 80px 0 90px; }
.contact-heading { margin-bottom: 44px; text-align: center; font-size: 30px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  padding: 40px 28px 34px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 17, 85, .07);
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 17, 85, .12); }
.info-icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 28px;
  box-shadow: 0 10px 22px rgba(0, 131, 215, .3);
}
.info-card h3 { margin-bottom: 10px; font-size: 19px; }
.info-card p { margin: 0 0 8px; overflow-wrap: anywhere; }
.info-card a { color: var(--blue); font-weight: 500; }
.info-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-card > a:last-child { display: inline-block; margin-top: 6px; font-size: 14px; }

.map { display: block; width: 100%; height: 450px; border: 0; background: var(--light); }

/* 10. Footer & floating buttons ---------------------------------------------- */
.site-footer { padding: 60px 0 30px; background: var(--footer); color: var(--footer-text); text-align: center; font-size: 14px; }
.site-footer h2 { margin-bottom: 18px; color: #fff; font-size: 20px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--footer-text); transition: color .2s; }
.site-footer a:hover { color: #6cc4ff; }
.site-footer .footer-bottom {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: #b5b5b5;
}

.float-contact {
  position: fixed; right: 0; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; align-items: center; gap: 9px; padding: 13px 18px 13px 20px;
  border-radius: 30px 0 0 30px; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 17, 85, .32);
  transition: padding .25s;
}
.float-contact .icon { width: 18px; height: 18px; }
.float-contact:hover { padding-right: 28px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 22px; cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 22px rgba(0, 17, 85, .3);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* 11. Reveal on scroll (only hides content when JS is running) ---------------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive: tablet and down ------------------------------------------------- */
@media (max-width: 991.98px) {
  .section { padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text h2 { font-size: 32px; }
  .about-img { max-width: 560px; }
  .about-img::before { right: -10px; bottom: -10px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .card { aspect-ratio: 3 / 4.3; }
  .card-body { padding: 20px; }
  .card-link .card-body { padding-right: 64px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 13px; }
  .card-arrow { right: 16px; bottom: 20px; width: 36px; height: 36px; font-size: 18px; }
}
@media (max-width: 767.98px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .section-head { margin-bottom: 32px; }
  .section-cards { padding: 48px 0 16px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card { aspect-ratio: 1 / 1; }
  .card-body { padding: 24px; }
  .card-link .card-body { padding-right: 82px; }
  .card-arrow { right: 20px; bottom: 24px; }
  .about-text h2 { font-size: 28px; }
  .partner { height: 92px; padding: 12px; }
  .marquee-list { gap: 40px; padding-right: 40px; }
  .marquee-list img { height: 56px; }
  .brand-intro { font-size: 16px; }
  .brand-grid-section { margin-top: 40px; padding: 48px 0 64px; }
  .brand-grid { gap: 12px; }
  .brand-card { padding: 16px 10px 14px; }
  .brand-card img { height: 96px; }
  .contact-section { padding: 56px 0 64px; }
  .contact-heading { font-size: 24px; margin-bottom: 32px; }
  .info-grid { grid-template-columns: 1fr; gap: 18px; }
  .map { height: 360px; }
  .site-footer { padding: 48px 0 26px; }
}
@media (max-width: 575.98px) {
  .topbar .topbar-mail { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; }
  /* contact tab shrinks to an icon and sits above the back-to-top button, so it never covers text */
  .float-contact { top: auto; bottom: 74px; transform: none; padding: 12px 12px 12px 14px; }
  .float-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .float-contact:hover { padding-right: 12px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* 12. Thai ----------------------------------------------------------------------- */
html[lang="th"] body { line-height: 1.8; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.4; }
html[lang="th"] .hero-title { letter-spacing: 0; line-height: 1.3; font-size: 52px; }
html[lang="th"] .page-hero h1 { letter-spacing: 0; }
html[lang="th"] .eyebrow, html[lang="th"] .btn, html[lang="th"] .float-contact { letter-spacing: 0; }
html[lang="th"] .eyebrow { font-size: 15px; }
html[lang="th"] .btn, html[lang="th"] .float-contact { font-size: 13px; }
html[lang="th"] .card p, html[lang="th"] .brand-card p { line-height: 1.6; }
@media (max-width: 1199.98px) { html[lang="th"] .hero-title { font-size: 42px; } }
@media (max-width: 767.98px) { html[lang="th"] .hero-title { font-size: 31px; } }

/* 13. Reduced motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  /* brand strip becomes a static wrapped grid */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { display: block; width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; gap: 24px 36px; padding: 0 20px; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767.98px) {
  .marquee-list { gap: 18px 26px; }
  .marquee-list img { height: 40px; }
}
