/*
Theme Name: Biot HK
Theme URI: https://biot-hk.com
Author: Biot HK
Description: Block theme for BIOT (HK) LIMITED — sourcing, devices and engineering, connected.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: biot-hk
*/

/* Dot-grid brand pattern: nodes on a 24px grid over deep */
.is-style-biot-dots{
  background-image: radial-gradient(circle, rgba(94,234,212,.35) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}
.biot-card{border:1px solid var(--wp--preset--color--line);border-radius:16px;background:var(--wp--preset--color--surface-100);transition:border-color .2s, transform .2s}
.biot-card:hover{border-color:var(--wp--preset--color--brand);transform:translateY(-2px)}
.biot-label{font-family:var(--wp--preset--font-family--sans);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.biot-step-num{font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:40px;line-height:1;color:var(--wp--preset--color--brand)}
.biot-icon{width:44px;height:44px;border-radius:10px;background:var(--wp--preset--color--surface-200);display:flex;align-items:center;justify-content:center}
.biot-icon svg{width:24px;height:24px;stroke:var(--wp--preset--color--brand);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wp-block-button.is-style-outline-light .wp-block-button__link{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55)}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover{border-color:#fff}
.biot-hero h1{max-width:14ch}
/* WooCommerce catalogue mode */
.woocommerce ul.products li.product .price,.wc-block-components-product-price,.wp-block-woocommerce-product-price{display:none!important}
.biot-quote-btn{display:inline-block;margin-top:8px;padding:10px 18px;border-radius:10px;background:var(--wp--preset--color--accent);color:var(--wp--preset--color--ink-on-accent)!important;font-weight:600;text-decoration:none}
.biot-form{display:grid;gap:16px}
.biot-form label{display:grid;gap:6px;font-size:14px;font-weight:600;color:var(--wp--preset--color--ink)}
.biot-form input,.biot-form textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid var(--wp--preset--color--line);border-radius:6px;font:inherit;font-weight:400;background:#fff;color:var(--wp--preset--color--ink)}
.biot-form input:focus,.biot-form textarea:focus{outline:2px solid var(--wp--preset--color--brand);outline-offset:1px;border-color:var(--wp--preset--color--brand)}
.biot-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:640px){.biot-form-row{grid-template-columns:1fr}}
.biot-form button{justify-self:start;background:var(--wp--preset--color--accent);color:var(--wp--preset--color--ink-on-accent);border:0;border-radius:10px;padding:13px 24px;font:inherit;font-weight:600;cursor:pointer}
.biot-form button:hover{background:#FBBF24}
.biot-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.biot-form-msg{padding:14px 16px;border-radius:10px;margin-bottom:16px;font-weight:500}
.biot-form-ok{background:var(--wp--preset--color--surface-200);color:var(--wp--preset--color--brand);border:1px solid #99E6DA}
.biot-form-err{background:#FEF3C7;color:#78350F;border:1px solid #FCD34D}
@media (max-width:781px){.biot-hide-mobile{display:none!important}}
/* Layout fixes */
.wp-site-blocks > *{margin-block-start:0!important}
.wp-site-blocks > main, .wp-site-blocks > main > .wp-block-post-content{margin-block-start:0!important}
.wp-block-post-content > .alignfull:first-child{margin-block-start:0!important}
.wp-block-post-content > .alignfull:last-child{margin-block-end:0!important}
.wp-block-post-content > .alignfull + .alignfull{margin-block-start:0!important}
/* Dark hero bands: left-align content to the 1200px column */
.biot-hero > *, .is-style-biot-dots.has-deep-background-color > *{margin-left:max(0px,calc((100% - 1200px) / 2))!important;margin-right:auto!important}
.biot-hero > h1{max-width:15ch!important}
.is-style-biot-dots.has-deep-background-color > h1{max-width:20ch!important}
.is-style-biot-dots.has-deep-background-color > p.has-large-font-size{max-width:640px!important}
/* Footer links */
footer .wp-block-group.has-deep-background-color a{text-decoration:none}
footer .wp-block-group.has-deep-background-color a:hover{text-decoration:underline}

/* ---------- Header (dynamic block) ---------- */
.biot-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--wp--preset--color--line)}
.biot-header-inner{max-width:1200px;margin:0 auto;padding:12px clamp(20px,4vw,40px);display:flex;align-items:center;justify-content:space-between;gap:24px}
.biot-logo img{height:34px;width:auto;display:block}
.biot-nav{display:flex;gap:28px;margin-left:auto}
.biot-nav a{color:var(--wp--preset--color--ink);text-decoration:none;font-size:15px;font-weight:500}
.biot-nav a:hover{color:var(--wp--preset--color--brand)}
.biot-header-actions{display:flex;align-items:center;gap:18px}
.biot-btn{display:inline-block;background:var(--wp--preset--color--accent);color:var(--wp--preset--color--ink-on-accent)!important;text-decoration:none!important;font-weight:600;font-size:15px;padding:10px 18px;border-radius:10px;white-space:nowrap}
.biot-btn:hover{background:#FBBF24}
.biot-lang{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--wp--preset--color--muted)}
.biot-lang a{color:var(--wp--preset--color--muted);text-decoration:none;font-weight:500}
.biot-lang a.is-current{color:var(--wp--preset--color--ink);font-weight:700}
.biot-lang a:hover{color:var(--wp--preset--color--brand)}
.biot-menu{display:none;position:relative}
.biot-menu summary{list-style:none;cursor:pointer;width:40px;height:40px;border-radius:10px;border:1px solid var(--wp--preset--color--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.biot-menu summary::-webkit-details-marker{display:none}
.biot-menu summary span{display:block;width:18px;height:2px;background:var(--wp--preset--color--ink);border-radius:2px}
.biot-menu-panel{position:absolute;right:0;top:50px;min-width:240px;background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:16px;padding:16px;display:grid;gap:12px;box-shadow:0 12px 32px rgba(14,27,43,.12)}
.biot-menu-panel > a:not(.biot-btn){color:var(--wp--preset--color--ink);text-decoration:none;font-weight:500;padding:4px 0}
.biot-menu-panel .biot-btn{text-align:center}
@media (max-width:900px){.biot-nav,.biot-header-actions > .biot-btn,.biot-header-actions > .biot-lang{display:none}.biot-menu{display:block}}
/* ---------- Footer (dynamic block) ---------- */
.biot-footer{background:var(--wp--preset--color--deep);color:#fff}
.biot-footer-inner{max-width:1200px;margin:0 auto;padding:clamp(56px,9vw,96px) clamp(20px,4vw,40px) 40px}
.biot-footer-cols{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:40px}
@media (max-width:781px){.biot-footer-cols{grid-template-columns:1fr}}
.biot-footer-logo img{height:30px;width:auto;display:block;margin-bottom:16px}
.biot-footer p{font-size:14px;line-height:1.7;margin:0}
.biot-footer-brand p{color:#B6C4CF;max-width:420px}
.biot-footer .biot-label{color:#5EEAD4;margin-bottom:12px}
.biot-footer a{color:#fff;text-decoration:none}
.biot-footer a:hover{text-decoration:underline}
.biot-footer .biot-muted{color:#B6C4CF}
.biot-footer-bottom{margin-top:48px;padding-top:24px;border-top:1px solid #1F3344;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px;color:#8FA1B0}
.biot-footer-bottom .biot-lang a{color:#B6C4CF}
.biot-footer-bottom .biot-lang a.is-current{color:#fff}
/* ---------- Traditional Chinese typography ---------- */
:root[lang^="zh"]{--wp--preset--font-family--sans:Inter,"Noto Sans TC","PingFang HK","Microsoft JhengHei",system-ui,sans-serif;--wp--preset--font-family--display:"Space Grotesk","Noto Sans TC","PingFang HK","Microsoft JhengHei",system-ui,sans-serif}
:root[lang^="zh"] h1,:root[lang^="zh"] h2,:root[lang^="zh"] h3{letter-spacing:0;line-height:1.3}
:root[lang^="zh"] .biot-hero > h1{max-width:12em!important}
:root[lang^="zh"] .biot-label{letter-spacing:.12em}
