/* ============================================================
   CentrixPlus — brand styles layered on Bootstrap 5
   Palette: dark #1F363D · teal #40798C · sage #70A9A1 · ice #EEF8FF
   ============================================================ */
:root {
  --cx-dark: #1F363D;
  --cx-teal: #40798C;
  --cx-sage: #70A9A1;
  --cx-ice: #EEF8FF;
  --cx-ice-2: #F6FBFF;
  --cx-body: #3B565E;
  --cx-muted: #68818A;
  --cx-soft: #557079;
  --cx-border: rgba(64, 121, 140, .09);
  --cx-grad: linear-gradient(135deg, #40798C, #70A9A1);
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--cx-body);
  background: var(--cx-ice);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: Poppins, sans-serif;
  color: var(--cx-dark);
  letter-spacing: -.02em;
}

/* Source Serif 4 comes from assets/vendor/fonts-serif.css, which only pages/home.blade.php loads; other pages fall back to the generic serif. */
.font-serif-accent {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 500;
}

.text-cx-teal { color: var(--cx-teal) !important; }
.text-cx-muted { color: var(--cx-muted) !important; }
.text-cx-soft { color: var(--cx-soft) !important; }
.bg-cx-dark { background-color: var(--cx-dark) !important; }
.bg-cx-ice { background-color: var(--cx-ice) !important; }
.bg-cx-ice2 { background-color: var(--cx-ice-2) !important; }

.cx-gradient-text {
  background: linear-gradient(120deg, #40798C, #70A9A1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn-cx-primary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border: 0; border-radius: 14px;
  background: var(--cx-grad); color: #fff;
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none;
  box-shadow: 0 16px 34px -12px rgba(64, 121, 140, .65);
  transition: transform .18s, box-shadow .18s;
}
.btn-cx-primary:hover {
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 22px 42px -12px rgba(64, 121, 140, .75);
}
.btn-cx-outline {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px;
  background: #fff; color: var(--cx-dark);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid rgba(64, 121, 140, .2);
  transition: transform .18s, border-color .18s;
}
.btn-cx-outline:hover { transform: translateY(-3px); border-color: var(--cx-sage); color: var(--cx-dark); }
.btn-cx-dark {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 13px; border: 0;
  background: var(--cx-dark); color: #fff;
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .18s;
}
.btn-cx-dark:hover { color: #fff; transform: translateY(-3px); }
.btn-cx-white {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 14px;
  background: #fff; color: var(--cx-dark);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .18s;
}
.btn-cx-white:hover { color: var(--cx-dark); transform: translateY(-3px); }
.btn-cx-ghost-light {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .18s;
}
.btn-cx-ghost-light:hover { color: #fff; transform: translateY(-3px); }

.cx-link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 15px;
  color: var(--cx-teal); text-decoration: none;
}
.cx-link-arrow:hover { color: var(--cx-dark); }

/* ---------- Section scaffolding ---------- */
.cx-sec { padding: 96px 0; }
.cx-sec-sm { padding: 80px 0; }
.cx-eyebrow {
  font-family: Inter, sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cx-teal);
}
.cx-eyebrow-light { color: var(--cx-sage); }
.cx-h2 { font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.14; }
.cx-lead { font-size: 17px; line-height: 1.7; color: var(--cx-soft); }

/* ---------- Cards ---------- */
.cx-card {
  background: #fff; border: 1px solid var(--cx-border); border-radius: 20px;
  box-shadow: 0 26px 54px -36px rgba(31, 54, 61, .3);
}
.cx-card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.cx-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -30px rgba(31, 54, 61, .34);
  border-color: rgba(112, 169, 161, .4);
}
.cx-icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 15px;
  background: var(--cx-grad); color: #fff; font-size: 25px;
}
.cx-icon-soft {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--cx-ice); color: var(--cx-teal); font-size: 22px; flex: 0 0 auto;
}
.cx-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: 100px;
  background: var(--cx-ice); color: var(--cx-teal);
  font-weight: 600; font-size: 12px; letter-spacing: .03em;
}
.cx-chip-dark {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 100px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #D1F5FF; font-family: Poppins, sans-serif; font-weight: 600; font-size: 15px;
}
.cx-chip-dark .bi { color: var(--cx-sage); }
.cx-check { color: var(--cx-sage); }

/* ---------- Hero ---------- */
.cx-hero {
  position: relative; overflow: hidden; padding: 72px 0 96px;
  background:
    radial-gradient(1200px 600px at 78% -10%, #D1F5FF 0%, rgba(209, 245, 255, 0) 60%),
    linear-gradient(180deg, #EEF8FF 0%, #F6FBFF 100%);
}
.cx-hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 100px;
  background: #fff; border: 1px solid rgba(64, 121, 140, .16);
  box-shadow: 0 8px 24px -14px rgba(31, 54, 61, .4);
  font-weight: 600; font-size: 12.5px; letter-spacing: .04em; color: var(--cx-teal);
}
.cx-hero-badge .cx-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cx-sage);
  box-shadow: 0 0 0 4px rgba(112, 169, 161, .25);
}
.cx-hero h1 {
  font-weight: 800; font-size: clamp(38px, 5vw, 62px); line-height: 1.05;
}
.cx-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.cx-orb-1 {
  top: -80px; left: -60px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(112, 169, 161, .38), rgba(112, 169, 161, 0) 70%);
  filter: blur(6px); animation: cx-float 9s ease-in-out infinite;
}
.cx-orb-2 {
  bottom: -40px; right: 6%; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(64, 121, 140, .28), rgba(64, 121, 140, 0) 70%);
  animation: cx-float2 11s ease-in-out infinite;
}

/* Inner-page hero */
.cx-page-hero { position: relative; overflow: hidden; padding: 64px 0 72px;
  background:
    radial-gradient(1000px 500px at 80% -10%, #D1F5FF 0%, rgba(209, 245, 255, 0) 60%),
    linear-gradient(180deg, #EEF8FF 0%, #F6FBFF 100%);
}
.cx-page-hero h1 { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }

/* ---------- Animations ---------- */
@keyframes cx-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-28px) } }
@keyframes cx-float2 { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(24px) } }
@keyframes cx-heroin { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@keyframes cx-enter { from { opacity: 0; transform: translateY(36px) } to { opacity: 1; transform: none } }
.cx-heroin { animation: cx-heroin .8s cubic-bezier(.22, 1, .36, 1) both; }
.cx-reveal { animation: cx-enter linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
@supports not (animation-timeline: view()) { .cx-reveal { animation: none; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cx-reveal, .cx-heroin, .cx-orb-1, .cx-orb-2 { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- Header / navbar ---------- */
.cx-navbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.cx-navbar.cx-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: rgba(64, 121, 140, .12);
  box-shadow: 0 8px 30px -18px rgba(31, 54, 61, .35);
}
.cx-navbar .nav-link {
  font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px;
  color: #33535C; padding: 9px 15px !important; border-radius: 10px;
}
.cx-navbar .nav-link:hover { color: var(--cx-teal); }
.cx-navbar .nav-link.active { color: var(--cx-teal); background: var(--cx-ice); font-weight: 600; }
/* ---------- Mega menu (desktop) ---------- */
.cx-mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding-top: 10px; padding-bottom: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none; z-index: 1040;
}
.cx-mega-item.cx-mega-open .cx-mega-panel,
.cx-mega-item:focus-within .cx-mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.cx-mega-item.cx-mega-open .cx-mega-caret,
.cx-mega-item:focus-within .cx-mega-caret { transform: rotate(180deg); }
.cx-mega-caret { transition: transform .2s ease; }
.cx-navbar.cx-mega-active {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: rgba(64, 121, 140, .12);
}
.cx-mega-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.cx-mega-card {
  background: #fff; border: 1px solid #E3EEF3; border-radius: 20px;
  box-shadow: 0 34px 70px -26px rgba(31, 54, 61, .32); padding: 26px;
}
.cx-mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr .9fr; gap: 26px; }
.cx-mega-heading {
  font-family: Inter, sans-serif; font-weight: 700; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: #8399A0; margin-bottom: 12px;
}
.cx-mega-link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px; text-decoration: none;
  transition: background .15s;
}
.cx-mega-link:hover, .cx-mega-link:focus { background: var(--cx-ice); }
.cx-mega-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
  background: var(--cx-ice); color: var(--cx-teal);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.cx-mega-title {
  display: block; font-family: Poppins, sans-serif; font-weight: 600;
  font-size: 14px; color: var(--cx-dark);
}
.cx-mega-desc { display: block; font-family: Inter, sans-serif; font-size: 12px; color: var(--cx-muted); margin-top: 1px; }
.cx-mega-promo {
  background: linear-gradient(150deg, #1F363D, #40798C); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.cx-mega-promo-icon {
  display: inline-flex; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .14); color: #D1F5FF;
  align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.cx-mega-promo h4 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 17px; color: #fff; margin: 0 0 6px; }
.cx-mega-promo p { font-family: Inter, sans-serif; font-size: 13px; line-height: 1.55; color: #C7DBE0; margin: 0 0 18px; }
.cx-mega-promo > a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px; border-radius: 11px; background: #fff; color: var(--cx-dark);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 13.5px; text-decoration: none;
}

/* Mobile services list */
.cx-mob-service {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px 11px 24px; border-radius: 10px; text-decoration: none;
  font-family: Inter, sans-serif; font-size: 14.5px; color: #4B646C;
}
.cx-mob-service:hover { background: var(--cx-ice); color: var(--cx-teal); }
.cx-mob-service .bi { color: var(--cx-teal); font-size: 16px; }
.cx-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  background: var(--cx-grad); color: #fff;
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 14.5px;
  text-decoration: none; box-shadow: 0 10px 22px -8px rgba(64, 121, 140, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cx-nav-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(64, 121, 140, .7); }
.cx-navbar .navbar-toggler { border: 0; background: var(--cx-ice); border-radius: 12px; width: 44px; height: 44px; padding: 0; }
.cx-navbar .navbar-toggler:focus { box-shadow: none; }

/* ---------- Footer ---------- */
.cx-footer { background: var(--cx-dark); color: #C7DBE0; position: relative; }
.cx-footer h3 {
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 15px;
  color: #fff; letter-spacing: .02em; margin-bottom: 18px;
}
.cx-footer a { color: #9FBAC2; text-decoration: none; font-size: 14.5px; transition: color .15s; }
.cx-footer a:hover { color: var(--cx-sage); }
.cx-footer .cx-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, .06); color: #D1F5FF; font-size: 17px;
  transition: background .18s, transform .18s;
}
.cx-footer .cx-social:hover { background: var(--cx-teal); color: #fff; transform: translateY(-3px); }
.cx-footer .form-control {
  padding: 12px 14px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px;
}
.cx-footer .form-control::placeholder { color: #7E98A0; }
.cx-footer .form-control:focus {
  background: rgba(255, 255, 255, .1); color: #fff;
  border-color: var(--cx-sage); box-shadow: none;
}
.cx-back-top {
  position: absolute; top: -24px; right: 24px; width: 48px; height: 48px;
  border-radius: 14px; border: 0; background: var(--cx-grad); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(64, 121, 140, .7);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: transform .18s; cursor: pointer;
}
.cx-back-top:hover { transform: translateY(-3px); }

/* ---------- Accordion (FAQ) ---------- */
.cx-faq .accordion-item {
  background: #fff; border: 1px solid rgba(64, 121, 140, .1); border-radius: 16px !important;
  box-shadow: 0 18px 40px -34px rgba(31, 54, 61, .3); overflow: hidden;
}
.cx-faq .accordion-item + .accordion-item { margin-top: 14px; }
.cx-faq .accordion-button {
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 17px;
  color: var(--cx-dark); padding: 22px 26px; background: #fff; box-shadow: none;
}
.cx-faq .accordion-button:not(.collapsed) { color: var(--cx-teal); }
.cx-faq .accordion-body { padding: 0 26px 24px; font-size: 15px; line-height: 1.7; color: var(--cx-soft); }

/* ---------- CTA banner ---------- */
.cx-cta-banner {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(120deg, #1F363D 0%, #2E5560 55%, #40798C 100%);
  padding: 64px 56px; text-align: center;
  box-shadow: 0 40px 90px -40px rgba(31, 54, 61, .6);
}
.cx-cta-banner h2 { font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; color: #fff; }
.cx-cta-banner p { font-size: 18px; color: #C7DBE0; }
@media (max-width: 600px) { .cx-cta-banner { padding: 48px 24px; } }

/* ---------- Tables (pricing) ---------- */
.cx-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.cx-table th {
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 14px;
  color: var(--cx-dark); background: var(--cx-ice);
  padding: 16px 20px; border-bottom: 1px solid var(--cx-border);
}
.cx-table td { padding: 16px 20px; font-size: 14.5px; color: var(--cx-body); border-bottom: 1px solid var(--cx-border); }
.cx-table tr:last-child td { border-bottom: 0; }

/* ---------- Misc ---------- */
.cx-stat-num { font-family: Poppins, sans-serif; font-weight: 800; font-size: 42px; line-height: 1; color: var(--cx-dark); }
.cx-img-round { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(31, 54, 61, .45); }
.cx-img-round img { width: 100%; height: auto; display: block; }
.cx-step-num {
  font-family: Poppins, sans-serif; font-weight: 800; font-size: 15px; color: #fff;
  background: var(--cx-grad); width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.cx-breadcrumb { font-size: 13.5px; }
.cx-breadcrumb a { color: var(--cx-teal); text-decoration: none; }
.cx-breadcrumb .breadcrumb-item.active { color: var(--cx-muted); }
.cx-prose { font-size: 16px; line-height: 1.8; color: var(--cx-body); }
.cx-prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 16px; }
.cx-prose h3 { font-size: 20px; margin: 28px 0 12px; }
.cx-prose a { color: var(--cx-teal); }
.cx-prose img { max-width: 100%; border-radius: 16px; }

@media (max-width: 600px) {
  .cx-sec { padding: 64px 0; }
  .cx-sec-sm { padding: 56px 0; }
  .cx-hero { padding: 48px 0 64px; }
}

/* ---------- Odoo module icons ---------- */
.cx-odoo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--cx-border);
  box-shadow: 0 14px 30px -20px rgba(31, 54, 61, .35);
}
.cx-odoo-tile img { display: block; }
a:hover > .cx-odoo-tile,
.cx-card-hover:hover .cx-odoo-tile { border-color: rgba(112, 169, 161, .5); }

/* Odoo module grid pill */
.cx-odoo-module {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--cx-border);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cx-odoo-module:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -26px rgba(31, 54, 61, .34);
  border-color: rgba(112, 169, 161, .4);
}
.cx-odoo-module img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.cx-odoo-module span { font-size: 14px; color: var(--cx-dark); font-weight: 500; }

/* Silver Partner badge */
.cx-partner-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 100px;
  background: linear-gradient(135deg, #E9EEF1, #F7FAFB);
  border: 1px solid #D2DBDF;
  color: #4A6069; font-family: Poppins, sans-serif; font-weight: 600;
  font-size: 12.5px; letter-spacing: .02em;
}
.cx-partner-badge .cx-partner-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #9FB0B8, #C7D1D6);
  box-shadow: 0 0 0 3px rgba(159, 176, 184, .25);
}
