/* TajirNova / Production Brand Theme
   Centralized design tokens and refined motion system.
   Mixed light theme: crisp white sections, light-blue highlight sections,
   deep navy typography, electric violet & indigo accents, TajirNova cyan touches,
   soft blue borders, white cards with refined dual-layer shadows. */

:root {
  color-scheme: light;

  /* --- Centralized Brand Colors --- */
  --navy-950: #01051b;
  --navy-900: #041044;          /* TajirNova Signature Deep Navy */
  --navy-850: #071445;
  --navy-800: #0b1a52;
  --ink: #041044;               /* Primary typography */
  --ink-deep: #01051b;
  --copy-secondary: #3b4e6d;    /* Secondary body copy with readable contrast */
  --muted: #566a88;
  --violet: #6b2df8;            /* TajirNova Electric Violet */
  --violet-hover: #581ed6;
  --indigo: #276cfa;            /* TajirNova Indigo / Royal Blue */
  --cyan: #00c3fb;              /* TajirNova Cyan Accent */
  --cyan-soft: rgba(0, 195, 251, 0.12);
  --action: #245bd5;
  --action-hover: #1b47ad;
  --accent-ink: #5140c4;
  --on-action: #ffffff;
  --whatsapp-action: #087b52;

  /* --- Mixed Light Canvas & Surfaces --- */
  --paper: #ffffff;             /* Crisp white sections */
  --mist: #f0f6ff;              /* Light-blue sections for selected highlights */
  --mist-2: #e5f0fc;            /* Subtle secondary light-blue */
  --surface-card: #ffffff;      /* White cards */
  --surface-soft: #f4f8fe;      /* Soft blue-tinted container */
  --surface-strong: #dbe8fa;
  --surface-footer: #edf4fc;
  --hero-blue: #eaf3ff;
  --hero-surface: linear-gradient(120deg, #edf5ff 0%, #e5f1fd 58%, #def1fb 100%);
  --surface-tint: linear-gradient(135deg, #f3f7fd, #e9f2fb);
  --action-gradient: linear-gradient(112deg, #5940e4 0%, #245bd5 70%, #00b4f0 100%);

  /* --- Soft Blue Borders --- */
  --line: #d2e1f4;
  --line-subtle: #e2edfa;
  --border-active: #668fd1;
  --border-highlight: #93b4e6;

  /* --- Refined Dual-Layer Shadows --- */
  --shadow-card: 0 4px 20px rgba(4, 16, 68, 0.05), 0 1px 3px rgba(4, 16, 68, 0.03);
  --shadow-card-hover: 0 14px 34px rgba(4, 16, 68, 0.09), 0 2px 6px rgba(4, 16, 68, 0.04);
  --shadow-sm: 0 4px 14px rgba(4, 16, 68, 0.05);
  --shadow-md: 0 16px 40px rgba(4, 16, 68, 0.10);
  --shadow-glow-cyan: 0 0 24px rgba(0, 195, 251, 0.18);
  --shadow-glow-violet: 0 0 24px rgba(107, 45, 248, 0.18);

  /* --- Motion & Easing --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0.38, 0.9);
  --motion-fast: 160ms;
  --motion-medium: 240ms;
  --motion-enter: 480ms;
}

/* Prevent horizontal overflow across the board */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Section styling: alternating white and light-blue sections */
body, .section { background: var(--paper); color: var(--ink); }
.section-mist, .section-dark, .custom-scope-section,
.platform-section, .commerce-ecosystem-section { background: var(--mist); }

/* Typography & Headings */
h1, h2, h3, h4, .hero-light h1, .page-hero h1, .product-hero h1,
.section-head h2, .article-header h1 {
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.hero .gradient-text {
  background-image: linear-gradient(110deg, #6b2df8 0%, #276cfa 55%, #00c3fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
}

.eyebrow, .page-hero .eyebrow, .product-hero .eyebrow,
.section-dark .eyebrow, .section-head .eyebrow {
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.eyebrow-accent {
  color: var(--violet) !important;
}

.hero-light .lead, .page-hero .lead, .product-hero .lead,
.section-head .lead {
  color: var(--copy-secondary);
}

.hero-badge {
  color: var(--navy-900);
  background: #eaf3fe;
  border-color: #b8d0ef;
  box-shadow: none;
}

.hero-proof span, .market-row span {
  background: var(--surface-soft);
  border-color: #c0d4ee;
  color: #345173;
}

.hero-light .hero-market-note, .market-note {
  color: var(--muted);
}

/* Header: Non-sticky, clean, leaves vertical room */
.site-header {
  position: relative !important;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(4, 16, 68, 0.02);
}

/* Breadcrumbs: completely hidden on all pages as requested */
.breadcrumbs {
  display: none !important;
}

/* Inner page heroes keep the soft light-blue / mist background */
.page-hero, .product-hero, .article-header {
  background: var(--hero-surface);
  border-bottom: 1px solid var(--line);
}

/* Home page top banner background is crisp pure white */
.hero.hero-light {
  background: #ffffff !important;
  border-bottom: 1px solid var(--line-subtle);
}
.hero.hero-light::before,
.hero.hero-light::after {
  display: none !important;
}

/* Unified White Cards with Refined Shadows & Soft Blue Borders */
.card, .card.dark, .comparison-item, .industry-card, .section-dark .industry-card,
.product-card, .product-extension, .solution-mini, .package-card,
.process-step, .module-group, .capability, .outcome, .related-link,
.contact-form, .career-empty, .blog-card, .faq-item, .logo-pill,
.ecosystem-card, .portfolio-category, .testimonial-card, .funnel-panel {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.card p, .card.dark p, .product-card p, .product-extension p, .industry-card p,
.comparison-item p, .solution-mini p, .process-step p {
  color: var(--copy-secondary);
}

/* Tajify Featured Commerce Choice Spotlight */
.commerce-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.commerce-choice.commerce-choice-featured {
  border-color: #98b6ea;
  box-shadow: 0 8px 28px rgba(39, 108, 250, 0.12), 0 2px 6px rgba(4, 16, 68, 0.04);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}
.commerce-choice.commerce-choice-featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #6b2df8, #276cfa, #00c3fb);
}

/* Package Cards */
.package-card.featured {
  border-color: #648bd2;
  box-shadow: 0 0 0 1px #648bd2, var(--shadow-card-hover);
}
.package-card.custom-package {
  background: #f1f5fd;
  border-color: #c1cde6;
}
.package-disclaimer, .ecosystem-note, .article-note {
  background: var(--surface-soft);
  border-color: var(--line);
}

/* Soft tinted containers & CTA bands */
.software-copy, .contact-panel, .about-mark, .ecosystem-card-dark,
.review-ready-card, .cta-band {
  background: var(--surface-tint);
  border: 1px solid #bdd0e9;
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
}
.cta-band { border-radius: 24px; }
.cta-band p, .review-ready-card p, .ecosystem-card-dark > p {
  color: var(--copy-secondary);
}

.software-detail-list span, .ecosystem-card-dark .tag-row span,
.ecosystem-card-dark .ecosystem-note, .online-only-note {
  background: var(--surface-card);
  color: var(--copy-secondary);
  border: 1px solid var(--line);
}

.tag-row span, .product-extension .tag-row span, .ecosystem-card .tag-row span,
.module-chips span, .role-pills span, .pillar-points span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: #385073;
}

.icon-box-soft, .icon-box-dark, .mini-icon, .process-icon,
.contact-method span {
  color: var(--accent-ink);
  background: #e5edf9;
  border: 1px solid var(--line);
  box-shadow: none;
}

/* Platform Ecosystem Cloud & Hover */
.platform-section .section-head p.lead {
  max-width: 780px;
  margin-inline: auto;
}
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--surface-card);
  border: 1px solid var(--line);
  transition: transform var(--motion-medium) var(--ease-standard),
              border-color var(--motion-fast) ease,
              box-shadow var(--motion-medium) ease;
}
.logo-pill-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f6fd;
  border: 1px solid var(--line);
  transition: transform var(--motion-fast) var(--ease-standard);
}
.logo-pill-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.proof-strip {
  background: var(--surface-soft);
  border-color: var(--line);
}

/* Footer: Shorter, cleaner, professional */
.site-footer {
  background: var(--surface-footer);
  border-top: 1px solid var(--line);
}
.footer-base {
  border-color: #bdcfe6;
}
.footer-intro p, .footer-group a, .footer-base {
  color: #405777;
}

/* Form Controls */
.field input, .field select, .field textarea {
  background: var(--surface-soft);
  border-color: #b9cce5;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(36, 91, 213, 0.12);
}

/* FAQ Layout: Desktop 2 columns, Mobile native accordion */
.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}
.faq-group-title { color: var(--navy-900); }
.faq-group-toggle { color: var(--action); background: #dce8fb; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-card);
  margin-bottom: 10px;
}
.faq-item[open] { border-color: #94b1db; }
.faq-item summary:hover { background: var(--surface-soft); }
.faq-item p { color: var(--copy-secondary); }

/* Buttons & CTA Systems */
.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-medium) ease,
              background-color var(--motion-fast) ease,
              border-color var(--motion-fast) ease;
}
.btn-primary, .cta-band .btn-light, .custom-scope-section .btn-light {
  color: var(--on-action);
  background: var(--action-gradient);
  box-shadow: 0 5px 14px rgba(36, 91, 213, 0.16);
  border-color: transparent;
}
.btn-primary:hover, .cta-band .btn-light:hover, .custom-scope-section .btn-light:hover {
  background: var(--action-hover);
  box-shadow: 0 7px 18px rgba(36, 91, 213, 0.22);
}
.btn-ghost, .btn-outline, .btn-light {
  background: var(--surface-card);
  border-color: #adc4e2;
  color: var(--navy-900);
  box-shadow: none;
}
.btn-ghost:hover, .btn-outline:hover, .btn-light:hover {
  background: #deebfc;
  border-color: var(--border-active);
}
.btn-link {
  color: var(--action);
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.btn-whatsapp, .whatsapp-fab {
  background: var(--whatsapp-action);
  box-shadow: 0 5px 16px rgba(8, 123, 82, 0.16);
}
.btn-whatsapp:hover, .whatsapp-fab:hover {
  background: #05643f;
  box-shadow: 0 7px 20px rgba(8, 123, 82, 0.22);
}
.btn > span[aria-hidden] {
  display: inline-block;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.btn:hover > span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

/* Menus */
.mega-menu, .mobile-nav {
  background: var(--surface-card);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.mega-group {
  background: var(--surface-soft);
  border-color: var(--line);
}
.mega-group a:hover, .mega-group a:focus-visible, .product-menu > a:hover,
.product-menu > a:focus-visible {
  background: #dce8fb;
  color: var(--action);
}
.mobile-toggle { background: #dae7f9; }
.mobile-nav .mobile-cta { color: var(--on-action); }

/* --- Motion System & Scroll Reveals --- */
.reveal { opacity: 1; transform: none; transition: none; }
.hero-light-inner > *, .page-hero .container > *, .product-hero-copy > * { --entrance-delay: 0ms; }

@keyframes studio-enter {
  from { opacity: 0.35; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes answer-enter {
  from { opacity: 0.45; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero-light h1, .hero-light .lead, .hero-actions, .hero-proof,
  .page-hero h1, .page-hero .lead, .page-hero .btn-row,
  .product-hero-copy h1, .product-hero-copy .lead, .product-hero-copy .btn-row {
    animation: studio-enter var(--motion-enter) var(--ease-out) var(--entrance-delay) both;
  }
  .hero-light .lead, .page-hero .lead, .product-hero-copy .lead { --entrance-delay: 70ms; }
  .hero-actions, .page-hero .btn-row, .product-hero-copy .btn-row { --entrance-delay: 140ms; }
  .hero-proof { --entrance-delay: 200ms; }

  .motion-ready .motion-section-head {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--motion-enter) var(--ease-out), transform var(--motion-enter) var(--ease-out);
  }
  .motion-ready .motion-section-head.visible {
    opacity: 1;
    transform: none;
  }
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--motion-enter) var(--ease-out), transform var(--motion-enter) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .faq-item[open] > p, .faq-group[open] > .faq-list {
    animation: answer-enter 180ms var(--ease-out);
  }
}

/* Hover Elevations for Desktop */
@media (hover: hover) and (pointer: fine) {
  .card.hover, .product-card, .product-extension, .solution-mini, .package-card,
  .industry-card, .process-step, .logo-pill {
    transition: transform var(--motion-medium) var(--ease-standard),
                box-shadow var(--motion-medium) ease,
                border-color var(--motion-fast) ease;
  }
  .card.hover:hover, .card.dark.hover:hover, .product-card:hover, .product-extension:hover,
  .solution-mini:hover, .package-card:hover, .industry-card:hover, .process-step:hover {
    transform: translateY(-3px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-card-hover);
  }
  .logo-pill:hover {
    transform: translateY(-3px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-sm);
  }
  .logo-pill:hover .logo-pill-icon {
    transform: translateY(-1px) scale(1.06);
    border-color: var(--border-active);
  }
  .section-head h2 {
    transition: color var(--motion-medium) ease;
  }
  .motion-ready .reveal.visible:hover {
    transition-delay: 0ms;
  }
}

@media (hover: none) {
  .card:hover, .product-card:hover, .product-extension:hover, .solution-mini:hover,
  .package-card:hover, .industry-card:hover, .process-step:hover, .logo-pill:hover {
    transform: none;
  }
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .mobile-nav { background: var(--surface-card); }
}

@media (max-width: 700px) {
  .hero-badge {
    font-size: 0.69rem;
    line-height: 1.55;
    border-radius: 12px;
    padding: 8px 12px;
  }
  .faq-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .faq-group {
    background: var(--surface-soft);
    border-color: var(--line);
  }
  .hero-proof span { font-size: 0.72rem; }
}

/* Accessibility: Full Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .motion-ready .reveal, .motion-section-head, .motion-ready .motion-section-head {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Google Reviews Showcase (Client Feedback) */
.reviews-section {
  background: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
}
.reviews-head {
  text-align: center;
  margin-bottom: 48px;
}
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: #fff9ea;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
.badge-star {
  color: #f59e0b;
  font-size: 1rem;
}
.reviews-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--navy-900);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.reviews-head .lead {
  max-width: 760px;
  margin-inline: auto;
  color: var(--copy-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}
.reviews-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.review-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--copy-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--motion-fast) ease;
}
.review-filter-btn:hover {
  background: #e2edfa;
  color: var(--navy-900);
  border-color: var(--border-active);
}
.review-filter-btn.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(4, 16, 68, 0.15);
}
.reviews-carousel-wrapper {
  position: relative;
  padding: 0 6px;
}
.reviews-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 6px 26px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reviews-track::-webkit-scrollbar {
  height: 6px;
}
.reviews-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.review-card {
  flex: 0 0 calc(25% - 17px);
  min-width: 285px;
  max-width: 340px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-medium) ease, box-shadow var(--motion-medium) ease, border-color var(--motion-fast) ease;
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card-hover);
}
.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.review-meta {
  display: flex;
  flex-direction: column;
}
.review-name {
  color: var(--navy-900);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}
.review-date {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2px;
}
.review-platform {
  flex-shrink: 0;
}
.review-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.review-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
}
.review-verified-badge {
  display: inline-flex;
  align-items: center;
}
.review-text {
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.62;
  margin: 0 0 16px;
  flex-grow: 1;
}
.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.78rem;
}
.review-read-more {
  color: var(--action);
  font-weight: 600;
}
.review-tag {
  color: var(--muted);
  background: var(--surface-soft);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.reviews-nav-btn {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(4, 16, 68, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy-900);
  font-size: 1.4rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  z-index: 5;
}
.reviews-nav-btn:hover {
  background: var(--mist);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(4, 16, 68, 0.18);
}
.reviews-nav-btn.prev {
  left: -20px;
}
.reviews-nav-btn.next {
  right: -20px;
}
@media (max-width: 1100px) {
  .review-card {
    flex: 0 0 calc(33.333% - 15px);
    min-width: 280px;
  }
}
@media (max-width: 820px) {
  .review-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 270px;
  }
  .reviews-nav-btn {
    display: none;
  }
}
@media (max-width: 580px) {
  .review-card {
    flex: 0 0 86%;
    min-width: 260px;
  }
}

