/* ═══════════════════════════════════════════════════════════
   SK & Associates — Global Stylesheet v3
   Contains: Variables, Animations, Nav, Mobile Responsive
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #0d1b2a; --deep: #112240;
  --gold: #c8972a; --gold-light: #e8b84b;
  --cream: #f8f5ef; --white: #ffffff;
  --muted: #8a9ab0; --accent-red: #b22222;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --ease-in-out: cubic-bezier(0.77,0,0.175,1);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(28px);}  to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn   { from{opacity:0;} to{opacity:1;} }
@keyframes floatUp  { 0%{transform:translateY(100vh) translateX(0);opacity:0;} 10%{opacity:.6;} 90%{opacity:.3;} 100%{transform:translateY(-20vh) translateX(var(--drift,30px));opacity:0;} }
@keyframes gridMove { 0%{transform:translate(0,0);} 100%{transform:translate(80px,80px);} }
@keyframes marquee  { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
@keyframes skaPulse { 0%,100%{box-shadow:0 6px 24px rgba(200,151,42,.5),0 0 0 0 rgba(200,151,42,.3);} 50%{box-shadow:0 6px 24px rgba(200,151,42,.5),0 0 0 12px rgba(200,151,42,0);} }
@keyframes skaBlip  { 0%,100%{opacity:1;} 50%{opacity:.3;} }
@keyframes skaTyping{ 0%,60%,100%{transform:translateY(0);opacity:.4;} 30%{transform:translateY(-7px);opacity:1;} }
@keyframes skaMsgIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }

  /* Disable 3D card flip on mobile - use tap instead */
  .team-card { height: 360px !important; perspective: none !important; }
  .team-card-inner { transform: none !important; transition: none !important; }
  .team-card-back { display: none !important; }
  .team-card-front { position: relative !important; backface-visibility: visible !important; height: 100% !important; }

  @keyframes menuSlide{ from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }

.reveal       { opacity:0; transform:translateY(30px);  transition:opacity .7s ease,transform .7s ease; }
.reveal-left  { opacity:0; transform:translateX(-30px); transition:opacity .7s ease,transform .7s ease; }
.reveal-right { opacity:0; transform:translateX(30px);  transition:opacity .7s ease,transform .7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity:1; transform:translate(0,0); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--cream); }
::-webkit-scrollbar-thumb { background:var(--gold); border-radius:3px; }

/* ── MARQUEE ── */
.marquee-wrapper { display:flex; gap:24px; animation:marquee 40s linear infinite; width:max-content; }
.marquee-wrapper:hover { animation-play-state:paused; }

/* ════════════════════════════════
   DESKTOP NAV (>768px)
   ════════════════════════════════ */
.nav-toggle { display:none; }

/* ════════════════════════════════
   MOBILE BREAKPOINT ≤768px
   ════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAV ── */
  nav {
    padding: 0 16px !important;
    height: 60px !important;
  }
  .logo { font-size: 16px !important; }

  /* Hamburger button */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px; height: 42px;
    background: none; border: none;
    cursor: pointer; gap: 5px;
    flex-shrink: 0; z-index: 1100;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform .35s var(--ease-out), opacity .25s, width .3s;
    transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity:0; width:0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav links — hidden by default, slide down when .open */
  .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important; right: 0 !important;
    background: var(--navy) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height .45s var(--ease-out) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.4) !important;
    border-top: 1px solid rgba(200,151,42,.2) !important;
    display: flex !important;
    list-style: none !important;
    z-index: 1050 !important;
  }
  .nav-links.open {
    max-height: 500px !important;
    padding: 8px 0 16px !important;
    animation: menuSlide .3s var(--ease-out) !important;
  }
  .nav-links li { width: 100% !important; }
  .nav-links a {
    display: block !important;
    padding: 15px 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.85) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    text-decoration: none !important;
    transition: background .2s, color .2s, padding-left .2s !important;
    letter-spacing: .03em !important;
  }
  .nav-links a:hover {
    background: rgba(200,151,42,.1) !important;
    color: var(--gold) !important;
    padding-left: 32px !important;
  }
  .nav-links a::after { display:none !important; }
  .nav-links .nav-cta {
    margin: 12px 20px 4px !important;
    padding: 13px 20px !important;
    text-align: center !important;
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    border-bottom: none !important;
    display: block !important;
  }
  .nav-links .nav-cta:hover {
    background: var(--gold-light) !important;
    padding-left: 20px !important;
  }

  /* ── GENERAL SECTIONS ── */
  section, .section,
  .services-intro, .service-blocks, .approach-section,
  .clientele-section, .team-section, .insights-main,
  .media-section, .cta-section, .offices-section,
  .page-hero { padding-left: 18px !important; padding-right: 18px !important; }

  .page-hero { padding-top: 96px !important; padding-bottom: 48px !important; }
  .page-hero h1 { font-size: clamp(26px,7.5vw,38px) !important; line-height:1.2 !important; }
  .page-hero p  { font-size: 14px !important; margin-top:12px !important; max-width:100% !important; }

  /* ── HERO (index) ── */
  .hero { padding: 96px 18px 60px !important; min-height: 100svh; align-items: flex-start; }
  .hero h1 { font-size: clamp(28px,8vw,42px) !important; }
  .hero p  { font-size: 14.5px !important; max-width:100% !important; margin-bottom:28px !important; }
  .hero-buttons { flex-direction: column !important; gap: 12px !important; }
  .btn-primary, .btn-outline { width:100% !important; justify-content:center !important; padding:14px 20px !important; }
  .hero-stats {
    position: static !important;
    flex-direction: row !important; flex-wrap: wrap !important;
    margin-top: 32px !important; gap: 10px !important;
  }
  .stat-item {
    flex: 1 1 calc(50% - 10px) !important; min-width:110px !important;
    text-align:center !important; padding:12px 14px !important;
    border-right: none !important; border-bottom: 3px solid var(--gold) !important;
  }
  .stat-num { font-size:26px !important; }
  .scroll-indicator { display:none !important; }

  /* ── ALL 2-COL GRIDS → 1 COL ── */
  .about-grid, .story-grid, .intro-grid,
  .contact-main, .founder-section, .offices-grid,
  .approach-grid, .form-row, .hours-grid {
    display: block !important;
  }
  .about-grid > *, .story-grid > *,
  .intro-grid > *, .approach-grid > * {
    margin-bottom: 24px !important;
  }

  /* ── 3-COL GRIDS → 1 COL ── */
  .values-grid, .services-grid, .services-full-grid,
  .insights-grid, .media-grid, .client-types,
  .info-bars, .footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── 4-COL GRIDS → 2 COL ── */
  .team-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .values-strip {
    grid-template-columns: 1fr 1fr !important;
    padding: 0 !important;
  }
  .values-strip > *, .vs-item {
    padding: 28px 16px !important;
  }

  /* ── PEOPLE PAGE — FOUNDER ── */
  .founder-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: unset !important;
  }
  .founder-visual {
    min-height: 380px !important;
    width: 100% !important;
  }
  .founder-monogram { font-size:160px !important; }
  .founder-frame {
    width: 200px !important;
    height: 270px !important;
  }
  .founder-frame-placeholder .initials-circle {
    width:56px !important; height:56px !important; font-size:20px !important;
  }
  /* GMB panel on mobile */
  .founder-visual > div[style*="position:absolute;bottom:40px"] {
    left: 14px !important; right: 14px !important; bottom: 16px !important;
  }
  .founder-info {
    padding: 36px 18px !important;
    width: 100% !important;
  }
  .founder-name-big { font-size: 28px !important; }
  .founder-blockquote { font-size: 15px !important; padding: 18px 20px !important; }
  .founder-stats-row { flex-direction: row !important; }
  .f-stat { padding: 12px 10px !important; }
  .f-stat-num { font-size: 20px !important; }
  .creds-row { gap:8px !important; }
  .cred { font-size: 10px !important; padding: 5px 10px !important; }

  /* ── CONTACT PAGE ── */
  .contact-left, .contact-right { padding: 36px 18px !important; }
  .info-bars { grid-template-columns: 1fr !important; }

  /* ── SERVICE CARDS ── */
  .svc-card, .service-item { padding: 28px 20px !important; }
  .value-card { padding: 32px 20px !important; }

  /* ── INSIGHTS/MEDIA ── */
  .insight-card .insight-img { height: 180px !important; }

  /* ── CTA SECTIONS ── */
  .cta-section { padding: 60px 18px !important; text-align:center; }
  .cta-section h2 { font-size: clamp(24px,7vw,36px) !important; }

  /* ── FOOTER ── */
  footer { padding: 40px 18px 20px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom {
    flex-direction: column !important; gap:8px !important;
    text-align:center !important; font-size:12px !important;
  }

  /* ── INLINE PADDINGS from inline style="padding:...60px" ── */
  [style*="padding:80px 60px"], [style*="padding: 80px 60px"],
  [style*="padding:60px 60px"], [style*="padding: 60px 60px"],
  [style*="padding:100px 60px"], [style*="padding: 100px 60px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* ── AI CHAT — MOBILE ── */
  #ska-ai-btn {
    right: 14px !important; bottom: 16px !important;
    width: 50px !important; height: 50px !important;
  }
  #ska-ai-window {
    right: 8px !important; left: 8px !important;
    width: auto !important; bottom: 74px !important;
    height: 74vh !important; max-height: 540px !important;
    border-radius: 14px !important;
  }
  #ska-ai-header { padding: 12px 14px !important; }
  .ska-header-name { font-size: 13px !important; }
  #ska-ai-messages { padding: 12px 10px !important; }
  .ska-bubble { font-size: 13px !important; padding: 9px 11px !important; }
  #ska-quick-replies { padding: 6px 8px 2px !important; gap: 5px !important; }
  .ska-qr { font-size: 10.5px !important; padding: 5px 9px !important; }
  #ska-wa-btn { margin: 4px 8px 2px !important; padding: 8px 10px !important; font-size: 12px !important; }
  #ska-ai-input-row { padding: 8px 10px !important; }
  #ska-ai-input { font-size: 13px !important; padding: 8px 12px !important; }
}

/* ── VERY SMALL (≤400px) ── */
@media (max-width: 400px) {
  .team-grid  { grid-template-columns: 1fr !important; }
  .values-strip { grid-template-columns: 1fr !important; }
  .stat-item  { flex: 1 1 100% !important; }
  .page-hero h1, .hero h1 { font-size: 26px !important; }
  .founder-frame { width: 170px !important; height: 230px !important; }
}

/* Prevent image long-press popup on mobile */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.team-card img { pointer-events: none; }

/* ════════════════════════════
   GLOBAL MOBILE FIXES
════════════════════════════ */

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; }

@media (max-width: 768px) {
  /* ── Typography scale down ── */
  h1 { font-size: clamp(28px, 7vw, 52px) !important; }
  h2 { font-size: clamp(22px, 5.5vw, 38px) !important; }
  h3 { font-size: clamp(18px, 4.5vw, 28px) !important; }

  /* ── Section padding ── */
  section, .section { padding: 48px 20px !important; }
  .container, .content-wrap { padding: 0 20px !important; }

  /* ── Founder name on homepage ── */
  .founder-name { font-size: 22px !important; white-space: normal !important; word-break: break-word !important; }
  .founder-name-big { font-size: 24px !important; }
  .founder-hero { flex-direction: column !important; }
  .founder-visual { width: 100% !important; min-height: 320px !important; max-height: 380px !important; }
  .founder-info { width: 100% !important; padding: 28px 20px !important; }

  /* ── Grid layouts → single column ── */
  .services-grid, .svc-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .stats-grid, .vs-row { grid-template-columns: 1fr 1fr !important; }
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .team-card { height: 440px !important; }
  .team-photo-wrap { height: 240px !important; }

  /* ── Contact page layout ── */
  .contact-grid, .contact-wrap { 
    grid-template-columns: 1fr !important; 
    display: flex !important;
    flex-direction: column !important;
  }
  .contact-left, .contact-right { width: 100% !important; padding: 32px 20px !important; }
  .info-bars { grid-template-columns: 1fr !important; }

  /* ── Hero sections ── */
  .hero-section, .page-hero { padding: 80px 20px 40px !important; min-height: auto !important; }
  .hero-content { max-width: 100% !important; }
  .hero-stats, .stat-row { display: none; }
  .hero-stats-mobile { display: grid !important; }

  /* ── Buttons ── */
  .btn-gold, .btn-outline { padding: 12px 20px !important; font-size: 13px !important; }
  .hero-cta { flex-direction: column !important; gap: 10px !important; }

  /* ── Gallery ── */
  .gallery-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

  /* ── Insights grid ── */
  .insights-grid { grid-template-columns: 1fr !important; }

  /* ── Footer ── */
  .footer-grid, footer .grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer-brand { grid-column: 1 / -1 !important; }
}

@media (max-width: 480px) {
  section, .section { padding: 36px 16px !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .team-card { height: auto !important; min-height: 460px !important; }
  .gallery-grid { grid-template-columns: 1fr !important; }
  .footer-grid, footer .grid { grid-template-columns: 1fr !important; }
  .hero-cta .btn-outline { display: none; }
}
.powered-by {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    color: #ffffff;
    background: #062b27; /* Footer ka color */
}

.powered-by strong {
    color: #ffffff;
    font-weight: 700;
}