/* Mediaholic Nepal brand override. Loaded after main.css to override Pinwheel defaults. */
:root {
  --brand-primary: #008E97;
  --brand-accent: #F58220;
  --brand-primary-dark: #006B72;
  --brand-accent-dark: #C9690A;
}

/* primary (teal) — !important + background-image:none to beat Pinwheel pink gradient */
.bg-primary,
.btn-primary {
  background-color: var(--brand-primary) !important;
  background-image: none !important;
}
.btn-primary {
  color: #fff !important;
  border-color: var(--brand-primary) !important;
}
.btn-primary:hover {
  background-color: var(--brand-primary-dark) !important;
  background-image: none !important;
  border-color: var(--brand-primary-dark) !important;
  box-shadow: 0 8px 24px rgba(0, 142, 151, 0.35) !important;
}
.text-primary { color: var(--brand-primary) !important; }
.border-primary { border-color: var(--brand-primary) !important; }
.btn-outline-primary { color: var(--brand-primary) !important; border-color: var(--brand-primary) !important; background-image: none !important; }
.btn-outline-primary:hover { background-color: var(--brand-primary) !important; background-image: none !important; color: #fff !important; }

/* Kill Pinwheel pink→yellow gradient everywhere — retint to brand teal→orange */
.bg-gradient {
  background-image: linear-gradient(184.78deg, var(--brand-primary) 7.64%, var(--brand-accent) 120.07%) !important;
}

/* primary alpha helpers */
.bg-primary\/10 { background-color: rgba(0, 142, 151, 0.10) !important; }
.hover\:bg-primary\/75:hover { background-color: rgba(0, 142, 151, 0.75) !important; }
.hover\:bg-primary\/80:hover { background-color: rgba(0, 142, 151, 0.80) !important; }
.after\:border-primary\/50::after { border-color: rgba(0, 142, 151, 0.50) !important; }

/* ring helpers (forms etc) */
.focus\:ring-primary:focus,
.focus-within\:ring-primary:focus-within { --tw-ring-color: var(--brand-primary) !important; }

/* banner / hero gradient bg uses primary indirectly via .bg-gradient — recolor */
.banner { background: linear-gradient(135deg, #008E97 0%, #00B6A1 60%, #F58220 130%) !important; color: #fff; }
.banner h1, .banner p, .banner * { color: #fff; }
.banner .btn-white { background-color: #fff !important; color: var(--brand-primary) !important; }
.banner .btn-white:hover { background-color: var(--brand-accent) !important; color: #fff !important; }
.banner .btn-outline-white { color: #fff !important; border-color: #fff !important; }
.banner .btn-outline-white:hover { background-color: #fff !important; color: var(--brand-primary) !important; }

/* swap default Pinwheel link/hover blues used in nav */
.nav-link.active,
.nav-link:hover { color: var(--brand-primary) !important; }

/* selection */
::selection { background-color: var(--brand-primary); color: #fff; }

/* accent helpers */
.bg-accent\/15 { background-color: rgba(245, 130, 32, 0.15) !important; }

/* tame Pinwheel decorative banner-shape blob on mobile + general */
.banner-shape { max-width: 20% !important; opacity: 0.45 !important; }
@media (max-width: 768px) { .banner-shape { display: none !important; } }

/* navbar logo wrap */
.navbar > div:first-child a { display: inline-flex; align-items: center; gap: 0.5rem; }

/* CTA strip stacks cleanly on mobile */
@media (max-width: 640px) {
  .container .rounded-2xl.bg-dark { padding: 1.5rem !important; }
  .container .rounded-2xl.bg-dark h3 { font-size: 1.25rem !important; line-height: 1.3 !important; }
}

/* drop legacy review carousel styling on cards */
.section .swiper-pagination { display: none !important; }

/* ── Floating WhatsApp button ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff !important;
  padding: 0.875rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.18);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.65), 0 6px 16px rgba(0, 0, 0, 0.22);
  color: #fff !important;
}
.wa-float svg { flex-shrink: 0; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 640px) {
  .wa-float-label { display: none; }
  .wa-float { padding: 0.875rem; }
}

/* ── Services mega-menu — 2-col desktop, 1-col mobile ──────────────── */
.nav-services-dropdown { position: relative; }

/* Invisible bridge: fills the gap between nav-link and the floating panel.
   Keeps :hover active while the cursor crosses from the link onto the card. */
.nav-services-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.25rem;
  display: none;
}
.nav-services-dropdown:hover::after,
.nav-services-dropdown:focus-within::after { display: block; }

.nav-services-dropdown .services-megamenu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 36rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.18), 0 8px 20px -5px rgba(0,0,0,0.08);
  border: 1px solid #eef2f4;
  padding: 0.75rem;
  z-index: 60;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.nav-services-dropdown:hover .services-megamenu,
.nav-services-dropdown:focus-within .services-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.services-megamenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}
.services-megamenu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.services-megamenu-item:hover {
  background: rgba(0, 142, 151, 0.07);
  transform: translateX(2px);
}
.services-megamenu-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(0, 142, 151, 0.12);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.services-megamenu-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1a1a;
  line-height: 1.25;
}
.services-megamenu-sub {
  display: block;
  font-size: 0.75rem;
  color: #777;
  line-height: 1.35;
  margin-top: 0.125rem;
}
.services-megamenu-footer {
  display: block;
  margin-top: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-top: 1px solid #eef2f4;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-align: center;
}
.services-megamenu-footer:hover { background: rgba(0, 142, 151, 0.05); border-radius: 0 0 0.625rem 0.625rem; }

/* mobile: stack vertically, full width — always visible when parent open */
@media (max-width: 1023px) {
  .nav-services-dropdown::after { display: none; }
  .nav-services-dropdown .services-megamenu {
    position: static;
    transform: none;
    width: 100%;
    top: auto;
    margin-top: 0.25rem;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .services-megamenu-grid {
    grid-template-columns: 1fr;
  }
  .services-megamenu-item {
    padding: 0.5rem 0.75rem;
  }
  .services-megamenu-sub { display: none; }
}

/* Bigger section eyebrow pill — replaces the tiny `bg-primary/10 px-4 py-1 text-sm` chips.
   Apply by adding class .section-eyebrow to the existing span. */
.section-eyebrow,
.bg-primary\/10.text-primary {
  background-color: rgba(0, 142, 151, 0.10) !important;
  color: var(--brand-primary) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem !important;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--brand-primary);
}

/* Section h2s — slightly larger + tighter */
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* hero CTA buttons — side-by-side on >=640px, stacked w/ gap on mobile. */
.hero-cta-group {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.hero-cta-group .btn { white-space: nowrap; }
@media (max-width: 639px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; gap: 0.75rem; }
}

/* hero eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}
.hero-eyebrow-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(245,130,32,0.25);
}

/* hero h1 polish */
.hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-h1-accent {
  background: linear-gradient(120deg, #fff 0%, #ffe7c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.65;
}

/* hero trust strip */
.hero-trust {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: rgba(255,255,255,0.95);
}
.hero-trust-item { display: flex; flex-direction: column; line-height: 1.1; }
.hero-trust-num { font-size: 1.5rem; font-weight: 700; }
.hero-trust-lbl { font-size: 0.75rem; opacity: 0.85; letter-spacing: 0.02em; }
.hero-trust-divider { width: 1px; height: 2rem; background: rgba(255,255,255,0.3); }
@media (max-width: 480px) {
  .hero-trust { gap: 1rem; }
  .hero-trust-num { font-size: 1.25rem; }
}

/* hero right-side visual — sprint board + metrics, intentionally stacked */
.hero-visual {
  position: relative;
  margin-top: 2rem;
  min-height: 440px;
  max-width: 28rem;
  margin-left: auto;
  margin-right: 0;
  padding-bottom: 5rem;     /* room for overlapping metrics card */
}
@media (max-width: 991px) {
  .hero-visual { display: none; }
}
.hero-visual-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.25), 0 8px 20px -5px rgba(0,0,0,0.1);
  padding: 1.25rem 1.5rem;
  color: #1f2937;
  font-size: 0.875rem;
}
.hero-visual-card-1 {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-left: auto;
}
.hero-visual-card-1 .hvc-head {
  display: flex; align-items: center; gap: 0.4rem;
  padding-bottom: 0.75rem; margin-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f4;
}
.hvc-dot { width: 0.6rem; height: 0.6rem; border-radius: 9999px; }
.hvc-dot-r { background: #ef4444; }
.hvc-dot-y { background: #f59e0b; }
.hvc-dot-g { background: #10b981; }
.hvc-title { margin-left: 0.5rem; font-size: 0.7rem; color: #94a3b8; font-family: ui-monospace, SFMono-Regular, monospace; }
.hvc-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.85rem; }
.hvc-row i { width: 1rem; text-align: center; font-size: 0.95rem; }
.hvc-row-done { color: #16a34a; }
.hvc-row-done i { color: #16a34a; }
.hvc-row-prog { color: #1f2937; }
.hvc-row-prog i { color: #f59e0b; animation: hvc-spin 1.6s linear infinite; }
.hvc-row-todo { color: #94a3b8; }
.hvc-row-todo i { color: #cbd5e1; }
@keyframes hvc-spin { to { transform: rotate(360deg); } }

.hero-visual-card-2 {
  position: absolute;
  z-index: 4;             /* sits above sprint card, same plane as logo mark */
  right: -1.5rem;
  bottom: -1rem;
  width: 17rem;
  font-size: 0.8rem;
  padding: 1rem 1.25rem;
  transform: rotate(5deg);
  transition: transform 0.3s ease;
}
.hero-visual-card-2:hover { transform: rotate(0deg) scale(1.02); }
.hvc2-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.hvc2-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  color: #334155;
  font-size: 0.8rem;
  white-space: nowrap;
}
.hvc2-pill {
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.hero-visual-mark {
  position: absolute;
  z-index: 4;             /* floats above both cards */
  top: -1.75rem;
  right: -1.25rem;
  width: 4.5rem;
  height: 4.5rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.65rem;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.3), 0 4px 10px -2px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}
.hero-visual-mark:hover { transform: rotate(0deg) scale(1.05); }
.hero-visual-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* decorative dots behind cards — adds depth */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 1rem; right: -1rem;
  width: 8rem; height: 8rem;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  z-index: 0;
  border-radius: 1rem;
  opacity: 0.5;
}

/* banner padding tighten */
.banner { padding-top: 4rem !important; padding-bottom: 5rem !important; }
@media (min-width: 992px) {
  .banner { padding-top: 5rem !important; padding-bottom: 6rem !important; }
}
