/* ==========================================================================
   PantherSoft Design System — Dark / Lime Refresh
   Design tokens + component overrides ported from a supplied prototype's
   visual language (dark surface, lime-green accent, Inter type, pill
   buttons, card layout) onto the existing legacy Bootstrap-3/"MEI" template
   markup. Loaded after every legacy template stylesheet so these rules win
   without rewriting the underlying markup (same mechanism as the prior
   Phase 3 design system this file replaces).

   Much of the legacy CSS hardcodes light-theme colors directly on
   components (e.g. `.icon_box_2{background:#fff}`, `.sec_title{color:#000}`,
   `.abci_content{background:#FFF}`) rather than inheriting from `body`, so
   flipping the whole site from light to dark requires overriding each of
   those components explicitly below, not just the shared tokens/typography.
   ========================================================================== */

:root {
  --ps-bg-primary: #070a08;
  --ps-bg-secondary: #0d110e;
  --ps-bg-card: #121713;
  --ps-bg-elevated: #171d18;
  --ps-accent: #8dff3f;
  --ps-accent-dark: #5edb32;
  --ps-accent-ink: #081405; /* dark text used ON TOP of the lime accent */
  --ps-text-primary: #f5f7f5;
  --ps-text-secondary: #a5ada7;
  /* #737c75 (the prototype's own value) measured 4.21:1 on --ps-bg-card and
     4.41:1 on --ps-bg-secondary — both just under WCAG AA's 4.5:1 for normal
     text (used for placeholders and the footer blurb). Lightened to the
     nearest value that clears 4.5:1 against the tighter of the two. */
  --ps-text-muted: #808980;
  --ps-border: rgba(255, 255, 255, 0.08);
  --ps-border-strong: rgba(255, 255, 255, 0.14);
  --ps-success: #16a34a;
  --ps-success-bg: rgba(22, 163, 74, 0.12);
  --ps-danger: #f87171;
  --ps-danger-bg: rgba(220, 38, 38, 0.14);

  --ps-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ps-space-1: 8px;
  --ps-space-2: 16px;
  --ps-space-3: 24px;
  --ps-space-4: 32px;
  --ps-space-6: 48px;
  --ps-space-8: 64px;

  --ps-radius-sm: 8px;
  --ps-radius: 12px;
  --ps-radius-lg: 16px;
  --ps-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --ps-shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(141, 255, 63, 0.08);
  --ps-transition: 200ms cubic-bezier(.22, 1, .36, 1);
}

/* Global ---------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
}
body {
  font-family: var(--ps-font-sans);
  background: var(--ps-bg-primary);
  color: var(--ps-text-primary);
}
a {
  color: inherit;
}
a:hover {
  color: var(--ps-accent);
}

/* Typography -------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6,
.sec_title,
.main-slider-one__title {
  font-family: var(--ps-font-sans);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ps-text-primary);
}

.sec_title {
  /* Legacy theme has no small-mobile breakpoint for this (only 768px/1200px
     up), which overflows the viewport below ~600px wide. */
  font-size: clamp(1.5rem, 4vw + 0.5rem, 3.125rem);
  line-height: 1.25;
}
.sec_title.white { color: var(--ps-text-primary); }
.sec_desc,
.color_aaa {
  color: var(--ps-text-secondary);
}

.sub_title,
.red_color {
  color: var(--ps-accent) !important;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.main-slider-one__title {
  font-size: clamp(2rem, 5vw + 1rem, 6.5rem) !important;
}
.main-slider-one__tagline {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--ps-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Buttons ------------------------------------------------------------------*/
.common_btn {
  background: transparent;
  border: 1px solid var(--ps-border-strong);
  color: var(--ps-text-primary);
  height: auto;
  padding: 15px 30px;
  border-radius: 100px;
  text-transform: none;
  letter-spacing: 0.2px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: border-color var(--ps-transition), color var(--ps-transition), transform var(--ps-transition);
}
.common_btn:hover {
  color: var(--ps-accent);
  border-color: var(--ps-accent);
  transform: translateY(-1px);
}
.common_btn:after {
  /* Legacy theme.js/CSS uses a `:after` sweep as the hover fill on some
     variants — neutralize it so it can't paint a stray light rectangle
     behind the new transparent/pill buttons. */
  background: transparent !important;
  border-radius: 100px;
}
.common_btn.red_bg {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
  color: var(--ps-accent-ink);
  padding: 15px 26px;
  box-shadow: 0 0 0 rgba(141, 255, 63, 0);
}
.common_btn.red_bg:hover {
  color: var(--ps-accent-ink);
  border-color: var(--ps-accent-dark);
  box-shadow: 0 0 28px rgba(141, 255, 63, .45);
}
.common_btn:focus-visible {
  outline: 3px solid var(--ps-accent);
  outline-offset: 2px;
}
.ready_2 .common_btn {
  background: var(--ps-accent);
  color: var(--ps-accent-ink);
}

/* Header / navigation -------------------------------------------------------*/
.header_01,
.header_01.fixedHeader,
.black_color.fixedHeader {
  background: rgba(7, 10, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ps-border);
  box-shadow: none;
}
.header_01.fixedHeader {
  background: rgba(7, 10, 8, 0.92);
  box-shadow: var(--ps-shadow-sm);
}
.header_01 .logo img {
  margin-top: -25px;
  max-height: 88px;
  width: auto;
}
.mainmenu ul li a {
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--ps-text-secondary);
}
.mainmenu ul > li.active > a,
.mainmenu ul li a.active,
.mainmenu ul li a:hover,
.black_color .mainmenu ul li a:hover,
.black_color .navigator a:hover {
  color: var(--ps-accent) !important;
}
.mainmenu ul > li.active > a:after,
.mainmenu ul li a.active:after,
.mainmenu ul li a:hover:after {
  background: var(--ps-accent);
}

/* The search/menu icon toggles were converted from <a> to <button> for
   correct keyboard/screen-reader semantics (Phase 7) — restate the
   tag-qualified `.navigator a { ... }` styling from theme.css that no
   longer matches a <button>, so their appearance is unchanged. */
.navigator button.search,
.navigator button.mobilemenu,
.navigator button.hamburger {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--ps-text-primary);
  line-height: .8;
  font-size: 25px;
  cursor: pointer;
  transition: color var(--ps-transition);
}
.navigator button.search {
  margin-right: 16px;
}
.navigator button:hover {
  color: var(--ps-accent);
}

/* Mobile popup menu + search overlay (already near-black; just repoint accents) */
.dl-menu a.active,
.dl-menu a:hover {
  color: var(--ps-accent);
}
.popup__menu .footer__contacts li {
  color: var(--ps-text-secondary);
}
.popUp_social a:hover {
  color: var(--ps-accent);
}
.searchForms .searchField {
  background: transparent;
  border-bottom: 1px solid var(--ps-border-strong);
  color: var(--ps-text-primary);
}
.searchForms button {
  color: var(--ps-accent);
}

/* Page banner (breadcrumb + H1, shared markup across 16 inner pages) -------*/
.pageBanner {
  position: relative;
}
.pageBanner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 8, .55), rgba(7, 10, 8, .82));
}
.banner_content {
  z-index: 1;
}
.banner_content h4 a:hover {
  color: var(--ps-accent);
}

/* Section backgrounds --------------------------------------------------- */
/* .service_section and .ready already carry their own dark background
   photos in the legacy theme and set text via the `.white` class in
   markup — left as-is. Every other section below relies on the (now dark)
   body background by default; the ones flagged here had their own
   hardcoded light backgrounds/overlays that need an explicit dark swap. */
.what_wedo:after {
  background: var(--ps-bg-secondary);
}
.what_wedo,
.subscribe {
  border-bottom-color: var(--ps-border);
}
.our_work {
  background: var(--ps-bg-secondary);
}

/* Cards ----------------------------------------------------------------- */
.icon_box_1 {
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  padding: 40px 28px;
  box-shadow: none;
  transition: transform var(--ps-transition), box-shadow var(--ps-transition), border-color var(--ps-transition);
}
.icon_box_1:hover,
.icon_box_1.hover {
  box-shadow: var(--ps-shadow-md);
  border-color: rgba(141, 255, 63, .35);
  transform: translateY(-4px);
}
.icon_box_1 i {
  color: var(--ps-accent);
  font-size: 42px;
}
.icon_box_1 h3 {
  color: var(--ps-text-primary);
}

/* The service-card rows (.custom_column, used on the homepage and Services
   page) use Bootstrap 3's float-based grid, which does not equalize column
   height — a card whose title wraps to two lines renders taller than a
   sibling with a one-line title, producing a visibly jagged row. Flexbox
   is the standard fix: row children stretch to equal height by default. */
.custom_column.row {
  display: flex;
  flex-wrap: wrap;
}
.custom_column > [class*="col-"] {
  display: flex;
}
.custom_column .icon_box_1 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .custom_column > [class*="col-"] {
    width: 100%;
    float: none;
  }
}

/* Services page's top 3 cards ("Web App" / "Mobile App" / "Desktop App") */
.icon_box_2 {
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  transition: border-color var(--ps-transition), box-shadow var(--ps-transition);
}
.icon_box_2:after { display: none; }
.icon_box_2 h3 {
  color: var(--ps-text-primary);
}
.icon_box_2 p {
  color: var(--ps-text-secondary);
}
.icon_box_2 .iconWrap:after { display: none; }
.icon_box_2 .iconWrap i {
  color: var(--ps-accent);
}
/* Web/Mobile/Desktop App icons are solid-black line-art PNGs baked for a
   light card — invert so they read as light lines on the new dark card. */
.icon_box_2 .iconWrap img {
  filter: invert(1);
}
.icon_box_2 a {
  color: var(--ps-accent);
}
.icon_box_2 a:hover {
  color: var(--ps-accent-dark);
}
.icon_box_2:hover {
  box-shadow: var(--ps-shadow-md);
  border-color: rgba(141, 255, 63, .35);
}

/* Homepage/portfolio grid image cards */
.singlefolio:after {
  background: rgba(7, 10, 8, .88);
}
.singlefolio .folioHover a.cate {
  color: var(--ps-accent);
}
.singlefolio .folioHover a.cate:hover,
.singlefolio .folioHover h4 a:hover {
  color: var(--ps-text-primary);
}

/* Services page's 3-image "what we do" overlay boxes */
.single_wedo .overlay_wedo:after {
  background: rgba(7, 10, 8, .88) !important;
}
.single_wedo .overlay_wedo a {
    /*color:  var(--ps-text-primary);*/
    color: #000000;
}
.single_wedo .overlay_wedo a:hover {
  color: var(--ps-accent-ink);
  background: var(--ps-accent);
}

/* "Why Partner With Panthersoft" trust panel (homepage + Services) — the
   legacy theme hardcodes this as a solid white card with black text
   floating over a photo, which would go invisible-on-dark unless swapped. */
.abci_content {
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border);
}
.abci_content h2,
.abci_content p {
  color: var(--ps-text-primary);
}
.abci_content p {
  color: var(--ps-text-secondary);
}

/* Product detail pages (features/requirements lists, "Order Now" CTA) */
.singlePortfoio_content h3,
.singlePortfoio_content h4 {
  color: var(--ps-text-primary);
}
.singlePortfoio_content p {
  color: var(--ps-text-secondary);
}
.singlePortfoio_content p a {
  color: var(--ps-text-secondary);
}
.singlePortfoio_content p a:hover {
  color: var(--ps-accent);
}
.singlePortfoio_content ul li a {
  color: var(--ps-text-secondary);
}
.singlePortfoio_content ul li a:after {
  background: var(--ps-accent);
}
.singlePortfoio_content ul li a:hover {
  color: var(--ps-accent);
}
/* The legacy theme renders these as a literal "⦿ Text" prefix (not a real
   list marker) with line-height:.8 — on a wrapped line (long feature/
   requirement text at narrower widths) that leaves the second line flush
   with the left margin instead of aligned under the first line's text, and
   the cramped line-height makes wrapped lines visually overlap. Standard
   CSS hanging-indent fix: shift the whole line right, then pull only the
   first line back so the bullet still sits at the margin. */
.singlePortfoio_content ul li {
  line-height: 1.5;
  padding-left: 1.3em;
  text-indent: -1.3em;
}

/* About page's tabbed "why choose us" section */
.chooseUs_title li a {
  background: var(--ps-bg-card);
  color: var(--ps-text-secondary);
  border: 1px solid var(--ps-border);
}
.chooseUs_title li:hover a,
.chooseUs_title li.active a {
  background: var(--ps-accent);
  color: var(--ps-accent-ink);
  border-color: var(--ps-accent);
}
.wh_choose p {
  color: var(--ps-text-secondary);
}
.wh_choose ul li {
  color: var(--ps-text-primary);
}
.wh_choose ul li i {
  color: var(--ps-accent);
}

/* About page hero photos + "company started 2014" stat overlay — give the
   stat a translucent dark backdrop so it stays legible regardless of what's
   underneath it in the photo it's absolutely positioned over. */
.agency_img1:after,
.ab_img2:after {
  border-color: var(--ps-accent);
}
.compay_date {
  background: rgba(7, 10, 8, .75);
  backdrop-filter: blur(6px);
  padding: 16px 24px;
  border-radius: var(--ps-radius);
  border: 1px solid var(--ps-border);
}
.compay_date h5 {
  color: var(--ps-text-secondary);
}
.compay_date h2 {
  color: var(--ps-accent);
}

/* Products page filter tabs (All/Desktop/Web/Mobile) */
.folio_mixing ul li {
  color: var(--ps-text-secondary);
}
.folio_mixing ul li.active,
.folio_mixing ul li:hover {
  color: var(--ps-accent);
}
.folio_mixing ul li:after {
  background: var(--ps-accent);
}

/* Forms ----------------------------------------------------------------- */
.input-form {
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border-strong);
  color: var(--ps-text-primary);
  border-radius: var(--ps-radius-sm);
  height: 56px;
  transition: border-color var(--ps-transition), box-shadow var(--ps-transition);
}
textarea.input-form {
  height: 160px;
}
.input-form::placeholder {
  color: var(--ps-text-muted);
}
.input-form:focus {
  outline: none;
  border-color: var(--ps-accent);
  box-shadow: 0 0 0 3px rgba(141, 255, 63, 0.15);
  background: var(--ps-bg-elevated);
}
.input-form.reqError {
  border-color: var(--ps-danger);
}
.text-danger {
  color: var(--ps-danger);
  font-size: 13px;
  display: block;
  margin-top: 4px;
}
.alert {
  border-radius: var(--ps-radius-sm);
  padding: var(--ps-space-2) var(--ps-space-3);
  margin-bottom: var(--ps-space-3);
}
.alert-success {
  background: var(--ps-success-bg);
  color: #86efac;
  border: 1px solid rgba(22, 163, 74, .35);
}
.alert-danger {
  background: var(--ps-danger-bg);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, .35);
}

.subscribefrom input[type="email"] {
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border-strong);
  color: var(--ps-text-primary);
  border-radius: var(--ps-radius-sm);
}
.subscribefrom input[type="email"]::placeholder {
  color: var(--ps-text-muted) !important;
}
.subscribefrom input[type="email"]:focus {
  outline: none;
  border-color: var(--ps-accent);
  box-shadow: 0 0 0 3px rgba(141, 255, 63, 0.15);
}

/* Footer ------------------------------------------------------------------ */
.footer_1 {
  background: var(--ps-bg-secondary);
  border-top: 1px solid var(--ps-border);
}
.footer_1 .widget_title {
  color: var(--ps-text-primary);
}
.footer_1 aside p {
  color: var(--ps-text-muted);
}
.footer_1 .contact_widgets p a,
.footer_1 .copyright a {
  color: var(--ps-accent);
}
.footer_1 .copyright a:hover,
.footer_1 .contact_widgets p a:hover {
  color: var(--ps-accent-dark);
}
.footer_1 .social_widget ul li a {
  color: var(--ps-text-secondary);
  transition: color var(--ps-transition), border-color var(--ps-transition);
}
.footer_1 .social_widget ul li a:hover {
  color: var(--ps-accent);
  border-color: var(--ps-accent);
  background: transparent;
}

/* Accessibility (Phase 7/9) --------------------------------------------------*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ps-text-secondary);
  margin-bottom: 6px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 10000;
  background: var(--ps-accent);
  color: var(--ps-accent-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--ps-radius-sm) var(--ps-radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--ps-transition);
}
.skip-link:focus {
  top: 0;
  color: var(--ps-accent-ink);
}

/* Legacy Bootstrap 3 / template CSS resets outline on :focus in several
   places; restore a visible focus indicator for keyboard users everywhere
   a native outline would otherwise be suppressed. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.icon_box_1:focus-visible,
.navigator button:focus-visible {
  outline: 3px solid var(--ps-accent);
  outline-offset: 2px;
}
