/* R & D Electronics — shared stylesheet */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#fff;color:#0d1521;font-family:"IBM Plex Sans",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden;overflow-wrap:break-word}
img,iframe{max-width:100%}
img{height:auto;display:block}
a{color:#0f7fe8;text-decoration:none}
a:hover{color:#0a5aa8}
h1,h2,h3,h4{font-family:Archivo,sans-serif;letter-spacing:-.022em;margin:0;text-wrap:balance}
p{margin:0;text-wrap:pretty}
:focus-visible{outline:2px solid #0f7fe8;outline-offset:2px}

.container{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,32px)}
.section{padding:clamp(56px,8vw,96px) 0;border-bottom:1px solid #e6eaf0}
.section--tint{background:#fafbfd}
.section--dark{background:#0d1521;color:#fff}
.section--dark .eyebrow{color:#5eb0f5}
.section--dark h2{color:#fff}
.section--dark p{color:#a7b2c1}
.eyebrow{font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:#0f7fe8;display:block}
.lede{font-size:clamp(16px,2vw,18px);line-height:1.6;color:#54606f;max-width:640px}
.stack-lg{display:flex;flex-direction:column;gap:64px}

.skip-link{position:absolute;left:-9999px;top:0;background:#0d1521;color:#fff;padding:12px 18px;z-index:100;border-radius:0 0 3px 0}
.skip-link:focus{left:0}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid #e6eaf0}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;height:82px}
.logo{flex:none;display:flex;align-items:center}
.logo img{height:clamp(40px,6.5vw,54px);width:auto}
.primary-nav{display:flex;align-items:center;gap:clamp(12px,2.2vw,30px)}
.primary-nav a{font-size:14.5px;font-weight:500;color:#0d1521;white-space:nowrap;padding:8px 12px;border-radius:3px}
.primary-nav a:hover{background:#f1f5fa;color:#0d1521}
.primary-nav a[aria-current="page"]{background:#eef4fb}
.header-contact{display:flex;flex-direction:column;gap:2px;text-align:right;flex:none}
.header-contact .mono-label{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8a94a3}
.header-contact a{font-family:"IBM Plex Mono",monospace;font-size:14px;color:#0d1521;font-weight:500}
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:48px;height:48px;padding:0 12px;background:none;border:1px solid #e6eaf0;border-radius:3px;cursor:pointer}
.nav-toggle span{display:block;height:2px;background:#0d1521;border-radius:2px}

@media (max-width:899px){
  .nav-toggle{display:flex}
  .header-contact{display:none}
  .primary-nav{display:none;position:absolute;left:0;right:0;top:82px;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid #e6eaf0;padding:8px clamp(20px,4vw,32px) 22px}
  .primary-nav.is-open{display:flex}
  .primary-nav a{padding:15px 12px;border-bottom:1px solid #eef1f5;font-size:17px}
}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 28px;border-radius:3px;font-size:15.5px;font-weight:600;cursor:pointer;border:1px solid transparent}
.btn--primary{background:#0f7fe8;color:#fff}
.btn--primary:hover{background:#3d9bf0;color:#fff}
.btn--outline{border-color:#cfd7e2;color:#0d1521}
.btn--outline:hover{border-color:#0f7fe8;color:#0f7fe8}
.mt-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}

/* ---------- Hero (home) ---------- */
.hero{position:relative;background:#0d1521;min-height:clamp(440px,42vw,660px);display:flex;align-items:flex-end;overflow:hidden;border-bottom:1px solid #e6eaf0}
.hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%}
.hero__scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(6,10,18,.88),rgba(6,10,18,.62) 42%,rgba(6,10,18,.12) 78%,rgba(6,10,18,0))}
.hero__inner{position:relative;width:100%;max-width:1240px;margin:0 auto;padding:clamp(56px,9vw,104px) clamp(20px,4vw,32px)}
.hero h1{font-weight:700;font-size:clamp(34px,6.2vw,60px);line-height:1.04;letter-spacing:-.025em;color:#fff;max-width:820px;margin:0 0 26px}
.hero p{font-size:clamp(16.5px,2.1vw,19px);line-height:1.6;color:#c3cddb;max-width:560px;margin:0 0 26px}
.badge{display:inline-flex;align-items:center;gap:9px;margin-bottom:28px;padding:7px 13px;border:1px solid rgba(255,255,255,.28);border-radius:2px;background:rgba(255,255,255,.08);font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;color:#cfe3f9}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#5eb0f5}
.chips{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 32px}
.chip{display:inline-flex;align-items:center;gap:9px;padding:7px 13px;border-radius:2px;background:rgba(255,255,255,.08);font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;color:#cfe3f9}
.chip::before{content:"";width:6px;height:6px;border-radius:50%;background:#5eb0f5}

/* ---------- Interior page header ---------- */
.page-head{padding:clamp(44px,6vw,72px) 0;border-bottom:1px solid #e6eaf0}
.page-head h1{font-weight:700;font-size:clamp(30px,5.2vw,48px);line-height:1.08;letter-spacing:-.025em;margin:14px 0 18px}
.page-head p{font-size:clamp(16px,2vw,18px);line-height:1.6;color:#54606f;max-width:640px}

/* ---------- Stat strip ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}
.stats>div{padding:26px 24px;border-top:1px solid #e6eaf0}
.stats .n{font-family:Archivo,sans-serif;font-size:26px;font-weight:700;letter-spacing:-.02em}
.stats .l{font-size:13.5px;color:#6b7684;margin-top:5px}

/* ---------- Section heading ---------- */
.sec-head{margin-bottom:44px}
.sec-head h2{font-weight:700;font-size:clamp(26px,4.2vw,38px);line-height:1.12;margin:14px 0 0}
.sec-head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;flex-wrap:wrap}

/* ---------- Range cards ---------- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:24px}
.range-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e6eaf0;border-radius:3px;overflow:hidden;color:#0d1521}
.range-card:hover{border-color:#0f7fe8;color:#0d1521}
.range-card__media{aspect-ratio:16/11;background:#eef2f7;overflow:hidden}
.range-card__media img{width:100%;height:100%;object-fit:cover}
.range-card__media--contain{background:#f4f7fa}
.range-card__media--contain img{object-fit:contain}
.range-card__body{padding:26px;display:flex;flex-direction:column;gap:12px;flex:1}
.range-card__body h3{font-size:21px;font-weight:600;letter-spacing:-.012em}
.range-card p{font-size:14.5px;line-height:1.55;color:#6b7684;flex:1}
.range-card .more{font-size:14px;font-weight:600;color:#0f7fe8}
.card-row-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.card-meta{font-family:"IBM Plex Mono",monospace;font-size:12px;color:#0f7fe8;white-space:nowrap}

/* ---------- Split feature ---------- */
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:clamp(40px,5vw,72px);align-items:center}
.split__media{aspect-ratio:5/4;border:1px solid #263140;border-radius:3px;overflow:hidden}
.split__media img{width:100%;height:100%;object-fit:cover}
.split h2{font-weight:700;font-size:clamp(25px,4vw,36px);line-height:1.14;margin:14px 0 20px}
.split p{font-size:17px;line-height:1.65;margin:0 0 18px}

/* ---------- Products page categories ---------- */
.cat{scroll-margin-top:100px}
.cat__head{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:2px solid #0d1521;margin-bottom:28px}
.cat__head h2{font-size:clamp(22px,3.2vw,28px);font-weight:700;letter-spacing:-.02em}
.cat__head .note{font-family:"IBM Plex Mono",monospace;font-size:12.5px;color:#6b7684}
.cat>p{font-size:14.5px;line-height:1.55;color:#6b7684;margin:-14px 0 26px;max-width:760px}
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:24px}
.prod{display:flex;align-items:stretch;border:1px solid #e6eaf0;border-radius:3px;overflow:hidden;color:#0d1521}
.prod:hover{border-color:#0f7fe8}
.prod__media{flex:none;width:104px;align-self:stretch;background:#fff;border-right:1px solid #e6eaf0;display:flex;align-items:center;justify-content:center;padding:8px}
.prod__media img{width:100%;height:100%;max-height:104px;object-fit:contain}
.prod__body{padding:16px 18px}
.prod__body h3{font-size:17px;font-weight:600}
.prod__body .sub{font-size:13.5px;color:#6b7684;margin-top:5px}
.prod__body ul{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.prod__body li{display:flex;gap:8px;font-size:13.5px;line-height:1.45;color:#6b7684}
.prod__body li::before{content:"•";color:#0f7fe8;flex:none}
.prod__body .more{display:inline-block;margin-top:12px;font-size:13px;font-weight:600;color:#0f7fe8}
.help-row{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding-top:36px;border-top:1px solid #e6eaf0}
.help-row h2{font-size:clamp(22px,3.2vw,28px);font-weight:700;letter-spacing:-.02em}

/* ---------- Breadcrumbs ---------- */
.crumbs{background:#fafbfd;border-bottom:1px solid #e6eaf0}
.crumbs ol{display:flex;flex-wrap:wrap;gap:8px;align-items:center;list-style:none;margin:0;padding:16px 0;font-family:"IBM Plex Mono",monospace;font-size:12px;color:#98a2b0}
.crumbs a{color:#6b7684}
.crumbs li[aria-current]{color:#0d1521}

/* ---------- Product detail ---------- */
.detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:clamp(40px,5vw,72px)}
.detail__gallery{display:flex;flex-direction:column;gap:16px}
.detail__media{background:#fff;border:1px solid #e0e6ee;border-radius:3px;overflow:hidden;aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:24px}
.detail__media img{width:100%;height:100%;object-fit:contain}
.detail__thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.detail__thumb{aspect-ratio:1;background:repeating-linear-gradient(135deg,#eef2f7 0 11px,#e5ebf3 11px 22px);border:1px solid #e0e6ee;border-radius:3px;display:flex;align-items:center;justify-content:center;font-family:"IBM Plex Mono",monospace;font-size:10.5px;color:#8a94a3;text-align:center;padding:8px}
.detail h1{font-weight:700;font-size:clamp(28px,4.6vw,42px);line-height:1.08;letter-spacing:-.025em;margin:14px 0 20px}
.detail__intro{font-size:clamp(16px,1.9vw,17.5px);line-height:1.62;color:#54606f;margin:0 0 32px}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e6eaf0;border:1px solid #e6eaf0;border-radius:3px;margin:0 0 32px}
.kv>div{background:#fff;padding:18px 20px}
.kv .k{font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:#98a2b0;margin-bottom:6px}
.kv .v{font-size:16px;font-weight:600}
.sold-note{font-family:"IBM Plex Mono",monospace;font-size:12.5px;line-height:1.6;color:#98a2b0;margin:0}
.spec-table{width:100%;border-collapse:collapse;border:1px solid #e6eaf0;border-radius:3px;background:#fff;overflow:hidden}
.spec-table th,.spec-table td{text-align:left;padding:16px 22px;border-bottom:1px solid #eef1f5;font-weight:400;vertical-align:top}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:0}
.spec-table th{font-size:14.5px;color:#6b7684;width:45%}
.spec-table td{font-family:"IBM Plex Mono",monospace;font-size:14px}
.install-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:clamp(32px,4vw,56px);align-items:start}
.wiring-ph{aspect-ratio:4/3;border:1px solid #e0e6ee;border-radius:3px;display:flex;align-items:center;justify-content:center;background-image:repeating-linear-gradient(135deg,#f4f7fa 0 11px,#eaeff5 11px 22px);font-family:"IBM Plex Mono",monospace;font-size:12px;color:#8a94a3}
.note-card{border:1px solid #e6eaf0;border-radius:3px;background:#fff;padding:24px;margin-top:24px}
.note-card h3{font-size:17px;font-weight:600;margin:0 0 14px}
.note-card ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:11px;font-size:14.5px;line-height:1.55;color:#54606f}

/* ---------- Prose (about) ---------- */
.prose p{font-size:clamp(16.5px,2.1vw,19px);line-height:1.62;color:#54606f;margin:0 0 20px}
.prose p:last-child{margin-bottom:0}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:32px}
.feature-grid h3{font-size:20px;font-weight:600;margin:0 0 12px}
.feature-grid p{font-size:15.5px;line-height:1.6;color:#6b7684}
.figure{aspect-ratio:1672/905;border:1px solid #e0e6ee;border-radius:3px;overflow:hidden}
.figure img{width:100%;height:100%;object-fit:cover}

/* ---------- Distributors ---------- */
.dist-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:24px}
.dist{border:1px solid #e6eaf0;border-radius:3px;padding:30px;display:flex;flex-direction:column}
.dist .region{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#98a2b0;margin-bottom:12px}
.dist h3{font-size:22px;font-weight:600;margin:0 0 16px}
.dist .lines{display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.5;margin-top:auto}
.dist .lines a[href^="tel"]{color:#0d1521;font-family:"IBM Plex Mono",monospace;font-size:14px}
.dist .addr{color:#40566e}
.dist--factory{border-color:#bcd8f5;background:#dceafa}
.dist--factory .region{color:#0a5aa8}
.dist--factory .lines a[href^="mailto"]{color:#0a5aa8}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:clamp(40px,5vw,80px)}
.contact-block{padding-bottom:28px;border-bottom:1px solid #e6eaf0;margin-bottom:28px}
.contact-block:last-of-type{border-bottom:0}
.contact-block .label{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#98a2b0;margin-bottom:10px}
.contact-block .row{display:flex;gap:24px;flex-wrap:wrap;align-items:center;margin-top:10px}
.contact-block a[href^="tel"]{font-family:"IBM Plex Mono",monospace;font-size:15px;color:#0d1521;font-weight:500}
.form-card{border:1px solid #e6eaf0;border-radius:3px;padding:clamp(22px,3vw,34px);background:#fafbfd}
.form-card h2{font-size:22px;font-weight:600;margin:0 0 24px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.field>span{font-size:13.5px;font-weight:500;color:#54606f}
.field input,.field textarea{padding:12px 14px;border:1px solid #d5dde7;border-radius:3px;font-family:inherit;font-size:15px;background:#fff}
.field input{height:46px;padding:0 14px}
.form-note{font-family:"IBM Plex Mono",monospace;font-size:11.5px;color:#98a2b0;margin:0;line-height:1.5}
.map-wrap{margin-top:24px;border:1px solid #e0e6ee;border-radius:3px;overflow:hidden;background:#eef2f7}
.map-wrap iframe{display:block;width:100%;aspect-ratio:16/10;border:0}
.map-wrap a{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:15px 18px;border-top:1px solid #e0e6ee;background:#fff;color:#0d1521;font-size:14.5px;font-weight:600}
.map-wrap a:hover{background:#f4f9ff;color:#0a5aa8}

/* ---------- Footer ---------- */
.site-footer{background:#0d1521;color:#fff;padding:72px 0 32px}
.footer-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:clamp(32px,4vw,48px);padding-bottom:48px;border-bottom:1px solid #263140}
.site-footer h2{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#7f8b9b;margin:0 0 16px;font-weight:500}
.site-footer .col a{display:block;font-size:15px;color:#e3e8ef;margin-bottom:11px}
.site-footer .col span{display:block;font-size:15px;line-height:1.55;color:#a7b2c1}
.site-footer .brand p{font-size:15px;line-height:1.6;color:#a7b2c1;max-width:300px;margin:20px 0 0}
.site-footer .brand img{height:40px;width:auto}
.footer-bottom{padding-top:28px;display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;font-family:"IBM Plex Mono",monospace;font-size:12px;color:#7f8b9b}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
