/* ============================================================
   D.D. Motor Service — Main stylesheet
   Industrial Professional (Navy + Amber)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-800); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-600); }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin-bottom: 1rem; }
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; overflow: hidden; position: absolute !important;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.site-content { min-height: 50vh; }

/* ---------- Icons ---------- */
.icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.18em; }
.icon svg { width: 100%; height: 100%; }
.icon--sm { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.55em;
    padding: 0.8em 1.4em;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.97rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--accent { background: var(--amber-500); color: var(--navy-900); }
.btn--accent:hover { background: var(--amber-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); color: var(--amber-400); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--border); }
.btn--outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.btn--sm { padding: 0.55em 1em; font-size: 0.9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--navy-900);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.4rem; flex-wrap: wrap; }
.topbar__info { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar__info li { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar__info a { color: rgba(255,255,255,0.85); }
.topbar__info a:hover { color: var(--amber-400); }
.topbar__info .icon { color: var(--amber-400); }
.topbar__mail { display: none; }
.badge-24 {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(245,158,11,0.16);
    color: var(--amber-400);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
}
.badge-24 .icon { color: var(--amber-400); }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
}
.navbar.is-stuck { box-shadow: var(--shadow); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.7rem; }

/* Brand */
.site-branding { flex: none; }
/* Universal custom-logo sizing — prevents distortion everywhere */
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo {
    width: auto !important;
    height: 52px !important;
    max-width: 220px;
    object-fit: contain;
}
.site-branding .custom-logo-link { display: inline-block; line-height: 0; }
.site-branding .custom-logo {
    width: auto;
    height: 52px;          /* default: match navbar height */
    max-width: 220px;      /* prevent overflow on wide logos */
    object-fit: contain;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--amber-400);
    font-weight: 800; font-size: 1.05rem;
    border-radius: 10px;
    letter-spacing: -0.5px;
    box-shadow: inset 0 0 0 2px rgba(245,158,11,0.4);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); }
.brand__text small { font-size: 0.72rem; color: var(--amber-600); font-weight: 500; letter-spacing: 0.5px; }

/* Menu */
.main-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.menu { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.menu > li > a {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text);
    font-size: 0.97rem;
}
.menu > li > a:hover, .menu > li.is-active > a { color: var(--navy-900); background: var(--bg-alt); }

/* Navbar actions */
.navbar__actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.btn-phone { font-weight: 600; }
.btn-phone .icon { color: var(--navy-900); }

/* Hamburger */
.nav-toggle {
    display: none;
    background: transparent; border: 0; cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle__box { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle__box span { display: block; height: 3px; background: var(--navy-900); border-radius: 2px; transition: all var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
    min-height: 560px;
}
.hero::after {
    content: '';
    position: absolute; right: -100px; bottom: -100px;
    width: 400px; height: 400px;
    border: 40px solid rgba(245,158,11,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.hero__inner {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem; align-items: center;
    padding-block: 5.5rem 5rem;
    position: relative; z-index: 2;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(245,158,11,0.16);
    color: var(--amber-400);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 1.3rem;
}
.hero__eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--amber-400); border-radius: 50%; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 span { color: var(--amber-400); }
.hero__subtitle { font-size: 1.08rem; color: rgba(255,255,255,0.82); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Hero visual is now the background image — hide the placeholder box */
.hero__visual { display: none; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual-glyph {
    width: 60%; max-width: 280px; opacity: 0.92;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}
.hero__stats {
    display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.8rem; color: var(--amber-400); font-weight: 700; }
.hero__stats span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ============================================================
   Section helpers
   ============================================================ */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__eyebrow {
    display: inline-block;
    color: var(--amber-600);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.section__title { margin-bottom: 0.8rem; }
.section__desc { color: var(--text-muted); font-size: 1.05rem; }
.section--navy .section__desc { color: rgba(255,255,255,0.7); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-block: 2.2rem;
}
.trust__item {
    text-align: center;
    padding: 0.5rem 1rem;
    position: relative;
}
.trust__item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border);
}
.trust__num {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}
.trust__num em { color: var(--amber-500); font-style: normal; }
.trust__lbl { margin-top: 0.4rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

/* ============================================================
   WHY US (cards)
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}
.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.7rem 1.3rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.why-card__icon {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(11,37,69,0.06), rgba(245,158,11,0.1));
    color: var(--navy-900);
    border-radius: 14px;
}
.why-card__icon svg { width: 30px; height: 30px; }
.why-card:hover .why-card__icon { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--amber-400); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.3rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--amber-500); transform: scaleY(0); transform-origin: bottom; transition: transform var(--transition);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card__icon {
    width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-900);
    color: var(--amber-400);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: background var(--transition);
}
.svc-card:hover .svc-card__icon { background: var(--amber-500); color: var(--navy-900); }
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.svc-card__th { display: block; color: var(--amber-600); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.6rem; }
.svc-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Section actions (ดูทั้งหมด) */
.section__actions { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}
.prod-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.3rem;
    text-align: center;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-card__icon {
    width: 72px; height: 72px;
    margin: 0 auto 1.2rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(11,37,69,0.08));
    color: var(--navy-900);
}
.prod-card__icon svg { width: 36px; height: 36px; }
.prod-card:hover .prod-card__icon { background: var(--amber-500); color: var(--navy-900); }
.prod-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.prod-card__th { display: block; color: var(--amber-600); font-size: 0.85rem; margin-bottom: 0.6rem; }
.prod-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { padding-block: 3rem; background: var(--bg-alt); overflow: hidden; }
.clients__head { text-align: center; margin-bottom: 1.8rem; color: var(--text-muted); font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }

.clients__track-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.clients__track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: client-scroll 30s linear infinite;
}
@keyframes client-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.client-logo img {
    max-height: 50px;
    max-width: 160px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}
.client-logo:hover { opacity: 1; }

/* ============================================================
   WORKS / GALLERY (ผลงาน)
   ============================================================ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    transition: all var(--transition);
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: var(--text);
}
.work-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.work-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(245,158,11,0.5);
}
.work-card__placeholder svg { width: 64px; height: 64px; }
.work-card__cat {
    position: absolute; top: 0.8rem; left: 0.8rem;
    background: var(--amber-500);
    color: var(--navy-900);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.3px;
}
.work-card__body {
    padding: 1.3rem 1.3rem 1.5rem;
    display: flex; flex-direction: column;
    flex: 1;
}
.work-card__body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--navy-900);
    transition: color var(--transition);
}
.work-card:hover .work-card__body h3 { color: var(--amber-600); }
.work-card__body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
}
.work-card__more {
    margin-top: auto;
    color: var(--navy-900);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.35rem;
    transition: gap var(--transition), color var(--transition);
}
.work-card:hover .work-card__more { color: var(--amber-600); gap: 0.6rem; }

/* Filter bar (archive page) */
.works-filter {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding-block: 1.2rem;
}
.works-filter .container {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    justify-content: center;
}
.works-filter__btn {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
}
.works-filter__btn .count {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 0.2rem;
}
.works-filter__btn:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}
.works-filter__btn.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}
.works-filter__btn.is-active .count { color: var(--amber-400); }

/* Empty state */
.works-empty {
    text-align: center;
    padding-block: 3rem 1rem;
}
.works-empty__icon {
    display: inline-flex;
    width: 80px; height: 80px;
    margin-bottom: 1.2rem;
    align-items: center; justify-content: center;
    background: var(--bg-alt);
    border-radius: 50%;
    color: var(--navy-700);
}
.works-empty__icon svg { width: 40px; height: 40px; }
.works-empty h2 { margin-bottom: 0.5rem; }
.works-empty p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 480px; margin-inline: auto; }

/* ---- Single work ---- */
.page-header--work { text-align: left; }
.page-header--work .container { max-width: 1000px; }
.work-cats {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1rem;
}
.work-cats__item {
    display: inline-block;
    background: rgba(245,158,11,0.16);
    color: var(--amber-400);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}
.work-cats__item:hover { background: var(--amber-500); color: var(--navy-900); }

.work-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}
.work-featured {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}
.work-featured img { width: 100%; height: 100%; object-fit: cover; }

.work-content { font-size: 1.02rem; line-height: 1.8; }
.work-content h2 { margin-top: 2rem; }
.work-content h3 { margin-top: 1.5rem; }
.work-content ul, .work-content ol { margin: 1rem 0; }
.work-content li { margin-bottom: 0.4rem; }

/* Gallery (uploaded images) */
.work-gallery { margin-bottom: 2rem; }
.work-gallery__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-alt);
}
.work-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}
.work-gallery__item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}
.work-gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.work-gallery__item:hover img { transform: scale(1.08); }

/* Work nav (prev/next) */
.work-nav {
    display: flex; justify-content: space-between;
    margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    gap: 1rem; flex-wrap: wrap;
}
.work-nav__side { max-width: 48%; }
.work-nav__side a {
    color: var(--navy-900);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
}
.work-nav__side a:hover { color: var(--amber-600); }
.work-nav__side--right { text-align: right; }

/* Work aside (sidebar info) */
.work-aside {
    position: sticky; top: 100px;
}
.work-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.work-info h3 {
    margin-bottom: 1.3rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--bg-alt);
}
.work-info ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.work-info li {
    display: flex; flex-direction: column;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}
.work-info li:last-child { border-bottom: 0; }
.work-info__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.work-info__value {
    font-weight: 500;
    color: var(--navy-900);
    font-size: 0.97rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .work-layout { grid-template-columns: 1fr; }
    .work-aside { position: static; }
}
@media (max-width: 640px) {
    .works-grid { grid-template-columns: 1fr; }
    .work-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .work-gallery__grid { grid-template-columns: 1fr; }
    .work-nav__side { max-width: 100%; text-align: left; }
    .work-nav__side--right { text-align: left; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background:
        linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 100%);
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; right: -80px; top: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 70%);
}
.cta-band__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding-block: 3rem; position: relative; z-index: 2; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; max-width: 540px; }
.cta-band__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); }
.footer-widgets { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-widgets__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.4fr;
    gap: 2.5rem;
    padding-block: 3.5rem 3rem;
}
.brand--footer .brand__text strong { color: var(--white); }
.footer-col--about .custom-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain;
}
.footer-about { margin: 1rem 0 1.2rem; font-size: 0.92rem; line-height: 1.6; }
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}
.footer-social {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    transition: all var(--transition);
}
.footer-social .icon { width: 1.15em; height: 1.15em; }
.footer-social:hover { background: var(--amber-500); color: var(--navy-900); }
.footer-social:hover .icon { color: var(--navy-900); }
.footer-social[href*="facebook"]:hover { background: #1877F2; color: #fff; }
.footer-social[href*="facebook"]:hover .icon { color: #fff; }
.footer-social[href*="line.me"]:hover { background: #06C755; color: #fff; }
.footer-social[href*="line.me"]:hover .icon { color: #fff; }
.footer-col__title { color: var(--white); font-size: 1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: 0.6rem; }
.footer-col__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--amber-500); }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.6rem; }
.footer-menu a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-menu a:hover { color: var(--amber-400); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 0.7rem; margin-bottom: 0.9rem; font-size: 0.92rem; align-items: flex-start; }
.footer-contact .icon { color: var(--amber-400); flex: none; margin-top: 0.2em; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--amber-400); }
.site-info { padding-block: 1.3rem; }
.site-info p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.55); text-align: center; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    background:
        linear-gradient(120deg, rgba(11,37,69,0.96), rgba(19,49,92,0.88)),
        radial-gradient(circle at 80% 30%, rgba(245,158,11,0.25), transparent 50%);
    color: var(--white);
    padding-block: clamp(2.8rem, 6vw, 4.5rem);
    text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.75); margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--amber-400); }
.breadcrumb .sep { margin-inline: 0.4rem; opacity: 0.6; }

/* Content page */
.page-content-area { padding-block: 3.5rem; }
.page-content-area .container { max-width: 860px; }
.page-content-area .entry-content { font-size: 1.05rem; line-height: 1.8; }
.page-content-area .entry-content h2 { margin-top: 2rem; }
.page-content-area .entry-content ul { margin: 1rem 0; }
.page-content-area .entry-content li { margin-bottom: 0.4rem; }

/* List of services/products on subpages */
.detail-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-info-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem;
}
.contact-info-card h3 { margin-bottom: 1.3rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--bg-alt); }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info-card li { display: flex; gap: 0.9rem; margin-bottom: 1.2rem; align-items: flex-start; }
.contact-info-card .icon-wrap { width: 40px; height: 40px; flex: none; background: var(--navy-900); color: var(--amber-400); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.contact-info-card .icon-wrap svg { width: 20px; height: 20px; }
.contact-info-card .icon-wrap--facebook { background: #1877F2; color: #fff; }
.contact-info-card .icon-wrap--line { background: #06C755; color: #fff; }
.contact-info-card .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-card .value { font-weight: 500; color: var(--navy-900); }
.contact-info-card .value a { color: var(--navy-900); }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact-form h3 { margin-bottom: 1.3rem; }
.contact-form .row { margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.92rem; color: var(--text); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; padding: 0.75rem 0.9rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.97rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(19,49,92,0.12); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1rem; }

/* 404 */
.error-404 { text-align: center; padding-block: 5rem; }
.error-404 h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--amber-500); margin-bottom: 0.5rem; line-height: 1; }
.error-404 .search-form { max-width: 420px; margin: 1.5rem auto 0; display: flex; gap: 0.5rem; }
.error-404 .search-form input { flex: 1; padding: 0.7rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; }
.error-404 .search-form button { padding: 0.7rem 1.4rem; background: var(--navy-900); color: var(--white); border: 0; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-weight: 600; }

/* Entry utility */
.entry-content { max-width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.5rem; }
    .hero__visual { order: -1; max-width: 480px; }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .svc-grid { grid-template-columns: repeat(3, 1fr); }
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    /* Mobile navigation */
    .site-branding .custom-logo { height: 44px; max-width: 170px; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh; height: 100dvh;
        width: min(82vw, 320px);
        background: var(--white);
        box-shadow: -10px 0 40px rgba(0,0,0,0.2);
        transform: translateX(100%);
        transition: transform var(--transition);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        z-index: 1100;
        overflow-y: auto;
    }
    .main-nav.is-open { transform: translateX(0); }
    .menu { flex-direction: column; align-items: stretch; gap: 0.2rem; width: 100%; }
    .menu > li > a { display: block; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
    .menu > li > a:hover, .menu > li.is-active > a { background: var(--bg-alt); }
    .navbar__actions .btn-phone span { display: none; }
    .navbar__actions .btn-phone { padding: 0.55em; }
    .nav-overlay {
        position: fixed; inset: 0; background: rgba(11,37,69,0.5);
        opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 1050;
    }
    .nav-overlay.is-open { opacity: 1; visibility: visible; }
    .topbar__info { gap: 1rem; }
    .footer-widgets__grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.5rem; }
    .trust__item:nth-child(2)::after { display: none; }
    .why-grid, .svc-grid, .prod-grid, .detail-list { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; text-align: center; align-items: center; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }
    .hero__stats { gap: 1.2rem; flex-wrap: wrap; }
    .topbar__info { font-size: 0.8rem; gap: 0.8rem; }
    .topbar__inner { justify-content: center; }
    .topbar__right { display: none; }
}

@media (max-width: 420px) {
    .why-grid, .svc-grid, .prod-grid, .detail-list { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    .topbar, .navbar__actions, .nav-toggle, .cta-band, .site-footer { display: none; }
    body { background: #fff; color: #000; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   REDESIGN 2026 — Modern Industrial Premium
   Deep navy surfaces, amber conversion accents, stronger cards,
   refreshed hero visual, and cleaner responsive behavior.
   ============================================================ */

::selection {
    background: var(--amber-400);
    color: var(--navy-950);
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 176, 0, 0.10), transparent 28rem),
        radial-gradient(circle at 95% 12%, rgba(16, 45, 78, 0.10), transparent 30rem),
        linear-gradient(180deg, #fbfdff 0%, var(--bg) 46%, #f9fbfd 100%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 176, 0, 0.55);
    outline-offset: 3px;
}

.container {
    padding-inline: clamp(1.1rem, 3vw, 2rem);
}

.btn {
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.10);
    letter-spacing: 0.01em;
}

.btn--accent {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500) 52%, var(--amber-600));
    color: var(--navy-950);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn--accent:hover {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    box-shadow: var(--shadow-glow);
}

.btn--navy {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.btn--navy:hover {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

/* Header */
.topbar {
    background:
        linear-gradient(90deg, var(--navy-950), var(--navy-900));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
    min-height: 42px;
}

.badge-24 {
    background: rgba(255, 176, 0, 0.14);
    border: 1px solid rgba(255, 209, 102, 0.18);
}

.navbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(221, 230, 240, 0.70);
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar.is-stuck {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
}

.navbar__inner {
    padding-block: 0.9rem;
}

.brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 176, 0, 0.18), transparent 45%),
        linear-gradient(135deg, var(--navy-950), var(--navy-700));
    box-shadow:
        inset 0 0 0 1px rgba(255, 209, 102, 0.36),
        0 15px 34px rgba(11, 31, 58, 0.18);
}

.brand__text strong {
    letter-spacing: -0.02em;
}

.menu > li > a {
    position: relative;
    border-radius: 999px;
    color: #243047;
    font-weight: 600;
}

.menu > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.25rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-500);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.menu > li > a:hover,
.menu > li.is-active > a {
    background: rgba(255, 176, 0, 0.10);
    color: var(--navy-900);
}

.menu > li > a:hover::after,
.menu > li.is-active > a::after {
    width: 34%;
}

.btn-phone {
    box-shadow: 0 16px 36px rgba(255, 176, 0, 0.24);
}

/* Hero */
.hero {
    min-height: 690px;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 176, 0, 0.30), transparent 18rem),
        radial-gradient(circle at 15% 15%, rgba(22, 68, 108, 0.72), transparent 30rem),
        linear-gradient(132deg, var(--navy-950) 0%, var(--navy-900) 46%, #102b49 100%);
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.030) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 45%, transparent 100%);
    opacity: 0.8;
    pointer-events: none;
}

.hero::after {
    right: -7rem;
    bottom: -8rem;
    width: 34rem;
    height: 34rem;
    border-width: 4rem;
    border-color: rgba(255, 176, 0, 0.08);
}

.hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.82fr);
    gap: clamp(2.5rem, 5vw, 4.6rem);
    padding-block: clamp(5rem, 9vw, 7.5rem);
}

.hero__content {
    max-width: 750px;
}

.hero__eyebrow {
    background: rgba(255, 176, 0, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.26);
    color: var(--amber-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.45rem, 5.6vw, 5.1rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero h1 span {
    color: var(--amber-400);
    text-shadow: 0 0 38px rgba(255, 176, 0, 0.24);
}

.hero__subtitle {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
}

.hero__badge .icon {
    color: var(--amber-400);
}

.hero__actions {
    align-items: center;
}

.hero__stats {
    width: min(100%, 640px);
    gap: 0;
    margin-top: 2.8rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.hero__stats > div {
    flex: 1;
    min-width: 130px;
    padding: 0.4rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.hero__stats > div:last-child {
    border-right: 0;
}

.hero__stats strong {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1;
}

.hero__visual {
    display: block;
    position: relative;
    min-height: 520px;
}

.hero__visual-card {
    position: relative;
    height: min(540px, 62vh);
    min-height: 440px;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 176, 0, 0.24), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
    transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.hero__visual-card::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    pointer-events: none;
    z-index: 2;
}

.hero__visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(6, 21, 37, 0.28) 52%, rgba(6, 21, 37, 0.82) 100%),
        radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.22), transparent 12rem);
    z-index: 1;
}

.hero__visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.05);
}

.hero__visual-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 209, 102, 0.92);
    z-index: 1;
}

.hero__visual-glyph svg {
    width: min(72%, 330px);
    height: auto;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.34));
}

.hero__visual-label {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    z-index: 3;
    display: grid;
    gap: 0.25rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(6, 21, 37, 0.72);
    backdrop-filter: blur(16px);
}

.hero__visual-label span {
    color: var(--amber-400);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__visual-label strong {
    color: var(--white);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero__floating {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 0.05rem;
    min-width: 132px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(16px);
}

.hero__floating strong {
    color: var(--navy-900);
    font-size: 1.5rem;
    line-height: 1;
}

.hero__floating span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero__floating--top {
    top: 3rem;
    left: -1.6rem;
}

.hero__floating--bottom {
    right: -1rem;
    bottom: 5.2rem;
}

/* Section system */
.section {
    position: relative;
}

.section--alt {
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 176, 0, 0.08), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.section--navy {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 176, 0, 0.20), transparent 18rem),
        radial-gradient(circle at 86% 70%, rgba(22, 68, 108, 0.60), transparent 26rem),
        linear-gradient(135deg, var(--navy-950), var(--navy-900));
    overflow: hidden;
}

.section--navy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.45;
    pointer-events: none;
}

.section--navy > .container {
    position: relative;
    z-index: 1;
}

.section__head {
    max-width: 850px;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 176, 0, 0.12);
    color: var(--amber-600);
    letter-spacing: 0.08em;
}

.section__eyebrow::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(255, 176, 0, 0.10);
}

.section__eyebrow--light,
.section--navy .section__eyebrow {
    color: var(--amber-400);
    background: rgba(255, 176, 0, 0.13);
    border: 1px solid rgba(255, 209, 102, 0.20);
}

.section__title {
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.section__desc {
    max-width: 760px;
    margin-inline: auto;
}

.section__head--left .section__desc {
    margin-inline: 0;
}

/* Trust bar */
.trust {
    position: relative;
    z-index: 4;
    margin-top: -3.8rem;
    background: transparent;
    border-bottom: 0;
}

.trust__grid {
    padding: 1.35rem;
    border: 1px solid rgba(221, 230, 240, 0.82);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.trust__item {
    border-radius: 20px;
    transition: background var(--transition), transform var(--transition);
}

.trust__item:hover {
    background: var(--surface-soft);
    transform: translateY(-3px);
}

.trust__item:not(:last-child)::after {
    background: rgba(16, 45, 78, 0.10);
}

.trust__num {
    letter-spacing: -0.06em;
}

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

/* Cards */
.why-card,
.svc-card,
.prod-card,
.work-card,
.contact-info-card,
.contact-form-card,
.work-info {
    border: 1px solid rgba(221, 230, 240, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.why-card,
.svc-card,
.prod-card {
    isolation: isolate;
}

.why-card::after,
.svc-card::after,
.prod-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 0%, rgba(255, 176, 0, 0.16), transparent 13rem);
    transition: opacity var(--transition);
}

.why-card:hover,
.svc-card:hover,
.prod-card:hover,
.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 176, 0, 0.28);
    box-shadow: var(--shadow-lg);
}

.why-card:hover::after,
.svc-card:hover::after,
.prod-card:hover::after {
    opacity: 1;
}

.why-card {
    position: relative;
    padding: 1.9rem 1.35rem;
}

.why-card__icon,
.svc-card__icon,
.prod-card__icon {
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.14);
}

.why-card__icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 176, 0, 0.18), rgba(16, 45, 78, 0.08));
}

.svc-card {
    border-radius: 24px;
    padding: 1.8rem 1.45rem;
}

.svc-card::before {
    width: 100%;
    height: 4px;
    bottom: auto;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--amber-500), var(--amber-400));
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-card__icon {
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
}

.svc-card:hover .svc-card__icon,
.prod-card:hover .prod-card__icon,
.why-card:hover .why-card__icon {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    color: var(--navy-950);
}

.prod-grid--featured {
    grid-template-columns: repeat(4, 1fr);
}

.prod-card {
    border-radius: 26px;
}

.prod-card__icon {
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(16, 45, 78, 0.08), rgba(255, 176, 0, 0.16));
}

.works-grid {
    gap: 1.6rem;
}

.work-card {
    border-radius: 28px;
}

.work-card__media {
    border-bottom: 1px solid rgba(221, 230, 240, 0.7);
}

.work-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(6, 21, 37, 0.42));
    pointer-events: none;
}

.work-card__cat {
    z-index: 2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.clients {
    background:
        linear-gradient(180deg, var(--bg-alt), #ffffff);
}

.clients__track-wrapper {
    padding: 1.25rem 0;
    border: 1px solid rgba(221, 230, 240, 0.72);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

/* Contact CTA */
.contact-cta-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.4rem;
    max-width: 1040px;
    margin: 0 auto;
}

.contact-cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.contact-cta-card::before {
    content: '';
    position: absolute;
    inset: -35% auto auto -25%;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: rgba(255, 176, 0, 0.12);
    pointer-events: none;
}

.contact-cta-card h3 {
    position: relative;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-cta-card--info h3 {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.contact-cta-card--action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-cta-card--action p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.contact-cta-card__note {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.48) !important;
    font-size: 0.86rem;
}

/* Footer */
.cta-band {
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 176, 0, 0.26), transparent 18rem),
        linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 100%);
}

.footer-widgets__grid {
    gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer {
    background:
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

/* Inner pages */
.page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 176, 0, 0.20), transparent 20rem),
        radial-gradient(circle at 78% 40%, rgba(22, 68, 108, 0.58), transparent 24rem),
        linear-gradient(135deg, var(--navy-950), var(--navy-900));
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.detail-list--products {
    grid-template-columns: repeat(3, 1fr);
}

.quote-panel {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid rgba(221, 230, 240, 0.82);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 176, 0, 0.20), transparent 12rem),
        linear-gradient(135deg, #ffffff, var(--bg-alt));
    box-shadow: var(--shadow-sm);
}

.quote-panel::after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 12rem;
    height: 12rem;
    border: 2rem solid rgba(255, 176, 0, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.quote-panel h3 {
    margin-bottom: 1rem;
}

.quote-panel p {
    max-width: 720px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

/* Responsive redesign */
@media (max-width: 1180px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__content {
        max-width: 860px;
    }

    .hero__visual {
        max-width: 680px;
        min-height: 430px;
    }
}

@media (max-width: 1024px) {
    .prod-grid--featured {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 860px) {
    .navbar__inner {
        padding-block: 0.72rem;
    }

    .main-nav {
        background:
            radial-gradient(circle at 20% 5%, rgba(255, 176, 0, 0.11), transparent 12rem),
            rgba(255, 255, 255, 0.98);
    }

    .menu > li > a::after {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        padding-block: 4rem;
    }

    .hero__visual {
        min-height: 360px;
    }

    .hero__visual-card {
        min-height: 350px;
        height: 380px;
        transform: none;
    }

    .hero__floating--top {
        left: 0.8rem;
    }

    .hero__floating--bottom {
        right: 0.8rem;
    }

    .trust {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: clamp(2rem, 11vw, 2.75rem);
    }

    .hero__inner {
        padding-block: 3.2rem;
    }

    .hero h1 {
        letter-spacing: -0.04em;
    }

    .hero__badges {
        gap: 0.55rem;
    }

    .hero__badge {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero__stats > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.11);
        text-align: center;
    }

    .hero__stats > div:last-child {
        border-bottom: 0;
    }

    .hero__visual {
        min-height: 300px;
    }

    .hero__visual-card {
        min-height: 290px;
        height: 320px;
        border-radius: 26px;
    }

    .hero__visual-label {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .hero__floating {
        display: none;
    }

    .trust__grid {
        grid-template-columns: 1fr;
        padding: 0.8rem;
    }

    .trust__item:not(:last-child)::after {
        display: none;
    }

    .why-grid,
    .svc-grid,
    .prod-grid,
    .prod-grid--featured,
    .detail-list,
    .detail-list--products {
        grid-template-columns: 1fr;
    }

    .contact-cta-card,
    .quote-panel {
        border-radius: 22px;
    }
}

/* ============================================================
   Readability refinement — Thai-friendly typography spacing
   ลดความแน่นของตัวอักษร เพิ่มช่องไฟและบรรทัดให้อ่านง่ายขึ้น
   ============================================================ */
body {
    font-size: 17px;
    line-height: 1.78;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.brand__text strong,
.section__title,
.hero h1,
.page-header h1 {
    letter-spacing: 0;
    word-spacing: 0.04em;
}

h1,
.hero h1,
.page-header h1 {
    line-height: 1.18;
}

h2,
.section__title {
    line-height: 1.34;
}

h3 {
    line-height: 1.42;
}

p,
li,
.section__desc,
.hero__subtitle,
.svc-card p,
.prod-card p,
.why-card p,
.work-card__body p,
.footer-about,
.footer-contact li,
.contact-cta-card p,
.quote-panel p {
    line-height: 1.82;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(2.25rem, 5vw, 4.55rem);
    margin-bottom: 1.45rem;
}

.hero__subtitle {
    max-width: 700px;
    margin-bottom: 2.2rem;
}

.section__head {
    max-width: 900px;
    margin-bottom: clamp(2.4rem, 4.6vw, 4.1rem);
}

.section__title {
    margin-bottom: 1.05rem;
}

.section__desc {
    font-size: clamp(1.02rem, 1.2vw, 1.12rem);
}

.section__eyebrow,
.hero__eyebrow,
.clients__head {
    letter-spacing: 0.04em;
}

.menu > li > a {
    padding-inline: 1.05rem;
    line-height: 1.45;
    letter-spacing: 0;
}

.topbar__info,
.badge-24,
.brand__text small,
.hero__badge,
.work-card__cat,
.footer-menu a,
.footer-contact li {
    letter-spacing: 0;
}

.why-card,
.svc-card,
.prod-card {
    padding: 2.05rem 1.55rem;
}

.svc-card h3,
.prod-card h3,
.why-card h3,
.work-card__body h3 {
    margin-bottom: 0.7rem;
}

.svc-card__th,
.prod-card__th {
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.svc-grid,
.prod-grid,
.why-grid,
.works-grid,
.detail-list {
    gap: clamp(1.35rem, 2.2vw, 1.9rem);
}

.work-card__body {
    padding: 1.55rem 1.55rem 1.8rem;
}

.btn {
    letter-spacing: 0;
    line-height: 1.45;
}

.contact-cta-card h3,
.quote-panel h3,
.cta-band h2 {
    margin-bottom: 1.15rem;
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
        line-height: 1.75;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.22;
    }

    .why-card,
    .svc-card,
    .prod-card,
    .work-card__body,
    .contact-cta-card,
    .quote-panel {
        padding: 1.55rem 1.2rem;
    }

    .section__head {
        margin-bottom: 2.2rem;
    }
}

/* ============================================================
   Hero cleanup — removed visual card per feedback
   ============================================================ */
.hero {
    min-height: auto;
}

.hero__inner {
    grid-template-columns: minmax(0, 920px);
    justify-content: flex-start;
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.hero__content {
    max-width: 920px;
}

.hero h1 {
    max-width: 900px;
}

.hero__subtitle {
    max-width: 760px;
}

.hero__visual,
.hero__visual-card,
.hero__floating {
    display: none !important;
}

@media (max-width: 640px) {
    .hero__inner {
        padding-block: 3.4rem 4rem;
    }
}
.svc-card__icon, .prod-card__icon, .why-card__icon { width: 72px; height: 72px; min-width: 72px; display: grid; place-items: center; overflow: hidden; }
.svc-card__icon svg, .prod-card__icon svg, .why-card__icon svg { width: 34px; height: 34px; max-width: 100%; max-height: 100%; }
.about-grid > div:first-child { background: var(--surface); padding: clamp(1.5rem, 4vw, 3rem); border-left: 4px solid var(--amber-500); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid .hero__visual { min-height: 360px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy-900), var(--navy-700)); border-radius: var(--radius-lg); color: var(--amber-400); box-shadow: var(--shadow-lg); }
.about-grid .hero__visual svg { width: min(78%, 340px); height: auto; }
.products-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.products-sidebar { display: block !important; min-width: 0; }
.products-sidebar { position: sticky; top: 1.5rem; background: var(--surface); padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: visible; }
.products-search { display: flex; flex-direction: column; gap: .6rem; position: relative; }
.products-search input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.products-search .btn { border: 0; padding: .65rem .8rem; cursor: pointer; }
.products-categories { display: block; margin-top: 1.4rem; }
.products-categories:not(.products-categories--tree) { display: none; }

/* Custom Category Tree Navigation styling */
.cat-nav__heading {
    display: block;
    color: var(--navy-900);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--amber-500);
}
.cat-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cat-nav__item {
    display: block;
    margin: 0;
}
.cat-nav__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}
.cat-nav__item a:hover {
    background: var(--bg-alt);
    color: var(--navy-900);
    padding-left: 0.95rem;
}

.cat-nav__parent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.35rem;
}

.cat-nav__parent-link {
    color: var(--navy-900);
    font-weight: 600;
}

.cat-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-width: 2.25rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--navy-700);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.cat-nav__toggle:hover,
.cat-nav__toggle:focus-visible {
    background: var(--bg-alt);
    color: var(--navy-900);
}

.cat-nav__item--parent.is-active .cat-nav__parent-link,
.cat-nav__item--all.is-active > a {
    background: var(--navy-900);
    color: #fff;
}
.cat-nav__item--parent.is-active .cat-nav__parent-link:hover,
.cat-nav__item--all.is-active > a:hover {
    color: #fff;
    background: var(--navy-950);
}
.cat-nav__item--parent.is-active .cat-nav__toggle {
    color: var(--navy-900);
    background: rgba(11, 37, 69, 0.08);
}

.cat-nav__item--parent.is-open .cat-nav__children {
    display: flex;
}
.cat-nav__item--parent .cat-nav__children {
    display: flex; /* Always display child items visually in layout */
}

/* Child Category List */
.cat-nav__children {
    list-style: none;
    margin: 0.2rem 0 0.4rem 1rem;
    padding: 0 0 0 0.8rem;
    border-left: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cat-nav__item--child a {
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
    color: var(--text-light);
    font-weight: 400;
}
.cat-nav__item--child a:hover {
    padding-left: 0.7rem;
    color: var(--navy-800);
    background: var(--bg-alt);
}
.cat-nav__item--child.is-active a {
    color: var(--amber-600);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.06);
}
.cat-nav__item--child.is-active a::before {
    content: "•";
    color: var(--amber-500);
    margin-right: 4px;
    font-weight: bold;
}

/* Item Count Badge */
.cat-nav__count {
    font-size: 0.74rem;
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}
.cat-nav__item--child.is-active .cat-nav__count {
    background: rgba(217, 119, 6, 0.12);
    color: var(--amber-700);
}

/* Toggle Arrow rotation */
.cat-nav__arrow {
    display: inline-flex;
    transition: transform var(--transition);
    opacity: 0.7;
}
.cat-nav__item--parent.is-open .cat-nav__arrow,
.cat-nav__item--parent.is-active .cat-nav__arrow {
    transform: rotate(90deg);
}
.work-card__date { display: block; margin-top: .35rem; color: var(--text-light); font-size: .78rem; }
@media (max-width: 900px) { .products-layout { grid-template-columns: 1fr; } .products-sidebar { position: static; } }
.menu > li > a:hover, .menu > li > a:focus-visible, .menu > li.current-menu-item > a, .menu > li.current-menu-ancestor > a, .menu > li.is-active > a { color: var(--navy-900); background: var(--bg-alt); }
.work-gallery__item { cursor: zoom-in; }
.work-video { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--border); position: relative; }
.work-video::before { content: ''; position: absolute; top: -2px; left: 0; width: 72px; height: 3px; background: var(--amber-500); border-radius: 3px; }
.work-video .work-gallery__title { margin-bottom: 1.25rem; border-bottom: 0; padding-bottom: 0; }
.work-video__frame { display: block; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.work-video__frame video { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.ddms-lightbox { position: fixed !important; inset: 0 !important; z-index: 99999 !important; width: 100vw; height: 100dvh; box-sizing: border-box; display: grid !important; place-items: center !important; padding: 1rem; background: rgba(3,10,19,.92) !important; visibility: visible !important; opacity: 1 !important; overflow: hidden !important; }
.ddms-lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; cursor: pointer; }
.ddms-lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 60px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.ddms-lightbox__nav:hover, .ddms-lightbox__nav:focus-visible { background: var(--amber-500); color: var(--navy-950); }
.ddms-lightbox__nav--prev { left: 1.25rem; }
.ddms-lightbox__nav--next { right: 1.25rem; }
.ddms-lightbox__nav[hidden] { display: none; }
.ddms-lightbox img, .ddms-lightbox video { max-width: 96vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.work-content .wp-block-gallery img,
.work-content .gallery img,
.work-content figure.wp-block-image img { cursor: zoom-in; }
@media (max-width: 640px) {
    .ddms-lightbox { padding: 3.5rem .75rem 2.5rem; }
    .ddms-lightbox img, .ddms-lightbox video { max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 6rem); justify-self: center; align-self: center; }
    .ddms-lightbox__nav { width: 38px; height: 48px; font-size: 1.5rem; }
    .ddms-lightbox__nav--prev { left: .4rem; }
    .ddms-lightbox__nav--next { right: .4rem; }
}
.navbar__actions { position: relative; z-index: 1201; }
.nav-toggle { position: relative; z-index: 1202; touch-action: manipulation; }
@media (max-width: 860px) {
    .navbar { z-index: 1200; }
    .main-nav { z-index: 1203; pointer-events: auto; }
    .nav-overlay { z-index: 1190; }
    html, body { max-width: 100%; overflow-x: hidden; }
    .main-nav {
        box-sizing: border-box;
        width: min(82vw, 320px);
        max-width: 100vw;
        right: 0;
    }
    .navbar__actions .btn-phone { display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .55rem .8rem; border-radius: 999px; font-size: .82rem; white-space: nowrap; }
    .navbar__actions .btn-phone span { display: inline !important; }
    .navbar__actions .btn-phone .icon { width: 18px; height: 18px; }
}

/* D.D. Motor Service redesign system */
:root { --container: 1320px; --radius: 16px; --radius-lg: 24px; --shadow: 0 18px 50px rgba(6,21,37,.10); --shadow-lg: 0 28px 70px rgba(6,21,37,.18); }
body { background: #f7f9fc; color: #172033; letter-spacing: .005em; }
.container { width: min(var(--container), calc(100% - 3rem)); }
.navbar { background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(16,45,78,.08); backdrop-filter: blur(14px); }
.menu > li > a { border-radius: 9px; font-weight: 600; letter-spacing: .01em; }
.page-header { padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; width: 32rem; height: 32rem; right: -12rem; top: -16rem; border: 1px solid rgba(255,176,0,.28); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,176,0,.05), 0 0 0 100px rgba(255,176,0,.025); }
.page-header h1 { color: #fff; max-width: 820px; font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: 1.03; letter-spacing: -.04em; }
.page-header > .container { position: relative; z-index: 1; }
.page-header > .container { text-align: center; }
.page-header h1, .page-header p { margin-inline: auto; }
.page-header .breadcrumb { justify-content: center; }
.posts-navigation .nav-links, .pagination .nav-links, .page-numbers { display: inline-flex; align-items: center; gap: .45rem; }
.page-numbers { min-width: 42px; min-height: 40px; justify-content: center; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy-900); font-weight: 700; text-decoration: none; }
.page-numbers:hover, .page-numbers:focus-visible, .page-numbers.current { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.breadcrumb { color: rgba(255,255,255,.68); }
.breadcrumb a { color: var(--amber-400); }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section--alt { background: #eef3f8; }
.section__title { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.08; }
.section__head { max-width: 760px; margin-bottom: 3rem; }
.section__head--left { text-align: left; margin-left: 0; }
.section__eyebrow { color: var(--amber-600); font-weight: 800; letter-spacing: .12em; font-size: .72rem; text-transform: uppercase; }
.hero { min-height: min(760px, 78vh); display: flex; align-items: center; background-position: center; }
.hero::before { opacity: .72; }
.hero__content { max-width: 760px; padding-block: 6rem; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); letter-spacing: -.035em; line-height: 1.16 !important; }
.hero p { max-width: 620px; font-size: 1.12rem; color: rgba(255,255,255,.78); }
.detail-list, .works-grid { gap: 1.25rem; }
.svc-card, .prod-card, .why-card, .work-card { border-radius: var(--radius); border: 1px solid rgba(16,45,78,.10); box-shadow: 0 8px 26px rgba(6,21,37,.05); background: #fff; }
.svc-card, .prod-card { padding: 1.6rem; min-height: 250px; }
.svc-card h3, .prod-card h3, .work-card h3 { letter-spacing: -.02em; }
.svc-card:hover, .prod-card:hover, .work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.works-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.work-card__media { aspect-ratio: 4/3; }
.work-card__body { padding: 1.35rem 1.45rem 1.5rem; }
.work-card__more { color: var(--amber-600); font-weight: 700; }
.products-layout { grid-template-columns: 250px minmax(0,1fr); }
.products-sidebar { border-top: 3px solid var(--amber-500); }
.products-categories strong { color: var(--navy-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.quote-panel { border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); }
.quote-panel h3 { color: #fff; }
.site-footer { background: var(--navy-950); }
/* Keep the mobile browser's bottom safe-area/overscroll consistent with the footer. */
html { background: var(--navy-950); }
.site-footer { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 860px) { .container { width: min(var(--container), calc(100% - 2rem)); } .works-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .hero { min-height: 640px; } }
@media (max-width: 600px) { .works-grid { grid-template-columns: 1fr; } .page-header h1 { font-size: 2.6rem; } .section { padding: 3.75rem 0; } .hero h1 { font-size: 3rem; } }
.clients { position: relative; padding-block: clamp(4rem, 8vw, 7rem); background: var(--navy-950); color: #fff; overflow: hidden; }
.clients::before { content: ''; position: absolute; width: 24rem; height: 24rem; left: -12rem; top: -12rem; border: 1px solid rgba(255,176,0,.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,176,0,.04), 0 0 0 84px rgba(255,176,0,.025); }
.clients .container { position: relative; z-index: 1; }
.clients__head { max-width: 620px; margin: 0 auto 2.4rem; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: .01em; text-transform: none; font-weight: 500; }
.clients__head::before { content: 'TRUSTED PARTNERS'; display: block; margin-bottom: .75rem; color: var(--amber-400); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.clients__track-wrapper { padding: 1.7rem 0; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.clients__track-wrapper { width: min(100%, 980px); margin-inline: auto; padding: 1.1rem 0; }
.clients__track { gap: 1rem; }
.client-logo { width: 140px; height: 66px; padding: .7rem .85rem; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.95); opacity: .9; }
.client-logo:hover { opacity: 1; transform: translateY(-3px); }
.client-logo img { max-height: 42px; max-width: 118px; filter: saturate(.9); }
/* Compact the dark showcase band without shrinking its logo cards. */
.clients { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.clients__head { margin-bottom: 1.5rem; }
.clients__track-wrapper { padding-block: 1rem; }
.client-logo { width: 180px; height: 86px; padding: 1rem 1.2rem; }
.client-logo img { max-height: 52px; max-width: 148px; }
.section--navy#contact { padding-block: 3rem; }
.section--navy#contact .section__head { margin-bottom: 1.75rem; }
.section--navy#contact .section__title { font-size: clamp(1.8rem, 3.4vw, 3rem); margin-bottom: .55rem; }
.section--navy#contact .section__desc { font-size: .95rem; }
.section--navy#contact .contact-cta-grid { max-width: 900px; gap: 1rem; }
.section--navy#contact .contact-cta-card { padding: 1.35rem 1.5rem; }
.section--navy#contact .contact-cta-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.section--navy#contact .contact-cta-card p { margin-bottom: .75rem; line-height: 1.55; }
.section--navy#contact .footer-contact li { margin-bottom: .28rem; line-height: 1.35; color: rgba(255,255,255,.9); }
.section--navy#contact .footer-contact li small { color: rgba(255,255,255,.68); }
.section--navy#contact .footer-contact a { color: rgba(255,255,255,.94); font-weight: 600; }
.section--navy#contact .contact-phone-row { gap: 0; margin-bottom: .25rem; line-height: 1.4; }
.section--navy#contact .contact-phone-row small { margin-bottom: -.18rem; line-height: 1.2; }
.contact-cta-card--info .footer-contact li { margin-bottom: .2rem !important; line-height: 1.25 !important; }
.contact-cta-card--info .footer-contact li:not(.contact-phone-item) { margin-bottom: .55rem !important; line-height: 1.45 !important; }
.contact-cta-card--info .footer-contact li.contact-phone-item { margin-bottom: .2rem !important; line-height: 1.25 !important; }
.contact-cta-card--info .contact-phone-row { gap: 0 !important; margin-bottom: .12rem !important; line-height: 1.2 !important; }
.contact-cta-card--info .contact-phone-row small { margin-bottom: -.25rem !important; line-height: 1.1 !important; }
.section--navy#contact .btn--lg { padding: .65rem 1.05rem; font-size: .9rem; }
.section--navy#contact .contact-cta-card__note { font-size: .78rem; margin-top: .6rem; }
.cta-band { padding-block: 0; }
.cta-band__inner { gap: 1.25rem; }
.cta-band__inner { padding-block: 2rem; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
.cta-band p { font-size: .95rem; }
.cta-band .btn--lg { padding: .65rem 1.05rem; font-size: .9rem; }
.about-grid .section__title, .about-grid h2 { line-height: 1.3 !important; letter-spacing: -.025em; }
.quote-panel { max-width: 980px; margin-inline: auto; padding: 1.5rem 1.75rem; }
.quote-panel h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin-bottom: .65rem; }
.quote-panel p { color: rgba(255,255,255,.82) !important; font-size: .92rem; line-height: 1.55; margin-bottom: 1rem; }
.quote-panel .btn { padding: .65rem 1rem; font-size: .9rem; }
/* Products intro banner */
.products-intro-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.1rem 1.6rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy-900) 0%, #1a3a5c 100%);
    border-left: 5px solid var(--amber-500);
    box-shadow: 0 8px 28px rgba(6, 21, 37, 0.14);
}
.intro-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.18);
    color: var(--amber-400);
}
.intro-banner__icon svg {
    width: 26px;
    height: 26px;
}
.intro-banner__text {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.products-search .btn { justify-content: center; align-items: center; width: 100%; min-height: 36px; padding: .45rem .7rem; font-size: .82rem; line-height: 1; }
.products-results-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .15rem; }
.products-results-count { margin: 0; color: var(--text-muted); font-size: .9rem; }
.products-clear { color: var(--amber-600); font-size: .86rem; font-weight: 700; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(16,45,78,.1); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(6,21,37,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,.45); box-shadow: var(--shadow); }
.product-card__media { display: flex; align-items: center; justify-content: center; min-height: 200px; aspect-ratio: 4 / 3; overflow: hidden; background: #ffffff; border-bottom: 1px solid #E2E8F0; color: var(--navy-900); }
.product-card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 1.25rem; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--navy-900); color: var(--amber-400); }
.product-card__icon svg { width: 42px; height: 42px; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.product-card__category { margin-bottom: .4rem; color: var(--amber-600); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.product-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-card h3 a { color: var(--navy-900); }
.product-card h3 a:hover { color: var(--amber-600); }
.product-card__subtitle { margin: 0 0 .5rem; color: var(--text-muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .75rem; color: var(--text-muted); font-size: .78rem; }
.product-card__meta strong { color: var(--navy-900); }
.product-card__excerpt { display: none !important; }
.product-card__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; color: var(--amber-600); font-size: .88rem; font-weight: 800; }
.product-card__link .icon { width: 1rem; height: 1rem; transition: transform .2s ease; }
.product-card__link:hover .icon { transform: translateX(3px); }
.product-single__category { display: inline-block; margin-bottom: .7rem; color: var(--amber-400); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-single__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.product-single__gallery { position: static; }
.product-single__media { overflow: hidden; min-height: 360px; max-height: 480px; border-radius: var(--radius-lg); background: #ffffff; border: 1px solid #E2E8F0; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.product-single__main-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 1.5rem; }
.product-single__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.product-single__placeholder { display: grid; min-height: 360px; place-items: center; color: var(--navy-900); }
.product-single__placeholder svg { width: 110px; height: 110px; color: var(--amber-500); }
.product-single__content { padding-top: .5rem; }
.product-single__content h1 { margin: .25rem 0 .65rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.product-single__subtitle { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }
.product-single__thumbs { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .75rem; }
.product-single__thumbs a { width: 74px; height: 74px; overflow: hidden; border: 2px solid #CBD5E0; border-radius: 10px; background: var(--bg-alt); transition: all 0.2s ease; }
.product-single__thumbs a:hover, .product-single__thumbs a:focus-visible { border-color: #3182CE; }
.product-single__thumbs a.is-active { border-color: #3182CE; box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2); }
.product-single__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-single__main-image img { transition: opacity 0.2s ease; }
.product-single__facts { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.product-single__facts div { display: grid; gap: .1rem; min-width: 140px; padding: .8rem 1rem; border-left: 3px solid var(--amber-500); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.product-single__facts small { color: var(--text-muted); font-size: .75rem; }
.product-single__facts strong { color: var(--navy-900); }
.product-single__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 860px) {
    .product-single__layout { grid-template-columns: 1fr; gap: 2rem; }
    .product-single__gallery { position: static; }
    .product-single__media { min-height: 260px; aspect-ratio: auto; }
    .product-single__placeholder { min-height: 260px; }
}
@media (max-width: 640px) {
    .products-results-head { margin-bottom: .35rem; }
    .product-card__media { min-height: 160px; }
}
.contact-phone-row { display: flex !important; flex-direction: column; align-items: flex-start; gap: .18rem; clear: both; margin-bottom: .8rem; line-height: 1.65; }
.contact-info-card .value > br { display: none; }
.contact-phone-row + .contact-phone-row { margin-top: .15rem; }
.contact-phone-row small, .footer-contact li small { display: block; color: var(--text-muted); font-size: .72rem; margin-right: .35rem; line-height: 1.4; }
.contact-phone-row a { display: inline-block; line-height: 1.45; }
.contact-form__notice { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.contact-form__notice--sent { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.contact-form__notice--invalid, .contact-form__notice--failed { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hero__stats { width: min(100%, 440px); padding: .5rem; margin-top: 1.4rem; border-radius: 14px; }
.hero__stats > div { min-width: 92px; padding: .2rem .5rem; }
.hero__stats strong { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.hero__stats span { display: block; font-size: .68rem; line-height: 1.55; margin-top: .18rem; white-space: normal; }
/* Thai glyph safety: avoid tight Latin-oriented leading on multi-line headings. */
h1, h2, h3, h4, h5, h6 { line-height: 1.28; }
.page-header h1, .section__title, .cta-band h2, .quote-panel h3 { line-height: 1.24 !important; letter-spacing: -.02em; }
.hero h1 { line-height: 1.16 !important; letter-spacing: -.025em; }
.btn--accent { background: var(--amber-500); color: var(--navy-950); border: 1px solid rgba(229,138,0,.55); border-radius: 12px; box-shadow: 0 8px 18px rgba(229,138,0,.22), inset 0 1px 0 rgba(255,255,255,.35); font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--amber-400); color: var(--navy-950); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(229,138,0,.3), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--accent:active { transform: translateY(0); box-shadow: 0 5px 12px rgba(229,138,0,.2); }
.btn--accent .icon { color: currentColor; }

/* ============================================================
   Custom Product Detail Page Layout & Styles
   ============================================================ */

/* Breadcrumb styles */
.breadcrumb {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.breadcrumb a:hover {
    color: var(--amber-500);
}
.breadcrumb .sep {
    margin-inline: 0.4rem;
    color: var(--text-light);
}

/* Excerpt & Short Description & Divider */
.product-single__divider {
    border: 0;
    border-top: 1px solid #CBD5E0;
    margin: 1.5rem 0;
}
.product-single__category-row {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    color: #4A5568;
}
.product-single__category-row .category-label {
    font-weight: 700;
    margin-right: 0.5rem;
    color: #2D3748;
}
.product-single__category-row .category-value {
    color: #718096;
}

/* Specifications / Detail Section */
.product-single__specs-section {
    margin-bottom: 1.8rem;
}
.product-single__specs-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A202C;
    text-decoration: underline;
    margin-bottom: 0.85rem;
}
.product-single__specs-content {
    font-size: 0.98rem;
    color: #2D3748;
    line-height: 1.75;
}
.product-single__specs-content p {
    margin-bottom: 0.4rem;
}

/* PDF Download Button & Actions */
.product-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
}
.product-single__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #3182CE;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    min-width: 160px;
}
.product-single__actions .btn:hover {
    background: #2B6CB0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.3);
    color: var(--white);
}
.product-single__actions .btn:active {
    transform: translateY(0);
}

/* Social Share Widget */
.product-single__share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.8rem;
}
.share-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1A202C;
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: var(--white) !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}
.share-btn svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    stroke: none !important;
}
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}
.share-btn--facebook {
    background: #3B5998;
}
.share-btn--twitter {
    background: #1DA1F2;
}
.share-btn--linkedin {
    background: #0077B5;
}
.share-btn--whatsapp {
    background: #25D366;
}

/* Tab Container Styles */
.product-single__tabs {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.product-tabs__nav {
    display: flex;
    margin-bottom: 0;
    border: none;
}
.product-tabs__btn {
    background: #3182CE;
    color: var(--white);
    border: none;
    border-radius: 0;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.product-tabs__btn.is-active {
    background: #3182CE;
    color: var(--white);
    border: none;
    margin-bottom: 0;
}
.product-tabs__panel {
    background: var(--white);
    border: 1px solid #CBD5E0;
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
}
.product-tabs__panel-title {
    color: #3182CE;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 0.5rem;
}

/* Related Products Section */
.product-related {
    border-top: 1px solid var(--border);
    padding-top: 4rem;
    margin-top: 4rem;
}
.product-related__title {
    font-size: 1.8rem;
    color: var(--navy-900);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}
.product-related__title::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: var(--amber-500);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}
.product-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.related-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--amber-500);
}
.related-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}
.related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.related-card:hover .related-card__media img {
    transform: scale(1.05);
}
.related-card__icon {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--navy-900);
}
.related-card__icon svg {
    width: 48px;
    height: 48px;
    color: var(--amber-500);
}
.related-card__body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.related-card__body h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    font-weight: 700;
}
.related-card__body h3 a {
    color: var(--navy-900);
    transition: color var(--transition);
}
.related-card__body h3 a:hover {
    color: var(--amber-600);
}
.related-card__subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Responsive Adjustments for Related Products */
@media (max-width: 992px) {
    .product-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}
@media (max-width: 576px) {
    .product-related__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-related__title {
        font-size: 1.5rem;
    }
}

/* ---------- Live Product Search Dropdown styling ---------- */
.ps-wrapper {
    position: relative;
}
.ps-dropdown {

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-sm, 4px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));
    max-height: 320px;
    overflow-y: auto;
    margin-top: 0.4rem;
    display: none;
}
.ps-dropdown.is-open {
    display: block;
}
.ps-dropdown__item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    text-decoration: none !important;
    border-bottom: 1px solid var(--border-soft, #f1f5f9);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ps-dropdown__item:last-child {
    border-bottom: none;
}
.ps-dropdown__item:hover,
.ps-dropdown__item.is-highlighted {
    background-color: var(--bg-alt, #f8fafc);
    color: var(--amber-500) !important;
}
.ps-dropdown__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm, 4px);
    background-color: #f1f5f9;
    flex-shrink: 0;
}
.ps-dropdown__no-thumb {
    width: 44px;
    height: 44px;
    background-color: var(--border-soft, #e2e8f0);
    border-radius: var(--radius-sm, 4px);
    display: block;
    flex-shrink: 0;
    position: relative;
}
.ps-dropdown__no-thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.ps-dropdown__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
    min-width: 0;
}
.ps-dropdown__cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #888888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-dropdown__title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-dropdown__empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--text-muted, #888888);
    font-size: 0.88rem;
}

