/* ==========================================================================
   style.css — Jidakarn IT
   โทนสี ฟ้า-ขาว / เลย์เอาต์ Bento + Glass
   ========================================================================== */

:root {
  --blue-700: #0856A3;
  --blue-600: #0B6FCB;
  --blue-500: #1E88E5;
  --blue-400: #38A8F5;
  --blue-200: #BFE2FF;
  --blue-100: #EAF5FF;
  --blue-50:  #F4F9FF;
  --navy-900: #061A30;
  --navy-800: #0A2540;
  --navy-700: #12365C;
  --ink:      #0A2540;
  --ink-soft: #4A6380;
  --line:     #D9E8F6;
  --white:    #FFFFFF;

  --grad-brand: linear-gradient(135deg, #0B6FCB 0%, #38A8F5 100%);
  --grad-navy:  linear-gradient(145deg, #0A2540 0%, #12365C 60%, #0B4F8F 100%);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow:    0 12px 32px rgba(10, 37, 64, .08);
  --shadow-lg: 0 24px 60px rgba(11, 111, 203, .18);

  --container: 1200px;
  --header-h:  76px;

  --font: "Kanit", Tahoma, sans-serif;
  --font-head: "Kanit", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--blue-50);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 16px; font-weight: 500;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(11,111,203,.3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,111,203,.4); }
.btn-ghost { background: rgba(255,255,255,.8); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--blue-600); border-color: var(--blue-200); transform: translateY(-2px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { color: var(--blue-600); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  padding-top: 14px;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 12px 0 22px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.site-header.is-scrolled .site-header__bar { box-shadow: var(--shadow); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: auto; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: .06em; }
.brand__sub  { font-size: 10.5px; letter-spacing: .14em; color: var(--blue-600); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 15.5px;
  transition: background .2s, color .2s;
}
.nav a:hover { color: var(--blue-600); background: var(--blue-100); }
.nav a.is-active { color: var(--blue-600); background: var(--blue-100); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--blue-100); border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px;
  font: 600 13px var(--font); color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.lang-switch button { display: inline-flex; align-items: center; justify-content: center; }
.lang-switch .flag { display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(10,37,64,.12); opacity: .55; transition: opacity .2s; }
.lang-switch button:hover .flag,
.lang-switch button[aria-pressed="true"] .flag { opacity: 1; }

.header-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--navy-800); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; position: relative; }
.section--tight { padding-block: 64px; }
.section--alt { background: #fff; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 16px;
  background: var(--blue-100); color: var(--blue-600);
  border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-lead { color: var(--ink-soft); font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(56,168,245,.28) 0%, rgba(56,168,245,0) 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -200px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(11,111,203,.12) 0%, rgba(11,111,203,0) 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero__title { font-size: clamp(34px, 5.2vw, 60px); font-weight: 500; margin-bottom: 20px; }
.hero__lead { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.chip svg { width: 16px; height: 16px; color: var(--blue-500); }

/* Hero visual: รูป + glass tiles */
.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero__photo {
  position: absolute; inset: 8% 6% 14% 10%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,111,203,.05) 30%, rgba(10,37,64,.55) 100%);
}
.glass-tile {
  position: absolute; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(255,255,255,.35));
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(11,111,203,.22), inset 0 1px 0 rgba(255,255,255,.9);
  color: var(--blue-600);
}
.glass-tile svg { width: 42px; height: 42px; }
.glass-tile--dark { background: linear-gradient(145deg, rgba(10,37,64,.92), rgba(18,54,92,.85)); border-color: rgba(255,255,255,.15); color: var(--blue-400); }
.glass-tile.t1 { top: 0; left: 0; transform: rotate(-10deg); }
.glass-tile.t2 { top: 2%; right: 0; transform: rotate(8deg); width: 80px; height: 80px; }
.glass-tile.t3 { bottom: 22%; left: -2%; transform: rotate(6deg); width: 76px; height: 76px; }
.glass-tile.t4 { top: 42%; right: -3%; transform: rotate(-6deg); }

.hero__status {
  position: absolute; left: 2%; right: 16%; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 20px;
  background: rgba(255,255,255,.88); border: 1px solid #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero__status-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex: none; }
.hero__status-icon svg { width: 24px; height: 24px; }
.hero__status strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 1.3; }
.hero__status span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Dark service strip (เหมือนแผงเข้มในดีไซน์) ---------- */
.strip {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px; align-items: center;
  padding: 32px 36px; border-radius: var(--radius-lg);
  background: var(--grad-navy); color: #fff;
  box-shadow: var(--shadow-lg);
}
.strip::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(56,168,245,.25);
  box-shadow: 0 0 0 60px rgba(56,168,245,.05), 0 0 0 120px rgba(56,168,245,.03);
}
.strip h2 { font-size: 24px; margin: 0 0 6px; }
.strip p { color: rgba(255,255,255,.7); margin: 0; font-size: 15px; }
.strip__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip__item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-size: 14.5px; line-height: 1.4;
  transition: background .2s, transform .2s;
}
.strip__item:hover { background: rgba(56,168,245,.16); transform: translateY(-3px); }
.strip__item svg { width: 28px; height: 28px; color: var(--blue-400); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.85); border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
}
.stat__label { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.stat__num { font-family: var(--font-head); font-size: 36px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.stat__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); flex: none; }
.stat__icon svg { width: 24px; height: 24px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  padding: 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--dark { background: var(--grad-navy); color: #fff; border-color: transparent; }
.card.card--dark p { color: rgba(255,255,255,.72); }
.card--blue { background: var(--grad-brand); color: #fff; border-color: transparent; }
.card.card--blue p { color: rgba(255,255,255,.85); }
.card--soft { background: linear-gradient(160deg, #fff 0%, var(--blue-100) 100%); }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.card--dark .card__icon, .card--blue .card__icon { background: rgba(255,255,255,.12); color: #fff; }
.card__icon svg { width: 28px; height: 28px; }
.card__media { margin: -32px -32px 24px; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-top: 8px; }
.card__link svg { width: 18px; height: 18px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }
.card--dark .card__link, .card--blue .card__link { color: #fff; }

.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6FCB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.card--dark .checklist li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338A8F5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.brand-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-row span {
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}

/* ---------- Clients marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: 15px;
}

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zone { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.zone__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 500;
}
.zone h3 { font-size: 18px; margin-bottom: 10px; }
.zone ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.zone li { padding: 3px 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: 13.5px; }

/* ---------- Page hero (หน้าย่อย) ---------- */
.page-hero { padding: 56px 0 24px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -160px; top: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,168,245,.25) 0%, rgba(56,168,245,0) 65%);
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb li { list-style: none; display: flex; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--blue-200); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 820px; }
.page-hero p { font-size: 18px; color: var(--ink-soft); max-width: 680px; }

/* ---------- Service detail ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card h3 { font-size: 20px; }
.service-card .tag { display: inline-block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--blue-500); text-transform: uppercase; }
.card--dark .tag, .card--blue .tag { color: var(--blue-200); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: "0" counter(step); display: block; margin-bottom: 12px;
  font-family: var(--font-head); font-size: 32px; font-weight: 500;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Portfolio ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.ref:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.ref__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); flex: none; }
.ref__icon svg { width: 22px; height: 22px; }
.ref h3 { font-size: 17px; margin-bottom: 4px; }
.ref p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 18px; min-height: 42px; border-radius: 999px; cursor: pointer;
  font: 500 15px var(--font); transition: all .2s;
}
.filter button:hover { color: var(--blue-600); border-color: var(--blue-200); }
.filter button[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.gallery { columns: 3; column-gap: 16px; }
.gallery figure {
  break-inside: avoid; margin: 0 0 16px; position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: zoom-in; background: var(--blue-100);
}
.gallery img { width: 100%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 8px 14px; border-radius: 12px; font-size: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: all .25s;
}
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }

.client-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.client-cloud li {
  list-style: none; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--ink-soft);
}
.client-cloud { padding: 0; margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px;
  background: rgba(6,26,48,.9); backdrop-filter: blur(6px);
}
.lightbox img { max-height: 86vh; width: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy-800); display: grid; place-items: center;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { text-align: left; }
.contact-card .big { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 500; margin: 4px 0 16px; color: var(--ink); }
.card--dark.contact-card .big, .card--blue.contact-card .big { color: #fff; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; min-height: 50px;
  font: 16px var(--font); color: var(--ink);
  background: var(--blue-50); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(56,168,245,.18);
}
.form-note { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: var(--radius-lg);
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ""; position: absolute; right: -80px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.88); margin: 0; font-size: 17px; }
.cta__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: var(--navy-900); color: rgba(255,255,255,.72); padding: 64px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__sub { color: var(--blue-400); }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--blue-400); }
.site-footer p { font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 4px; color: var(--blue-400); flex: none; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px;
}

/* Floating call button (มือถือ) */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(11,111,203,.4);
}
.fab svg { width: 26px; height: 26px; }
.fab:hover { color: #fff; }

/* 404 */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .code { font-family: var(--font-head); font-size: clamp(96px, 18vw, 180px); line-height: 1; font-weight: 600; }
