/* ============================================================
   Sinbarom — design system
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --navy:        #16243B;
  --navy-soft:   #1E3251;
  --ink:         #1B2333;
  --muted:       #5C6B82;
  --line:        #E4E8EF;
  --bg:          #FFFFFF;
  --bg-alt:      #F6F8FB;
  --gold:        #C8A35B;
  --gold-soft:   #E7D4A8;
  --teal:        #2BA7A0;
  --teal-deep:   #1F807B;
  --line-green:  #06C755;
  --white:       #FFFFFF;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(22,36,59,.06), 0 4px 12px rgba(22,36,59,.05);
  --shadow-md: 0 10px 30px rgba(22,36,59,.10);
  --shadow-lg: 0 24px 60px rgba(22,36,59,.16);
  --t: .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  /* Latin renders in Manrope (professional); Thai glyphs fall back to Noto Sans Thai */
  font-family: 'Manrope', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}

/* Thai mode: body content in Sarabun (formal, document-like);
   headings and UI chrome stay in Prompt for a strong brand voice */
html[lang="th"] body {
  font-family: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
}
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4,
html[lang="th"] .brand, html[lang="th"] .logo-text, html[lang="th"] .nav-links,
html[lang="th"] .dropdown b, html[lang="th"] .eyebrow, html[lang="th"] .btn,
html[lang="th"] .card-link, html[lang="th"] .stat b, html[lang="th"] .tl-item .yr,
html[lang="th"] .filter-bar, html[lang="th"] .svc-nav a, html[lang="th"] .crumbs {
  font-family: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
}

h1, h2, h3, h4 {
  line-height: 1.2; font-weight: 600; color: var(--navy); letter-spacing: -.01em;
  /* Thai has no spaces between words, so the browser breaks wherever it likes.
     balance evens the lines out and stops a stray word landing alone on the last one. */
  text-wrap: balance;
}
p, .lead { text-wrap: pretty; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--muted); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section--alt { background: var(--bg-alt); }
.section--slim { padding: 36px 0; }
.contact-trio { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-trio .btn { font-size: 1.05rem; padding: 16px 34px; }
.contact-trio .btn svg { width: 22px; height: 22px; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; max-width: 640px; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: .98rem; font-weight: 500;
  padding: 13px 26px; border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--t); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--gold); color: var(--navy); font-weight: 600; box-shadow: 0 6px 18px rgba(200,163,91,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,163,91,.45); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
/* LINE green filled button (for navy/light backgrounds) */
.btn--line { background: var(--line-green); color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(6,199,85,.32); }
.btn--line:hover { background: #05b54c; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6,199,85,.42); }
/* white LINE button (for use on the green LINE band) */
.btn--line-light { background: #fff; color: var(--line-green); font-weight: 700; }
.btn--line-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--line svg, .btn--line-light svg { width: 20px; height: 20px; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand .logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .logo-text b { font-size: 1.18rem; font-weight: 700; color: var(--navy); letter-spacing: .5px; }
.brand .logo-text span { font-size: .62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; font-size: .96rem; font-weight: 500;
  color: var(--ink); transition: var(--t);
}
.nav-links a:hover { color: var(--teal-deep); background: var(--bg-alt); }
.nav-links a.active { color: var(--teal-deep); }

/* ---- dropdown ---- */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.has-dropdown > a .caret { width: 12px; height: 12px; transition: transform var(--t); }
.has-dropdown:hover > a .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--t); z-index: 50;
}
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 9px; }
.dropdown a b { font-weight: 600; font-size: .92rem; color: var(--navy); }
.dropdown a small { font-size: .76rem; color: var(--muted); font-weight: 400; }
.dropdown a:hover { background: var(--bg-alt); }
.dropdown a:hover b { color: var(--teal-deep); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 50px; overflow: hidden;
  font-size: .8rem; font-weight: 600;
}
.lang-toggle button {
  font-family: inherit; border: none; background: transparent; cursor: pointer;
  padding: 6px 12px; color: var(--muted); transition: var(--t);
}
.lang-toggle button.active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: var(--t); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  background: var(--navy);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(8,18,40,.90) 0%,
    rgba(8,18,40,.75) 45%,
    rgba(8,18,40,.20) 100%
  );
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; padding: clamp(72px, 10vw, 120px) 0; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; margin: 22px 0 34px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 48px; }
.hero-stats .stat {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 32px 0 0; margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.hero-stats .stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stats .stat b { display: block; font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 5px; }

/* hero: full-bleed photo slideshow */
.hero-slide { position: absolute; inset: 0; z-index: 0; }
.hero-slide .slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide .slide.active { opacity: 1; }

/* ============================================================
   Generic blocks
   ============================================================ */
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.cards--row { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .cards--row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cards--row { grid-template-columns: repeat(2, 1fr); } }
/* one per row on phones — two columns leaves ~90px of text, which shreds Thai wording */
@media (max-width: 560px) { .cards--row { grid-template-columns: 1fr; gap: 14px; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: var(--t); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43,167,160,.14), rgba(43,167,160,.05));
  color: var(--teal-deep); margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
a.card { display: block; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--teal-deep); transition: var(--t); white-space: nowrap; }
a.card:hover .card-link { gap: 4px; color: var(--gold); }

/* rich prose: multiple paragraphs with comfortable rhythm */
.prose p { margin-top: 1.05em; }
.prose p:first-child { margin-top: 0; }
.prose p { color: var(--ink); }
.prose .first-line { font-size: 1.1rem; color: var(--muted); }
.prose strong { color: var(--navy); font-weight: 600; }

/* service detail page blocks */
.svc-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.info-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.info-item .num { font-size: .85rem; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.info-item h4 { margin: 6px 0; font-size: 1.02rem; }
.info-item p { font-size: .92rem; }
.svc-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.svc-nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); padding: 12px 20px; border: 1px solid var(--line); border-radius: 50px; transition: var(--t); }
.svc-nav a:hover { border-color: var(--gold); color: var(--gold); }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.check-list li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }

/* ---------- brand wall ---------- */
/* no cards or borders — the logos sit open on the section background */
.brandwall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 32px; }
.brandwall .brand-cell {
  padding: 22px 14px; display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.brandwall .brand-cell:hover { transform: translateY(-4px); }
.brandwall .brand-cell img {
  max-height: 56px; max-width: 100%; width: auto; object-fit: contain;
  border-radius: 6px; /* only shows on bigc.png, which is an opaque tile */
}

/* ---------- work slider ---------- */
.work-slider { position: relative; }
.ws-viewport {
  overflow: hidden; margin: 0 -11px; padding: 6px 0 10px;
  /* let the page scroll vertically, but keep horizontal gestures for the slider */
  touch-action: pan-y;
}
.ws-track { display: flex; transition: transform .7s cubic-bezier(.22,.61,.36,1); user-select: none; }
.ws-track.ws-drag { transition: none; cursor: grabbing; }
.ws-slide { flex: 0 0 25%; max-width: 25%; padding: 0 11px; }

.ws-card {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  background: var(--navy); transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.ws-card img {
  /* portrait — lift cabins are vertical, a landscape crop cuts them in half */
  display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
  -webkit-user-drag: none; user-select: none;
}
/* hover flourishes only where there's a real pointer — avoids sticky hover on touch */
@media (hover: hover) {
  .ws-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .ws-card:hover img { transform: scale(1.07); }
}
.ws-meta {
  position: absolute; inset: auto 0 0 0; padding: 20px;
  background: linear-gradient(transparent, rgba(11,18,32,.88)); color: #fff;
}
.ws-meta .tag { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.ws-meta h4 { color: #fff; font-size: 1.02rem; margin-top: 2px; }

.ws-nav {
  position: absolute; top: calc(50% - 34px); transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); transition: var(--t); z-index: 2;
}
@media (hover: hover) {
  .ws-nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
}
.ws-nav svg { width: 20px; height: 20px; }
.ws-prev { left: -22px; }
.ws-next { right: -22px; }

.ws-dots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.ws-dots button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50px;
  background: var(--line); cursor: pointer; transition: var(--t);
}
.ws-dots button:hover { background: var(--gold-soft); }
.ws-dots button.active { width: 28px; background: var(--gold); }

/* ---------- project list (text, no photos) ---------- */
.proj-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 56px; }
.proj-group h3 { font-size: 1.02rem; color: var(--navy); letter-spacing: .3px; }
.proj-group h3::after { content: ''; display: block; width: 42px; height: 2px; background: var(--gold); margin-top: 10px; }
.proj-list { list-style: none; margin-top: 14px; }
.proj-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .97rem; }
.proj-list li:last-child { border-bottom: none; }

/* ---------- portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-bar button {
  font-family: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: 9px 20px; border-radius: 50px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); transition: var(--t);
}
.filter-bar button.active, .filter-bar button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }
.work-item { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); transition: var(--t); }
.work-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-item .thumb { aspect-ratio: 4/3; }
.work-item .meta { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, rgba(11,18,32,.86)); color: #fff; }
.work-item .meta .tag { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.work-item .meta h4 { color: #fff; font-size: 1.02rem; margin-top: 2px; }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--teal)); }
.tl-item { position: relative; padding: 0 0 38px 48px; }
.tl-item::before { content: ''; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.tl-item .yr { font-weight: 700; color: var(--teal-deep); font-size: 1.05rem; }
.tl-item h3 { margin: 2px 0 6px; }
.tl-item p { font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: #fff; border-radius: 24px; padding: clamp(40px,6vw,68px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; width:360px; height:360px; border-radius:50%; background: radial-gradient(circle, rgba(200,163,91,.3), transparent 70%); top:-120px; right:-80px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); position: relative; max-width: 560px; margin: 14px auto 30px; }
.cta-band .hero-cta { justify-content: center; position: relative; }
.cta-band--line { background: linear-gradient(135deg, #06C755, #05A848); }
.cta-band--line::before { background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); }
.cta-band--line p { color: rgba(255,255,255,.92); }

/* placeholder media (SVG bg) */
.ph { width: 100%; height: 100%; background-size: cover; background-position: center; min-height: 220px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.72); transition: var(--t); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; display: grid; gap: 11px; font-size: .95rem; }
.footer-brand .brand .logo-text b { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: 16px; max-width: 280px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .95rem; }
.contact-line svg { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
a.contact-line { text-decoration: none; color: inherit; transition: var(--t); }
a.contact-line:hover { color: #fff; }
.contact-line.is-line svg { color: var(--line-green); width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: #fff; padding: clamp(56px,8vw,96px) 0 clamp(48px,7vw,80px); position: relative; overflow: hidden; }
.page-hero::after { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; opacity:.5; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 600px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.crumbs a:hover { color: var(--gold); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* i18n: hide inactive language */
[data-en] { display: none; }
html[lang="en"] [data-th] { display: none; }
html[lang="en"] [data-en] { display: revert; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .split, .svc-intro { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brandwall { grid-template-columns: repeat(3, 1fr); }
  .proj-groups { grid-template-columns: 1fr; gap: 26px; }
  .ws-slide { flex-basis: 33.3333%; max-width: 33.3333%; }
  .ws-prev { left: 8px; }
  .ws-next { right: 8px; }
}
@media (max-width: 700px) {
  .ws-slide { flex-basis: 50%; max-width: 50%; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; }
  /* dropdown becomes an inline, always-open sub-list on mobile */
  .has-dropdown > a .caret { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; margin: 2px 0 6px 16px; padding: 0; min-width: 0;
  }
  .dropdown a { padding: 9px 16px; }
  .dropdown a small { display: none; }
  /* hero: let content set the height instead of 92vh, so what's below is reachable */
  .hero { min-height: 0; }
  .hero-content { padding: 56px 0 50px; }
  .hero p { font-size: 1.02rem; margin: 18px 0 28px; }
  .hero-stats { gap: 26px; margin-top: 34px; }
  .hero-stats .stat { padding-right: 22px; margin-right: 22px; }
  .hero-stats .stat b { font-size: 2rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brandwall { grid-template-columns: repeat(2, 1fr); }
  /* keep all three stats on one row instead of orphaning the third */
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero-stats .stat { padding-right: 12px; margin-right: 12px; }
  .hero-stats .stat b { font-size: 1.7rem; }
  .hero-stats .stat span { font-size: .72rem; line-height: 1.35; }
  .ws-slide { flex-basis: 100%; max-width: 100%; }
  .ws-nav { width: 44px; height: 44px; }
  /* the gallery has 22 slides — smaller dots keep them on one row */
  .ws-dots { gap: 6px; }
  .ws-dots button { width: 7px; height: 7px; }
  .ws-dots button.active { width: 20px; }
  /* stack the phone/email/LINE buttons full-width instead of wrapping raggedly */
  .contact-trio { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact-trio .btn { width: 100%; font-size: 1rem; padding: 15px 22px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  /* compact cards: icon sits beside the title instead of stacked above it */
  /* a.card sets display:block, so match that specificity to win */
  .card, a.card {
    display: grid; grid-template-columns: 42px 1fr;
    column-gap: 14px; row-gap: 10px; align-items: center;
    padding: 22px 20px;
  }
  .card .ic { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 0; }
  .card .ic svg { width: 22px; height: 22px; }
  .card h3 { margin-bottom: 0; }
  .card > p, .card > .card-link { grid-column: 1 / -1; align-self: start; }
  .card > .card-link { margin-top: 2px; }
}
