/* Hong Yuen Engineering — custom classes layered on the Industry design system */
:root { --hy-warm: #F0B429; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-900); }
img { display: block; max-width: 100%; }

.hy-wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(20px,5vw,48px); padding-right: clamp(20px,5vw,48px); }

/* blueprint grid background */
.hy-grid-bg { background-image: linear-gradient(var(--gl,rgba(29,45,61,.06)) 1px, transparent 1px), linear-gradient(90deg, var(--gl,rgba(29,45,61,.06)) 1px, transparent 1px); background-size: 46px 46px; }

/* corner registration marks */
.hy-cross { position: relative; }
.hy-cross > i { position: absolute; width: 14px; height: 14px; color: color-mix(in srgb, currentColor 60%, transparent); pointer-events: none; }
.hy-cross > i::before { content:""; position:absolute; left:6px; top:0; width:1px; height:100%; background: currentColor; }
.hy-cross > i::after { content:""; position:absolute; top:6px; left:0; width:100%; height:1px; background: currentColor; }
.hy-cross > i.tl{top:-7px;left:-7px}.hy-cross > i.tr{top:-7px;right:-7px}.hy-cross > i.bl{bottom:-7px;left:-7px}.hy-cross > i.br{bottom:-7px;right:-7px}

.hy-idx { font-family: var(--font-heading); font-weight:600; font-size: clamp(90px,14vw,190px); line-height:.8; letter-spacing:-.02em; pointer-events:none; }
.hy-kicker { display:inline-flex; align-items:center; gap:10px; font-size:13px; letter-spacing:.12em; text-transform:uppercase; font-weight:600; color:var(--color-accent-700); }
.hy-kicker .bar { width:28px; height:1px; background:var(--color-accent); }
.hy-kicker.on-dark { color: var(--color-accent-300); }
.hy-kicker.on-dark .bar { background: var(--hy-warm); }

.hy-section-title { font-family:var(--font-heading); font-weight:600; font-size:clamp(30px,4.2vw,46px); line-height:1.08; margin:14px 0 0; }

/* buttons */
.hy-btn-warm { display:inline-flex; align-items:center; justify-content:center; gap:10px; height:54px; padding:0 28px; background: var(--hy-warm); color:#1d1f20; font-weight:700; font-size:16px; border:0; cursor:pointer; font-family:var(--font-body); transition: filter .2s; }
.hy-btn-warm:hover { filter: brightness(.93); color:#1d1f20; }
.hy-btn-steel { display:inline-flex; align-items:center; justify-content:center; gap:10px; height:54px; padding:0 28px; background:var(--color-accent); color:#fff; font-weight:600; font-size:16px; transition: background .2s; }
.hy-btn-steel:hover { background: var(--color-accent-700); color:#fff; }
.hy-btn-ghost { display:inline-flex; align-items:center; justify-content:center; gap:10px; height:54px; padding:0 28px; background:transparent; color:#fff; font-weight:600; font-size:16px; border:1px solid rgba(255,255,255,.55); transition: background .2s; }
.hy-btn-ghost:hover { background: rgba(255,255,255,.1); color:#fff; }
.hy-btn-outline { display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 24px; border:1px solid var(--color-accent); color:var(--color-accent-700); font-weight:600; font-size:15px; }
.hy-btn-outline:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color:var(--color-accent-900); }

/* header */
.hy-header { position: sticky; top: 0; z-index: 50; background: rgba(242,242,243,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider); transition: box-shadow .25s, background .25s; }
.hy-header.scrolled { box-shadow: var(--shadow-md); background: rgba(242,242,243,0.97); }
.hy-nav { max-width:1240px; margin:0 auto; height:74px; padding:0 clamp(20px,5vw,48px); display:flex; align-items:center; gap:20px; }
.hy-navlist { display:flex; gap:2px; list-style:none; margin:0; padding:0; align-items:center; }
.hy-navlink { position:relative; display:block; padding:8px 14px; font-size:15px; font-weight:500; color:var(--color-text); white-space:nowrap; transition:color .18s; }
.hy-navlink:hover { color:var(--color-accent-900); }
.hy-navlink.is-active { color:var(--color-accent-900); }
.hy-navlink::after { content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background:var(--color-accent); transform:scaleX(0); transform-origin:left; transition:transform .22s; }
.hy-navlink:hover::after, .hy-navlink.is-active::after { transform:scaleX(1); }
.hy-wa-nav { display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 18px; background:var(--color-accent); color:#fff; font-weight:600; font-size:15px; border:1px solid var(--color-accent); transition:background .2s; }
.hy-wa-nav:hover { background:var(--color-accent-700); color:#fff; }
.hy-lang { transition:background .18s, color .18s; }
.hy-lang:hover { background:var(--color-surface); color:var(--color-accent-900); }
.hy-burger { display:none; align-items:center; justify-content:center; width:46px; height:46px; background:none; border:1px solid var(--color-divider); cursor:pointer; flex-shrink:0; color:var(--color-text); }

/* mobile drawer */
.hy-drawer { position:fixed; inset:0; z-index:60; background:var(--color-accent-900); color:#fff; display:flex; flex-direction:column; padding:22px clamp(20px,6vw,48px); }
.hy-drawer[hidden] { display:none; }
.hy-drawer a { color:#fff; }
.hy-drawer-nav { display:flex; flex-direction:column; margin-top:28px; }
.hy-drawer-nav a { font-family:var(--font-heading); font-size:30px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.15); }
.hy-drawer-nav a:last-child { border-bottom:0; }

/* breadcrumb / page hero */
.hy-pagehero { position:relative; background:var(--color-accent-900); color:#fff; }
.hy-crumb { font-size:13px; color:rgba(255,255,255,.6); margin-bottom:20px; }
.hy-crumb a { color:rgba(255,255,255,.6); }
.hy-crumb a:hover { color:#fff; }
.hy-crumb .cur { color:#fff; }
.hy-pagehero h1 { font-family:var(--font-heading); font-weight:600; font-size:clamp(34px,5.4vw,60px); line-height:1.05; margin:0; }
.hy-pagehero p { font-size:clamp(15px,1.6vw,18px); line-height:1.6; max-width:52ch; margin:16px 0 0; color:rgba(255,255,255,.82); }

/* service cards (home) */
.hy-svc { position:relative; display:flex; flex-direction:column; background:var(--color-bg); border:1px solid var(--color-divider); padding:30px 26px 26px; color:var(--color-text); min-height:230px; transition:transform .22s, background .22s, color .22s, box-shadow .22s; }
.hy-svc:hover { transform:translateY(-6px); background:var(--color-accent-900); color:#fff; box-shadow:var(--shadow-lg); }
.hy-svc:hover .hy-svc-n, .hy-svc:hover .hy-svc-more, .hy-svc:hover .hy-svc-ico { color:var(--hy-warm); }
.hy-svc:hover p { color:rgba(255,255,255,.82); }
.hy-svc-ico { color:var(--color-accent); transition:color .22s; }
.hy-svc-n { font-family:var(--font-heading); font-size:20px; color:var(--color-accent-300); transition:color .22s; }
.hy-svc-more { font-size:14px; font-weight:600; color:var(--color-accent-700); margin-top:16px; transition:color .22s; }

/* case cards */
.hy-case { position:relative; display:flex; flex-direction:column; color:var(--color-text); background:var(--color-bg); border:1px solid var(--color-divider); overflow:hidden; transition:transform .22s, box-shadow .22s; }
.hy-case:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.hy-case:hover .hy-case-img { transform:scale(1.06); }
.hy-case-img { transition:transform .5s; }
.hy-case-tag { position:absolute; top:12px; left:12px; background:var(--color-accent-900); color:#fff; font-size:12px; font-weight:600; letter-spacing:.06em; padding:5px 11px; }

/* ticker */
.hy-ticker { position:relative; border-top:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.15); overflow:hidden; }
.hy-tickmove { display:inline-flex; white-space:nowrap; padding:14px 0; animation:hy-tick 26s linear infinite; }
.hy-tickmove span { display:inline-flex; align-items:center; gap:14px; padding:0 26px; font-family:var(--font-heading); font-size:19px; letter-spacing:.06em; color:rgba(255,255,255,.85); }
.hy-tickmove span i { width:5px; height:5px; background:var(--hy-warm); transform:rotate(45deg); }
@keyframes hy-tick { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* filter chips */
.hy-chip { padding:9px 18px; font-size:14px; font-weight:600; border:1px solid var(--color-divider); background:var(--color-bg); color:var(--color-text); cursor:pointer; font-family:var(--font-body); transition:all .18s; }
.hy-chip:hover { border-color:var(--color-accent); }
.hy-chip.is-on { background:var(--color-accent-900); color:#fff; border-color:var(--color-accent-900); }

/* faq */
.hy-q { width:100%; text-align:left; background:var(--color-bg); border:1px solid var(--color-divider); padding:20px 22px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; font-family:var(--font-heading); font-weight:600; font-size:19px; color:var(--color-text); transition:background .18s; }
.hy-q:hover { background:var(--color-surface); }
.hy-q .sign { color:var(--color-accent); font-size:24px; font-family:var(--font-body); flex-shrink:0; }
.hy-a { border:1px solid var(--color-divider); border-top:0; padding:20px 22px; background:var(--color-surface); }
.hy-a p { font-size:15.5px; line-height:1.75; margin:0; color:color-mix(in srgb,var(--color-text) 84%,transparent); }
.hy-a[hidden] { display:none; }

/* contact form */
.hy-label { display:block; font-size:13.5px; font-weight:600; color:var(--color-text); margin-bottom:7px; }
.hy-input, .hy-textarea, .hy-select { width:100%; box-sizing:border-box; font-family:var(--font-body); font-size:15px; color:var(--color-text); background:var(--color-bg); border:1px solid var(--color-divider); border-radius:var(--radius-md); padding:12px 14px; transition:border-color .18s, box-shadow .18s; }
.hy-input:focus, .hy-textarea:focus, .hy-select:focus { outline:none; border-color:var(--color-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--color-accent) 22%,transparent); }
.hy-textarea { resize:vertical; min-height:120px; }
.hy-info-ico { flex-shrink:0; width:44px; height:44px; display:flex; align-items:center; justify-content:center; background:var(--color-accent-900); color:#fff; }

/* footer */
.hy-footer { position:relative; background:var(--color-neutral-900); color:rgba(255,255,255,.72); }
.hy-footer .grid-overlay { position:absolute; inset:0; opacity:.06; background-image:linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size:44px 44px; pointer-events:none; }
.hy-footer h4 { font-family:var(--font-heading); font-weight:600; font-size:16px; color:#fff; margin:0 0 16px; letter-spacing:.05em; }
.hy-flink { color:rgba(255,255,255,.72); font-size:14px; transition:color .18s; }
.hy-flink:hover { color:#fff; }

/* floating whatsapp */
.hy-fab { position:fixed; right:20px; bottom:20px; z-index:70; display:inline-flex; align-items:center; gap:10px; height:56px; padding:0 20px 0 16px; background:#25D366; color:#fff; font-weight:600; font-size:15px; border-radius:999px; box-shadow:var(--shadow-lg); animation:hy-pulse 2.6s ease-in-out infinite; }
.hy-fab:hover { color:#fff; }
@keyframes hy-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }

/* layout helpers */
.hy-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,6vw,72px); align-items:center; }
.hy-g4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.hy-g3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.hy-frame { position:relative; }
.hy-frame .inner { position:relative; z-index:1; border:1px solid var(--color-divider); overflow:hidden; }
.hy-frame .block { position:absolute; z-index:0; }

@media (max-width:1000px){ .hy-g4{ grid-template-columns:repeat(2,1fr); } .hy-g3{ grid-template-columns:1fr; } }
@media (max-width:1050px){ .hy-navlist, .hy-wa-nav, .hy-lang{ display:none; } .hy-burger{ display:flex; } }
@media (max-width:860px){ .hy-split{ grid-template-columns:1fr; } }
@media (max-width:560px){ .hy-g4{ grid-template-columns:1fr; } .hy-fab .label{ display:none; } }
@media (max-width:860px){ .hy-foot-grid{ grid-template-columns:1fr 1fr !important; } }
@media (max-width:520px){ .hy-foot-grid{ grid-template-columns:1fr !important; } }
@media (prefers-reduced-motion: reduce){ .hy-tickmove{ animation:none; } html{ scroll-behavior:auto; } }
