/* ============================================
   RETAIL SYSTEMS HB — STYLESHEET
   Blue: #1557a0  Grey: #4a5568  Dark: #111827
   ============================================ */

:root {
  --blue:        #1557a0;
  --blue-dark:   #0e3f78;
  --blue-light:  #2a7ad4;
  --accent:      #f59e0b;
  --grey-dark:   #1e2433;
  --grey:        #4a5568;
  --grey-mid:    #718096;
  --grey-light:  #e2e8f0;
  --grey-bg:     #f7f8fa;
  --white:       #ffffff;
  --text:        #1e2433;
  --text-muted:  #5a6a7e;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--grey { background: var(--grey-bg); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.btn-white:hover { background: var(--grey-light); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--grey-light);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover { color: var(--blue); background: rgba(21,87,160,0.06); }

.btn-remote {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 7px 14px !important;
  border-radius: var(--radius) !important;
  font-size: 0.82rem !important;
}
.btn-remote:hover { background: var(--blue-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-dark);
  padding: 4px;
}

/* ---- MOBILE NAV ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: var(--grey-dark);
  z-index: 200;
  flex-direction: column;
  padding: 60px 32px 32px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--white); }

.nav-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--grey-light);
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  background: var(--grey-dark);
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,87,160,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,87,160,0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, transparent);
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(21,87,160,0.3) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 80px;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.hero-stats {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
  margin: 0 auto;
  divide-x: 1px solid rgba(255,255,255,0.1);
}

.stat {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--white);
  border: 1.5px solid var(--grey-light);
  border-radius: 8px;
  transition: all var(--transition);
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 4px;
}

/* ---- BRANDS ---- */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.brand-pill {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1.5px solid var(--grey-light);
  border-radius: 40px;
  color: var(--grey);
  background: var(--white);
  transition: all var(--transition);
}

.brand-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(21,87,160,0.04);
}

/* ---- ABOUT STRIP ---- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text .section-eyebrow { margin-bottom: 12px; }

.about-text h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey-dark);
  margin-bottom: 20px;
  line-height: 1.1;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.about-text .btn { margin-top: 8px; }

.callout-box {
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-light);
  border-radius: 8px;
  overflow: hidden;
}

.callout-item {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.callout-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.callout-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--grey-dark);
}

.callout-value a { color: var(--blue); }
.callout-value a:hover { text-decoration: underline; }

.callout-divider {
  height: 1px;
  background: var(--grey-light);
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--blue);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-inner {
  position: relative;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--grey-dark);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-img { height: 32px; filter: brightness(0) invert(1); opacity: 0.85; }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-contact a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.04em;
}
.footer-contact a:hover { color: var(--white); }

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-base .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-base span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--grey-dark);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,87,160,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,87,160,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
}

/* ---- CONTENT BLOCKS ---- */
.content-block {
  padding: 72px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}

.content-grid p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.img-placeholder {
  background: var(--grey-bg);
  border: 2px dashed var(--grey-light);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--grey-mid);
  font-size: 0.85rem;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- CONTACT FORM ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- SHOP ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  border: 1.5px solid var(--grey-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
  background: var(--white);
}

.product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.product-img {
  background: var(--grey-bg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.product-price span {
  font-size: 0.78rem;
  color: var(--grey-mid);
  font-weight: 400;
  margin-left: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: flex; }
  .section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
