/*
Theme Name: Ricoh Software Showcase
Theme URI: https://example.com/ricoh-software-showcase
Author: Mock Build
Description: A single-page WordPress theme recreating the Ricoh Software global product portfolio showcase, with a filterable product grid, a comparison module, and a contact section. Built as a demo/mock, not an official Ricoh property.
Version: 1.0
Text Domain: ricoh-showcase
*/

:root{
  --ink:#121316;
  --ink-soft:#2B2E33;
  --paper:#F6F5F1;
  --paper-dim:#EDEBE4;
  --red:#E2001A;
  --red-deep:#7D0011;
  --steel:#4B5563;
  --steel-soft:#8A8F98;
  --line:#DBDDD8;
  --white:#FFFFFF;
  --radius:2px;
  --disp: 'Space Grotesk', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
img{max-width:100%; display:block;}
::selection{background:var(--red); color:var(--white);}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

:focus-visible{outline:2px solid var(--red); outline-offset:3px;}

.wrap{max-width:1240px; margin:0 auto; padding:0 32px;}
@media (max-width:640px){ .wrap{padding:0 20px;} }

.eyebrow{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--red);
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:""; width:16px; height:1px; background:var(--red);}

/* ---------- NAV ---------- */
header.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(246,245,241,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.logo{
  font-family:var(--disp); font-weight:700; font-size:20px;
  letter-spacing:-0.01em;
  display:flex; align-items:center; gap:8px;
  text-decoration:none;
}
.logo .mark{
  width:10px; height:10px; background:var(--red); display:inline-block;
}
.logo .sub{
  font-family:var(--mono); font-size:11px; font-weight:400; color:var(--steel);
  letter-spacing:0.04em; margin-left:2px;
}
nav ul{
  list-style:none; display:flex; gap:36px;
}
nav a{
  text-decoration:none; font-size:14px; font-weight:500; color:var(--ink-soft);
  position:relative; padding:4px 0;
}
nav a:hover{color:var(--red);}
.nav-cta{
  background:var(--ink); color:var(--white); text-decoration:none;
  font-size:13px; font-weight:500; padding:10px 20px; border-radius:var(--radius);
  transition:background 0.15s ease;
}
.nav-cta:hover{background:var(--red);}
.nav-toggle{display:none;}
@media (max-width:860px){
  nav ul{display:none;}
  .nav-toggle{display:block; background:none; border:1px solid var(--line); padding:8px 12px; font-family:var(--mono); font-size:12px;}
}

/* ---------- HERO ---------- */
.hero{
  padding:96px 0 80px;
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:end;
}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr; gap:48px;} }
.hero h1{
  font-family:var(--disp);
  font-size:clamp(38px, 5.2vw, 64px);
  font-weight:600;
  line-height:1.04;
  letter-spacing:-0.02em;
  margin:20px 0 24px;
}
.hero h1 em{
  font-style:normal; color:var(--red);
}
.hero p.lede{
  font-size:17px; color:var(--steel); max-width:46ch; margin-bottom:32px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:500; text-decoration:none;
  padding:13px 22px; border-radius:var(--radius);
  transition:all 0.15s ease;
  border:1px solid transparent;
}
.btn-primary{background:var(--red); color:var(--white);}
.btn-primary:hover{background:var(--red-deep);}
.btn-ghost{border-color:var(--ink); color:var(--ink);}
.btn-ghost:hover{background:var(--ink); color:var(--white);}

.signal{
  font-family:var(--mono); font-size:11px; color:var(--steel);
}
.signal-track{
  position:relative; height:2px; background:var(--line); margin:14px 0 22px;
}
.signal-track::after{
  content:""; position:absolute; left:0; top:0; height:100%; width:100%;
  background:linear-gradient(90deg, var(--red), var(--red-deep));
  transform-origin:left;
  animation:signal-fill 2.4s ease-in-out infinite alternate;
}
@keyframes signal-fill{
  0%{transform:scaleX(0.15);}
  100%{transform:scaleX(1);}
}
.signal-nodes{
  display:flex; justify-content:space-between;
}
.signal-nodes span{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-transform:uppercase; letter-spacing:0.08em; font-size:10px;
}
.signal-nodes span::before{
  content:""; width:9px; height:9px; border-radius:50%; background:var(--ink);
  border:2px solid var(--paper); outline:1px solid var(--line);
}
.hero-stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  margin-top:36px; padding-top:24px; border-top:1px solid var(--line);
}
.hero-stats .num{font-family:var(--disp); font-size:28px; font-weight:600;}
.hero-stats .label{font-size:12px; color:var(--steel); margin-top:4px;}

/* ---------- SECTION HEADERS ---------- */
section{padding:88px 0;}
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:24px;
  margin-bottom:48px; flex-wrap:wrap;
}
.section-head h2{
  font-family:var(--disp); font-size:clamp(28px,3.4vw,40px);
  font-weight:600; letter-spacing:-0.01em; margin-top:14px;
}
.section-head p{color:var(--steel); max-width:42ch; font-size:15px;}

/* ---------- CATEGORY TABS ---------- */
.tabs{
  display:flex; gap:8px; flex-wrap:wrap; margin-bottom:40px;
  border-bottom:1px solid var(--line); padding-bottom:0;
}
.tab{
  font-family:var(--mono); font-size:12px; letter-spacing:0.04em;
  background:none; border:none; cursor:pointer;
  padding:12px 4px; margin-right:24px; color:var(--steel-soft);
  border-bottom:2px solid transparent;
  transition:color 0.15s ease, border-color 0.15s ease;
}
.tab:hover{color:var(--ink);}
.tab.active{color:var(--ink); border-bottom-color:var(--red);}

/* ---------- PRODUCT GRID ---------- */
.grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
@media (max-width:900px){ .grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid{grid-template-columns:1fr;} }
.card{
  background:var(--paper); padding:28px; display:flex; flex-direction:column;
  min-height:230px;
}
.card .tag{
  font-family:var(--mono); font-size:10px; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--red); margin-bottom:14px;
}
.card h3{
  font-family:var(--disp); font-size:19px; font-weight:600; margin-bottom:10px; letter-spacing:-0.01em;
}
.card p{
  font-size:13.5px; color:var(--steel); flex-grow:1; margin-bottom:18px;
}
.card .card-foot{
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--mono); font-size:11px; color:var(--steel-soft);
  border-top:1px solid var(--line); padding-top:14px;
}
.card .compare-add{
  background:none; border:1px solid var(--line); font-family:var(--mono);
  font-size:11px; padding:6px 10px; cursor:pointer; color:var(--ink);
  transition:all 0.15s ease;
}
.card .compare-add:hover{border-color:var(--red); color:var(--red);}
.card .compare-add.added{background:var(--ink); color:var(--white); border-color:var(--ink);}

/* ---------- COMPARISON ---------- */
.compare-section{background:var(--ink); color:var(--paper);}
.compare-section .eyebrow{color:#FF6E7A;}
.compare-section .section-head p{color:#A9ADB4;}
.chip-bar{
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom:36px;
}
.chip{
  font-family:var(--mono); font-size:12px; padding:9px 14px;
  border:1px solid #3A3D42; background:none; color:#C6C9CE; cursor:pointer;
  border-radius:20px; transition:all 0.15s ease;
}
.chip:hover{border-color:var(--red);}
.chip.selected{background:var(--red); border-color:var(--red); color:var(--white);}
.compare-hint{
  font-size:13px; color:#8A8F98; margin-bottom:28px;
}
.compare-table-wrap{overflow-x:auto;}
table.compare-table{
  width:100%; border-collapse:collapse; min-width:560px;
}
.compare-table th, .compare-table td{
  text-align:left; padding:16px 18px; border-bottom:1px solid #2B2E33;
  font-size:13.5px; vertical-align:top;
}
.compare-table thead th{
  font-family:var(--disp); font-size:16px; font-weight:600; color:var(--white);
  border-bottom:2px solid var(--red);
}
.compare-table thead th.spec-col{
  font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
  color:#8A8F98; font-weight:400; border-bottom:2px solid #3A3D42;
}
.compare-table td.spec-label{
  font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.06em;
  color:#8A8F98;
}
.compare-table td{color:#D6D8DC;}
.compare-empty{
  padding:48px 0; text-align:center; color:#8A8F98; font-size:14px; border:1px dashed #3A3D42;
}

/* ---------- CONTACT ---------- */
.contact-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:72px;
}
@media (max-width:860px){ .contact-grid{grid-template-columns:1fr; gap:48px;} }
.field{margin-bottom:20px;}
.field label{
  display:block; font-family:var(--mono); font-size:11px; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--steel); margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--line); background:var(--white);
  padding:13px 14px; font-family:var(--body); font-size:14px; color:var(--ink);
  border-radius:var(--radius);
}
.field textarea{resize:vertical; min-height:110px;}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--red);
}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:480px){ .field-row{grid-template-columns:1fr;} }
.submit-note{font-size:12px; color:var(--steel-soft); margin-top:10px;}

.offices{display:flex; flex-direction:column; gap:0;}
.office{
  padding:22px 0; border-bottom:1px solid var(--line);
  display:flex; justify-content:space-between; gap:16px;
}
.office:first-child{padding-top:0;}
.office .region{font-family:var(--disp); font-weight:600; font-size:17px;}
.office .detail{font-size:13px; color:var(--steel); margin-top:6px;}
.office .detail a{color:var(--red); text-decoration:none;}
.office .code{font-family:var(--mono); font-size:11px; color:var(--steel-soft); white-space:nowrap;}

/* ---------- FOOTER ---------- */
footer.site-footer{
  border-top:1px solid var(--line); padding:40px 0;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
}
footer.site-footer .fine{font-size:12px; color:var(--steel-soft);}
footer.site-footer .fine.disclaimer{max-width:640px; line-height:1.6;}

/* ---------- WP admin bar offset ---------- */
.admin-bar header.site-header{top:32px;}
@media screen and (max-width:782px){
  .admin-bar header.site-header{top:46px;}
}
