/* Custom overrides and new styles for the updated layout */

/* Responsive grids */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
.products-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* Hero illustration */
.hero-ill { position: absolute; right: 8px; top: 24px; width: 360px; max-width: 45%; pointer-events: none; }

/* Hero content top spacing (top frame image removed, keep it tight — no empty gap) */
.hero-content { padding-top: 0; }
.hero-badge { margin-top: 0; }

.prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}
.prod-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(13,43,122,0.12);
  background: #ffffff;
  color: #0D2B68;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
}
.prod-store-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(13,43,122,0.24);
  box-shadow: 0 12px 24px rgba(13,43,122,0.12);
}
.prod-store-btn-web {
  background: #0D2B68;
  color: #fff;
  border-color: transparent;
}
.prod-store-btn-web:hover {
  background: #091b42;
}

/* Service card tweaks */
.svc-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.99), rgba(243,247,255,0.96));
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid rgba(13, 43, 122, 0.08);
  box-shadow: 0 16px 42px rgba(10,22,40,0.08);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,31,31,0.06), rgba(13,43,122,0.04));
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(13,43,122,0.16);
}
.svc-card h3 { margin-top: 0.7rem; margin-bottom: 0.7rem; font-weight: 800; color: var(--navy); }
.svc-card p { color: var(--text-2); font-size: 0.94rem; }
.svc-icon {
  width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; box-shadow: 0 12px 28px rgba(13,43,122,0.18);
}
.svc-features { margin-top: 1rem; gap: 8px; }
.svc-feat-tag {
  font-weight: 700; border-radius: 999px; padding: 0.48rem 0.8rem; font-size: 0.76rem; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(13,43,122,0.14); color: var(--navy);
}

/* Product banner/logo alignment */
.prod-banner img { display: block; margin: 0 auto 8px; }
.prod-banner h3 { color: white; margin: 0; font-size: 1.05rem; }
.prod-banner { display: flex; align-items: center; justify-content: center; min-height: 210px; padding: 1.3rem; }
.prod-banner img { position: relative !important; width: auto !important; height: auto !important; max-height: 160px !important; max-width: 100% !important; margin: 0 auto !important; object-fit: contain !important; }
.prod-banner { background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.04)); }
/* Banner image entrance animation */
.prod-banner img { opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity .45s ease, transform .45s ease; }
.prod-card.reveal.visible .prod-banner img { opacity: 1; transform: translateY(0) scale(1); }
.prod-card { border-radius: 26px; overflow: hidden; border: 1px solid rgba(13,43,122,0.1); background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,247,255,0.96)); box-shadow: 0 24px 64px rgba(13,43,122,0.08); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.prod-card:hover { transform: translateY(-8px); box-shadow: 0 32px 84px rgba(13,43,122,0.14); border-color: rgba(13,43,122,0.17); }
.prod-body { padding: 1.7rem 1.5rem 1.9rem; }
.prod-body h3 { font-size: 1.12rem; font-weight: 800; color: #0F2B68; margin-bottom: 0.65rem; }
.prod-body p { color: #475569; font-size: 0.95rem; line-height: 1.72; }
.prod-tags span { background: rgba(14,64,156,0.08); border-color: rgba(14,64,156,0.14); color: #0F2B68; }
.prod-category-badge { background: rgba(255,255,255,0.18); color: white; }
.feature-highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card { border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,247,255,0.98)); border: 1px solid rgba(13,43,122,0.14); padding: 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; box-shadow: 0 22px 54px rgba(13,43,122,0.08); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 26px 68px rgba(13,43,122,0.18); border-color: rgba(13,43,122,0.24); }
.feature-image { width: 100%; max-width: 220px; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 36px rgba(13,43,122,0.1); }
.feature-image img { width: 100%; height: auto; display: block; animation: floatUp 0.9s ease forwards; opacity: 0; transform: translateY(18px); }
.feature-card.reveal.visible .feature-image img { opacity: 1; transform: translateY(0); }
.feature-card h4 { font-size: 1.08rem; color: #0F2B68; letter-spacing: 0.01em; font-weight: 800; }
.feature-card p { color: #475569; font-size: 0.95rem; line-height: 1.7; }
@keyframes floatUp { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .feature-highlight-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 700px) {
  .feature-highlight-grid { grid-template-columns: 1fr; }
}

/* Small responsive tweaks */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-ill { position: relative; width: 100%; max-width: 420px; margin: 0 auto 1rem; }
}

/* ─── LOGO (uploaded brand image) ─────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(13, 43, 122, 0.12);
  box-shadow: 0 8px 24px rgba(7, 27, 82, 0.12);
}
.logo-img { height: 46px; width: auto; display: block; }
.footer-logo-img { height: 44px; width: auto; display: block; margin-bottom: 0.25rem; }

/* ─── HERO VISUAL — orbit ring + center badge ─── */
.h-orbit-ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.14);
  top: 50%; left: 50%; pointer-events: none;
}
.h-orbit-ring-1 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: spin 30s linear infinite; }
.h-orbit-ring-2 { width: 220px; height: 220px; margin: -110px 0 0 -110px; animation: spin 22s linear infinite reverse; }
.h-center-badge {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: linear-gradient(135deg, var(--red), #FF7070);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
  box-shadow: 0 10px 34px rgba(201,31,31,0.45); z-index: 1;
}

/* ─── SERVICE / PRODUCT TAGS — centered & colorful ─── */
.svc-features, .prod-tags { justify-content: center; }
.svc-feat-tag {
  background: rgba(13,43,122,0.08); border: 1px solid rgba(13,43,122,0.18); color: var(--navy);
}
[data-theme="dark"] .svc-feat-tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--text-2); }
.svc-feat-tag:nth-child(2n) { background: rgba(201,31,31,0.08); border-color: rgba(201,31,31,0.2); color: var(--red-dark); }
[data-theme="dark"] .svc-feat-tag:nth-child(2n) { background: rgba(201,31,31,0.12); border-color: rgba(201,31,31,0.28); color: #FF9090; }
.prod-tags { padding: 0 0.25rem; }
.prod-tag {
  background: rgba(13,43,122,0.07); border: 1px solid rgba(13,43,122,0.16); color: var(--navy);
}
[data-theme="dark"] .prod-tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--text-2); }
.prod-tag:nth-child(3n+2) { background: rgba(201,31,31,0.08); border-color: rgba(201,31,31,0.2); color: var(--red-dark); }
[data-theme="dark"] .prod-tag:nth-child(3n+2) { background: rgba(201,31,31,0.12); border-color: rgba(201,31,31,0.28); color: #FF9090; }
.prod-tag:nth-child(3n) { background: rgba(0,150,136,0.08); border-color: rgba(0,150,136,0.22); color: #00695C; }
[data-theme="dark"] .prod-tag:nth-child(3n) { background: rgba(0,150,136,0.14); border-color: rgba(0,150,136,0.3); color: #4DB6AC; }
.prod-body { text-align: center; }
.prod-body p { text-align: left; }
.prod-cta { margin-left: auto; margin-right: auto; }

/* ─── CONTACT VISUAL CARD (replaces plain summary table) ─── */
.contact-visual-card {
  position: relative; overflow: hidden; border-radius: 24px; width: 100%; max-width: 520px;
  background: linear-gradient(160deg, #0D2B7A 0%, #071B52 65%, #0A1628 100%);
  padding: 2.75rem 2.25rem; color: #fff; box-shadow: 0 22px 50px rgba(10,22,40,0.28);
}
.contact-visual-card .cv-dot-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.contact-visual-card .cv-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--red); filter: blur(70px); opacity: 0.25; top: -80px; right: -80px;
}
.contact-visual-card .cv-content { position: relative; z-index: 2; }
.contact-visual-card .cv-pin {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin-bottom: 1.25rem;
}
.contact-visual-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.3; }
.contact-visual-card p { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.75rem; }
.cv-map-strip {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 1.5rem;
}
.cv-map-strip i { color: var(--red); font-size: 18px; }
.cv-map-strip span { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600; }
.cv-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.cv-feature { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.7rem 0.9rem; }
.cv-feature i { color: #00d4ff; font-size: 14px; flex-shrink: 0; }
.cv-feature span { font-size: 12.5px; color: rgba(255,255,255,0.8); font-weight: 600; }

/* ─── AI HIGHLIGHT IMAGE — normal size, fully visible, no zoom/crop ─── */
.ai-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}
.ai-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,255,0.96));
  border-radius: 24px;
  border: 1px solid rgba(13,43,122,0.1);
  box-shadow: 0 20px 50px rgba(13,43,122,0.1);
  padding: 1.5rem;
  max-height: 380px;
  overflow: hidden;
}
.ai-image-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}
.ai-feature-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.99), rgba(243,247,255,0.96));
  border-radius: 24px;
  border: 1px solid rgba(13,43,122,0.08);
  padding: 2rem;
  box-shadow: 0 16px 42px rgba(10,22,40,0.08);
}
.ai-feature-card h3 { color: var(--navy); font-size: 1.3rem; font-weight: 800; margin-bottom: 0.8rem; }
.ai-feature-card p { color: var(--text-2); font-size: 0.98rem; line-height: 1.7; margin-bottom: 1.2rem; }
.ai-feature-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-feature-list span {
  background: rgba(13,43,122,0.07);
  border: 1px solid rgba(13,43,122,0.16);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}
@media (max-width: 800px) {
  .ai-highlight-grid { grid-template-columns: 1fr; }
  .ai-image-card { max-height: 300px; }
  .ai-image-card img { max-height: 260px; }
}