/*
Theme Name: Skill Code AI
Theme URI: https://skillcodeaisolution.com/
Author: Skill Code AI
Description: WordPress theme wrapper for the supplied Skill Code AI website build. Serves the existing compiled frontend without requiring Node.js on the hosting server.
Version: 2.7.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: skill-code-ai
*/


/* Layout repair: restore the Bootstrap grid used by the original compiled React app.
   The production bundle uses .row and .col-lg-4/.col-md-6/.col-12 class names,
   but Bootstrap's grid stylesheet is not bundled. */
.ai-services .ai-services__grid.row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  align-items: stretch !important;
}
.ai-services .ai-services__grid.row > [class*="col-"] {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: initial !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ai-services .ai-services__card {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  perspective: 1200px;
}
.ai-services .ai-services__card-inner {
  display: grid !important;
  grid-template-areas: "card" !important;
  width: 100% !important;
  min-height: 450px !important;
  height: 100% !important;
  position: relative !important;
  transform-style: preserve-3d;
}
.ai-services .ai-services__card-face {
  grid-area: card !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.ai-services .ai-services__card-front {
  transform: rotateY(0deg);
}
.ai-services .ai-services__card-back {
  transform: rotateY(180deg);
}
.ai-services .ai-services__card:hover .ai-services__card-inner,
.ai-services .ai-services__card:focus-within .ai-services__card-inner {
  transform: rotateY(180deg);
}
.ai-services .ai-content {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.ai-services .ai-services__image-section img {
  max-width: 100%;
  object-fit: cover;
}
@media (max-width: 991px) {
  .ai-services .ai-services__grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
  .ai-services .ai-services__card-inner {
    min-height: 420px !important;
  }
}
@media (max-width: 600px) {
  .ai-services .ai-services__grid.row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .ai-services .ai-services__card-inner {
    min-height: 400px !important;
  }
}


/* Final visual repair: prevent card faces/images from being clipped or skewed. */
.ai-services img,
img {
  max-width: 100%;
}
.ai-services .ai-services__image-section,
.ai-services .ai-services__image-section a {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}
.ai-services .ai-services__image-section img,
.ai-services .ai-services__card img {
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  clip-path: none !important;
}
.ai-services .ai-services__card,
.ai-services .ai-services__card-inner,
.ai-services .ai-services__card-face {
  overflow: hidden;
  clip-path: none !important;
  skew: none !important;
}
.ai-services .ai-services__card-inner {
  transform: none;
  transition: transform .55s ease;
}
.ai-services .ai-services__card:hover .ai-services__card-inner,
.ai-services .ai-services__card:focus-within .ai-services__card-inner {
  transform: rotateY(180deg);
}

/* Process/workflow steps: four equal steps on a single desktop row. */
.process-steps,
.workflow-steps,
.process-flow,
.steps-container,
.working-process .row,
.process-section .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 16px !important;
}
.process-steps > *,
.workflow-steps > *,
.process-flow > *,
.steps-container > *,
.working-process .row > *,
.process-section .row > * {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}
@media (max-width: 767px) {
  .process-steps,
  .workflow-steps,
  .process-flow,
  .steps-container,
  .working-process .row,
  .process-section .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Restore full-colour rendering for embedded Google Maps and map containers. */
iframe[src*="google.com/maps"],
iframe[src*="maps.google"],
.google-map,
.google-maps,
.map-container,
.map-wrapper,
#map {
  filter: grayscale(0) saturate(1.15) contrast(1.02) !important;
}


/* Card repair v2: correct mirrored backs and show the complete image. */
.ai-services .ai-services__card {
  perspective: 1400px !important;
  overflow: visible !important;
}
.ai-services .ai-services__card-inner {
  transform: rotateY(0deg) !important;
  transform-style: preserve-3d !important;
  transition: transform .6s ease !important;
  overflow: visible !important;
}
.ai-services .ai-services__card-face {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  overflow: visible !important;
}
.ai-services .ai-services__card-front {
  transform: rotateY(0deg) !important;
}
.ai-services .ai-services__card-back {
  transform: rotateY(180deg) !important;
}
.ai-services .ai-services__card:hover .ai-services__card-inner,
.ai-services .ai-services__card:focus-within .ai-services__card-inner {
  transform: rotateY(180deg) !important;
}

/* Do not crop card illustrations: preserve the complete source image. */
.ai-services .ai-services__image-section,
.ai-services .ai-services__image-section a {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
.ai-services .ai-services__image-section img,
.ai-services .ai-services__card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  transform: none !important;
  clip-path: none !important;
}


/* ===== Skill Code AI: final service-card correction =====
   This override intentionally resolves earlier conflicting rules:
   - prevent an idle/hovered card from showing mirrored back-side text
   - keep the full illustration visible
   - let card content determine the card height instead of clipping it
*/
.ai-services .ai-services__card {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  perspective: none !important;
}

.ai-services .ai-services__card-inner {
  display: block !important;
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
  transform-style: flat !important;
  transition: none !important;
  overflow: visible !important;
}

/* Show the front face as the stable default; don't expose mirrored backs. */
.ai-services .ai-services__card-front {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

.ai-services .ai-services__card-back {
  display: none !important;
}

/* Remove inherited fixed heights/clipping from image wrappers and card faces. */
.ai-services .ai-services__card-face,
.ai-services .ai-content,
.ai-services .ai-services__image-section,
.ai-services .ai-services__image-section a {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  clip-path: none !important;
}

/* Preserve the entire original image without cropping. */
.ai-services .ai-services__image-section img,
.ai-services .ai-services__card-front img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
  transform: none !important;
  clip-path: none !important;
}

/* Keep desktop cards aligned while allowing natural card height. */
.ai-services .ai-services__grid.row {
  align-items: stretch !important;
}
.ai-services .ai-services__grid.row > [class*="col-"] {
  min-width: 0 !important;
  height: auto !important;
}
@media (max-width: 991px) {
  .ai-services .ai-services__grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .ai-services .ai-services__grid.row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* ===== FINAL FIX: equal-height cards + correct 3D flip ===== */
.ai-services .ai-services__grid.row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 24px !important;
}

.ai-services .ai-services__grid.row > [class*="col-"] {
  display: flex !important;
  align-items: stretch !important;
  min-width: 0 !important;
  height: auto !important;
}

.ai-services .ai-services__card {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 600px !important;
  min-height: 600px !important;
  perspective: 1400px !important;
  overflow: visible !important;
}

.ai-services .ai-services__card-inner {
  display: grid !important;
  grid-template-areas: "flipcard" !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 600px !important;
  transform: rotateY(0deg) !important;
  transform-style: preserve-3d !important;
  transition: transform .65s cubic-bezier(.2,.7,.2,1) !important;
  overflow: visible !important;
}

/* Both faces occupy the same exact box; the hidden face cannot show through. */
.ai-services .ai-services__card-face {
  grid-area: flipcard !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d !important;
}

.ai-services .ai-services__card-front {
  display: flex !important;
  flex-direction: column !important;
  transform: rotateY(0deg) !important;
}

.ai-services .ai-services__card-back {
  display: flex !important;
  flex-direction: column !important;
  transform: rotateY(180deg) !important;
}

/* Re-enable the flip after earlier overrides disabled it. */
.ai-services .ai-services__card:hover .ai-services__card-inner,
.ai-services .ai-services__card:focus-within .ai-services__card-inner {
  transform: rotateY(180deg) !important;
}

/* Keep the content within each face and reserve consistent room for imagery. */
.ai-services .ai-content {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.ai-services .ai-services__image-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 220px !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  margin-top: auto !important;
  overflow: hidden !important;
}

.ai-services .ai-services__image-section a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.ai-services .ai-services__image-section img,
.ai-services .ai-services__card-face img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  clip-path: none !important;
}

/* Smaller screens: same-size cards within each responsive row. */
@media (max-width: 991px) {
  .ai-services .ai-services__grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
  .ai-services .ai-services__card,
  .ai-services .ai-services__card-inner {
    height: 580px !important;
    min-height: 580px !important;
  }
}

@media (max-width: 600px) {
  .ai-services .ai-services__grid.row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .ai-services .ai-services__card,
  .ai-services .ai-services__card-inner {
    height: 560px !important;
    min-height: 560px !important;
  }
  .ai-services .ai-services__image-section {
    flex-basis: 200px !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}


/* ===== Development process: four steps in one desktop row ===== */
.process-steps,
.workflow-steps,
.process-flow,
.steps-container,
.working-process .row,
.process-section .row {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.process-steps > *,
.workflow-steps > *,
.process-flow > *,
.steps-container > *,
.working-process .row > *,
.process-section .row > * {
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.process-steps a,
.process-steps button,
.workflow-steps a,
.workflow-steps button,
.process-flow a,
.process-flow button,
.steps-container a,
.steps-container button,
.working-process .row a,
.working-process .row button,
.process-section .row a,
.process-section .row button {
  width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 12px 10px !important;
  white-space: normal !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Keep arrows between steps compact instead of letting them consume a column. */
.process-steps > .arrow,
.workflow-steps > .arrow,
.process-flow > .arrow,
.steps-container > .arrow,
.working-process .row > .arrow,
.process-section .row > .arrow,
.process-steps .step-arrow,
.workflow-steps .step-arrow,
.process-flow .step-arrow,
.steps-container .step-arrow {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 12px !important;
}

/* Mobile: wrap cleanly into two columns, then one column on narrow phones. */
@media (max-width: 767px) {
  .process-steps,
  .workflow-steps,
  .process-flow,
  .steps-container,
  .working-process .row,
  .process-section .row {
    flex-flow: row wrap !important;
    gap: 10px !important;
  }

  .process-steps > *,
  .workflow-steps > *,
  .process-flow > *,
  .steps-container > *,
  .working-process .row > *,
  .process-section .row > * {
    flex: 1 1 calc(50% - 10px) !important;
  }
}

@media (max-width: 420px) {
  .process-steps > *,
  .workflow-steps > *,
  .process-flow > *,
  .steps-container > *,
  .working-process .row > *,
  .process-section .row > * {
    flex-basis: 100% !important;
  }
}

/* ================= 1.1.0 interface, navigation and a11y ================= */
:root { --skill-accent: #a398ff; --skill-accent-strong: #745cf9; --skill-border: rgba(166,158,255,.25); }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid #b9a5ff !important;
  outline-offset: 4px;
}
:where(img,video,canvas,iframe) { max-width: 100%; }
img { height: auto; }

/* The React app formerly used href="#" for dropdown triggers. */
.nav-item > .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: clamp(13px,1.2vw,15px);
  font-weight: 500;
  padding: 0;
  white-space: nowrap;
  line-height: inherit;
  transition: color .2s ease;
}
.nav-item > .nav-dropdown-toggle:hover,
.nav-item > .nav-dropdown-toggle:focus-visible { color: var(--skill-accent); }
.nav-item > .nav-dropdown-toggle svg { transition: transform .2s ease; }
.nav-item:hover > .nav-dropdown-toggle svg,
.nav-item:focus-within > .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item .dropdown { max-height: min(70vh, 560px); overflow-y: auto; }
.nav-item .dropdown a:focus-visible { background: #f0ecff; color: #4536ac; }
.menu-icon { background: transparent; border: none; padding: 8px; }
.side-drawer .close-btn { border: none; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; padding: 8px; }
.side-drawer a, .side-drawer button { min-height: 40px; }
.navbar { isolation: isolate; }
.navbar.scrolled { box-shadow: 0 10px 36px rgba(0,0,0,.22); }

/* Maintain visual hierarchy on both high-DPI desktops and smaller screens. */
.hero-description { max-width: 760px; text-wrap: pretty; }
.hero-badge { max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
.hero-buttons button, .ai-journey__buttons button { min-height: 48px; }
.hero-title, .premium-title, .ai-services__title, .ai-project__title { text-wrap: balance; }
.premium-title { max-width: min(96vw, 1100px); }
.ai-services__container, .ai-project__container, .footer-container { width: min(100%, 1680px); margin-inline: auto; }
.ai-services__card-face { border-color: var(--skill-border); }
.ai-services__card { transition: box-shadow .3s ease, translate .3s ease; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .ai-services__card:hover { translate: 0 -4px; filter: drop-shadow(0 18px 30px rgba(90,64,196,.12)); }
}
.ai-services__card a, .footer a { text-underline-offset: 4px; }
.contactpg-form { box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.contactpg-form input, .contactpg-form textarea, .contactpg-form select { min-height: 44px; }
.contactpg-form :where(input,textarea,select):focus-visible { border-color: #a89cff; }
.footer { padding-bottom: 24px; }
.footer-about { padding-right: 22px; }
.footer a[href^="tel:"], .footer a[href^="mailto:"] { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.footer a[href^="tel:"]:hover, .footer a[href^="mailto:"]:hover { color: #c5baff; }

/* Accessible standalone 404 — do not return a blank app shell on unknown URLs. */
.skill-not-found {
  min-height: 76svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 65px;
  color: #fff;
  background: radial-gradient(circle at 50% 40%,#302a65,transparent 55%),#0b0b12;
}
.skill-not-found .skill-eyebrow { text-transform: uppercase; letter-spacing: .2em; color: #b9b0ff; font-size: 14px; }
.skill-not-found h1 { font-size: clamp(2.5rem,8vw,6rem); line-height: 1.1; margin: 20px 0; }
.skill-not-found p { max-width: 620px; color: #c1c1cf; }
.skill-not-found .skill-404-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 18px; }
.skill-not-found .skill-404-actions a { display: inline-flex; align-items: center; min-height: 46px; border-radius: 50px; border: 1px solid #9287ef; padding: 12px 24px; color: #fff; text-decoration: none; background: #4339a9; }
.skill-not-found .skill-404-actions a:first-child { background: transparent; }

@media (max-width: 991px) {
  .footer-container { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
  .footer-about { padding-right: 0; }
  .nav-item .dropdown { max-height: 60vh; }
}
@media (max-width: 600px) {
  .hero-section { padding-top: 130px; min-height: auto; padding-bottom: 50px; }
  .hero-title { font-size: clamp(27px,8vw,43px); }
  .premium-title { font-size: clamp(24px,7vw,39px); padding-inline: 14px; white-space: normal; }
  .hero-description { font-size: 16px; margin-top: 24px; padding-inline: 8px; }
  .hero-buttons { margin-top: 24px; gap: 12px; }
  .footer-container { grid-template-columns: minmax(0,1fr); }
  .footer { padding: 45px 20px 22px; }
  .ai-services .ai-services__grid.row { gap: 20px !important; }
  .contactpg-form { padding: 20px; }
}
/* Touch devices cannot hover/flip service cards: show both sides normally. */
@media (hover: none), (pointer: coarse) {
  .custom-cursor-dot { display: none !important; }
  .ai-services .ai-services__card,
  .ai-services .ai-services__card-inner { height: auto !important; min-height: 0 !important; perspective: none !important; }
  .ai-services .ai-services__card-inner { display: flex !important; flex-direction: column !important; transform: none !important; }
  .ai-services .ai-services__card-face { position: relative !important; grid-area: auto !important; inset: auto !important; transform: none !important; backface-visibility: visible !important; height: auto !important; min-height: 0 !important; }
  .ai-services .ai-services__card:hover .ai-services__card-inner,
  .ai-services .ai-services__card:focus-within .ai-services__card-inner { transform: none !important; }
  .ai-services .ai-services__card-back { border-top: 1px solid var(--skill-border); }
  .ai-services .ai-services__image-section { flex-basis: auto !important; min-height: 0 !important; height: auto !important; max-height: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .custom-cursor-dot { display: none !important; }
  .marquee-track { animation: none !important; }
}

.noOpenings { padding: 32px 24px; margin: 22px auto 38px; max-width: 900px; border: 1px solid rgba(165,155,255,.35); border-radius: 18px; color: #dedafa; background: rgba(93,71,192,.13); line-height: 1.7; text-align: center; }

.skill-value-points .stat-box { min-width: 0; }
.skill-value-points .stat-box h3 { font-size: clamp(1.1rem,2vw,1.55rem); font-weight: 650; margin: 0 0 10px; }
.skill-value-points .stat-box p { max-width: 340px; margin-inline: auto; line-height: 1.6; }

/* v1.9.2 — Spicy Zaika page previews. */
.sc-home-browser img.sc-zaika-photo,.scw-shot-window img.sc-zaika-photo,.skill-project-visual img.sc-zaika-photo{background:radial-gradient(ellipse at center,#3e2420,#16151d 75%);object-fit:contain;}
.sc-zaika-links{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0;}
.sc-zaika-links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;color:#e0d9ff;background:#211d36;border:1px solid #554b83;border-radius:10px;text-decoration:none;}
.sc-zaika-links a:hover,.sc-zaika-links a:focus-visible{border-color:#a99bff;color:#fff;}

/* Keep decorative case-study auras within the page width. */
.skill-case-study .sc-case-hero{overflow:hidden;}

/* v1.9.3: readable named screenshot thumbnails. */
.sc-case-thumb span{max-width:100%;white-space:normal;line-height:1.3;}
.sc-zaika-disclosure{font-size:.9rem;opacity:.8;}

/* Accessible initial content if JavaScript is unavailable; React replaces it on mount. */
.sc-seo-initial { max-width: 980px; margin: 0 auto; padding: clamp(24px,5vw,72px); background: #0d1220; color: #f3f5ff; line-height: 1.7; min-height: 55vh; font-family: "DM Sans",sans-serif; }
.sc-seo-initial h1 {font-size:clamp(28px,4vw,50px);line-height:1.2;color:#fff;margin:26px 0 14px;}
.sc-seo-initial h2,.sc-seo-initial h3 {color:#fff;margin-top:1.5em;}
.sc-seo-initial a {color:#bcb9ff;text-decoration:underline;}
.sc-seo-initial img {max-width:100%;height:auto;}
.sc-seo-initial ul,.sc-seo-initial ol {padding-left:1.5em;}
