/*
Theme Name: Showroom Theme
Theme URI: https://wordpress.org
Author: 1-800 Office Solutions
Author URI: https://1800officesolutions.com
Description: Custom Showroom Theme for 1-800 Office Solutions.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: showroom-theme
*/

/* ==========================================================================
   1. Design Tokens & Root Variables
   ========================================================================== */
:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EEF1F5;
  --surface-3: #E5EAF1;
  --ink: #0B1220;
  --text: #1F2937;
  --text-muted: #4B5563;
  --text-dim: #6B7280;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --brand: #1180C1;
  --brand-deep: #143A99;
  --brand-soft: #E8F1F9;
  --brand-grad: linear-gradient(135deg, #143A99 0%, #1180C1 100%);
  --accent: #FF6B1A;
  --accent-soft: #FFEFE3;
  --accent-deep: #E55A0E;
  --ok: #059669;
  --warn: #D97706;
  --err: #DC2626;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Oswald", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow: 0 4px 14px rgba(11, 18, 32, .06), 0 1px 3px rgba(11, 18, 32, .04);
  --shadow-lg: 0 20px 48px rgba(11, 18, 32, .10), 0 4px 12px rgba(11, 18, 32, .05);
  --container: 1240px;
}

/* ==========================================================================
   2. Base Document Normalization
   ========================================================================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   3. Theme Container
   ========================================================================== */
.topbar .container,
.site-header .container,
.site-footer .container,
footer .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  min-height: 50vh;
}

/* ==========================================================================
   4. Topbar (Scoped)
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 999;
  background: #0B1220;
  color: #D1D5DB;
  font-size: 13px;
  padding: 8px 0;
  font-family: var(--sans);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}

.topbar .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
  animation: blinkLive 2s infinite;
  display: inline-block;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.topbar-right {
  display: flex;
  gap: 22px;
  align-items: center;
}

/* ==========================================================================
   5. Site Header & Desktop Navigation (Scoped to .site-header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
}

/* Ensure Vuetify modals and full-screen dialogs always layer cleanly over the header */
.v-overlay-container,
.v-overlay,
.cm-backdrop {
  z-index: 99999 !important;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.site-header .brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
}

.site-header .nav-primary {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-primary > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-primary > li > a,
.site-header .nav-primary > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--r-sm);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header .nav-primary > li > a:hover,
.site-header .nav-primary > li > button:hover {
  background: var(--surface);
  text-decoration: none;
}

.site-header .nav-primary .caret {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: inline-block;
}

.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .nav-phone span {
  white-space: nowrap;
}

.site-header .nav-phone svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  flex: none;
  display: inline-block;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  transition: all .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.site-header .btn-primary {
  background: var(--accent);
  color: #0B1220;
}

.site-header .btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 107, 26, .35);
}

/* ==========================================================================
   6. Mega Menus (Scoped to .site-header .mega)
   ========================================================================== */
.site-header .mega {
  position: absolute;
  left: 0;
  top: 100%;
  transform: translateY(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  min-width: 860px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 1001;
  box-sizing: border-box;
}

.site-header .mega.mega-center {
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.site-header .mega.mega-right {
  left: auto;
  right: 0;
}

.site-header .nav-primary > li:hover > .mega,
.site-header .nav-primary > li:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .nav-primary > li:hover > .mega.mega-center,
.site-header .nav-primary > li:focus-within > .mega.mega-center {
  transform: translateX(-50%) translateY(0);
}

.site-header .mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.site-header .mega-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.site-header .mega-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.site-header .mega-col .mega-head {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 0 12px;
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-header .mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .mega-col li {
  margin-bottom: 2px;
  list-style: none;
}

.site-header .mega-col a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.site-header .mega-col a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

.site-header .mega-promo {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.site-header .mega-promo .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 10px;
}

.site-header .mega-promo .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 128, 193, .18);
  display: inline-block;
}

.site-header .mega-promo .title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 8px 0;
}

.site-header .mega-promo .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.site-header .mega-promo a.cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.site-header .mega-promo a.cta:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7. Mobile Navigation Drawer (Scoped to #mob-wrap & #mob-burger)
   ========================================================================== */
#mob-burger {
  all: unset;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

#mob-burger:active {
  opacity: 0.7;
}

#mob-burger svg {
  width: 24px;
  height: 24px;
  display: block;
}

#mob-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  overflow-y: auto;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#mob-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#mob-wrap.is-open {
  display: block;
}

#mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #f1f1ef;
  position: sticky;
  top: 0;
  z-index: 2;
}

#mob-head img {
  height: 32px;
  width: auto;
  display: block;
}

#mob-close {
  all: unset;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

#mob-close:active {
  opacity: 0.6;
  transform: scale(0.92);
}

#mob-close svg {
  width: 28px;
  height: 28px;
  display: block;
}

#mob-body {
  padding: 16px 16px 8px;
}

#mob-body .mob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px !important;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
}

#mob-body .mob-row:active {
  background: #f5f5f3;
}

#mob-body .mob-row svg {
  width: 18px;
  height: 18px;
  stroke: #999;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.15s ease;
  display: inline-block;
}

#mob-body .mob-row.is-open {
  background: #f4f3ff;
  color: #534AB7;
  font-weight: 600;
}

#mob-body .mob-row.is-open svg {
  stroke: #534AB7;
  transform: rotate(180deg);
}

#mob-body .mob-sub {
  display: none;
  margin: 2px 0 10px 14px;
  padding-left: 12px;
  border-left: 2px solid #e1e0ff;
}

#mob-body .mob-sub.is-open {
  display: block;
}

#mob-body .mob-sub a {
  display: block;
  padding: 10px 12px !important;
  font-size: 15px;
  color: #4a4a4a;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s ease, color 0.1s ease;
}

#mob-body .mob-sub a:active {
  background: #f5f5f3;
  color: #111111;
}

#mob-cta {
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

#mob-cta a {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

#mob-cta a:active {
  transform: scale(0.98);
}

#mob-cta .mob-cta-p {
  background: #534AB7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(83, 74, 183, 0.15);
}

#mob-cta .mob-cta-p:active {
  background: #433aa1;
}

#mob-cta .mob-cta-s {
  border: 1.5px solid #e2e2e0;
  color: #1a1a2e;
  background: #ffffff;
}

#mob-cta .mob-cta-s:active {
  background: #f9f9f8;
  border-color: #d0d0cd;
}

/* ==========================================================================
   8. Footer (Scoped to .site-footer / footer)
   ========================================================================== */
.site-footer,
footer {
  background: #0B1220;
  color: #9CA3AF;
  padding: 56px 0 24px;
  font-size: 14px;
  font-family: var(--sans);
}

footer .foot-grid,
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

footer h3,
.site-footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 16px 0;
}

footer a,
.site-footer a {
  color: #9CA3AF;
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover,
.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li,
.site-footer li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-brand {
  max-width: 260px;
}

.foot-brand .brand {
  color: #fff;
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
}

.foot-brand .brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.foot-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: #9CA3AF;
  margin: 0 0 12px 0;
}

.foot-contact {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #9CA3AF;
}

.foot-addr {
  font-style: normal;
  margin: 0 0 10px;
  color: #9CA3AF;
  font-size: 12.5px;
  line-height: 1.55;
}

.foot-addr a {
  color: inherit;
  text-decoration: none;
}

.foot-addr a:hover {
  color: #fff;
}

.foot-emails {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.foot-emails li {
  font-size: 12px;
  margin-bottom: 3px;
}

.foot-emails a {
  color: #D1D5DB;
  text-decoration: none;
  line-height: 1.6;
}

.foot-emails a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.foot-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.foot-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #D1D5DB;
  line-height: 1;
}

.fti-stars {
  color: #FBBF24;
  letter-spacing: 1px;
  font-size: 13px;
}

.fti-label {
  font-size: 12px;
  color: #9CA3AF;
}

.fti-label b {
  color: #fff;
  font-weight: 700;
}

.fti-badge {
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 38px;
  padding: 0 8px;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  color: #fff;
}

.fti-badge.bbb { background: #004B8D; }
.fti-badge.g2 { background: #FF492C; }
.fti-badge.soc { background: #0F766E; }
.fti-badge.cap { background: #1180C1; }
.fti-badge.cap.siem { background: #4338CA; }
.fti-badge.cap.soar { background: #0891B2; }

.fti-link {
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, opacity .18s ease;
}

.fti-link:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.fti-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  padding: 3px 7px;
  height: 24px;
  box-sizing: border-box;
}

.fti-logo {
  height: 18px;
  width: auto;
  display: block;
}

.foot-social {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  align-items: center;
}

.foot-social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #D1D5DB;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  text-decoration: none;
}

.foot-social a:hover {
  background: rgba(17, 128, 193, .22);
  border-color: rgba(17, 128, 193, .45);
  color: #fff;
  transform: translateY(-1px);
}

.foot-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.foot-oems {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-oem-lbl {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing:.14em;
  color: #6B7280;
  font-weight: 700;
  margin: 0;
  font-family: var(--mono);
  flex-shrink: 0;
}

.foot-oem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.foot-oem {
  font-size: 11px;
  font-weight: 600;
  color: #D1D5DB;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: .02em;
}

.foot-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* ==========================================================================
   9. Responsive Breakpoints (Strictly Scoped)
   ========================================================================== */
@media (max-width: 1023px) {
  .site-header .nav-primary {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  #mob-wrap, #mob-burger {
    display: none !important;
  }
}

@media (max-width: 900px) {
  footer .foot-grid,
  .site-footer .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .foot-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .foot-mid {
    justify-content: flex-start;
  }
  .foot-oems {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .topbar-right {
    gap: 12px;
  }
  footer .foot-grid,
  .site-footer .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 360px) {
  .site-header .nav-phone span {
    display: none !important;
  }
  .site-header .nav-actions .btn-primary {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}
