/* Theme Name: RAYSUN
   Description: English B2B site for custom patches (OEM/ODM) with label, packaging and gift trims.
   Global base layer. Tokens: assets/css/tokens.css. Section styles: home/content/page .css files. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font-body);font-size:17px;line-height:1.65;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img,svg,video{display:block;max-width:100%;height:auto}
figure{margin:0}
a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
a:hover{color:var(--blue-deep)}
button,input,select,textarea{font:inherit;color:inherit}
::selection{background:var(--brand-soft)}
:focus-visible{outline:3px solid var(--accent-soft);outline-offset:1px;box-shadow:0 0 0 1px var(--brand)}
.section.dark :focus-visible,.site-footer :focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:none}

/* ---------- Typography ---------- */
h1,h2,h3,h4{font-family:var(--font-display);color:var(--ink);margin:0;line-height:1.16;font-weight:600}
h1{font-size:clamp(38px,4vw,56px);letter-spacing:-.02em}
h2{font-size:34px;line-height:1.18;letter-spacing:-.015em}
h3{font-size:21px;line-height:1.35;letter-spacing:-.01em}
h4{font-size:15px;font-weight:600}
p{margin:0;color:var(--muted)}
strong{color:var(--ink);font-weight:600}
small{font-size:14px}
.lead{font-size:clamp(17px,1.5vw,20px);line-height:1.6;max-width:62ch;margin-top:20px;color:var(--muted)}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--blue)}

/* ---------- Layout ---------- */
.container{width:min(var(--max),calc(100% - var(--gutter)));margin-inline:auto}
.section{padding:var(--space-section) 0}
.section.alt{background:var(--grey)}
.section.tint{background:var(--blue-soft)}
.section.dark{background:var(--navy);color:#fff}
.section.dark h1,.section.dark h2,.section.dark h3,.section.dark h4{color:#fff}
.section.dark p{color:var(--paper-2)}
.section.dark .eyebrow{color:var(--paper-2)}
.section.dark .eyebrow::before{background:var(--accent-soft)}
.section.dark .btn.primary{background:#fff;color:var(--brand-ink)}
.section.dark .btn.primary:hover{background:var(--brand-soft);color:var(--brand-ink)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:44px}
.section-head .lead{max-width:56ch}
.section-head .actions{flex:none}
.stack>*+*{margin-top:16px}
.prose{max-width:68ch}
.prose>*+*{margin-top:18px}
.prose h2,.prose h3{margin-top:40px}
.prose ul,.prose ol{margin:16px 0 0;padding-left:22px;color:var(--muted)}
.prose li{margin-top:8px}
.prose a{color:var(--blue)}

/* ---------- Grid ---------- */
.grid{display:grid;gap:20px}
.cols-2{grid-template-columns:repeat(2,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-4{grid-template-columns:repeat(4,1fr)}

/* ---------- Buttons ---------- */
.btn{
  min-height:48px;padding:0 24px;border-radius:var(--r-control);
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:1px solid transparent;font-size:15px;font-weight:600;line-height:1.2;
  cursor:pointer;text-decoration:none;
  transition:background-color .16s,border-color .16s,color .16s;
}
.btn.primary{background:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blue-deep);color:#fff}
.btn.secondary{background:var(--white);color:var(--blue);border:1.5px solid var(--blue)}
.btn.secondary:hover{background:var(--blue-soft);color:var(--blue-deep)}
.btn.ghost{background:transparent;color:var(--blue);padding-inline:12px}
.btn.ghost:hover{color:var(--blue-deep)}
.section.dark .btn.secondary{background:transparent;color:#fff;border-color:#fff}
.section.dark .btn.secondary:hover{background:rgba(255,255,255,.1);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}

/* ---------- Cards ---------- */
.card{
  border:1px solid var(--line);border-radius:var(--r);background:var(--white);
  padding:24px;display:flex;flex-direction:column;gap:12px;
}
.card h3{color:var(--ink)}
.card p{font-size:15px;color:var(--muted)}
a.card{text-decoration:none;color:inherit;transition:border-color .16s,transform .16s}
a.card:hover{border-color:var(--control);transform:translateY(-1px)}
.card-rule{width:30px;height:3px;background:var(--blue);border-radius:2px}

/* ---------- Tags / chips ---------- */
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  border:1px solid var(--line);border-radius:var(--r-control);padding:6px 12px;
  font-size:13px;font-weight:500;color:var(--muted);background:var(--white);text-decoration:none;
}
.chip:hover{border-color:var(--blue);color:var(--blue)}

/* ---------- Technical fact bar ---------- */
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:44px}
.fact{border-top:1px solid var(--line);padding-top:14px}
.fact b{display:block;font-family:var(--font-display);color:var(--ink);font-size:22px;font-weight:600;letter-spacing:-.01em}
.fact span{display:block;margin-top:4px;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.section.dark .fact{border-color:rgba(255,255,255,.22)}
.section.dark .fact b{color:#fff}
.section.dark .fact span{color:var(--paper-2)}

/* ---------- Numbered steps ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.step{border-top:1px solid var(--line);padding-top:18px}
.section.dark .step{border-color:rgba(255,255,255,.22)}
.step small{display:block;color:var(--blue);font-weight:600;letter-spacing:.08em;font-size:13px;text-transform:uppercase}
.step h3{font-size:18px;margin-top:10px}
.step p{font-size:14px;margin-top:6px}
.section.dark .step small{color:var(--paper-2)}

/* ---------- Parameter table ---------- */
.ptable{width:100%;border-collapse:collapse;background:transparent;border:0}
.ptable th,.ptable td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);font-size:15px;vertical-align:top;min-height:44px}
.ptable th{font-weight:500;color:var(--ink-muted);background:transparent}
.ptable td{color:var(--ink)}
.ptable thead th{font-size:13px}
.ptable tr:last-child th,.ptable tr:last-child td{border-bottom:0}
.ptable .numeric{font-family:var(--font-mono);font-variant-numeric:tabular-nums;text-align:right}
/* ---------- Header ---------- */
.skip-link{position:absolute;left:-9999px;top:0;background:var(--surface);padding:12px 16px;z-index:60}
.skip-link:focus{left:16px;top:16px}
.site-header{position:relative;background:#EEF5FC;border-bottom:0;z-index:50;font-family:Arial,var(--font-body),sans-serif}
.site-header .nav{width:min(1240px,calc(100% - 112px));min-height:140px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative}
.logo{display:inline-flex;align-items:center;color:var(--ink);text-decoration:none;font-weight:700}
.logo img{height:48px;width:auto;max-width:180px;object-fit:contain}
.logo-text{display:flex;flex-direction:column;gap:8px}
.logo-word{font-size:21px;color:var(--brand);letter-spacing:.02em}
.logo-sub{font-size:13px;color:var(--ink-muted);letter-spacing:.04em;text-transform:uppercase;font-weight:500}
.site-header .logo{flex:none;width:104px;flex-direction:column;justify-content:center;gap:7px}
.site-header .logo img{width:auto;height:104px;max-width:104px;object-fit:contain}
.site-header .logo-text{gap:5px}
.site-header .logo-word{font-size:20px;line-height:1;font-weight:700;color:#143B76;letter-spacing:.075em}
.site-header .logo-sub{font-size:10px;letter-spacing:.02em}
.site-header .navlinks{display:flex;flex:1;align-items:center;justify-content:space-between;gap:20px;min-width:0;margin-left:18px}
.site-header .nav-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#111;font-size:23px;font-weight:700;line-height:1.3;letter-spacing:.01em;word-spacing:3px;white-space:nowrap;text-decoration:none;cursor:pointer}
.site-header .nav-link:hover,.site-header .nav-link[aria-current],.site-header .nav-link[aria-expanded="true"]{color:#111;border-bottom-color:#143B76}
.site-header .nav-chevron{font-size:10px;line-height:1;color:currentColor}
.site-header .nav-panel{width:300px;padding:12px;background:#fff;border:1px solid #D3DFED;border-radius:4px;box-shadow:0 14px 34px rgba(16,39,71,.14)}
.site-header .nav-panel a{display:block;padding:12px;min-height:44px;color:#111;font-family:var(--font-body);font-size:15px;font-weight:500;line-height:1.45;text-decoration:none;overflow-wrap:anywhere;border-radius:2px}
.site-header .nav-panel a:hover,.site-header .nav-panel a[aria-current]{color:#143B76;background:#EEF5FC}
/* Popover owns visibility, positioning, height and animation transforms. */
.site-header .nav-mobile{display:none;flex:none}
.site-header .menu-toggle-btn{list-style:none;border:1px solid #6E83A0;border-radius:4px;padding:12px 16px;min-height:48px;font-size:16px;font-weight:600;color:#111;cursor:pointer}
.site-header .menu-toggle-btn::-webkit-details-marker,.site-header .nav-mobile-group>summary::-webkit-details-marker{display:none}
.site-header .nav-mobile-links{position:absolute;top:100%;left:0;right:0;background:#EEF5FC;border:1px solid #D3DFED;padding:16px 20px 24px;max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px);overflow:auto;overscroll-behavior:contain;scroll-padding-bottom:24px;box-shadow:0 14px 24px rgba(16,39,71,.1)}
.site-header .nav-mobile-links>a,.site-header .nav-mobile-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 8px;color:#111;font-size:18px;font-weight:600;line-height:1.35;text-decoration:none;border-bottom:1px solid #D3DFED;cursor:pointer;list-style:none}
.site-header .nav-mobile-links>a:hover,.site-header .nav-mobile-links>a[aria-current],.site-header .nav-mobile-group>summary[aria-current]{color:#143B76;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.site-header .nav-mobile-children{padding:6px 0 12px 12px;background:rgba(255,255,255,.5)}
.site-header .nav-mobile-children a{display:block;min-height:44px;padding:10px 12px;color:#111;font-size:15px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
.site-header .nav-mobile-children a:hover,.site-header .nav-mobile-children a[aria-current]{color:#143B76;background:#fff}
.site-header .nav-mobile-links .contact-channels{margin-top:24px}
@media(min-width:1101px) and (max-width:1279px){
 .site-header .nav{width:calc(100% - 64px);gap:20px}
 .site-header .navlinks{gap:10px;margin-left:0}
 .site-header .nav-link{font-size:20px;padding-inline:6px;word-spacing:1px}
 .site-header .logo{width:88px;gap:7px}
 .site-header .logo-word{font-size:18px}
 .site-header .logo img{height:88px;max-width:88px}
}
@media(max-width:1100px){
 .site-header .nav{width:calc(100% - 48px);min-height:100px}
 .site-header .logo{width:auto;flex-direction:row;gap:12px}
 .site-header .logo img{height:72px;max-width:80px}
 .site-header .logo-word{font-size:24px}
 .site-header .navlinks{display:none}
 .site-header .nav-mobile{display:block}
}
/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:var(--paper-2);padding:64px 0 0;font-size:14px}
.site-footer .container{display:grid;grid-template-columns:2fr 1fr 1fr;gap:44px;padding-bottom:48px}
.site-footer p{color:var(--paper-2)}
.site-footer a{color:var(--paper-2);text-decoration:none}
.site-footer a:hover{color:#fff}
.site-footer h3{color:#fff;font-size:15px;font-weight:600;margin-bottom:16px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.site-footer .logo{color:#fff}
.site-footer .logo .logo-word{color:#fff}
.site-footer .logo .logo-sub{color:var(--paper-2)}
.site-footer .legal{border-top:1px solid rgba(255,255,255,.2);padding:20px 0;font-size:13px;color:var(--paper-2)}
.site-footer .legal .container{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;padding-bottom:0}
.site-footer .legal a{color:var(--paper-2)}

/* ---------- Forms ---------- */
.field{margin-bottom:20px}
.field label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:7px}
.field .hint{font-size:13px;color:var(--muted);margin-top:6px}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea{
  width:100%;min-height:48px;padding:12px 14px;border-radius:var(--r-control);
  border:1px solid var(--control);background:var(--white);font-size:15px;color:var(--ink);
}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);outline:3px solid var(--accent-soft);outline-offset:1px;box-shadow:0 0 0 1px var(--brand)}
.field .req{color:var(--error);font-weight:600}
.form-status{margin:12px 0;font-size:15px;min-height:22px}
.form-status.ok{color:var(--success)}
.form-status.err{color:var(--error)}
.upload-hint{
  border:1px dashed var(--control);border-radius:var(--r);background:var(--grey);
  padding:20px;font-size:13px;color:var(--muted);
}

/* ---------- Media frames ---------- */
.frame{border:1px solid var(--line);border-radius:var(--r-img);overflow:hidden;background:var(--white)}
.frame img{width:100%;height:100%;object-fit:cover}
.ratio-1x1{aspect-ratio:1/1}
.ratio-4x3{aspect-ratio:4/3}
.ratio-3x2{aspect-ratio:3/2}
.ratio-16x9{aspect-ratio:16/9}
.img-caption{font-size:13px;color:var(--muted);margin-top:8px}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:22px}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--blue)}
.breadcrumb .sep{margin:0 8px;color:var(--line)}

/* ---------- Hero band (interior pages) ---------- */
.hero{padding:72px 0 56px;border-bottom:1px solid var(--line);background:var(--white)}
.hero h1{max-width:18ch}
.hero .lead{max-width:62ch}

/* ---------- Responsive ---------- */
@media(max-width:1199px){
 :root{--gutter:64px}
 .grid.cols-4{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1023px){
 :root{--gutter:64px;--space-section:64px}
 .grid.cols-2,.grid.cols-3,.grid.cols-4{grid-template-columns:repeat(2,1fr)}
 .site-footer .container{grid-template-columns:1fr 1fr}
}
@media(max-width:767px){
 :root{--gutter:40px;--space-section:48px}
 body{font-size:16px}
 h1{font-size:36px}h2{font-size:26px}h3{font-size:19px}
 .lead{font-size:17px}
 .grid.cols-2,.grid.cols-3,.grid.cols-4,.steps,.facts{grid-template-columns:1fr}
 .section-head{display:block;margin-bottom:32px}
 .section-head .actions{margin-top:16px}
 .hero{padding:48px 0}
 .ptable th,.ptable td{padding:12px 8px;overflow-wrap:anywhere}
 .site-header .nav{width:calc(100% - 40px);min-height:80px;gap:16px}
 .site-header .logo{gap:10px}
 .site-header .logo img{height:60px;max-width:68px}
 .site-header .logo-word{font-size:24px}
 .site-header .nav-mobile-links{max-height:calc(100vh - 144px);max-height:calc(100dvh - 144px)}
 .logo img{height:40px}
 .sticky-inquiry-bar{display:flex;position:fixed;bottom:0;left:0;right:0;height:56px;align-items:center;justify-content:center;background:var(--brand);color:#fff;font-size:15px;font-weight:500;text-decoration:none;z-index:45}
 .sticky-inquiry-bar:hover{background:var(--brand-deep);color:#fff}
 body:not(.page-template-page-contact):not(.page-template-page-thank-you){padding-bottom:56px}
 body:has(input:focus,textarea:focus,select:focus) .sticky-inquiry-bar{display:none}
}
@media(max-width:479px){
 h1{font-size:32px}
 .site-footer .container{grid-template-columns:1fr;gap:32px}
 .site-footer .legal .container{justify-content:flex-start}
 .logo-sub{display:none}
 .btn-row .btn{width:100%}
}
.sticky-inquiry-bar{display:none}
@media(max-width:767px){.sticky-inquiry-bar{display:flex}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:0ms!important;transition-duration:0ms!important;scroll-behavior:auto!important}}

/* Products category dropdown — local variant matching the approved reference. */
.site-header .nav-panel-products{width:290px;padding:4px 0;background:#fff;border:0;border-radius:0;box-shadow:0 8px 20px rgba(16,39,71,.12)}
.site-header .nav-panel-products a{min-height:35px;padding:7px 14px;border-radius:0;color:#102747;font-family:Arial,sans-serif;font-size:16px;font-weight:400;line-height:21px;letter-spacing:.6px;overflow-wrap:normal}
.site-header .nav-panel-products a:hover,.site-header .nav-panel-products a[aria-current]{background:#EEF5FC;color:#002B5C}
.site-header .nav-panel-products .product-category-heading,.site-header .nav-mobile-products .product-category-heading{background:#002B5C;color:#fff;font-weight:500;border-radius:0}
.site-header .nav-panel-products .product-category-heading:hover,.site-header .nav-mobile-products .product-category-heading:hover{background:#143B76;color:#fff}
.site-header .nav-mobile-products{padding:4px 0;background:#fff}
.site-header .nav-mobile-products a{padding:11px 14px;font-family:Arial,sans-serif;font-size:16px;letter-spacing:.4px;color:#102747}
.site-header .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Why Choose: reference-style five-item submenu, scoped to this group. */
.site-header .nav-panel-why{width:280px;padding:6px 0;background:#fff;border:0;border-radius:0;box-shadow:0 8px 20px rgba(16,39,71,.12)}
.site-header .nav-panel-why a{min-height:35px;padding:7px 18px;border-radius:0;color:#102747;font-family:Arial,sans-serif;font-size:16px;font-weight:400;line-height:21px;letter-spacing:.7px}
.site-header .nav-panel-why a:first-child,.site-header .nav-panel-why a:hover,.site-header .nav-panel-why a:focus-visible,.site-header .nav-panel-why a[aria-current]{background:#002B5C;color:#fff}
.site-header .nav-mobile-why{padding:4px 0;background:#fff}
.site-header .nav-mobile-why a{padding:11px 18px;color:#102747;font-family:Arial,sans-serif;font-size:16px;letter-spacing:.5px}
.site-header .nav-mobile-why a:first-child,.site-header .nav-mobile-why a:hover,.site-header .nav-mobile-why a:focus-visible,.site-header .nav-mobile-why a[aria-current]{background:#002B5C;color:#fff}

/* Contact dropdown: compact two-item white list. */
.site-header .nav-panel-contact{width:210px;padding:4px 0;background:#fff;border:0;border-radius:0;box-shadow:0 8px 20px rgba(16,39,71,.12)}
.site-header .nav-panel-contact a{min-height:35px;padding:7px 14px;border-radius:0;color:#102747;font-family:Arial,sans-serif;font-size:16px;font-weight:400;line-height:21px;letter-spacing:.7px}
.site-header .nav-panel-contact a:hover,.site-header .nav-panel-contact a:focus-visible{background:#002B5C;color:#fff}
.site-header .nav-mobile-contact{padding:4px 0;background:#fff}
.site-header .nav-mobile-contact a{padding:11px 14px;color:#102747;font-family:Arial,sans-serif;font-size:16px;letter-spacing:.5px}
.site-header .nav-mobile-contact a:hover,.site-header .nav-mobile-contact a:focus-visible{background:#002B5C;color:#fff}
