/* =========================================================
   NNS TRANSPORT — Smart Hi-Tech Logistics Design System
   ฟอนต์โหลดผ่าน <link> ในแต่ละหน้า: Prompt / Noto Sans Thai / Orbitron
   ========================================================= */

/* 🎨 Design tokens */
:root {
    --bg: #050a1c;
    --bg-alt: #081130;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(122, 162, 255, 0.16);
    --border-strong: rgba(0, 212, 255, 0.38);
    --text: #e8eeff;
    --muted: #97a3c7;
    --brand: #2e3a9f;
    --brand-bright: #4f6bff;
    --accent: #00d4ff;
    --accent-2: #36f1cd;
    --radius: 16px;
    --container: 1200px;
    --header-h: 72px;
    --font-head: 'Prompt', sans-serif;
    --font-body: 'Noto Sans Thai', sans-serif;
    --font-tech: 'Orbitron', 'Prompt', sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    /* แสงฟุ้ง + ลายกริดแบบแผงควบคุม */
    background-image:
        radial-gradient(1100px 600px at 85% -10%, rgba(79, 107, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 35%, rgba(0, 212, 255, 0.08), transparent 60%),
        linear-gradient(rgba(122, 162, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 162, 255, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

svg {
    flex-shrink: 0;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* ตัดคำภาษาไทยบางคำผิดตำแหน่ง ใช้ห่อคำที่ไม่ควรถูกแยกบรรทัด */
.nowrap {
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
}

.skip-link:focus {
    left: 12px;
}

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

.text-gradient {
    background: linear-gradient(90deg, #ffffff 0%, var(--accent) 60%, var(--brand-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted {
    color: var(--muted);
}

/* =========================================================
   🧭 Header & navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 10, 28, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    flex-shrink: 0;
}

/* โลโก้ NNS: ตัว N เป็นเส้นทาง GPS ในกรอบหกเหลี่ยม จุดปลายทางกะพริบ */
.brand-logo {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
}

.brand-node {
    animation: brand-blink 1.6s ease-in-out infinite;
}

@keyframes brand-blink {
    50% { opacity: 0.25; }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: var(--font-tech);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #ffffff 0%, #bfefff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    font-family: var(--font-tech);
    font-size: 8.5px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-text small em {
    font-style: normal;
    color: var(--accent);
}

.site-nav {
    margin-left: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    position: relative;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a[aria-current="page"] {
    color: var(--accent);
}

.nav-menu a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--brand-bright));
    box-shadow: 0 0 10px var(--accent);
}

.header-cta {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* เปลี่ยนเป็นรูป ✕ เมื่อเปิดเมนู */
.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   🔘 Buttons, labels, chips
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #04112a;
    background: linear-gradient(135deg, var(--accent), var(--brand-bright));
    box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.6);
}

.btn-primary:hover {
    box-shadow: 0 14px 36px -10px rgba(0, 212, 255, 0.85);
}

.btn-ghost {
    color: var(--text);
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    background: rgba(0, 212, 255, 0.12);
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    color: var(--muted);
}

.chip svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capacity {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.07);
    font-family: var(--font-tech);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--accent);
}

/* =========================================================
   🧱 Sections & cards
   ========================================================= */
.section {
    padding: 96px 0;
}

.section-tight {
    padding: 48px 0;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head h2,
.split h2 {
    margin-top: 14px;
    font-size: clamp(28px, 3.8vw, 42px);
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
}

.card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 50px -24px rgba(0, 212, 255, 0.35);
}

.card h3 {
    font-size: 20px;
}

.card p {
    color: var(--muted);
}

.card p:last-child {
    margin-bottom: 0;
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(79, 107, 255, 0.18));
    color: var(--accent);
    box-shadow: 0 0 24px -6px rgba(0, 212, 255, 0.5);
}

.icon-badge svg {
    width: 26px;
    height: 26px;
}

.card-meta {
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.split-lead {
    color: var(--muted);
    font-size: 17px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list svg {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--accent);
}

/* =========================================================
   🚀 Home hero
   ========================================================= */
.hero {
    position: relative;
    padding: 88px 0 80px;
    overflow: hidden;
}

.hero-routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.route {
    fill: none;
    stroke: rgba(0, 212, 255, 0.22);
    stroke-width: 1.5;
    stroke-dasharray: 6 10;
    animation: route-flow 40s linear infinite;
}

.route-2 {
    stroke: rgba(79, 107, 255, 0.28);
    animation-duration: 55s;
}

.route-node {
    fill: var(--accent);
    opacity: 0.8;
}

.route-packet {
    fill: var(--accent-2);
    filter: drop-shadow(0 0 6px var(--accent-2));
}

@keyframes route-flow {
    to {
        stroke-dashoffset: -1000;
    }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.hero h1 {
    margin: 18px 0 20px;
    font-size: clamp(36px, 5.2vw, 62px);
    font-weight: 700;
    line-height: 1.18;
}

.hero-lead {
    max-width: 560px;
    font-size: 18px;
    color: var(--muted);
}

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

/* HUD: กรอบภาพรถพร้อมป้ายสถานะแบบแผงควบคุม */
.hud {
    position: relative;
}

.hud-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    box-shadow: 0 30px 80px -30px rgba(0, 212, 255, 0.45);
}

.hud-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hud-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 10, 28, 0) 45%, rgba(5, 10, 28, 0.75)),
        repeating-linear-gradient(0deg, rgba(0, 212, 255, 0.05) 0 1px, transparent 1px 4px);
}

.hud-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -90px;
    z-index: 1;
    height: 90px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.18), transparent);
    animation: hud-scan 5s linear infinite;
}

@keyframes hud-scan {
    to {
        top: 100%;
    }
}

.hud-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
}

.hud-corner.tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

.hud-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(8, 17, 48, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.hud-chip strong {
    display: block;
    font-family: var(--font-tech);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.hud-chip svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.hud-chip--gps { top: 16px; left: 16px; }
.hud-chip--room { top: 42%; right: -18px; }
.hud-chip--safety { bottom: 18px; left: 16px; }

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(54, 241, 205, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(54, 241, 205, 0); }
    100% { box-shadow: 0 0 0 0 rgba(54, 241, 205, 0); }
}

/* 📊 Stats strip */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.stat-value {
    font-family: var(--font-tech);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

/* 🚚 Fleet cards */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 20px;
}

.fleet-card {
    padding: 0;
    overflow: hidden;
}

.fleet-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.fleet-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fleet-card:hover .fleet-media img {
    transform: scale(1.06);
}

.fleet-body {
    padding: 18px 20px 22px;
}

.fleet-body h3 {
    margin: 12px 0 6px;
    font-size: 18px;
}

.fleet-body p {
    font-size: 14px;
}

.section-action {
    margin-top: 36px;
    text-align: center;
}

/* 🔢 Numbered cards & process steps */
.num {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-tech);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    opacity: 0.85;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-num {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--font-tech);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.step h3 {
    font-size: 18px;
}

/* 📣 CTA band */
.cta-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 56px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(46, 58, 159, 0.6), rgba(0, 212, 255, 0.12));
}

.cta-band::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 65%);
    pointer-events: none;
}

.cta-band h2 {
    font-size: clamp(26px, 3.4vw, 38px);
}

.cta-band p {
    margin: 0;
    color: var(--muted);
}

.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================================================
   📄 Inner pages
   ========================================================= */
.page-hero {
    position: relative;
    padding: 80px 0 40px;
    text-align: center;
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 700;
}

.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* 🏢 About */
.vision-card {
    padding: 40px;
    border-left: 3px solid var(--accent);
}

.vision-card blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
    color: var(--text);
}

.mission-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.mission-card .icon-badge {
    margin-bottom: 0;
}

.mission-card p {
    margin: 0;
    color: var(--text);
}

.leader-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-color: var(--border-strong);
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.14), transparent 55%),
        var(--surface);
}

.leader-photo {
    position: relative;
}

.leader-photo img {
    width: 260px;
    height: 260px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 0 40px -8px rgba(0, 212, 255, 0.6);
}

.leader-body h3 {
    margin: 14px 0 6px;
    font-size: 30px;
}

/* ชื่อคนไม่อยู่ในพจนานุกรมตัดคำภาษาไทย จึงห้ามตัดกลางชื่อหรือนามสกุล */
.leader-name {
    white-space: nowrap;
}

.leader-title {
    margin: 0;
    color: var(--muted);
}

.leader-text {
    margin: 22px 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* 🛠️ Services */
.service-detail {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-detail .fleet-media {
    aspect-ratio: auto;
    min-height: 260px;
}

.service-body {
    padding: 32px;
}

.service-body h3 {
    margin: 14px 0 16px;
    font-size: 24px;
}

.service-body .chip-list {
    margin-top: 20px;
}

/* 🗂️ Company profile */
.profile-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.profile-toc a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.profile-toc a:hover {
    border-color: var(--border-strong);
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
}

.profile-slides {
    display: grid;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.shipping-card {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.slide-card {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.slide-card h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    font-size: clamp(20px, 2.4vw, 26px);
}

.slide-index {
    font-family: var(--font-tech);
    font-size: 14px;
    color: var(--accent);
}

.slide-zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: none;
    cursor: zoom-in;
}

.slide-zoom img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.slide-zoom:hover img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(5, 10, 28, 0.8);
    font-size: 13px;
    color: var(--text);
}

.zoom-hint svg {
    width: 16px;
    height: 16px;
}

.slide-text {
    margin-top: 22px;
    color: var(--muted);
}

.slide-text strong {
    color: var(--text);
}

.slide-text a {
    color: var(--accent);
}

.slide-text ul {
    margin: 0;
    padding-left: 22px;
}

/* 📦 การ์ดกลุ่มลูกค้า: จัดกึ่งกลางเป็น 3 + 2 แทนการปล่อยการ์ดใบสุดท้ายไว้ชิดซ้าย */
.segment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.segment-grid > .card {
    flex: 0 1 calc((100% - 40px) / 3);
    min-width: 240px;
}

.slide-card .segment-grid {
    margin-top: 22px;
}

/* 🔍 Lightbox */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(3, 6, 18, 0.95);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 94vw;
    max-height: 84vh;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.lightbox-caption {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 16px;
    text-align: center;
    font-family: var(--font-head);
    color: var(--text);
}

.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(8, 17, 48, 0.8);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.lightbox button:hover {
    background: rgba(0, 212, 255, 0.2);
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* 📰 News */
.news-card h3 {
    margin: 16px 0 10px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-meta svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* ☎️ Contact */
.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-card .label {
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.contact-card .value {
    margin: 6px 0 0;
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.contact-card .value a {
    color: var(--text);
}

.contact-card .value a:hover {
    color: var(--accent);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: start;
}

.contact-side {
    display: grid;
    gap: 20px;
}

.map-frame {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

.qr-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-card img {
    width: 120px;
    height: 120px;
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
}

/* 📝 Forms */
.form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b7799;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.field select option {
    background: var(--bg-alt);
    color: var(--text);
}

.field input[type="file"] {
    padding: 10px 12px;
}

.field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    font: inherit;
    color: var(--text);
    cursor: pointer;
}

.form-note {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.field .form-note {
    margin-top: 8px;
}

.form-honeypot {
    display: none;
}

.form-status {
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
    overflow-wrap: anywhere;
}

.form-status[hidden] {
    display: none;
}

.form-status[data-state="error"] {
    border-color: #ff9292;
    color: #ffd3d3;
    background: rgba(255, 100, 100, 0.08);
}

.form-status[data-state="success"] {
    border-color: #36f1cd;
    color: #c4fff3;
}

#quote-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* =========================================================
   🔚 Footer
   ========================================================= */
.site-footer {
    margin-top: 96px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(8, 17, 48, 0.6), var(--bg));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 64px 0 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.site-footer h2 {
    margin-bottom: 16px;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 80px 24px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom .tech {
    font-family: var(--font-tech);
    letter-spacing: 0.14em;
}

/* =========================================================
   ✨ Scroll reveal (เปิดใช้เมื่อมี JS เท่านั้น)
   ========================================================= */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   📱 Responsive
   ========================================================= */
@media (max-width: 1140px) {
    .nav-toggle {
        display: flex;
    }

    .header-cta {
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        margin: 0;
        border-bottom: 1px solid var(--border);
        background: #060c22;
        box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.8);
    }

    .menu-open .site-nav {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: min(100% - 32px, var(--container));
        margin: 0 auto;
        padding: 8px 0 16px;
    }

    .nav-menu a {
        padding: 14px 8px;
        border-bottom: 1px solid rgba(122, 162, 255, 0.08);
        border-radius: 0;
        font-size: 16px;
    }

    .nav-menu a[aria-current="page"]::after {
        left: 8px;
        right: auto;
        bottom: 8px;
        width: 28px;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 56px;
    }

    .hud {
        max-width: 560px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-detail .fleet-media {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .cta-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2n) {
        border-right: none;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .hud-chip--room {
        right: 12px;
    }

    .cta-band {
        padding: 36px 24px;
    }

    .vision-card {
        padding: 28px 24px;
    }

    .leader-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 28px;
        padding: 32px 24px;
        text-align: center;
    }

    .leader-photo img {
        width: 200px;
        height: 200px;
    }

    .leader-body h3 {
        font-size: 24px;
    }

    .leader-body .chip-list {
        justify-content: center;
    }

    .service-body {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 56px;
        transform: none;
    }

    /* เว้นที่ให้ปุ่มลอย LINE/FB ไม่บังข้อความท้ายหน้า */
    .footer-bottom {
        padding-bottom: 140px;
    }
}

@media (max-width: 560px) {
    .segment-grid > .card {
        flex-basis: 100%;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .brand-text small {
        letter-spacing: 0.2em;
    }

    .card {
        padding: 22px;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .hud-chip {
        padding: 8px 10px;
        font-size: 12px;
    }

    .hud-chip--room {
        display: none;
    }

    .steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ♿ ลดการเคลื่อนไหวสำหรับผู้ที่ตั้งค่าไว้ในระบบ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
