/* =============================================================
   Multitec B2B Theme
   ============================================================= */

/* --- Brand Variables --- */
:root {
  --mt-navy-deep:    #0c1a3d;
  --mt-navy:         #1e3a6e;
  --mt-red:          #dc2626;
  --mt-red-dark:     #b91c1c;
  --mt-red-fg:       #ffffff;
  --mt-white:        #ffffff;
  --mt-bg:           #ffffff;
  --mt-slate-soft:   #f8fafc;
  --mt-border:       #e2e8f0;
  --mt-muted:        #64748b;
  --mt-foreground:   #0f172a;
  --mt-shadow-soft:  0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --mt-shadow-elev:  0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
}

/* --- Reset homepage layout container --- */
.mt-home-content {
  width: 100%;
}

/* =============================================================
   TOP BAR
   ============================================================= */
.mt-topbar {
  background-color: var(--mt-navy-deep);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  min-height: 36px;
}

.mt-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 1rem;
  padding: 0 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.mt-topbar__left {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .mt-topbar__left {
    display: flex;
  }
}

.mt-topbar__link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.mt-topbar__link:hover {
  color: var(--mt-red);
}

.mt-topbar__link .material-icons {
  font-size: 14px;
}

.mt-topbar__hours {
  color: rgba(255,255,255,0.4);
}

.mt-topbar__right {
  margin-left: auto;
}

.mt-topbar__signin {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--mt-white);
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.mt-topbar__signin:hover {
  color: var(--mt-red);
}

.mt-topbar__signin .material-icons {
  font-size: 14px;
}

/* =============================================================
   MAIN HEADER
   ============================================================= */
.mt-header {
  background: var(--mt-white);
  border-bottom: 1px solid var(--mt-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background-color: rgba(255,255,255,0.92);
}

.mt-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 72px;
  padding: 0 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.mt-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--mt-foreground);
  flex-shrink: 0;
}

.mt-logo:hover {
  color: var(--mt-foreground);
  text-decoration: none;
}

.mt-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mt-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mt-logo__dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--mt-red);
}

.mt-logo__name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mt-logo__name span {
  color: var(--mt-red);
}

.mt-logo__sub {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mt-muted);
  margin-top: 3px;
}

/* Search bar (styles the ps_searchbar module output) */
.mt-header__search {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
}

#_desktop_ps_searchbar {
  flex: 1 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

#ps_searchbar .ps-searchbar__form {
  position: relative;
  display: flex;
  align-items: center;
}

#ps_searchbar .ps-searchbar__input {
  width: 100%;
  height: 44px;
  padding: 0 7rem 0 2.75rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background-color: var(--mt-slate-soft);
  font-size: 0.875rem;
  transition: all 0.2s;
}

#ps_searchbar .ps-searchbar__input:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--mt-red);
  background-color: var(--mt-white);
}

#ps_searchbar .ps-searchbar__magnifier {
  position: absolute;
  left: 0.875rem;
  font-size: 18px !important;
  color: var(--mt-muted);
  pointer-events: none;
  z-index: 1;
}

/* Hidden submit button - we'll add one via CSS pseudo or rely on enter */
#ps_searchbar .ps-searchbar__clear {
  position: absolute;
  right: 4.5rem;
}

/* Fake search button using a label overlay - add real button via override */
.mt-search-btn-wrap {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* Header actions */
.mt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Style the cart block from ps_shoppingcart module */
#_desktop_ps_shoppingcart .header-block__action-btn,
#_desktop_ps_shoppingcart .header-block__action-btn:hover {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mt-foreground);
  text-decoration: none;
  transition: background 0.15s;
}

#_desktop_ps_shoppingcart .header-block__action-btn:hover {
  background: var(--mt-slate-soft);
}

#_desktop_ps_shoppingcart .header-block__badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--mt-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#_desktop_ps_shoppingcart .header-block__title {
  display: none;
}

/* Style sign-in block from ps_customersignin */
#_desktop_ps_customersignin .header-block__action-btn {
  display: none; /* hide icon-only link - we have our own button */
}

/* Login button */
.mt-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 38px;
  padding: 0 1.25rem;
  border-radius: 100px;
  background: var(--mt-navy);
  color: var(--mt-white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.mt-btn-login:hover {
  background: var(--mt-navy-deep);
  color: var(--mt-white) !important;
  text-decoration: none;
}

/* Navigation bar */
.mt-header__nav {
  border-top: 1px solid var(--mt-border);
}

.mt-header__nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Style ps_mainmenu in the nav bar */
.mt-header__nav #_desktop_top_menu {
  display: flex;
  align-items: center;
}

/* =============================================================
   HOMEPAGE — HERO
   ============================================================= */
.mt-hero {
  background: linear-gradient(135deg, var(--mt-navy-deep) 0%, #1a3060 55%, var(--mt-navy-deep) 100%);
  /* subtle dot grid overlay */
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(135deg, var(--mt-navy-deep) 0%, #1a3060 55%, var(--mt-navy-deep) 100%);
  background-size: 24px 24px, 100% 100%;
  color: var(--mt-white);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.mt-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.mt-hero__badge .material-icons {
  font-size: 12px;
}

.mt-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.mt-text-gradient {
  background: linear-gradient(90deg, var(--mt-red) 0%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-hero__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.mt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mt-hero__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.mt-hero__note .material-icons {
  font-size: 14px;
}

.mt-hero__img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--mt-shadow-elev);
}

.mt-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.mt-hero__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(12,26,61,0.4) 0%, transparent 60%);
}

/* Floating side badges */
.mt-hero__side-badges {
  position: absolute;
  left: -1.5rem;
  top: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.mt-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--mt-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mt-foreground);
  box-shadow: var(--mt-shadow-elev);
  white-space: nowrap;
}

.mt-float-badge .material-icons {
  font-size: 16px;
  color: var(--mt-red);
  background: rgba(220,38,38,0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.mt-btn--red {
  background: var(--mt-red);
  color: var(--mt-white) !important;
  box-shadow: 0 0 0 0 rgba(220,38,38,0);
}

.mt-btn--red:hover {
  background: var(--mt-red-dark);
  color: var(--mt-white) !important;
  box-shadow: 0 4px 20px rgba(220,38,38,0.35);
}

.mt-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.9) !important;
}

.mt-btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--mt-white) !important;
}

.mt-btn--white {
  background: var(--mt-white);
  color: var(--mt-navy) !important;
}

.mt-btn--white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--mt-navy-deep) !important;
}

.mt-btn--sm  { height: 36px; padding: 0 1rem; font-size: 0.8125rem; }
.mt-btn--md  { height: 44px; padding: 0 1.5rem; font-size: 0.875rem; }
.mt-btn--lg  { height: 48px; padding: 0 1.75rem; font-size: 0.9375rem; }
.mt-btn--xl  { height: 56px; padding: 0 2rem; font-size: 1rem; }

.mt-btn .material-icons { font-size: 18px; }

/* =============================================================
   STEPS SECTION
   ============================================================= */
.mt-steps {
  padding: 5rem 0;
}

.mt-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mt-red);
  margin-bottom: 0.75rem;
}

.mt-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--mt-foreground);
}

.mt-section-desc {
  color: var(--mt-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 0;
}

.mt-step-card {
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--mt-shadow-soft);
  height: 100%;
  transition: all 0.2s;
}

.mt-step-card:hover {
  box-shadow: var(--mt-shadow-elev);
  transform: translateY(-3px);
}

.mt-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mt-navy);
  color: var(--mt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mt-step-card:hover .mt-step-icon {
  background: var(--mt-red);
}

.mt-step-icon .material-icons {
  font-size: 20px;
}

.mt-step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.12);
}

.mt-step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.25rem 0 0.375rem;
  color: var(--mt-foreground);
}

.mt-step-desc {
  font-size: 0.875rem;
  color: var(--mt-muted);
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   BANNERS SECTION
   ============================================================= */
.mt-banners {
  padding: 0 0 5rem;
}

/* Main large banner */
.mt-banner-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  background: var(--mt-navy);
  display: flex;
  align-items: flex-end;
}

.mt-banner-main__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.mt-banner-main__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, var(--mt-navy-deep) 0%, rgba(30,58,110,0.75) 50%, transparent 100%);
}

.mt-banner-main__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 3rem;
  color: var(--mt-white);
  width: 100%;
}

.mt-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mt-badge--red { background: var(--mt-red); color: #fff; }

.mt-badge--outline {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--mt-white);
}

.mt-banner-main__title {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 1rem;
}

.mt-banner-main__title .mt-text-red { color: var(--mt-red); }

.mt-banner-main__desc {
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.mt-banner-main__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.mt-banner-main__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.mt-banner-main__note .material-icons { font-size: 14px; }

/* Side banners */
.mt-banner-side {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.mt-banner-side--light {
  background: var(--mt-slate-soft);
  border: 1px solid var(--mt-border);
}

.mt-banner-side--dark {
  background: var(--mt-navy-deep);
  color: var(--mt-white);
}

.mt-banner-side__img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45%;
  object-fit: cover;
}

.mt-banner-side--dark .mt-banner-side__img {
  opacity: 0.85;
}

.mt-banner-side--dark .mt-banner-side__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--mt-navy-deep) 45%, rgba(12,26,61,0.5) 100%);
}

.mt-banner-side__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  max-width: 58%;
}

.mt-label-red {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mt-red);
  margin-bottom: 0.5rem;
}

.mt-banner-side__title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--mt-foreground);
}

.mt-banner-side--dark .mt-banner-side__title { color: var(--mt-white); }

.mt-banner-side__desc {
  font-size: 0.8125rem;
  color: var(--mt-muted);
  margin-bottom: 0.75rem;
}

.mt-banner-side--dark .mt-banner-side__desc { color: rgba(255,255,255,0.65); }

.mt-link-navy {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mt-navy);
  text-decoration: none;
  transition: color 0.15s;
}

.mt-link-navy:hover { color: var(--mt-red); }
.mt-link-navy .material-icons { font-size: 16px; }

.mt-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mt-white);
  margin-bottom: 0.125rem;
}

.mt-price-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.mt-price-legal {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* =============================================================
   CTA SECTION
   ============================================================= */
.mt-cta {
  padding: 0 0 5rem;
}

.mt-cta__inner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mt-navy-deep) 0%, #1a3060 55%, var(--mt-navy-deep) 100%);
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(135deg, var(--mt-navy-deep) 0%, #1a3060 55%, var(--mt-navy-deep) 100%);
  background-size: 24px 24px, 100% 100%;
  color: var(--mt-white);
  padding: 3.5rem;
}

.mt-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.75rem;
}

.mt-cta__desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.mt-cta__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.mt-cta__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.mt-cta__list .material-icons {
  font-size: 18px;
  color: var(--mt-red);
  flex-shrink: 0;
}

/* =============================================================
   STATS BAR
   ============================================================= */
.mt-stats {
  border-top: 1px solid var(--mt-border);
  border-bottom: 1px solid var(--mt-border);
  background: var(--mt-slate-soft);
  padding: 2.5rem 0;
}

.mt-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--mt-navy);
  color: var(--mt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mt-stat-icon .material-icons { font-size: 24px; }

.mt-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mt-foreground);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.mt-stat-label {
  font-size: 0.8125rem;
  color: var(--mt-muted);
}

/* =============================================================
   LOGGED-IN HOMEPAGE (normal PS content)
   ============================================================= */
.mt-home-loggedin {
  padding: 2rem 0 4rem;
}

/* =============================================================
   RESPONSIVE TWEAKS
   ============================================================= */
@media (max-width: 767px) {
  .mt-hero { padding: 3rem 0 4rem; }
  .mt-banner-main__content { padding: 1.75rem; }
  .mt-cta__inner { padding: 2rem 1.5rem; }
  .mt-hero__side-badges { display: none !important; }
}

@media (min-width: 992px) {
  .mt-hero__img-wrap { position: relative; }
  .mt-hero__side-badges { display: flex; }
}
