/*
Theme Name: SajibTheme by WPExtent
Theme URI: https://wpextent.com
Author: WebExtent
Author URI: https://wpextent.com
Description: Official WPExtent digital agency theme — WordPress development, SEO, branding, AI solutions and more.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: wpextent
*/

/* ============================================================
   WPEXTENT — GLOBAL CSS (design tokens, reset, grid, typography, buttons)
   NOTE: Per-page CSS is loaded via functions.php using wp_enqueue_style()
   ============================================================ */

/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Accent / Brand Color ─────────────────────────────────
     REFINED: Softer, more refined orange that harmonizes with
     warm-black ink. Was too vivid before (#e84811) and clashed
     with cool-black headings. Now: warm orange + warm black.
  ────────────────────────────────────────────────────────── */
  --color-base:         #dc4a1a;   /* WPExtent orange — refined */
  --color-base-hover:   #b53c14;   /* darker for hover */
  --color-base-tint:    rgba(220,74,26,.08);
  --color-base-border:  rgba(220,74,26,.20);
  --color-base-soft:    rgba(220,74,26,.04);

  /* Warm-black ink — pairs naturally with warm orange.
     Reads as "black" but doesn't clash. Cool #0d1117 is kept
     as a separate token for footer/dark sections only. */
  --color-ink:          #0d1117;   /* warm near-black */
  --color-ink-2:        #3d342c;   /* warm body text */
  --color-ink-3:        #7a716a;   /* warm muted */
  --color-ink-4:        rgba(255,255,255,.2);

  --color-white:        #ffffff;
  --color-bg:           #ffffff;
  --color-bg-alt:       #f9f7f5;   /* warm-tinted bg-alt */
  --color-bg-warm:      #fff8f3;
  --color-bg-dark:      #0d1117;

  --color-line:         #ebe7e2;   /* warm line color */
  --color-gray-1:       #f5f2ef;
  --color-gray-2:       #e8e3dd;
  --color-gray-3:       #c9c2bb;

  /* ── Semantic colors ──────────────────────────────────── */
  --color-success:      #16a34a;
  --color-success-tint: rgba(22,163,74,.09);
  --color-warning:      #f59e0b;
  --color-error:        #dc2626;

  --color-footer-bg:         #0d1117;
  --color-footer-bottom-bg:  #141921;
  --color-footer-text:       rgba(255,255,255,.38);
  --color-footer-meta:       rgba(255,255,255,.22);

  --font-heading: 'Manrope', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-serif:   'Instrument Serif', serif;

  --fz-h1:     clamp(42px, 5.2vw, 70px);
  --fz-h2:     clamp(30px, 3.6vw, 48px);
  --fz-h3:     22px;
  --fz-h4:     17px;
  --fz-h5:     14px;
  --fz-h6:     12px;
  --fz-lead:   17px;
  --fz-body:   15px;
  --fz-small:  13px;
  --fz-micro:  11px;

  --fw-heading: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;

  --lh-heading: 1.1;
  --lh-body:    1.7;
  --lh-lead:    1.75;

  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   40px;
  --sp-2xl:  64px;
  --sp-3xl:  96px;

  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-full: 9999px;

  --sh-xs: 0 1px 3px rgba(26,20,16,.06);
  --sh-sm: 0 2px 8px rgba(26,20,16,.07), 0 1px 3px rgba(26,20,16,.05);
  --sh-md: 0 4px 16px rgba(26,20,16,.08), 0 12px 40px rgba(26,20,16,.05);
  --sh-lg: 0 8px 32px rgba(26,20,16,.09), 0 24px 64px rgba(26,20,16,.06);
  --sh-xl: 0 16px 48px rgba(26,20,16,.11), 0 40px 80px rgba(26,20,16,.07);

  --trans-fast:   all .15s ease;
  --trans-base:   all .22s ease;
  --trans-slow:   all .38s ease;

  --container:    1320px;
  --container-sm: 760px;
  --gutter:       48px;
}

/* ============================================================
   ICON STYLES — for wpx_icon() output
   ============================================================ */
.wpx-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Most icon containers — sit inside small badges/squares */
.wsp-free__ico .wpx-icon,
.wsp-plan__feature-ico .wpx-icon,
.wsp-steps__ico .wpx-icon,
.we-svc__ico .wpx-icon,
.we-why__ico .wpx-icon,
.we-svc-why__ico .wpx-icon,
.we-proc__ico .wpx-icon,
.we-svc-process__ico .wpx-icon,
.we-value__ico .wpx-icon,
.we-about-card-ico .wpx-icon,
.we-contact-card__ico .wpx-icon,
.we-fchip__ico .wpx-icon,
.we-svc-callout__icon .wpx-icon {
  width: 24px;
  height: 24px;
  color: var(--color-base);
}

/* Larger icons for hero / bridge / featured */
.wsp-bridge__icon .wpx-icon {
  width: 36px;
  height: 36px;
  color: var(--color-base);
}

.we-search__empty-icon .wpx-icon {
  width: 56px;
  height: 56px;
  color: var(--color-ink-3);
}

/* Inline icons in links (404 menu) */
.we-404__link .wpx-icon {
  margin-right: 6px;
  color: var(--color-base);
}

.wpx-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-base-tint);
  color: var(--color-base);
  margin-bottom: 16px;
}
.wpx-icon-box .wpx-icon { width: 26px; height: 26px; }

/* ============================================================
   02. CSS RESET + BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--fz-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   03. LAYOUT — CONTAINER + SECTION
   ============================================================ */
.we-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.we-wrap-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.we-sec    { padding: var(--sp-3xl) 0; overflow-x: hidden; }
.we-sec-sm { padding: var(--sp-2xl) 0; }
.we-sec-lg { padding: 108px 0; }

/* ============================================================
   04. FLEXBOX COLUMN GRID SYSTEM
   ============================================================ */
.we-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--we-row-gap, 32px);
  align-items: var(--we-row-align, flex-start);
}
.we-row--center  { --we-row-align: center; }
.we-row--stretch { --we-row-align: stretch; }
.we-row--bottom  { --we-row-align: flex-end; }
.we-row--gap-sm  { --we-row-gap: 16px; }
.we-row--gap-lg  { --we-row-gap: 48px; }
.we-row--gap-xl  { --we-row-gap: 64px; }
.we-row--gap-0   { --we-row-gap: 0; }
.we-row--reverse { flex-direction: row-reverse; }

.we-col { min-width: 0; }

.we-col-1  { flex: 0 0 calc(8.333%  - var(--we-row-gap, 32px) * 11/12); }
.we-col-2  { flex: 0 0 calc(16.666% - var(--we-row-gap, 32px) * 10/12); }
.we-col-3  { flex: 0 0 calc(25%     - var(--we-row-gap, 32px) * 9/12);  }
.we-col-4  { flex: 0 0 calc(33.333% - var(--we-row-gap, 32px) * 8/12);  }
.we-col-5  { flex: 0 0 calc(41.666% - var(--we-row-gap, 32px) * 7/12);  }
.we-col-6  { flex: 0 0 calc(50%     - var(--we-row-gap, 32px) * 6/12);  }
.we-col-7  { flex: 0 0 calc(58.333% - var(--we-row-gap, 32px) * 5/12);  }
.we-col-8  { flex: 0 0 calc(66.666% - var(--we-row-gap, 32px) * 4/12);  }
.we-col-9  { flex: 0 0 calc(75%     - var(--we-row-gap, 32px) * 3/12);  }
.we-col-10 { flex: 0 0 calc(83.333% - var(--we-row-gap, 32px) * 2/12);  }
.we-col-11 { flex: 0 0 calc(91.666% - var(--we-row-gap, 32px) * 1/12);  }
.we-col-12 { flex: 0 0 100%; }

.we-col-auto   { flex: 1 1 0; min-width: 200px; }
.we-col-shrink { flex: 0 0 auto; }

/* ============================================================
   05. TYPOGRAPHY
   ============================================================ */
h1, .we-h1 {
  font-family: var(--font-heading);
  font-size: var(--fz-h1);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  letter-spacing: -.5px;
  color: var(--color-ink);
}
h2, .we-h2 {
  font-family: var(--font-heading);
  font-size: var(--fz-h2);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  letter-spacing: -.4px;
  color: var(--color-ink);
}
h3, .we-h3 {
  font-family: var(--font-body);
  font-size: var(--fz-h3);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--color-ink);
}
h4, .we-h4 {
  font-family: var(--font-body);
  font-size: var(--fz-h4);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--color-ink);
}
h5, .we-h5 {
  font-family: var(--font-body);
  font-size: var(--fz-h5);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-ink);
}
h6, .we-h6 {
  font-family: var(--font-body);
  font-size: var(--fz-h6);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-ink);
}
h1 em, h2 em, .we-h1 em, .we-h2 em {
  font-style: italic;
  color: var(--color-base);
}

.we-lead  { font-size: var(--fz-lead); color: var(--color-ink-2); line-height: var(--lh-lead); }
.we-body  { font-size: var(--fz-body); color: var(--color-ink-2); line-height: var(--lh-body); }
.we-small { font-size: var(--fz-small); color: var(--color-ink-3); line-height: 1.65; }
.we-micro { font-size: var(--fz-micro); color: var(--color-ink-3); line-height: 1.6; }

.we-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fz-micro);
  font-weight: var(--fw-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-base);
  margin-bottom: 16px;
}
.we-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-base, var(--color-ink-4));
  border-radius: 2px;
  flex-shrink: 0;
}

.we-text-base    { color: var(--color-base) !important; }
.we-text-ink     { color: var(--color-ink) !important; }
.we-text-muted   { color: var(--color-ink-3) !important; }
.we-text-white   { color: #fff !important; }
.we-bg-base      { background-color: var(--color-base) !important; }
.we-bg-tint      { background-color: var(--color-base-tint) !important; }
.we-underline-base {
  text-decoration: underline;
  text-decoration-color: var(--color-base);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.we-italic-base  { font-style: italic; color: var(--color-base); }
.we-text-center  { text-align: center; }
.we-text-right   { text-align: right; }

/* ============================================================
   06. BUTTONS
   ============================================================ */
.we-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fz-small);
  font-weight: var(--fw-bold);
  padding: 12px 24px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: var(--trans-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}
.we-btn--accent,
.we-btn--primary {
  background: var(--color-base);
  color: #fff;
  border-color: var(--color-base);
  border: 1px solid var(--color-ink-4);
}
.we-btn--accent:hover,
.we-btn--primary:hover {
  background: var(--color-base-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--color-base-border);
  border: 1px solid var(--color-base);
}
.we-btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-gray-3);
}
.we-btn--ghost:hover {
  border-color: var(--color-ink);
  background: var(--color-bg-alt);
}
.we-btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.2);
}
.we-btn--outline-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.07);
}
.we-btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-base);
  font-size: var(--fz-small);
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .18s, color .18s;
  text-decoration: none;
}
.we-btn--link:hover {
  gap: 9px;
  color: var(--color-base-hover);
}
.we-btn--sm   { font-size: 12px; padding: 8px 16px; }
.we-btn--lg   { font-size: 15px; padding: 12px 34px; }
.we-btn--full { width: 100%; }

/* ============================================================
   07. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.we-reveal      { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.we-reveal.in   { opacity: 1; transform: none; }
.we-reveal-l    { opacity: 0; transform: translateX(-26px); transition: opacity .6s ease, transform .6s ease; }
.we-reveal-l.in { opacity: 1; transform: none; }
.we-reveal-r    { opacity: 0; transform: translateX(26px); transition: opacity .6s ease, transform .6s ease; }
.we-reveal-r.in { opacity: 1; transform: none; }

.we-cascade > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.we-cascade.in > *:nth-child(1)  { opacity:1; transform:none; transition-delay:.00s }
.we-cascade.in > *:nth-child(2)  { opacity:1; transform:none; transition-delay:.07s }
.we-cascade.in > *:nth-child(3)  { opacity:1; transform:none; transition-delay:.14s }
.we-cascade.in > *:nth-child(4)  { opacity:1; transform:none; transition-delay:.21s }
.we-cascade.in > *:nth-child(5)  { opacity:1; transform:none; transition-delay:.28s }
.we-cascade.in > *:nth-child(6)  { opacity:1; transform:none; transition-delay:.35s }
.we-cascade.in > *:nth-child(7)  { opacity:1; transform:none; transition-delay:.42s }
.we-cascade.in > *:nth-child(8)  { opacity:1; transform:none; transition-delay:.49s }
.we-cascade.in > *:nth-child(9)  { opacity:1; transform:none; transition-delay:.56s }
.we-cascade.in > *:nth-child(10) { opacity:1; transform:none; transition-delay:.63s }

/* ============================================================
   08. KEYFRAMES
   ============================================================ */
@keyframes we-fadeUp  { from { opacity:0; transform:translateY(22px) } to { opacity:1; transform:none } }
@keyframes we-fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes we-float   { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-10px) } }
@keyframes we-float2  { 0%,100% { transform:translateY(0) rotate(1.5deg) } 50% { transform:translateY(-8px) rotate(-1.5deg) } }
@keyframes we-pulse   { 0%,100% { opacity:.5; transform:scale(1) } 50% { opacity:1; transform:scale(1.08) } }
@keyframes we-spin    { to { transform:rotate(360deg) } }

/* ============================================================
   09. UTILITY HELPERS
   ============================================================ */
.we-d-none    { display: none !important; }
.we-d-flex    { display: flex !important; }
.we-d-block   { display: block !important; }
.we-flex-col  { flex-direction: column; }
.we-items-center { align-items: center; }
.we-justify-between { justify-content: space-between; }
.we-justify-center  { justify-content: center; }
.we-gap-sm  { gap: var(--sp-sm); }
.we-gap-md  { gap: var(--sp-md); }
.we-gap-lg  { gap: var(--sp-lg); }
.we-gap-xl  { gap: var(--sp-xl); }

.we-mb-sm { margin-bottom: var(--sp-sm); }
.we-mb-md { margin-bottom: var(--sp-md); }
.we-mb-lg { margin-bottom: var(--sp-lg); }
.we-mb-xl { margin-bottom: var(--sp-xl); }
.we-mt-md { margin-top: var(--sp-md); }
.we-mt-lg { margin-top: var(--sp-lg); }

.we-max-460 { max-width: 460px; }
.we-max-560 { max-width: 560px; }
.we-max-640 { max-width: 640px; }

.we-divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: var(--sp-xl) 0;
}

.we-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-gray-2);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--color-ink-3);
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: var(--trans-fast);
}
.we-tag--accent {
  background: var(--color-base-tint);
  border-color: var(--color-base-border);
  color: var(--color-base);
}
.we-tag:hover {
  background: var(--color-base-tint);
  border-color: var(--color-base-border);
  color: var(--color-base);
}

/* ============================================================
   10. RESPONSIVE — global breakpoints
   ============================================================ */
@media (max-width: 960px) {
  :root {
    --gutter: 28px;
    --sp-3xl: 72px;
  }
  .we-col-1, .we-col-2, .we-col-3, .we-col-4 { flex: 0 0 100%; }
  .we-col-5, .we-col-6, .we-col-7 { flex: 0 0 calc(50% - var(--we-row-gap, 32px)/2); }
  .we-col-8, .we-col-9, .we-col-10, .we-col-11 { flex: 0 0 100%; }
  .we-col-auto { min-width: 160px; }
}
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --sp-3xl: 56px;
    --sp-2xl: 44px;
  }
  [class*="we-col-"],
  .we-col-auto {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
