/* ============================================================
   homepage.css — new homepage sections (loaded only on home)
   ============================================================ */

/* ── SHARED SECTION DEFAULTS ───────────────────────────────── */
.pillars-section,
.hw-cat-section,
.fp-section,
.bundles-section,
.ind-section,
.why-section,
.res-section,
.faq-home-section {
  padding: 80px 0;
}

.pillars-section,
.fp-section,
.why-section,
.faq-home-section { background: var(--surface, #f8fafc); }

.hw-cat-section,
.bundles-section,
.ind-section,
.res-section { background: #fff; }

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

.badge-pillars { background: #f0f4ff; color: var(--indigo, #032555); }
.badge-hw      { background: #eef2ff; color: #4338ca; }
.badge-fp      { background: #fef3c7; color: #92400e; }
.badge-bundles { background: #f0fdf4; color: #166534; }
.badge-ind     { background: #fdf4ff; color: #7e22ce; }
.badge-why     { background: #fff7ed; color: #9a3412; }
.badge-res     { background: #f0f9ff; color: #0c4a6e; }
.badge-faq     { background: #fafafa; color: #374151; }

/* ── SOLUTIONS PILLARS ─────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}

.pillar-card:hover {
  border-color: var(--indigo, #032555);
  box-shadow: 0 8px 32px rgba(3,37,85,.10);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.pillar-card-sw     .pillar-icon { background: #eef2ff; color: var(--indigo, #032555); }
.pillar-card-hw     .pillar-icon { background: #f0f9ff; color: #0284c7; }
.pillar-card-bc     .pillar-icon { background: #f0fdf4; color: #16a34a; }
.pillar-card-bundle .pillar-icon { background: #fdf4ff; color: #9333ea; }
.pillar-card-install .pillar-icon { background: #fff7ed; color: #ea580c; }
.pillar-card-support .pillar-icon { background: #fef2f2; color: #dc2626; }

.pillar-card h3 { font-size: 1rem; font-weight: 700; color: #111827; margin: 0; }
.pillar-card p  { font-size: .875rem; color: #6b7280; margin: 0; line-height: 1.6; flex: 1; }

.pillar-arrow {
  font-size: 1.1rem;
  color: #9ca3af;
  transition: color .2s, transform .2s;
  align-self: flex-end;
}
.pillar-card:hover .pillar-arrow { color: var(--indigo, #032555); transform: translateX(4px); }

/* ── HARDWARE CATEGORIES ────────────────────────────────────── */
.hw-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hw-cat-card {
  display: block;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--cat-gradient, linear-gradient(135deg,#032555,#1a5fa0));
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.hw-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.hw-cat-coming { opacity: .7; cursor: default; }
.hw-cat-coming:hover { transform: none; box-shadow: none; }

.hw-cat-card-inner { padding: 24px 20px 20px; }

.hw-cat-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}

.hw-cat-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.hw-cat-badge {
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.2);
  color: #fff;
  white-space: nowrap;
}
.hw-cat-badge-soon { background: rgba(0,0,0,.2); }

.hw-cat-title { font-size: .95rem; font-weight: 700; margin: 0 0 6px; color: #fff; }
.hw-cat-desc  { font-size: .8rem; color: rgba(255,255,255,.8); margin: 0 0 14px; line-height: 1.5; }
.hw-cat-price { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.9); }

.hw-cat-footer { text-align: center; margin-top: 36px; }

/* ── FEATURED PRODUCTS ──────────────────────────────────────── */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fp-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.fp-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.10); transform: translateY(-3px); }

.fp-card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .7rem; font-weight: 700;
  background: var(--indigo, #032555); color: #fff;
  padding: 3px 10px; border-radius: 20px;
}

.fp-card-img {
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  min-height: 160px;
}
.fp-card-img img { max-height: 140px; width: auto; object-fit: contain; }

.fp-card-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}

.fp-card-name { font-size: .95rem; font-weight: 700; color: #111827; margin: 0; line-height: 1.4; }

.fp-card-specs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.fp-card-specs span {
  font-size: .75rem; color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px; border-radius: 4px;
}

.fp-card-price {
  font-size: 1.1rem; font-weight: 800;
  color: var(--indigo, #032555);
  margin-top: auto;
}

.fp-footer { text-align: center; margin-top: 40px; }

/* ── BUNDLES ────────────────────────────────────────────────── */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.bundle-card {
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.bundle-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }

.bundle-card-featured {
  border-color: var(--indigo, #032555);
  box-shadow: 0 4px 24px rgba(3,37,85,.12);
  transform: scale(1.02);
}

.bundle-card-header {
  padding: 28px 24px 20px;
  color: #fff;
}
.bundle-header-retail { background: linear-gradient(135deg,#032555,#1a5fa0); }
.bundle-header-rest   { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.bundle-header-super  { background: linear-gradient(135deg,#10b981,#059669); }

.bundle-card-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; color: #fff; }
.bundle-price { font-size: 1.6rem; font-weight: 800; color: #fff; }

.bundle-features {
  list-style: none; margin: 0; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.bundle-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: #374151; line-height: 1.5;
}
.bundle-features svg { color: #10b981; flex-shrink: 0; margin-top: 2px; }

.bundle-card-footer { padding: 0 24px 24px; }

.bundles-footer {
  text-align: center;
  margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.bundle-note { font-size: .85rem; color: #6b7280; margin: 0; }

/* ── INDUSTRIES ─────────────────────────────────────────────── */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ind-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.ind-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ind-gradient, #032555);
}
.ind-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); border-color: #d1d5db; }

.ind-card-icon { font-size: 2rem; line-height: 1; }

.ind-card-body { flex: 1; }
.ind-card-body h3 { font-size: .95rem; font-weight: 700; color: #111827; margin: 0 0 6px; }
.ind-card-body p  { font-size: .825rem; color: #6b7280; margin: 0; line-height: 1.6; }

.ind-hw-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; color: #374151;
  background: #f3f4f6;
  padding: 4px 10px; border-radius: 6px;
  margin-top: 10px;
}

.ind-card-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: auto;
}
.ind-learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  background: var(--primary, #032555);
  border: 1.5px solid var(--primary, #032555);
  border-radius: 8px;
  transition: background .2s, opacity .2s;
  white-space: nowrap;
}
.ind-learn-more:hover { opacity: .85; }
.ind-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600;
  color: #25d366;
  text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid #25d366;
  border-radius: 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.ind-card-cta:hover { background: #25d366; color: #fff; }

/* ── WHY INVENOVA ───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }

.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-icon-1 { background: #eef2ff; color: var(--indigo, #032555); }
.why-icon-2 { background: #f0f9ff; color: #0284c7; }
.why-icon-3 { background: #f0fdf4; color: #16a34a; }
.why-icon-4 { background: #fdf4ff; color: #9333ea; }
.why-icon-5 { background: #fff7ed; color: #ea580c; }
.why-icon-6 { background: #fef2f2; color: #dc2626; }
.why-icon-7 { background: #fefce8; color: #ca8a04; }
.why-icon-8 { background: #f0fdf4; color: #25d366; }

.why-card h3 { font-size: .95rem; font-weight: 700; color: #111827; margin: 0; }
.why-card p  { font-size: .85rem; color: #6b7280; margin: 0; line-height: 1.65; }

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

.res-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.res-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }

.res-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }

.res-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res-card-cat  { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--indigo, #032555); }
.res-card-body h3 { font-size: 1rem; font-weight: 700; color: #111827; margin: 0; line-height: 1.4; }
.res-card-body p  { font-size: .85rem; color: #6b7280; margin: 0; line-height: 1.6; flex: 1; }

.res-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .85rem; font-weight: 600;
  color: var(--indigo, #032555);
  margin-top: 4px;
}

.res-footer { text-align: center; margin-top: 40px; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-home-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  overflow: hidden;
}

.faq-home-item { border-bottom: 1.5px solid #e5e7eb; }
.faq-home-item:last-child { border-bottom: none; }

.faq-home-q {
  width: 100%; background: #fff;
  border: none; cursor: pointer;
  padding: 20px 24px;
  font-size: .95rem; font-weight: 600; color: #111827;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  transition: background .15s;
}
.faq-home-q:hover { background: #f9fafb; }
.faq-home-q[aria-expanded="true"] { color: var(--indigo, #032555); }

.faq-chevron { flex-shrink: 0; transition: transform .25s; }
.faq-home-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-home-a {
  padding: 0 24px 20px;
  background: #fff;
}
.faq-home-a p {
  font-size: .9rem; color: #4b5563; line-height: 1.7; margin: 0;
}

/* ── HERO CTA ROW LAYOUT ─────────────────────────────────────── */
.hero-cta { flex-wrap: nowrap; }

/* ── HERO SECONDARY CTA ─────────────────────────────────────── */
.btn-secondary-hw {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  border-radius: 14px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.28);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, color .2s;
}
.btn-secondary-hw:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars-grid    { grid-template-columns: repeat(2, 1fr); }
  .hw-cat-grid     { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .ind-grid        { grid-template-columns: repeat(2, 1fr); }
  .bundles-grid    { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .bundle-card-featured { transform: none; }
}

@media (max-width: 768px) {
  .pillars-section,
  .hw-cat-section,
  .fp-section,
  .bundles-section,
  .ind-section,
  .why-section,
  .res-section,
  .faq-home-section { padding: 56px 0; }

  .pillars-grid { grid-template-columns: 1fr; }
  .hw-cat-grid  { grid-template-columns: repeat(2, 1fr); }
  .fp-grid      { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }
  .ind-grid     { grid-template-columns: 1fr; }
  .res-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hw-cat-grid { grid-template-columns: 1fr; }
}

/* ── SOLUTIONS OVERVIEW (home page) ─────────────────────────── */
.solutions-overview {
  background: #fff;
  padding: 80px 0;
}

.badge-solutions { background: #f0f4ff; color: var(--indigo, #032555); }
.badge-dist      { background: #f5f3ff; color: #6d28d9; }

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

.sol-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius, 16px);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}

.sol-card:hover {
  box-shadow: 0 8px 32px rgba(3,37,85,.08);
  transform: translateY(-3px);
}

.sol-card-retail      { border-top: 3px solid #3b82f6; }
.sol-card-restaurant  { border-top: 3px solid #f97316; }
.sol-card-distributor { border-top: 3px solid #7c3aed; }

.sol-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sol-card-retail      .sol-icon { background: #eff6ff; color: #2563eb; }
.sol-card-restaurant  .sol-icon { background: #fff7ed; color: #ea580c; }
.sol-card-distributor .sol-icon { background: #f5f3ff; color: #7c3aed; }

.sol-card h3 { font-size: 1.1rem; font-weight: 700; color: #111827; margin: 0; }
.sol-card p  { font-size: .875rem; color: #6b7280; line-height: 1.65; margin: 0; flex: 1; }

.sol-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}

.sol-features li {
  font-size: .85rem;
  color: #374151;
  padding-left: 18px;
  position: relative;
}

.sol-features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: #16a34a;
  font-weight: 700;
}

.sol-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  transition: all .2s;
  margin-top: 4px;
  align-self: flex-start;
}

.sol-card-retail      .sol-cta:hover { border-color: #3b82f6; color: #2563eb; background: #eff6ff; }
.sol-card-restaurant  .sol-cta:hover { border-color: #f97316; color: #ea580c; background: #fff7ed; }
.sol-card-distributor .sol-cta:hover { border-color: #7c3aed; color: #7c3aed; background: #f5f3ff; }

/* ── LANDING PAGE HERO (retail-pos / restaurant-pos / distributors) ── */
.hero.hero-lp .container {
  grid-template-columns: 1fr;
}

.hero.hero-lp .hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.hero.hero-lp .hero-cta-row { justify-content: center; }
.hero.hero-lp .hero-cta     { justify-content: center; }
.hero.hero-lp .hero-trust   { justify-content: center; }

/* gradient-text variants for landing pages */
.gradient-text-dist {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* distributor feature card accent */
.feature-card-dist::before { background: linear-gradient(135deg, #7c3aed, #a855f7); }

/* badge colours reuse on dist sections */
.sol-card-distributor .sol-cta { border-color: #e5e7eb; color: #374151; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .solutions-overview { padding: 56px 0; }
  .sol-card { padding: 24px 20px; }
  .features-grid-2 { grid-template-columns: 1fr; }
}
