/* Client-requested typography, alignment, content-priority and performance refinements. */
:root {
  --font-en: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

html {
  scroll-behavior: auto !important;
}

body::before,
.hero::before,
.hero::after,
.cta-panel,
.memory-main img {
  animation: none !important;
}

body::before,
.hero::before {
  transform: none !important;
}

h1,
h2,
h3 {
  font-weight: 650 !important;
  letter-spacing: -0.025em !important;
}

main h1,
main h2,
main h3,
main .section-heading,
main .page-hero-inner,
main .product-grid-heading {
  text-align: center !important;
}

main .section-heading,
main .page-hero-inner,
main .product-grid-heading {
  margin-inline: auto !important;
}

.hero-copy h1 {
  font-weight: 560 !important;
  line-height: 1.08 !important;
}

/* Keep content visible even if the original scroll observer misses after layout changes. */
.reveal,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .info-card,
  .product-card,
  .service-card,
  .service-page-card,
  .review-card,
  .stat-card,
  .spec-card,
  .warranty-card,
  .quality-card,
  .contact-item,
  .action-bubble,
  .flagship-card {
    transition-duration: 0.12s !important;
  }
}

.eyebrow,
.button,
.site-nav a,
.card-arrow,
.text-link,
.feature-pills em,
.size-strip em {
  font-weight: 700 !important;
}

.hero-copy,
.section-heading,
.welcome-copy,
.page-hero-inner,
.product-grid-heading,
.about-copy,
.cta-panel > div:first-child {
  margin-inline: auto;
  text-align: center;
}

.hero-copy,
.welcome-copy,
.page-hero-inner,
.product-grid-heading {
  max-width: 860px;
}

.hero-copy p,
.section-heading h2,
.section-heading p,
.welcome-copy p,
.page-hero-inner p,
.product-grid-heading p,
.cta-panel p {
  margin-inline: auto;
}

.hero-actions,
.button-row,
.feature-pills,
.size-strip {
  justify-content: center;
}

.hero-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

/* Replace the oversized floating contact circles with a compact action bar. */
.welcome-grid {
  grid-template-columns: 1fr !important;
  gap: 30px !important;
}

.welcome-copy {
  max-width: 900px;
}

.welcome-actions {
  width: min(100%, 820px) !important;
  justify-self: center !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.welcome-actions .action-bubble,
.welcome-actions .action-bubble:nth-child(2),
.welcome-actions .action-bubble:nth-child(3) {
  width: 100% !important;
  height: auto !important;
  min-height: 72px !important;
  justify-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  border: 1px solid rgba(18, 102, 255, 0.16) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  background: linear-gradient(135deg, #fff, #f3f7ff) !important;
  box-shadow: 0 12px 30px rgba(7, 22, 41, 0.07) !important;
  font-size: 0.9rem !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.welcome-actions .action-bubble:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(18, 102, 255, 0.42) !important;
  box-shadow: 0 18px 38px rgba(18, 102, 255, 0.13) !important;
}

.welcome-actions .action-bubble svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.welcome-actions .action-bubble:nth-child(2) {
  color: #08783e !important;
  border-color: rgba(11, 167, 84, 0.2) !important;
  background: linear-gradient(135deg, #fff, #f0fff6) !important;
}

.welcome-actions .action-bubble:nth-child(2) svg {
  color: #0ba754 !important;
}

.hero-device img {
  object-position: center;
}

.institution-grid article,
.service-card,
.service-page-card,
.product-card,
.review-card,
.stat-card,
.quality-card,
.warranty-card {
  text-align: center;
}

.review-grid .review-card {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.review-section .review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.review-section .review-card {
  min-height: 290px;
  font-family: "Li Ador Noirrit", "Noto Sans Bengali", system-ui, sans-serif;
}

.review-section .review-card p {
  color: #334155 !important;
  font-size: 1.06rem;
  line-height: 1.85;
}

.review-section .review-card strong {
  font-size: 1.02rem;
}

.review-section .review-card div span {
  color: #64748b;
}

.review-section .dot-row {
  display: none !important;
}

.product-card .card-arrow,
.service-page-card .feature-pills {
  margin-inline: auto;
}

.product-page-grid #digital-services-product {
  border-color: rgba(18, 102, 255, 0.34) !important;
  background:
    radial-gradient(circle at 82% 10%, rgba(79, 214, 255, 0.2), transparent 13rem),
    linear-gradient(145deg, #fff, #f3f7ff) !important;
  box-shadow: 0 20px 46px rgba(18, 102, 255, 0.12) !important;
}

.digital-services-panel {
  scroll-margin-top: calc(var(--header, 82px) + 22px);
  display: grid;
  gap: 26px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 102, 255, 0.22);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 46px);
  outline: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(79, 214, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 94% 96%, rgba(18, 102, 255, 0.14), transparent 25rem),
    linear-gradient(145deg, #f9fcff, #eef5ff);
  box-shadow: 0 28px 70px rgba(7, 22, 41, 0.11);
}

.digital-services-intro {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.digital-services-intro h2 {
  font-size: clamp(1.65rem, 3vw, 2.75rem);
}

.digital-services-intro > p:last-child {
  max-width: 680px;
  margin: 14px auto 0;
  color: #475569;
}

.digital-services-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.digital-service-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 102, 255, 0.16);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(7, 22, 41, 0.07);
}

.digital-service-card:nth-child(2) {
  color: #fff;
  border-color: rgba(79, 214, 255, 0.48);
  background: linear-gradient(145deg, #1266ff, #071f3d);
  box-shadow: 0 22px 50px rgba(18, 102, 255, 0.2);
}

.digital-service-kicker {
  display: block;
  margin-bottom: 10px;
  color: #1266ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.digital-service-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.25;
  text-align: left !important;
}

.digital-service-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}

.digital-service-card:nth-child(2) h3,
.digital-service-card:nth-child(2) p,
.digital-service-card:nth-child(2) .digital-service-kicker {
  color: #fff !important;
}

.digital-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.digital-service-tags span {
  border: 1px solid rgba(18, 102, 255, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: #0f3f91;
  background: rgba(18, 102, 255, 0.07);
  font-size: 0.68rem;
  font-weight: 750;
}

.digital-service-card:nth-child(2) .digital-service-tags span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.digital-services-action {
  justify-self: center;
}

.detail-visual-card.has-optimized-product-visual {
  background: linear-gradient(145deg, #fff, #f4f8ff);
}

.detail-visual-card.has-optimized-product-visual img {
  object-fit: contain;
}

.product-detail-grid .spec-card {
  align-self: stretch;
}

.product-detail-grid .spec-card td {
  line-height: 1.55;
}

/* Personal/event imagery has been removed from the public home experience. */
.memories-section {
  display: none !important;
}

/* Logistics and Visualizer remain available on the full Products page only. */
.product-preview-section a[href="/products/logistic-items"],
.product-preview-section a[href="/products/visualizer"] {
  display: none !important;
}

.product-preview-section .other-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-preview-section .product-showcase {
  grid-template-columns: 1fr !important;
}

.product-preview-section .other-product-grid {
  align-items: start;
}

.product-preview-section .product-card {
  min-height: 0 !important;
  height: auto !important;
}

/* LMS/SMS and agency support receive the strongest service hierarchy. */
.service-card.is-priority-service,
.service-page-card.is-priority-service {
  border-color: rgba(79, 214, 255, 0.72) !important;
  background: linear-gradient(135deg, rgba(18, 102, 255, 0.96), rgba(7, 22, 41, 0.96)) !important;
  color: #fff !important;
  box-shadow: 0 24px 60px rgba(18, 102, 255, 0.22) !important;
}

.service-card.is-priority-service,
.service-page-card.is-priority-service {
  grid-column: span 1 !important;
}

.service-card.is-priority-service h3,
.service-page-card.is-priority-service h2 {
  font-size: clamp(1.25rem, 2vw, 1.85rem) !important;
  line-height: 1.2 !important;
}

.service-card.is-priority-service p,
.service-page-card.is-priority-service p {
  max-width: 640px;
  margin-inline: auto;
}

.service-card.is-priority-service h3,
.service-card.is-priority-service p,
.service-page-card.is-priority-service h2,
.service-page-card.is-priority-service p,
.service-page-card.is-priority-service svg {
  color: #fff !important;
}

.service-preview .section-heading p:not(.eyebrow),
.service-preview .service-card p {
  color: #e7eef8 !important;
  opacity: 1 !important;
}

.service-page-card p,
.product-card p,
.info-card p,
.review-card p {
  color: #475569 !important;
}

.service-page-card.is-priority-service p {
  color: #edf5ff !important;
}

.stat-card strong {
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .digital-services-subgrid {
    grid-template-columns: 1fr 1fr;
  }

  .digital-service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .brand {
    position: relative;
    z-index: 2;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 2.85rem) !important;
  }

  .product-preview-section .other-product-grid {
    grid-template-columns: 1fr;
  }

  .welcome-actions {
    grid-template-columns: 1fr !important;
  }

  .welcome-actions .action-bubble,
  .welcome-actions .action-bubble:nth-child(2),
  .welcome-actions .action-bubble:nth-child(3) {
    min-height: 60px !important;
  }

  .service-card.is-priority-service,
  .service-page-card.is-priority-service {
    grid-column: 1 / -1 !important;
  }

  .review-section .review-grid {
    grid-template-columns: 1fr !important;
  }

  .review-section .review-card {
    min-height: 0;
  }

  .digital-services-panel {
    border-radius: 18px;
    padding: 22px 16px;
  }

  .digital-services-subgrid {
    grid-template-columns: 1fr;
  }

  .digital-service-card,
  .digital-service-card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 20px;
  }

  .digital-services-action {
    width: 100%;
  }
}
