/* =========================================================
   TELECEL LIBERIA — GLOBAL CSS  v1
   Static preview: linked from every page.
   WordPress later: paste into Appearance > Customize > Additional CSS
   All classes prefixed .tcl- to avoid Elementor/Astra clashes.
   ========================================================= */

/* Century Gothic is the brand font (licensed, not on Google Fonts).
   Devices that have it installed use it; everyone else gets Urbanist,
   the closest free geometric match. */
/* Self-hosted (no Google request). */
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/urbanist-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/urbanist-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/urbanist-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/urbanist-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/urbanist-latin-800-normal.woff2') format('woff2'); }

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand (from Telecel brand guide) */
  --tcl-red:        #E32526;
  --tcl-grey:       #706F6F;
  --tcl-light:      #DADADA;
  --tcl-white:      #FFFFFF;

  /* Derived */
  --tcl-red-dark:   #C41C1D;   /* hover, small red text on white */
  --tcl-red-soft:   #FDECEC;   /* tints, badges */
  --tcl-coal:       #232121;   /* dark sections, footer (warm, from brand grey) */
  --tcl-coal-2:     #2F2C2C;   /* cards on coal */
  --tcl-ink:        #1C1B1B;   /* headings */
  --tcl-text:       #3D3B3B;   /* body text */
  --tcl-muted:      #706F6F;
  --tcl-off:        #F5F4F3;   /* off-white sections */
  --tcl-line:       #E6E4E3;
  --tcl-line-dark:  rgba(255,255,255,.10);

  /* Type */
  --tcl-font: 'Century Gothic', CenturyGothic, 'Urbanist', system-ui, sans-serif;

  /* Layout */
  --tcl-max:        1240px;
  --tcl-gutter:     clamp(18px, 4vw, 32px);
  --tcl-sec-pad:    clamp(64px, 9vw, 116px);
  --tcl-radius:     16px;
  --tcl-radius-lg:  26px;
  --tcl-header-h:   84px;

  /* Effects */
  --tcl-shadow:     0 12px 32px -14px rgba(28,27,27,.18);
  --tcl-shadow-lg:  0 28px 64px -24px rgba(28,27,27,.28);
  --tcl-shadow-red: 0 14px 30px -12px rgba(227,37,38,.55);
  --tcl-ease:       cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. PAGE BASE (static preview only; WP/Astra handles this) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.tcl-page {
  margin: 0;
  font-family: var(--tcl-font);
  color: var(--tcl-text);
  background: var(--tcl-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 3. SECTION BASE ---------- */
.tcl-sec, .tcl-sec * { box-sizing: border-box; }
.tcl-sec {
  position: relative;
  width: 100%;
  padding: var(--tcl-sec-pad) 0;
  font-family: var(--tcl-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tcl-text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.tcl-sec img, .tcl-sec svg { max-width: 100%; display: block; }
.tcl-sec a { text-decoration: none; color: inherit; }
.tcl-sec p { margin: 0 0 1em; }
.tcl-sec ul { margin: 0; padding: 0; list-style: none; }

.tcl-wrap {
  width: 100%;
  max-width: var(--tcl-max);
  margin: 0 auto;
  padding: 0 var(--tcl-gutter);
  position: relative;
  z-index: 2;
}

/* Backgrounds */
.tcl-sec--light { background: var(--tcl-white); }
.tcl-sec--off   { background: var(--tcl-off); }
.tcl-sec--red   { background: var(--tcl-red); color: rgba(255,255,255,.88); }
.tcl-sec--dark  { background: var(--tcl-coal); color: rgba(255,255,255,.74); }

/* ---------- 4. TYPOGRAPHY ---------- */
.tcl-sec h1, .tcl-sec h2, .tcl-sec h3, .tcl-sec h4 {
  font-family: var(--tcl-font);
  color: var(--tcl-ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
.tcl-sec--dark :is(h1,h2,h3,h4),
.tcl-sec--red  :is(h1,h2,h3,h4) { color: var(--tcl-white); }

.tcl-h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
.tcl-h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.tcl-h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.tcl-red-text { color: var(--tcl-red); }

.tcl-lead {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: var(--tcl-muted);
  max-width: 620px;
}
.tcl-sec--dark .tcl-lead { color: rgba(255,255,255,.66); }

/* Eyebrow: red dot + label (echoes the logo circle) */
.tcl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tcl-red-dark);
  margin-bottom: 18px;
}
.tcl-eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tcl-red);
  box-shadow: 0 0 0 4px var(--tcl-red-soft);
}
.tcl-sec--dark .tcl-eyebrow { color: #FF7A7B; }
.tcl-sec--dark .tcl-eyebrow::before { box-shadow: 0 0 0 4px rgba(227,37,38,.25); }
.tcl-sec--red .tcl-eyebrow { color: #fff; }
.tcl-sec--red .tcl-eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }

.tcl-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.tcl-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.tcl-head--center .tcl-lead { margin-left: auto; margin-right: auto; }

/* ---------- 5. BUTTONS (!important so Astra styles never leak in) ---------- */
.tcl-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 15px 28px !important;
  border-radius: 999px !important;
  font-family: var(--tcl-font) !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  border: 2px solid transparent !important;
  cursor: pointer;
  transition: transform .3s var(--tcl-ease), background .3s var(--tcl-ease),
              color .3s var(--tcl-ease), border-color .3s var(--tcl-ease), box-shadow .3s var(--tcl-ease) !important;
  white-space: nowrap;
}
.tcl-btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--tcl-ease); }
.tcl-btn:hover svg { transform: translateX(3px); }

.tcl-btn--red   { background: var(--tcl-red) !important; color: #fff !important; box-shadow: var(--tcl-shadow-red) !important; }
.tcl-btn--red:hover { background: var(--tcl-red-dark) !important; transform: translateY(-2px); }

.tcl-btn--ghost { background: transparent !important; color: var(--tcl-ink) !important; border-color: var(--tcl-light) !important; }
.tcl-btn--ghost:hover { border-color: var(--tcl-ink) !important; }

.tcl-btn--white { background: #fff !important; color: var(--tcl-red-dark) !important; }
.tcl-btn--white:hover { background: var(--tcl-ink) !important; color: #fff !important; transform: translateY(-2px); }

.tcl-btn--line-white { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.45) !important; }
.tcl-btn--line-white:hover { border-color: #fff !important; background: rgba(255,255,255,.08) !important; }

/* Text link with arrow */
.tcl-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--tcl-red-dark) !important;
  font-size: .95rem;
}
.tcl-link svg { width: 16px; height: 16px; transition: transform .3s var(--tcl-ease); }
.tcl-link:hover svg { transform: translateX(4px); }
.tcl-sec--dark .tcl-link { color: #FF7A7B !important; }

/* ---------- 6. SCROLL REVEAL ----------
   Content stays visible unless tcl-global.js adds .tcl-anim to <html>. */
.tcl-anim .tcl-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--tcl-ease), transform .8s var(--tcl-ease);
}
.tcl-anim .tcl-reveal.is-in { opacity: 1; transform: none; }
.tcl-anim .tcl-reveal[data-delay="1"] { transition-delay: .1s; }
.tcl-anim .tcl-reveal[data-delay="2"] { transition-delay: .2s; }
.tcl-anim .tcl-reveal[data-delay="3"] { transition-delay: .3s; }
.tcl-anim .tcl-reveal[data-delay="4"] { transition-delay: .4s; }
.elementor-editor-active .tcl-reveal,
.elementor-editor-preview .tcl-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- 7. ELEMENTOR CLEANUP (used after WP migration) ---------- */
.elementor-widget-html:has(.tcl-sec) { margin-bottom: 0 !important; }
.elementor-section:has(.tcl-sec) > .elementor-container,
.e-con:has(> .elementor-widget-html .tcl-sec) { max-width: 100% !important; padding: 0 !important; }

/* ---------- 8. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .tcl-sec *, .tcl-sec *::before, .tcl-sec *::after,
  .tcl-header *, .tcl-footer * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
