/* ============================================
   WISEMEDIA — Shared CSS
   TCS-inspired, mobile-first, conversion-focused
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Manrope', sans-serif; color: #1a1a2e; background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ─── CSS VARIABLES ─── */
:root {
  --navy:       #0A2463;
  --navy-mid:   #0D2D77;
  --navy-light: #1a3a8f;
  --accent:     #E63946;
  --sky:        #0077B6;
  --teal:       #2A9D8F;
  --gold:       #F4A261;
  --green:      #22C55E;
  --white:      #ffffff;
  --off-white:  #F5F7FA;
  --light-grey: #EFF1F4;
  --border:     #E2E8F0;
  --border-2:   #D1D9E6;
  --text-dark:  #0D1B3E;
  --text-mid:   #4A5578;
  --text-light: #8492A6;
  --shadow-sm:  0 2px 8px rgba(10,36,99,0.06);
  --shadow-md:  0 8px 24px rgba(10,36,99,0.10);
  --shadow-lg:  0 16px 48px rgba(10,36,99,0.13);
  --radius:     10px;
  --radius-lg:  14px;
}

/* ─── CURSOR: Normal system cursor ─── */
*, *::before, *::after { cursor: auto; }
a, button, [role="button"], label, select, input[type="submit"], input[type="button"] { cursor: pointer; }
input, textarea { cursor: text; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ─── TOP ACCENT BAR ─── */
.hero-bar { height: 4px; background: linear-gradient(90deg, var(--navy) 0%, var(--sky) 35%, var(--teal) 65%, var(--gold) 100%); }

/* ─── NAVIGATION ─── */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(10,36,99,0.10); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo img { height: 64px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-mid); font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--navy); border-radius: 2px;
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu { display: none; padding: 16px 24px 20px; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--text-dark); font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { margin-top: 16px; display: block; text-align: center; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--navy); color: #fff;
  padding: 12px 24px; border-radius: 7px;
  font-weight: 700; font-size: .875rem; letter-spacing: .01em;
  transition: all .25s; display: inline-block; text-decoration: none; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  border: 2px solid var(--navy); color: var(--navy);
  padding: 10px 22px; border-radius: 7px;
  font-weight: 700; font-size: .875rem;
  transition: all .25s; display: inline-block; text-decoration: none; background: transparent; cursor: pointer;
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-accent {
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 7px;
  font-weight: 700; font-size: .875rem;
  transition: all .25s; display: inline-block; text-decoration: none; border: none; cursor: pointer;
}
.btn-accent:hover { background: #c0303c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,.3); }
.btn-green {
  background: var(--teal); color: #fff;
  padding: 12px 24px; border-radius: 7px;
  font-weight: 700; font-size: .875rem;
  transition: all .25s; display: inline-block; text-decoration: none; border: none; cursor: pointer;
}
.btn-green:hover { background: #228a7d; transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; display: block; }

/* ─── SECTION TAG ─── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,36,99,0.07); color: var(--navy);
  padding: 5px 14px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ─── SECTION HEADERS ─── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag { margin-bottom: 14px; }
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800; color: var(--text-dark); line-height: 1.18; margin-bottom: 12px;
}
.section-head p { color: var(--text-mid); font-size: .975rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ─── CARDS ─── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all .3s;
}
.card:hover {
  border-color: rgba(10,36,99,0.22);
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
}

/* ─── MARQUEE ─── */
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.marquee-wrap { overflow: hidden; }
.marquee-track { display: flex; gap: 1.25rem; animation: marquee 28s linear infinite; width: max-content; }
.marquee-item {
  white-space: nowrap; padding: 8px 20px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; font-size: .8rem; font-weight: 700; color: var(--text-mid);
}

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.68,0,1.2), transform .7s cubic-bezier(.22,.68,0,1.2); }
.reveal.visible { opacity: 1; transform: none; }

/* Stagger variants */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

/* Slide from left/right */
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* Scale in */
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .6s ease, transform .6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Counter number glow on animate */
.counter-anim { transition: color .3s; }

/* Card hover lift */
.svc-card, .feat-card, .result-card, .team-card, .value-card {
  will-change: transform;
}

/* Shimmer loading skeleton for images */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Smooth page transitions */
body { animation: pageFadeIn .4s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Floating badge bounce */
.h-badge, .h-badge2, .h-badge3 { will-change: transform; }

/* Service card icon micro-bounce */
.svc-card:hover .svc-icon,
.feat-card:hover .feat-icon { animation: iconBounce .4s ease; }
@keyframes iconBounce { 0%,100%{transform:translateY(0) scale(1)} 40%{transform:translateY(-4px) scale(1.12)} }

/* CTA button pulse */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
  border-radius: inherit;
}
.btn-primary:hover::after { background: rgba(255,255,255,.08); }

/* ─── FOOTER ─── */
.site-footer { background: #fff; color: var(--text-dark); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo img { height: 64px; width: auto; margin-bottom: 16px; display: block; }
.footer-desc { color: var(--text-mid); font-size: .85rem; line-height: 1.75; max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .22s; flex-shrink: 0;
  font-size: 0; /* hide text labels, use SVG/img instead */
}
.footer-social-btn svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }
.footer-social-btn.fb  { background: #1877F2; }
.footer-social-btn.fb:hover  { background: #1464d3; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(24,119,242,.35); }
.footer-social-btn.ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social-btn.ig:hover  { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,39,67,.35); }
.footer-social-btn.tw  { background: #000; }
.footer-social-btn.tw:hover  { background: #222; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.footer-social-btn.li  { background: #0A66C2; }
.footer-social-btn.li:hover  { background: #0958a8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(10,102,194,.35); }
.footer-col-title {
  color: var(--text-dark); font-weight: 800; font-size: .8rem;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-link {
  color: var(--text-mid); font-size: .85rem; line-height: 1.6;
  text-decoration: none; display: block; margin-bottom: 10px; transition: color .2s;
}
.footer-link:hover { color: var(--navy); }
.footer-bottom {
  padding: 22px 0;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
}
.footer-copy { color: var(--text-light); font-size: .8rem; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-light); font-size: .8rem; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--navy); }
.footer-seo-strip { padding: 16px 0 14px; border-top: 1px solid var(--border); }
.footer-seo-strip p { color: var(--text-light); font-size: .72rem; line-height: 1.6; text-align: center; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--navy); padding: 56px 24px 52px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.18;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: var(--light-grey); padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; align-items: center; font-size: .8rem; }
.breadcrumb-inner a { color: var(--navy); text-decoration: none; font-weight: 600; }
.breadcrumb-inner span { color: var(--text-light); }

/* ─── POLICY CONTENT ─── */
.policy-wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.policy-wrap h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin: 36px 0 12px; }
.policy-wrap h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.policy-wrap p { color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; font-size: .925rem; }
.policy-wrap ul { margin: 10px 0 16px 20px; }
.policy-wrap ul li { color: var(--text-mid); line-height: 1.8; font-size: .925rem; margin-bottom: 6px; }
.policy-wrap .policy-date { font-size: .8rem; color: var(--text-light); margin-bottom: 32px; }
.policy-wrap .policy-box {
  background: var(--off-white); border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 8px; padding: 20px 24px; margin: 24px 0;
}

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ─── FOUNDER SECTION RESPONSIVE ─── */
@media(max-width:900px){
  #founder section > div > div,
  div[style*="grid-template-columns:340px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  section > div > div[style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center;
  }
  section > div > div[style*="grid-template-columns:auto 1fr"] > div:first-child {
    margin: 0 auto;
  }
}

/* ─── PARTNER CARDS RESPONSIVE ─── */
@media(max-width:1024px){
  #partner > div > div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; max-width: 480px; margin: 0 auto; }
}

/* ─── HOVER LIFT ON CARDS ─── */
.svc-card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.svc-card:hover {
  border-color: rgba(10,36,99,.18) !important;
  box-shadow: 0 12px 36px rgba(10,36,99,.1) !important;
  transform: translateY(-4px) !important;
}

/* ─── MASCOT W MARK ─── */
.wm-mascot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: rgba(10,36,99,.07);
  border-radius: 12px; transition: all .25s;
}
.wm-mascot:hover { background: rgba(10,36,99,.13); transform: rotate(-5deg) scale(1.08); }

/* ─── PROCESS SECTION ─── */
@media(max-width:768px){
  #process > div > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}
@media(max-width:480px){
  #process > div > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── TRADEMARK BADGE ─── */
.tm-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(10,36,99,.06); border: 1px solid rgba(10,36,99,.12);
  color: var(--navy); padding: 4px 12px; border-radius: 100px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ─── FOOTER: white bg overrides ─── */
.footer-seo-strip p { color: var(--text-light) !important; }

/* ─── PARTNER CARDS: hover border ─── */
#partner-grid > div:hover {
  border-color: rgba(10,36,99,.2) !important;
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-5px) !important;
}
#partner-grid > div { transition: all .3s; }

/* ─── NAV: added Partner link styling ─── */
.nav-links a[href*="partner"] { color: var(--accent); }
.nav-links a[href*="partner"]:hover { color: #c0303c; }

/* ─── AI SECTION RESPONSIVE ─── */
@media(max-width:1024px){
  #ai-approach [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  #ai-approach [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media(max-width:768px){
  #ai-approach [style*="grid-template-columns:repeat(3,1fr)"],
  #ai-approach [style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  #ai-approach [style*="padding:40px 48px"] { padding: 28px 24px !important; }
  #ai-approach [style*="flex-direction:row"] { flex-direction: column !important; }
}

/* ─── CAREERS SECTION RESPONSIVE ─── */
@media(max-width:768px){
  #careers [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
