/* ==========================================================================
   CortexCanvas AI — Design System (AdMadu Global)
   Everything here is applied inside Elementor via the "CSS Classes" field
   (Advanced tab of any Section / Column / Widget). Colours use OKLCH with
   hex fallbacks so it renders correctly everywhere.
   ========================================================================== */

:root {
  /* ---- Core palette (from the original design) ---- */
  --cc-background:  #fbfaf8;                     /* oklch(0.985 0.003 90) */
  --cc-foreground:  #23262e;                     /* oklch(0.18 0.01 260)  */
  --cc-surface:     #f4f2ef;                     /* oklch(0.965 0.005 90) */
  --cc-surface-2:   #e7e4df;                     /* oklch(0.93 0.008 90)  */
  --cc-ink:         #1c1f26;                     /* oklch(0.15 0.01 260)  */
  --cc-ink-soft:    #6b6f78;                     /* oklch(0.45 0.01 260)  */
  --cc-border:      #e2ded8;                     /* oklch(0.9 0.008 90)   */
  --cc-brand:       #f04e37;                     /* oklch(0.68 0.22 30)   */
  --cc-brand-2:     #ff6a4d;                     /* lighter coral         */
  --cc-dark:        #23262e;                     /* oklch(0.18 0.01 260)  */
  --cc-dark-2:      #1f2229;                     /* oklch(0.16 0.01 260)  */
  --cc-dark-3:      #191c22;                     /* oklch(0.14 0.01 260)  */

  --cc-radius:      1rem;
  --cc-radius-lg:   1.5rem;   /* 24px cards */
  --cc-radius-xl:   2rem;
  --cc-shadow-soft: 0 20px 60px -30px rgba(28, 31, 38, 0.35);
  --cc-shadow-pop:  0 10px 30px -10px rgba(240, 78, 55, 0.45);
  --cc-glow: radial-gradient(1200px 700px at 80% 40%, rgba(255, 106, 77, 0.55), transparent 60%);
}

/* Prefer true OKLCH on browsers that support it (exact colour match) */
@supports (color: oklch(0.5 0.1 30)) {
  :root {
    --cc-background:  oklch(0.985 0.003 90);
    --cc-foreground:  oklch(0.18 0.01 260);
    --cc-surface:     oklch(0.965 0.005 90);
    --cc-surface-2:   oklch(0.93 0.008 90);
    --cc-ink:         oklch(0.15 0.01 260);
    --cc-ink-soft:    oklch(0.45 0.01 260);
    --cc-border:      oklch(0.90 0.008 90);
    --cc-brand:       oklch(0.68 0.22 30);
    --cc-brand-2:     oklch(0.72 0.22 30);
    --cc-dark:        oklch(0.18 0.01 260);
    --cc-dark-2:      oklch(0.16 0.01 260);
    --cc-dark-3:      oklch(0.14 0.01 260);
    --cc-glow: radial-gradient(1200px 700px at 80% 40%, oklch(0.72 0.22 30 / 0.55), transparent 60%);
  }
}

/* ---- Typography base (non-Elementor pages + fallback) ---- */
body.cortexcanvas-ai,
.cortexcanvas-ai {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  color: var(--cc-foreground);
  background-color: var(--cc-background);
}
body.cortexcanvas-ai h1,
body.cortexcanvas-ai h2,
body.cortexcanvas-ai h3,
body.cortexcanvas-ai h4 {
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

/* Make sure Elementor headings/text pick up Inter Tight + tight tracking */
.elementor-widget-heading .elementor-heading-title { letter-spacing: -0.03em; line-height: 1.02; }

/* ==========================================================================
   1. EYEBROW LABEL   ->  class: cc-eyebrow
   Small uppercase label with a coral dot. Apply to a Heading/Text widget.
   ========================================================================== */
.cc-eyebrow .elementor-heading-title,
.cc-eyebrow p,
.cc-eyebrow {
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cc-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cc-eyebrow .elementor-heading-title::before,
.cc-eyebrow p::before,
.cc-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--cc-brand);
  display: inline-block;
  flex: 0 0 auto;
}
/* eyebrow on dark sections */
.cc-dark .cc-eyebrow .elementor-heading-title,
.cc-dark .cc-eyebrow p { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   2. DARK + GLOW SECTIONS   ->  classes: cc-dark  /  cc-glow
   Put both on a Section. Set the section background colour to a dark tone,
   or just add cc-dark to auto-apply it.
   ========================================================================== */
.cc-dark { background-color: var(--cc-dark) !important; color: #fff; }
.cc-dark--deep { background-color: var(--cc-dark-2) !important; }
.cc-dark--deepest { background-color: var(--cc-dark-3) !important; }

.cc-dark .elementor-heading-title,
.cc-dark h1, .cc-dark h2, .cc-dark h3, .cc-dark h4 { color: #fff; }
.cc-dark p,
.cc-dark .elementor-widget-text-editor,
.cc-dark .elementor-widget-text-editor p { color: rgba(255,255,255,0.7); }

.cc-glow { position: relative; overflow: hidden; }
.cc-glow > .elementor-background-overlay,
.cc-glow::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--cc-glow);
  pointer-events: none;
  z-index: 0;
}
.cc-glow > .elementor-container,
.cc-glow > .e-con-inner { position: relative; z-index: 1; }

/* ==========================================================================
   3. BUTTONS   ->  classes: cc-btn (dark pill) / cc-btn-brand / cc-btn-light
   Elementor Button widget already exposes colours & radius, but these give
   the exact look in one click.
   ========================================================================== */
.cc-btn .elementor-button,
.cc-btn-brand .elementor-button,
.cc-btn-light .elementor-button {
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
  box-shadow: none;
}
.cc-btn .elementor-button { background: var(--cc-dark); color: #fff; }
.cc-btn .elementor-button:hover { background: #000; }
.cc-btn-brand .elementor-button { background: var(--cc-brand); color: #fff; }
.cc-btn-brand .elementor-button:hover { filter: brightness(1.05); }
.cc-btn-light .elementor-button { background: #fff; color: var(--cc-dark); border: 1px solid rgba(0,0,0,.06); }
.cc-btn-light .elementor-button:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }

/* ==========================================================================
   4. CHIPS / TAGS   ->  class: cc-chips (wrap) — used inside HTML widgets
   ========================================================================== */
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chips span, .cc-chip {
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  color: var(--cc-ink);
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,.06);
  line-height: 1.4;
}
.cc-dark .cc-chips span, .cc-dark .cc-chip {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.12);
}

/* ==========================================================================
   5. SERVICE CARD   ->  class: cc-service-card  (apply to a COLUMN)
   Surface card that flips to dark on hover, text turns white.
   ========================================================================== */
.cc-service-card {
  background: var(--cc-surface);
  border-radius: var(--cc-radius-lg);
  padding: 32px !important;
  transition: background-color .3s ease;
  position: relative;
  overflow: hidden;
}
.cc-service-card:hover { background: var(--cc-dark); }
.cc-service-card:hover .elementor-heading-title,
.cc-service-card:hover .elementor-widget-text-editor,
.cc-service-card:hover .elementor-widget-text-editor p,
.cc-service-card:hover p { color: #fff !important; }
.cc-service-card:hover .cc-chips span { background: rgba(255,255,255,.1); color:#fff; border-color: rgba(255,255,255,.12); }
.cc-service-card .cc-svc-index { color: var(--cc-ink-soft); font-size: 14px; }
.cc-service-card:hover .cc-svc-index { color: rgba(255,255,255,.6); }

/* ==========================================================================
   6. INDUSTRY CARD  ->  class: cc-industry-card (apply to a COLUMN)
   Image on top with zoom-on-hover, dark flip, rounded, soft shadow.
   ========================================================================== */
.cc-industry-card {
  position: relative;
  background: var(--cc-background);
  border-radius: var(--cc-radius-lg);
  box-shadow: var(--cc-shadow-soft);
  overflow: hidden;
  transition: background-color .3s ease;
  padding: 0 !important;
}
.cc-industry-card:hover { background: var(--cc-dark); }
.cc-industry-card:hover .elementor-heading-title,
.cc-industry-card:hover p,
.cc-industry-card:hover .elementor-widget-text-editor p { color: #fff !important; }
.cc-industry-card .elementor-widget-image { margin: 0 !important; }
.cc-industry-card .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.cc-industry-card:hover .elementor-widget-image img { transform: scale(1.05); }
/* inner padding wrapper for the text under the image */
.cc-card-body { padding: 24px; }
.cc-card-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-ink-soft); }
.cc-industry-card:hover .cc-card-label { color: rgba(255,255,255,.6); }

/* ==========================================================================
   7. GLASS CARD (on dark)  ->  class: cc-glass  (apply to a COLUMN)
   ========================================================================== */
.cc-glass {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--cc-radius-lg);
  padding: 32px !important;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   8. SURFACE / PLAIN CARD  ->  class: cc-card  (apply to a COLUMN)
   ========================================================================== */
.cc-card {
  background: var(--cc-surface);
  border-radius: var(--cc-radius-lg);
  padding: 32px !important;
}
.cc-card--bg { background: var(--cc-background); }

/* ==========================================================================
   9. ICON BOX (Principles)  ->  wrap grid column class: cc-principle-box
   Tunes the free Icon Box widget to match the design.
   ========================================================================== */
.cc-iconbox .elementor-icon-box-icon .elementor-icon {
  background: rgba(240,78,55,.10);
  color: var(--cc-brand) !important;
  border-radius: 12px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cc-iconbox .elementor-icon-box-title { letter-spacing: -0.02em; }

/* ==========================================================================
   10. PRINCIPLE TILE (gradient + big number)  ->  class: cc-principle
   Built from an HTML widget; classes below style it.
   ========================================================================== */
.cc-principle-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--cc-radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cc-surface-2), var(--cc-surface));
}
.cc-principle-tile .cc-principle-glow { position: absolute; inset: 0; }
.cc-principle-tile .cc-principle-num {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 28px;
  font-size: 64px; font-weight: 600;
  color: rgba(28,31,38,.18);
  letter-spacing: -0.03em;
}

/* ==========================================================================
   11. STAT ROW  ->  class: cc-stat-row  (apply to a COLUMN or inner section)
   Label left, big value right.
   ========================================================================== */
.cc-stat-row {
  background: var(--cc-background);
  border-radius: var(--cc-radius-lg);
  padding: 28px 32px !important;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.cc-stat-row .cc-stat-label { font-size: 12px; letter-spacing:.12em; text-transform: uppercase; color: var(--cc-ink-soft); }
.cc-stat-row .cc-stat-value { font-size: 48px; font-weight: 600; letter-spacing:-.03em; color: var(--cc-ink); }

/* ==========================================================================
   12. TESTIMONIAL CARD  ->  class: cc-testimonial (apply to a COLUMN)
   ========================================================================== */
.cc-testimonial {
  background: var(--cc-background);
  border-radius: var(--cc-radius-lg);
  padding: 32px !important;
  height: 100%;
}
.cc-stars { color: var(--cc-brand); display: inline-flex; gap: 4px; }
.cc-stars svg { width: 16px; height: 16px; fill: currentColor; }
.cc-testimonial .cc-quote { font-size: 18px; color: var(--cc-ink); line-height: 1.5; }
.cc-testimonial .cc-cite { border-top: 1px solid var(--cc-border); margin-top: 28px; padding-top: 24px; }
.cc-testimonial .cc-cite-name { font-weight: 500; color: var(--cc-ink); }
.cc-testimonial .cc-cite-role { font-size: 14px; color: var(--cc-ink-soft); }

/* ==========================================================================
   13. PRICE CARD  ->  classes: cc-price / cc-price--featured (apply to COLUMN)
   ========================================================================== */
.cc-price { background: var(--cc-surface); color: var(--cc-ink); border-radius: var(--cc-radius-xl); padding: 40px !important; }
.cc-price--featured { background: var(--cc-dark); color: #fff; }
.cc-price--featured .elementor-heading-title,
.cc-price--featured p { color: #fff; }
.cc-badge-rec { display:inline-block; background: var(--cc-brand); color:#fff; font-size:12px; font-weight:500; padding:4px 12px; border-radius:999px; }

/* ==========================================================================
   14. FAQ ACCORDION  ->  class: cc-faq  (apply to the Accordion widget)
   Styles the free Accordion widget to match.
   ========================================================================== */
.cc-faq .elementor-accordion .elementor-accordion-item { border: none; border-bottom: 1px solid var(--cc-border); }
.cc-faq .elementor-accordion .elementor-tab-title { padding: 24px 0; font-size: 18px; font-weight: 500; color: var(--cc-ink); }
.cc-faq .elementor-accordion .elementor-tab-content { padding: 0 0 24px 0; color: var(--cc-ink-soft); border: none; }
.cc-faq .elementor-accordion .elementor-tab-title .elementor-accordion-icon { color: var(--cc-brand); }

/* ==========================================================================
   15. MARQUEE  ->  used inside an HTML widget (Partners strip)
   ========================================================================== */
.cc-marquee-mask { overflow: hidden; width: 100%; }
.cc-marquee {
  display: flex; width: max-content; gap: 64px;
  animation: cc-marquee 40s linear infinite;
}
.cc-marquee span { white-space: nowrap; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: rgba(28,31,38,.6); }
.cc-dark .cc-marquee span { color: rgba(255,255,255,.5); }
@keyframes cc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   16. HERO  ->  class: cc-hero on Section; cc-hero-badge / scroll pill helpers
   ========================================================================== */
.cc-hero { position: relative; overflow: hidden; }
.cc-hero .elementor-background-overlay { z-index: 0; }
.cc-hero > .elementor-container, .cc-hero > .e-con-inner { position: relative; z-index: 1; }
.cc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7);
  color: var(--cc-brand);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 999px;
  padding: 6px 16px; font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px);
}
.cc-scroll-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7);
  color: var(--cc-ink-soft);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 999px; padding: 8px 16px; font-size: 12px;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   17. HFE HEADER NAV  ->  classes for the floating pill header
   Build the header in HFE using these on the wrapping Section/columns.
   ========================================================================== */
.cc-navbar {
  background: var(--cc-dark);
  border-radius: 999px;
  padding: 8px 8px 8px 24px !important;
  box-shadow: var(--cc-shadow-soft);
}
.cc-navbar .elementor-nav-menu .elementor-item { color: rgba(255,255,255,.8) !important; font-size: 14px; }
.cc-navbar .elementor-nav-menu .elementor-item:hover,
.cc-navbar .elementor-nav-menu .current-menu-item .elementor-item { color: #fff !important; }
.cc-navbar-wrap { position: relative; z-index: 40; }
.cc-logo { display: inline-flex; align-items: center; gap: 8px; color:#fff; font-weight:600; font-size:18px; letter-spacing:-.02em; }
.cc-logo .cc-logo-mark { position: relative; width: 24px; height: 24px; border-radius: 999px; background:#fff; display:inline-block; }
.cc-logo .cc-logo-mark::after { content:""; position:absolute; inset:4px; border-radius:999px; background: var(--cc-dark); }
.cc-logo .cc-logo-dot { content:""; position:absolute; top:0; right:0; width:12px; height:12px; border-radius:999px; background:#fff; }

/* ==========================================================================
   18. CONTACT FORM (styled HTML placeholder)  ->  class: cc-form
   Swap for a real free form (CF7 / WPForms Lite) via the Shortcode widget.
   ========================================================================== */
.cc-form { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius: var(--cc-radius-xl); padding: 32px; backdrop-filter: blur(6px); }
.cc-form h3 { font-size: 20px; font-weight: 600; margin: 0 0 20px; color:#fff; }
.cc-form input, .cc-form textarea {
  width: 100%; border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.1); color:#fff; padding: 14px 20px; font-size: 14px;
  outline: none; margin-bottom: 14px; font-family: inherit;
}
.cc-form textarea { border-radius: 20px; }
.cc-form input::placeholder, .cc-form textarea::placeholder { color: rgba(255,255,255,.4); }
.cc-form input:focus, .cc-form textarea:focus { border-color: var(--cc-brand); }
.cc-form .cc-form-btn {
  width:100%; border:none; cursor:pointer; border-radius:999px;
  background: var(--cc-brand); color:#fff; font-size:14px; font-weight:500; padding: 14px 24px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.cc-contact-mail { font-size: 24px; font-weight: 500; color:#fff; text-decoration:none; }
.cc-contact-label { font-size: 12px; letter-spacing:.12em; text-transform:uppercase; color: rgba(255,255,255,.5); }

/* ==========================================================================
   19. FOOTER  ->  class: cc-footer (HFE footer section)
   ========================================================================== */
.cc-footer { background: var(--cc-dark-3); color: rgba(255,255,255,.7); }
.cc-footer .cc-logo { color:#fff; }

/* ==========================================================================
   HELPERS
   ========================================================================== */
.cc-divider-hr { border: none; border-top: 1px solid var(--cc-border); margin: 24px 0; }
.cc-dark .cc-divider-hr { border-top-color: rgba(255,255,255,.1); }
.cc-text-soft .elementor-heading-title,
.cc-text-soft p { color: var(--cc-ink-soft) !important; }
.cc-mono-index { font-variant-numeric: tabular-nums; }

/* Equal-height columns for card grids */
.cc-equal .elementor-widget-wrap,
.cc-equal .e-con-inner { height: 100%; }

/* Responsive tweaks */
@media (max-width: 767px) {
  .cc-stat-row { padding: 20px 22px !important; }
  .cc-stat-row .cc-stat-value { font-size: 36px; }
  .cc-marquee span { font-size: 20px; }
}
