/* ==========================================================================
   NIC Sialkot — base.css (always loaded)
   Brand tokens, base typography, utilities used inside Elementor templates.
   Brand colours/fonts are ALSO set as Elementor Global Colors/Fonts by NIC Setup,
   so you can change them in Elementor → Site Settings.
   ========================================================================== */
:root {
  --navy: #11274A;
  --navy-dark: #0D1F3C;
  --navy-mid: #162D55;
  --navy-card: #1C3560;
  --navy-light: #F0F4FA;
  --red: #BD2430;
  --gold: #FBAD18;
  --orange: #F07E22;
  --gradient: linear-gradient(135deg, #BD2430 0%, #F07E22 100%);
  --gradient-gold: linear-gradient(135deg, #FBAD18 0%, #F07E22 100%);
  --text-heading: #11274A;
  --text-body: #3A4F6B;
  --text-muted: #6B80A0;
  --text-light: #F7F2EC;
  --text-light-sec: #B8CADC;
  --text-light-muted: #7A96B5;
  --border-light: rgba(17, 39, 74, 0.1);
  --border-navy: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(17, 39, 74, 0.08);
  --shadow-lg: 0 12px 48px rgba(17, 39, 74, 0.15);
  --transition: all 0.3s ease;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
  left: 8px; top: 8px; padding: 10px 16px; background: #fff; color: var(--navy);
  border-radius: 6px; box-shadow: var(--shadow);
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nic-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Layout helpers */
.nic-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nic-container--narrow { max-width: 860px; }
.nic-section { padding: 72px 0; }
.nic-center { text-align: center; }

/* Accent text — usable inside any Elementor Heading: <span class="red-text">Word.</span> */
.red-text { color: var(--red); }
.gold-text { color: var(--gold); }
.gradient-text:not(.elementor-widget), .nic-gradient-text:not(.elementor-widget),
.nic-gradient-text .elementor-heading-title {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nic-gradient-text .elementor-heading-title { display: inline-block; }

/* Section tag ("— OUR VALUE") — add CSS class nic-tag (or "nic-tag nic-tag--gold") to a Heading widget */
.nic-tag:not(.elementor-widget), .nic-tag .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  margin: 0; line-height: 1.4;
}
.nic-tag:not(.elementor-widget)::before, .nic-tag .elementor-heading-title::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--gradient); flex-shrink: 0;
}
.nic-tag--gold:not(.elementor-widget), .nic-tag--gold .elementor-heading-title { color: var(--gold); }
.nic-tag--gold:not(.elementor-widget)::before, .nic-tag--gold .elementor-heading-title::before { background: var(--gradient-gold); }

/* Section title underline — add CSS class nic-title-line to a Heading widget */
.nic-title-line .elementor-heading-title::after,
h2.nic-title-line::after {
  content: ''; display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--gradient); margin: 14px 0 0;
}
.nic-title-line--center .elementor-heading-title::after { margin-left: auto; margin-right: auto; }
.nic-title-line--gold .elementor-heading-title::after { background: var(--gradient-gold); }

/* Card hover — add CSS class nic-hover-card to a Container */
.nic-hover-card { position: relative; overflow: hidden; transition: var(--transition); }
.nic-hover-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--gradient); opacity: 0; transition: var(--transition); z-index: 2;
}
.nic-hover-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.nic-hover-card:hover::before { opacity: 1; }

/* Gradient button — add CSS class nic-btn-gradient to a Button widget */
.nic-btn-gradient .elementor-button { background-image: var(--gradient) !important; }
.nic-btn-gradient .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(189, 36, 48, 0.3); }
.elementor-button { transition: var(--transition); }

/* Gradient numbers — add CSS class nic-gradient-number to a Counter widget */
.nic-gradient-number .elementor-counter-number-wrapper {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Elementor header: shadow once it sticks */
.nic-header { transition: box-shadow .3s ease, padding .3s ease; }
.nic-header.elementor-sticky--effects { box-shadow: 0 2px 20px rgba(17, 39, 74, 0.1); }
.nic-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--red); }

/* Buttons used by NIC components */
.nic-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: var(--transition);
}
.nic-btn--primary { background: var(--gradient); color: #fff; }
.nic-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(189, 36, 48, 0.3); }
.nic-btn--outline { border-color: var(--border-light); color: var(--navy); background: #fff; }
.nic-btn--outline:hover { border-color: var(--navy); color: var(--navy); }

/* Header Apply button (NIC Apply Button widget + fallback header) */
.nic-apply-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 8px;
  background: var(--gradient); color: #fff !important;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: var(--transition);
}
.nic-apply-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nic-apply-btn--hidden { background: #e5e7eb; color: #6b7280 !important; font-weight: 600; font-size: 12px; border: 1px dashed #9ca3af; }

/* Prose (post/page content) */
.nic-prose { font-size: 1rem; line-height: 1.8; color: var(--text-body); }
.nic-prose > * + * { margin-top: 1.1em; }
.nic-prose h2, .nic-prose h3, .nic-prose h4 { font-family: var(--font-head); color: var(--text-heading); line-height: 1.25; margin-top: 1.8em; }
.nic-prose h2 { font-size: 1.6rem; }
.nic-prose h3 { font-size: 1.3rem; }
.nic-prose ul, .nic-prose ol { padding-left: 1.4em; }
.nic-prose li + li { margin-top: .4em; }
.nic-prose ul li::marker { color: var(--red); }
.nic-prose a { color: var(--red); }
.nic-prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 3px solid var(--gold); background: var(--navy-light); border-radius: 0 var(--radius) var(--radius) 0; }
.nic-prose img { border-radius: var(--radius); }
.nic-prose table { width: 100%; border-collapse: collapse; }
.nic-prose th, .nic-prose td { border: 1px solid var(--border-light); padding: 10px 12px; text-align: left; }

@media (max-width: 767px) {
  .nic-section { padding: 48px 0; }
  .nic-container { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Safety: keep Elementor inline-SVG icons at their set size */
.elementor-icon-list-icon svg { width: var(--e-icon-list-icon-size, 14px); height: var(--e-icon-list-icon-size, 14px); }
.elementor-icon-list-items { list-style: none; margin: 0; padding: 0; }
