/*
Theme Name:   AIForesight360 Child
Theme URI:    https://aiforesight360.com
Description:  Premium editorial child theme for AI Foresight 360, built on Astra. Custom sticky glass header with elegant orbit wordmark. Zero JavaScript — performance-first.
Author:       AIForesight360
Author URI:   https://aiforesight360.com
Template:     astra
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  aiforesight360-child
*/

/* =====================================================
   AI FORESIGHT 360 — BRAND TOKENS
   Colors aap ke logo (#4F75FF) se derive kiye gaye hain.
   Yahan change karein — poori site update hogi.
   ===================================================== */
:root {
  --aif-primary:      #4F75FF;
  --aif-primary-deep: #2E4FE0;
  --aif-primary-soft: #8FA8FF;
  --aif-primary-glow: #6A8CFF;

  --aif-bg:      #FFFFFF;
  --aif-card:    #F8FAFC;
  --aif-border:  #E2E8F0;
  --aif-heading: #0F172A;
  --aif-body:    #475569;

  --aif-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
              "Helvetica Neue", Arial, sans-serif;
  --aif-container: 1240px;
  --aif-header-h:  80px;
}

/* =====================================================
   STICKY GLASS HEADER
   ===================================================== */
.aif-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--aif-border);
  font-family: var(--aif-font);
}

/* Top hairline gradient — premium detail */
.aif-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--aif-primary-soft) 25%,
    var(--aif-primary) 50%,
    var(--aif-primary-soft) 75%,
    transparent 100%);
  opacity: 0.85;
}

.aif-header__inner {
  max-width: var(--aif-container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--aif-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =====================================================
   LOGO + ELEGANT ORBIT WORDMARK
   ===================================================== */
.aif-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}

.aif-brand__img {
  height: 48px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 2px 3px rgba(79, 117, 255, 0.28))
    drop-shadow(0 6px 14px rgba(46, 79, 224, 0.15));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.aif-brand:hover .aif-brand__img,
.aif-brand:focus-visible .aif-brand__img {
  transform: translateY(-2px) scale(1.04);
  filter:
    drop-shadow(0 4px 6px rgba(79, 117, 255, 0.34))
    drop-shadow(0 10px 22px rgba(46, 79, 224, 0.20));
}

.aif-wm { display: flex; flex-direction: column; }

.aif-wm__row { display: flex; align-items: center; gap: 9px; }

.aif-wm__name {
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--aif-heading);
  white-space: nowrap;
  transition: color 0.3s ease;
  line-height: 1.1;
}

/* --- "360" gradient + slow shimmer (refined pill) --- */
.aif-wm__360 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 11px;
  isolation: isolate;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 117, 255, 0.10), rgba(46, 79, 224, 0.06));
}

.aif-wm__360 { font-size: 1.36rem; }

.aif-wm__360 .num {
  font-size: 1em;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  background: linear-gradient(
    115deg,
    var(--aif-primary-deep) 0%,
    var(--aif-primary)      35%,
    #B9C8FF                 50%,
    var(--aif-primary)      65%,
    var(--aif-primary-deep) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aif-shimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(46, 79, 224, 0.30));
}

@keyframes aif-shimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* --- Clean pill ring --- */
.aif-wm__360 .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(79, 117, 255, 0.30);
  border-radius: 999px;
  z-index: -1;
  transition: border-color 0.3s ease;
}

/* --- Orbiting glowing dot: poore pill ke gird circular path,
       digits ke upar se kabhi nahi guzarta. em-based hai is liye
       mobile par khud chhota ho jata hai. --- */
.aif-wm__360 .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5em;
  height: 2.5em;
  margin: -1.25em 0 0 -1.25em;
  animation: aif-orbit 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.aif-wm__360 .orbit i {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #DCE5FF, var(--aif-primary) 60%, var(--aif-primary-deep));
  box-shadow:
    0 0 5px rgba(79, 117, 255, 0.90),
    0 0 12px rgba(79, 117, 255, 0.45);
}

@keyframes aif-orbit {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.aif-brand:hover .aif-wm__name { color: var(--aif-primary-deep); }
.aif-brand:hover .aif-wm__360 .ring { border-color: rgba(79, 117, 255, 0.50); }

/* --- Tagline --- */
.aif-wm__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.aif-wm__tag .hair {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--aif-primary), transparent);
}

.aif-wm__tag .txt {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: #93A5D6;
  white-space: nowrap;
}

/* =====================================================
   NAVIGATION — center
   (Astra ki menu CSS ke against hard resets — white box,
    borders, shadows sab force-remove)
   ===================================================== */
.aif-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.aif-header .aif-nav ul,
.aif-header .aif-nav ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 2px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.aif-header .aif-nav li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  list-style: none !important;
}

.aif-header .aif-nav a {
  display: inline-block;
  padding: 9px 14px !important;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--aif-body) !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: none !important;
  background: transparent;
  white-space: nowrap;
  line-height: 1.4;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.aif-header .aif-nav a:hover,
.aif-header .aif-nav a:focus-visible,
.aif-header .aif-nav .current-menu-item > a,
.aif-header .aif-nav .current_page_item > a {
  color: var(--aif-primary) !important;
  background: rgba(79, 117, 255, 0.08);
}

/* =====================================================
   CONTACT US BUTTON — shine sweep
   ===================================================== */
.aif-header__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aif-primary), var(--aif-primary-glow) 55%, var(--aif-primary-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 4px 14px rgba(79, 117, 255, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.aif-header__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: aif-shine 5s ease-in-out infinite;
}

@keyframes aif-shine {
  0%, 60%   { left: -80%; }
  80%, 100% { left: 130%; }
}

.aif-header__cta:hover,
.aif-header__cta:focus-visible {
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 8px 22px rgba(79, 117, 255, 0.48);
}

/* =====================================================
   MOBILE — dropdown panel (pure CSS, zero JS)
   ===================================================== */
.aif-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aif-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--aif-border);
  background: var(--aif-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.aif-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--aif-heading);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.aif-nav-toggle:focus-visible + .aif-burger {
  outline: 2px solid var(--aif-primary);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .aif-burger { display: inline-flex; }
  .aif-header__cta { display: none; }

  .aif-nav {
    position: absolute;
    top: calc(var(--aif-header-h) + 2px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--aif-border);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }

  .aif-header .aif-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 20px !important;
    width: 100%;
  }

  .aif-header .aif-nav a {
    display: block;
    padding: 13px 16px !important;
    border-radius: 12px;
    font-size: 1rem;
  }

  .aif-nav__cta-mobile a {
    margin-top: 10px;
    text-align: center;
    color: #FFFFFF !important;
    font-weight: 600;
    background: linear-gradient(135deg, var(--aif-primary), var(--aif-primary-deep)) !important;
    box-shadow: 0 4px 14px rgba(79, 117, 255, 0.35);
  }

  .aif-nav-toggle:checked ~ .aif-nav { max-height: 560px; }

  .aif-nav-toggle:checked ~ .aif-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .aif-nav-toggle:checked ~ .aif-burger span:nth-child(2) { opacity: 0; }
  .aif-nav-toggle:checked ~ .aif-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 1121px) {
  .aif-nav__cta-mobile { display: none; }
}

@media (max-width: 600px) {
  :root { --aif-header-h: 68px; }
  .aif-header__inner { padding: 0 16px; gap: 12px; }
  .aif-brand__img { height: 40px; }
  .aif-wm__name { font-size: 1.08rem; }
  .aif-wm__360 { font-size: 1.08rem; }
  .aif-wm__tag .txt { font-size: 0.5rem; letter-spacing: 0.24em; }
}

@media (max-width: 390px) {
  .aif-wm__tag { display: none; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .aif-wm__360 .num,
  .aif-wm__360 .orbit,
  .aif-header__cta::before,
  .aif-brand__img,
  .aif-header__cta,
  .aif-nav,
  .aif-burger span {
    animation: none;
    transition: none;
  }
}
