/*
Theme Name: AskDigiLab
Theme URI: https://www.askdigilab.com
Author: AskDigiLab
Description: Digital Marketing Training — Vibrant Dark Blueish-Black theme, mobile-first, fully responsive.
Version: 3.1.0
License: GNU General Public License v2 or later
Text Domain: askdigilab
Tags: digital-marketing, training, education, mobile-first, dark-navy
*/

/* =============================================
   DESIGN TOKENS — Vibrant Dark Blueish-Black
   Edit :root to restyle the entire site
============================================= */
:root {
  /* Primary brand — vibrant dark blueish-black */
  --brand-950:  #03080F;   /* near black */
  --brand-900:  #070F1C;   /* deepest navy */
  --brand-800:  #0C1D36;   /* dark navy */
  --brand-700:  #112F55;   /* mid navy */
  --brand-600:  #1B4B8A;   /* vibrant navy-blue */
  --brand-500:  #2260B4;   /* vivid blue */
  --brand-400:  #3B82F6;   /* electric blue accent */
  --brand-300:  #60A5FA;   /* bright accent */
  --brand-200:  #93C5FD;   /* light accent */
  --brand-100:  #BFDBFE;   /* soft accent */
  --brand-50:   #EFF6FF;   /* wash */

  /* Text colours */
  --ink:        #060D18;
  --ink-mid:    #0F1E30;
  --muted:      #3B5A7E;
  --muted-light:#6B89A8;

  /* Surfaces */
  --white:       #FFFFFF;
  --surface:     #F1F6FD;
  --surface-2:   #E3EEFB;
  --border:      #BFCFE6;
  --border-light:#D9E7F5;

  /* Gradients — vibrant dark blueish-black */
  --grad:       linear-gradient(135deg, #03080F 0%, #0C1D36 42%, #1B4B8A 100%);
  --grad-vivid: linear-gradient(135deg, #070F1C 0%, #112F55 50%, #2260B4 100%);
  --grad-soft:  linear-gradient(135deg, #EFF6FF 0%, #BFDBFE 100%);
  --grad-accent:linear-gradient(135deg, #1B4B8A 0%, #3B82F6 100%);
  --grad-hero:  linear-gradient(135deg, #03080F 0%, #070F1C 30%, #0C1D36 65%, #1B4B8A 100%);

  /* Social */
  --wa-green:  #25D366;
  --yt-red:    #FF0000;
  --ig-grad:   linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);

  /* Typography */
  --font-h: 'Poppins', sans-serif;
  --font-b: 'DM Sans', sans-serif;

  /* Spacing & radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:  0 2px 10px rgba(3,8,15,.08);
  --sh-md:  0 6px 28px rgba(3,8,15,.14);
  --sh-lg:  0 18px 60px rgba(3,8,15,.22);
  --sh-blue:0 8px 32px rgba(59,130,246,.25);

  --nav:  68px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* overflow-x moved to html — body overflow-x:hidden clips position:fixed on Android Chrome */
  cursor: none; /* custom cursor active */
}
@media (hover: none) {
  body { cursor: auto; } /* restore on touch devices */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-400); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-h);
  line-height: 1.2;
  color: var(--ink-mid);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; }
p  { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
strong { color: var(--ink-mid); }

/* =============================================
   CUSTOM CURSOR
   (hidden on touch/mobile devices)
============================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--brand-400);
  box-shadow: 0 0 10px rgba(59,130,246,.8);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid rgba(59,130,246,.55);
  background: rgba(59,130,246,.06);
  transition: width .2s var(--ease), height .2s var(--ease),
              border-color .2s, opacity .3s;
}
.cursor-ring.hover {
  width: 52px; height: 52px;
  border-color: var(--brand-400);
  background: rgba(59,130,246,.1);
}
.cursor-dot.click { transform: translate(-50%,-50%) scale(0.4); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =============================================
   LAYOUT
============================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.text-center { text-align: center; }
.page-content { padding-top: var(--nav); }

.sec-label {
  font-family: var(--font-h); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand-400); margin-bottom: 8px;
}
.sec-title {
  font-size: clamp(1.5rem,3.5vw,2.2rem); color: var(--ink-mid); margin-bottom: 12px;
  font-family: var(--font-h); font-weight: 800;
}
.sec-sub {
  color: var(--muted); max-width: 540px;
  margin: 0 auto 44px; font-size: .97rem;
}

/* =============================================
   HEADER / NAV
============================================= */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 24px rgba(3,8,15,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: var(--nav);
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--grad-vivid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 900; font-size: 1.1rem;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(3,8,15,.35);
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-h); font-weight: 800; font-size: 1.1rem; color: var(--brand-900); }
.logo-text span { color: var(--brand-500); }

/* Desktop nav — just the links */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
  font-family: var(--font-h); font-weight: 600; font-size: .86rem;
  color: var(--muted); padding: 8px 13px; border-radius: var(--r-full);
  transition: all .2s; display: block; white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--brand-50); color: var(--brand-700);
}

/* WhatsApp CTA — sits directly in .header-inner as its own flex child */
.nav-cta-btn {
  background: var(--grad-vivid); color: #fff; border: none;
  font-family: var(--font-h); font-weight: 700; font-size: .84rem;
  padding: 10px 20px; border-radius: var(--r-full);
  transition: all .25s; flex-shrink: 0;
  box-shadow: var(--sh-blue);
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; white-space: nowrap;
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(59,130,246,.38); color: #fff; }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent; flex-shrink: 0; order: 3;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #ffffff; border-radius: 2px; transition: .25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  /* Show hamburger, hide WhatsApp CTA button */
  .hamburger   { display: flex; }
  .nav-cta-btn { display: none !important; }

 /* Header: fixed height, dark background */
  #site-header {
    height: 64px;
    background: linear-gradient(135deg, #03080F 0%, #0C1D36 55%, #1B4B8A 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(59,130,246,.22) !important;
  }

  /* Inner: full height, logo left, hamburger right, side padding */
  .header-inner {
    height: 64px;
    min-height: unset;
    padding: 0 16px;
    gap: 0;
    align-items: center;
    justify-content: space-between;
  }

  /* Dropdown menu — slides down from below header */
  .main-nav {
    display: block;
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); transition: transform .3s var(--ease);
    box-shadow: var(--sh-lg); z-index: 9998;
  }
  .main-nav.open  { transform: translateY(0); }
  .main-nav ul    { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a     { display: block; padding: 14px 16px; border-radius: var(--r-md); font-size: .95rem; }
  .main-nav::after { content: ''; display: block; }
}
@media (max-width: 900px) {
  .main-nav.open .mobile-wa-btn  { display: flex; }
  .main-nav.open .nav-wa-mobile  { display: flex !important; }
}

/* Extra-small phones */
@media (max-width: 400px) {
  .header-inner { padding: 0 12px; }
  .logo-text    { font-size: .82rem; }
  .logo-icon    { width: 30px; height: 30px; font-size: .82rem; }
  .site-logo img { max-height: 30px; }
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-full);
  font-family: var(--font-h); font-weight: 700; font-size: .88rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all .25s var(--ease); text-decoration: none; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--grad-vivid); color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(59,130,246,.4); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-600); border-color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.38); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-wa {
  background: var(--wa-green); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1dbd5a; color: #fff; transform: translateY(-2px); }

/* =============================================
   CARDS
============================================= */
.card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--sh-sm);
  padding: 30px; transition: all .3s var(--ease);
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-5px); border-color: var(--brand-300); }

/* =============================================
   BADGE
============================================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--r-full);
  font-family: var(--font-h); font-weight: 700; font-size: .73rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.badge-dark  { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.badge-white { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* =============================================
   GRID
============================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media(max-width:880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width:580px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* =============================================
   HERO — Vibrant Dark Blueish-Black
============================================= */
.hero {
  background: var(--grad-hero);
  padding: 100px 0 88px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 40%, rgba(59,130,246,.12) 0%, transparent 70%),
    radial-gradient(circle 500px at 5% 90%, rgba(27,75,138,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 740px; margin: 0 auto; }
.hero h1 { color: #fff; margin: 20px 0 18px; text-shadow: 0 2px 20px rgba(3,8,15,.4); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg,#fff 20%, #93C5FD 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 560px; margin: 0 auto 38px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.hero-pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full); padding: 8px 18px;
  font-family: var(--font-h); font-weight: 600; font-size: .78rem; color: rgba(255,255,255,.92);
  display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px);
}

/* =============================================
   SERVICE CARDS
============================================= */
.svc-card {
  background: #fff; border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 36px 28px 30px;
  transition: all .3s var(--ease); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent); opacity: 0; transition: .3s;
}
.svc-card:hover { box-shadow: var(--sh-lg); transform: translateY(-7px); }
.svc-card:hover::after { opacity: 1; }
.svc-icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--grad-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px; border: 1px solid var(--brand-100);
}
.svc-card h3 { color: var(--ink-mid); margin-bottom: 8px; }
.svc-tag {
  display: inline-block; padding: 3px 12px; border-radius: var(--r-full);
  background: var(--brand-50); color: var(--brand-600);
  font-size: .72rem; font-family: var(--font-h); font-weight: 700;
  margin-bottom: 12px; border: 1px solid var(--brand-100);
}
.svc-card p { font-size: .9rem; flex: 1; margin-bottom: 18px; }
.svc-link {
  font-family: var(--font-h); font-weight: 700; font-size: .83rem;
  color: var(--brand-600); background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; padding: 0; transition: gap .2s;
  text-decoration: none;
}
.svc-card:hover .svc-link { gap: 9px; }

/* =============================================
   WHATSAPP BANNER
============================================= */
.wa-banner {
  background: linear-gradient(135deg,#E8F5E9,#F0FFF4);
  border: 1px solid #A5D6A7; border-radius: var(--r-xl);
  padding: 28px 34px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(37,211,102,.1);
}
.wa-left { display: flex; align-items: center; gap: 14px; }
.wa-icon-wrap {
  width: 50px; height: 50px; background: var(--wa-green); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.3); flex-shrink: 0;
}
.wa-banner h4 { color: #1B5E20; font-family: var(--font-h); font-size: .98rem; margin-bottom: 4px; }
.wa-banner p { color: #2E7D32; font-size: .86rem; margin: 0; }

/* =============================================
   SOCIAL FRAMES
============================================= */
.social-frames-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media(max-width:600px) { .social-frames-row { grid-template-columns: 1fr; } }
.social-frame { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--border); }
.frame-head { padding: 13px 18px; display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: .88rem; color: #fff; }
.yt-head-bg { background: linear-gradient(90deg,#CC0000,#FF0000); }
.ig-head-bg { background: var(--ig-grad); }
.frame-body { padding: 24px 18px; text-align: center; background: #fafafa; }
.frame-body .fi { font-size: 2.2rem; margin-bottom: 10px; }
.frame-body p { font-size: .82rem; margin-bottom: 16px; }

/* Audience cards */
.aud-card {
  background: #fff; border-radius: var(--r-xl); padding: 34px 24px;
  border: 1px solid var(--border); text-align: center;
  box-shadow: var(--sh-sm); transition: all .3s;
}
.aud-card:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); border-color: var(--brand-300); }
.aud-emoji { font-size: 2.8rem; margin-bottom: 14px; display: block; }

/* =============================================
   MODULE CARDS
============================================= */
.module-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 24px 22px;
  box-shadow: var(--sh-sm); transition: all .3s;
}
.module-card:hover { box-shadow: var(--sh-md); border-color: var(--brand-300); transform: translateY(-4px); }
.module-tag {
  display: inline-block; background: var(--brand-50); color: var(--brand-600);
  border-radius: var(--r-full); padding: 3px 12px;
  font-size: .72rem; font-family: var(--font-h); font-weight: 700; margin-bottom: 10px;
  border: 1px solid var(--brand-100);
}
.module-card h3 { font-size: .98rem; color: var(--ink-mid); margin-bottom: 7px; }
.module-card p { font-size: .86rem; margin-bottom: 10px; }
.lang-row { display: flex; gap: 5px; }
.lang-chip {
  background: var(--surface-2); color: var(--brand-600);
  padding: 2px 10px; border-radius: var(--r-full);
  font-size: .7rem; font-family: var(--font-h); font-weight: 700;
}

/* =============================================
   GALLERY FRAME
============================================= */
.gallery-frame { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--border); }
.gallery-head {
  background: var(--grad-vivid); color: #fff;
  padding: 14px 22px; font-family: var(--font-h); font-weight: 700;
  display: flex; align-items: center; gap: 9px; font-size: .88rem;
}
.gallery-body { padding: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 10px; }
.gallery-item {
  aspect-ratio: 1; background: var(--brand-50); border: 1.5px dashed var(--brand-100);
  border-radius: var(--r-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  font-size: .72rem; color: var(--muted); font-family: var(--font-h); font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.gallery-item:hover { background: var(--brand-100); border-color: var(--brand-400); color: var(--brand-700); }

/* =============================================
   CERTIFICATE
============================================= */
.cert-wrap {
  background: #fff; border-radius: var(--r-xl);
  border: 2.5px solid var(--brand-200);
  max-width: 660px; margin: 0 auto; box-shadow: var(--sh-lg); overflow: hidden;
}
.cert-inner {
  padding: 50px 40px 38px;
  background: linear-gradient(135deg,var(--brand-50) 0%,#fff 60%,var(--brand-50) 100%);
  text-align: center; position: relative;
}
.cert-inner::before {
  content: ''; position: absolute; inset: 11px;
  border: 1.5px solid var(--brand-100); border-radius: var(--r-lg); pointer-events: none;
}
.cert-crown { font-size: 2.8rem; margin-bottom: 8px; }
.cert-eyebrow {
  font-size: .7rem; font-family: var(--font-h); font-weight: 700;
  color: var(--brand-600); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.cert-name {
  font-size: clamp(1.7rem,4vw,2.4rem);
  font-family: Georgia,serif; font-style: italic; color: var(--ink-mid); margin: 8px 0 4px;
}
.cert-course { font-size: .9rem; color: var(--muted); max-width: 340px; margin: 0 auto 26px; }
.cert-footer-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 18px; border-top: 1px solid var(--brand-100);
}
.cert-sig { text-align: center; }
.cert-line { width: 100px; height: 1px; background: var(--ink-mid); margin: 0 auto 5px; }
.cert-sig-label { font-size: .7rem; color: var(--muted); font-family: var(--font-h); }
.cert-seal {
  width: 56px; height: 56px; border: 2.5px solid var(--brand-600); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .52rem; color: var(--brand-600); font-family: var(--font-h);
  font-weight: 800; text-align: center; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase;
}

/* =============================================
   CHATBOT
============================================= */
.bot-wrap { max-width: 720px; margin: 0 auto; }
.bot-ava {
  width: 82px; height: 82px; background: var(--grad-vivid); border-radius: 50%;
  margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; box-shadow: 0 8px 36px rgba(3,8,15,.3); border: 4px solid #fff;
}
.chat-win {
  background: #fff; border-radius: var(--r-xl);
  border: 1px solid var(--border); box-shadow: var(--sh-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.chat-msgs {
  flex: 1; padding: 22px; overflow-y: auto; max-height: 360px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg,var(--brand-50) 0%,#fff 100%);
}
.msg { display: flex; gap: 9px; max-width: 88%; }
.msg.user-msg { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .86rem;
}
.bot-msg .msg-ava { background: var(--grad-vivid); color: #fff; }
.user-msg .msg-ava { background: var(--brand-50); }
.msg-bubble { padding: 11px 15px; border-radius: 17px; font-size: .86rem; line-height: 1.55; }
.bot-msg .msg-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--ink); }
.user-msg .msg-bubble { background: var(--grad-vivid); color: #fff; border-bottom-right-radius: 4px; }
.quick-questions {
  padding: 10px 14px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface);
}
.quick-q {
  background: #fff; border: 1px solid var(--brand-100); color: var(--brand-600);
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: .76rem; font-family: var(--font-h); font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.quick-q:hover { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.chat-input-row {
  padding: 13px 15px; border-top: 1px solid var(--border);
  display: flex; gap: 9px; align-items: center; background: #fff;
}
.chat-input-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--r-full);
  padding: 11px 18px; font-size: .86rem; font-family: var(--font-b);
  outline: none; transition: border .2s; color: var(--ink); background: #fff;
}
.chat-input-row input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad-vivid);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; flex-shrink: 0; box-shadow: var(--sh-blue);
}
.chat-send-btn:hover { transform: scale(1.1); }
.typing-dots { display: flex; gap: 4px; padding: 10px 14px; }
.typing-dots span {
  width: 6px; height: 6px; background: var(--brand-400); border-radius: 50%;
  animation: typeBnc 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typeBnc { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-6px);opacity:1} }

/* =============================================
   FAQ
============================================= */
.faq-item { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); margin-bottom: 9px; overflow: hidden; box-shadow: var(--sh-sm); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-h); font-weight: 600; font-size: .92rem; color: var(--ink-mid);
  text-align: left; gap: 10px;
}
.faq-q:hover { background: var(--brand-50); }
.faq-icon { font-size: 1.1rem; transition: transform .3s; flex-shrink: 0; color: var(--brand-500); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 22px; font-size: .86rem; color: var(--muted); transition: max-height .35s var(--ease),padding .3s; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* =============================================
   DIGIMATION / CONSULTING
============================================= */
.cons-hero { background: var(--grad-hero); padding: 88px 0 72px; text-align: center; position: relative; overflow: hidden; }
.cons-hero h1 { color: #fff; margin-bottom: 12px; }
.cons-hero p { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto; }
.pills-row { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin: 34px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 9px 20px; font-size: .86rem; font-family: var(--font-h); font-weight: 600;
  color: var(--brand-600); box-shadow: var(--sh-sm); transition: all .25s; cursor: default;
}
.pill:hover { background: var(--brand-800); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }
.step-card { background: #fff; border-radius: var(--r-xl); padding: 30px 22px; text-align: center; box-shadow: var(--sh-sm); border: 1px solid var(--border); transition: all .3s; }
.step-card:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); }
.step-num {
  width: 50px; height: 50px; background: var(--grad-vivid); border-radius: 50%;
  font-family: var(--font-h); font-weight: 900; font-size: 1.15rem; color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  box-shadow: var(--sh-blue);
}

/* =============================================
   CONTACT FORM
============================================= */
.contact-form-wrap {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 44px 40px;
  border: 1px solid var(--border); max-width: 660px; margin: 0 auto;
}
@media(max-width:540px) { .contact-form-wrap { padding: 28px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-h); font-weight: 600; font-size: .8rem; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 12px 16px; font-size: .88rem; font-family: var(--font-b);
  color: var(--ink); background: var(--surface); outline: none;
  transition: border .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-group textarea { resize: vertical; min-height: 108px; }
.form-success { display: none; text-align: center; padding: 42px 20px; }

/* =============================================
   PAGE HERO (inner pages)
============================================= */
.page-hero { background: var(--grad-hero); padding: 80px 0 64px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 500px; margin: 0 auto; }

/* =============================================
   PRIVACY POLICY PAGE
============================================= */
.privacy-page { padding: 80px 0 100px; background: var(--white); }
.privacy-container { max-width: 840px; margin: 0 auto; padding: 0 24px; }

.privacy-intro {
  background: var(--grad-vivid);
  border-radius: var(--r-xl);
  padding: 44px 44px 38px;
  margin-bottom: 48px;
  position: relative; overflow: hidden;
}
.privacy-intro::before {
  content: '🔒';
  position: absolute; right: 32px; top: 28px;
  font-size: 4rem; opacity: .1;
}
.privacy-intro h1 {
  color: #fff; font-size: clamp(1.8rem,4vw,2.5rem);
  margin-bottom: 10px;
}
.privacy-intro p { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }
.privacy-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px;
}
.privacy-meta span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9); padding: 5px 14px; border-radius: var(--r-full);
  font-family: var(--font-h); font-weight: 600; font-size: .78rem;
}

.privacy-toc {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-lg); padding: 28px 32px; margin-bottom: 40px;
}
.privacy-toc h3 {
  font-size: .85rem; color: var(--brand-700); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 14px; font-family: var(--font-h);
}
.privacy-toc ol {
  padding-left: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
}
.privacy-toc li { color: var(--brand-600); font-size: .88rem; font-family: var(--font-h); font-weight: 600; }
.privacy-toc li a { color: var(--brand-600); transition: color .2s; }
.privacy-toc li a:hover { color: var(--brand-400); }
@media(max-width:520px) { .privacy-toc ol { grid-template-columns: 1fr; } }

.privacy-section {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 34px 36px;
  margin-bottom: 20px; box-shadow: var(--sh-sm);
  scroll-margin-top: calc(var(--nav) + 20px);
}
.privacy-section-icon {
  width: 44px; height: 44px; background: var(--grad-soft);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px; border: 1px solid var(--brand-100);
}
.privacy-section h2 {
  font-size: 1.1rem; color: var(--ink-mid); margin-bottom: 14px;
  font-family: var(--font-h); font-weight: 800;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--border-light);
}
.privacy-section p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.privacy-section ul {
  padding-left: 18px; margin-bottom: 12px;
}
.privacy-section ul li {
  color: var(--muted); font-size: .9rem; margin-bottom: 5px; list-style: disc;
}

.privacy-contact-box {
  background: var(--grad-vivid); border-radius: var(--r-xl);
  padding: 38px 40px; text-align: center; margin-top: 44px;
}
.privacy-contact-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.privacy-contact-box p { color: rgba(255,255,255,.78); margin-bottom: 20px; }
.privacy-contact-box a { color: var(--brand-200); text-decoration: underline; }

@media(max-width:600px) {
  .privacy-section { padding: 24px 22px; }
  .privacy-intro { padding: 32px 24px; }
  .privacy-contact-box { padding: 30px 24px; }
}

/* =============================================
   FOOTER
============================================= */
#site-footer { background: var(--brand-950); color: rgba(255,255,255,.78); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 52px; }
@media(max-width:880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .86rem; margin-top: 14px; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.social-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  transition: all .2s; cursor: pointer; text-decoration: none;
}
.social-icon:hover { transform: translateY(-3px); border-color: var(--brand-400); box-shadow: 0 6px 20px rgba(59,130,246,.25); }
.si-fb { background: #1877F2; } .si-yt { background: #FF0000; }
.si-ig { background: var(--ig-grad); } .si-li { background: #0A66C2; } .si-wa { background: #25D366; }
.footer-contact { margin-top: 20px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .84rem; margin-bottom: 8px; transition: color .2s; }
.footer-contact a:hover { color: var(--brand-200); }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .8rem; font-family: var(--font-h); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,.55); font-size: .84rem; margin-bottom: 10px; transition: color .2s; cursor: pointer; }
.footer-links a:hover { color: var(--brand-200); padding-left: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,.38); font-size: .78rem; margin: 0; }
.footer-bottom a { color: var(--brand-300); transition: color .2s; }
.footer-bottom a:hover { color: var(--brand-200); }

/* =============================================
   SCROLL TO TOP
============================================= */
#scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 998;
  width: 44px; height: 44px; background: var(--grad-vivid);
  color: #fff; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: var(--sh-blue); opacity: 0; transform: translateY(10px); transition: all .3s;
}
#scroll-top.show { opacity: 1; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(59,130,246,.45); }

/* =============================================
   MOBILE ENHANCEMENTS (iPhone, Android, Tablet)
============================================= */

/* Safe areas for iPhone X+ notch */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  #site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  #site-footer { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

/* Tablet (768px–1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero { padding: 88px 0 76px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  :root { --nav: 64px; } /* matches fixed header height */
  .container { padding: 0 16px; }
  .hero { padding: 76px 0 64px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero p { font-size: .95rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-pills { gap: 7px; }
  .hero-pill { padding: 6px 12px; font-size: .72rem; }

  .btn { padding: 12px 22px; font-size: .84rem; }
  .sec-title { font-size: clamp(1.3rem, 6vw, 1.8rem); }

  /* Stack service cards */
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }

  .wa-banner { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .wa-banner .btn-wa { width: 100%; justify-content: center; }

  .social-frames-row { grid-template-columns: 1fr; }

  .cert-wrap { margin: 0 4px; }
  .cert-inner { padding: 34px 22px 28px; }
  .cert-footer-row { flex-direction: column; align-items: center; gap: 16px; }

  .chat-msgs { max-height: 280px; }
  .chat-input-row { padding: 10px 12px; }

  .privacy-toc ol { grid-template-columns: 1fr; }
  .privacy-intro { padding: 28px 20px; }
  .privacy-section { padding: 22px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #scroll-top { bottom: 18px; right: 18px; }
}

/* Small phones (≤390px — iPhone SE, Galaxy S) */
@media (max-width: 390px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .svc-card { padding: 26px 20px; }
  .module-card { padding: 20px 18px; }
  .contact-form-wrap { padding: 22px 16px; }
}

/* =============================================
   WORDPRESS DEFAULTS
============================================= */
.entry-content a { color: var(--brand-600); }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; color: var(--muted); }
.wp-block-image img { border-radius: var(--r-md); }

/* =============================================
   PAGE HERO — all inner pages
============================================= */
.page-hero {
  background: var(--grad-hero);
  padding: 90px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59,130,246,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }

/* =============================================
   CONTACT FORM — Digimation
============================================= */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  padding: 44px 40px;
  max-width: 780px;
  margin: 0 auto;
}
.digi-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-mid);
  font-family: var(--font-h);
}
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: .9rem;
  font-family: var(--font-b);
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.contact-form-wrap textarea { min-height: 130px; resize: vertical; }

/* =============================================
   MOBILE — All pages responsive
============================================= */
@media (max-width: 640px) {
  .page-hero        { padding: 72px 0 52px; }
  .page-hero h1     { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .page-hero p      { font-size: .95rem; }

  .digi-form-grid   { grid-template-columns: 1fr; gap: 14px; }
  .contact-form-wrap { padding: 26px 18px; }

  .cert-wrap        { margin: 0 4px; }
  .cert-inner       { padding: 34px 22px 28px; }
  .cert-footer-row  { flex-direction: column; align-items: center; gap: 16px; }

  .chat-msgs        { max-height: 280px; }
  .chat-input-row   { padding: 10px 12px; }
}

/* =============================================
   TABLET — All pages responsive
============================================= */
@media (min-width: 641px) and (max-width: 1024px) {
  .page-hero          { padding: 80px 0 60px; }
  .contact-form-wrap  { padding: 36px 30px; }
  .digi-form-grid     { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   MOBILE NAV — handled in main nav section above
============================================= */

/* =============================================
   WORDPRESS PAGE / SINGLE content
============================================= */
.page-content { min-height: 40vh; }
.entry-content, .post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  line-height: 1.8;
}
@media (max-width: 640px) {
  .entry-content, .post-content { padding: 32px 16px 48px; }
}

@media print {
  #site-header, #site-footer, .btn, #scroll-top, .cursor-dot, .cursor-ring { display: none !important; }
}

/* =============================================
   MOBILE HEADER — v3.1.0
   All rules inside max-width: 900px.
   Desktop is 100% untouched.
============================================= */
@media (max-width: 900px) {

  /* ─── Dark gradient header bar ─────────── */
  #site-header,
  #site-header.scrolled {
    height: 72px !important;
    background: linear-gradient(135deg, #03080F 0%, #0C1D36 55%, #1B4B8A 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(59,130,246,.22) !important;
    box-shadow: 0 4px 24px rgba(3,8,15,.5) !important;
  }

  /* ─── Inner row layout ──────────────────── */
  .header-inner {
    height: 72px !important;
    min-height: unset !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  /* ─── Logo wrapper ──────────────────────── */
  .site-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;   /* never clip the image */
    text-decoration: none !important;
  }

  /* WordPress custom logo anchor */
  .site-logo .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    line-height: 0 !important;
  }

  /* Logo image — all possible selectors WP might output */
  .site-logo img,
  .site-logo .custom-logo-link img,
  .site-logo img.custom-logo,
  a.site-logo img,
  a.custom-logo-link img {
    max-height: 40px !important;
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Fallback text logo on dark bg */
  .logo-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: .95rem !important;
    flex-shrink: 0 !important;
  }
  .logo-text {
    font-size: .95rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
  }
  .logo-text span { color: #93C5FD !important; }

  /* ─── Hamburger — white bars on dark header  */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    padding: 10px 8px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    -webkit-tap-highlight-color: transparent !important;
    order: 99 !important;
  }
  .hamburger span {
    display: block !important;
    width: 24px !important;
    height: 2.5px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: .25s !important;
  }
  .hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg) !important; }
  .hamburger.active span:nth-child(2) { opacity: 0 !important; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg) !important; }

  /* ─── Hide desktop WhatsApp CTA ─────────── */
  .nav-cta-btn { display: none !important; }

 /* ─── Nav dropdown tray ─────────────────── */
  .main-nav {
    display: block !important;
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    padding: 8px 16px 24px !important;
    border-top: 2px solid var(--brand-400) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 16px 48px rgba(3,8,15,.18) !important;
    
    /* THE FIX: Push dropdown behind the header background */
    z-index: -1 !important; 
    
    /* ADDED POLISH: Fades out so shadows don't bleed when closed */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-110%) !important;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s, visibility .3s !important;
    overflow-y: auto !important;
    max-height: calc(100dvh - 64px) !important;
  }
  
  .main-nav.open { 
    transform: translateY(0) !important; 
    opacity: 1 !important;
    visibility: visible !important;
  }

  .main-nav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 0 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .main-nav ul li { width: 100% !important; }

  .main-nav ul li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-family: var(--font-h) !important;
    font-weight: 600 !important;
    font-size: .93rem !important;
    color: var(--ink-mid) !important;
    border-bottom: 1px solid var(--border-light) !important;
    text-decoration: none !important;
    transition: background .18s, color .18s !important;
  }
  .main-nav ul li:last-of-type > a { border-bottom: none !important; }

  .main-nav ul li > a::after {
    content: '›' !important;
    font-size: 1.25rem !important;
    color: var(--muted-light) !important;
    line-height: 1 !important;
  }
  .main-nav ul li > a:hover {
    background: var(--brand-50) !important;
    color: var(--brand-700) !important;
  }
  .main-nav .current-menu-item > a,
  .main-nav .current_page_item > a {
    background: var(--brand-50) !important;
    color: var(--brand-700) !important;
    font-weight: 700 !important;
  }

  /* ─── WhatsApp inside open nav ───────────── */
  .nav-wa-mobile { display: none !important; }
  .main-nav.open .nav-wa-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 14px 22px !important;
    border-radius: var(--r-full) !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    gap: 8px !important;
    background: var(--grad-vivid) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(37,211,102,.25) !important;
    text-decoration: none !important;
  }

  /* ─── WordPress admin bar offset (when logged in) */
  .admin-bar #site-header { top: 46px !important; }
  .admin-bar .main-nav    { top: calc(46px + 72px) !important; }
}

/* ─── Very small phones ≤ 390px ────────────── */
@media (max-width: 390px) {
  .header-inner { padding: 0 12px !important; }
  .site-logo img,
  .site-logo .custom-logo-link img,
  img.custom-logo {
    max-height: 34px !important;
    max-width: 130px !important;
  }
  .logo-text { font-size: .84rem !important; }
  .logo-icon { width: 30px !important; height: 30px !important; }
}
