/* =========================================================
   MinhWeb Theme v2.1.0 - Zero-Specificity Scoped Base CSS
   (Elementor Safe + 100% Tailwind Utility Compatible)
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body.minhweb-body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F4F9FD;
  color: #0C2D48;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Zero-specificity (:where = 0,0,0) scoped reset ONLY inside .mw-scope */
:where(.mw-scope, .mw-scope *, .mw-scope ::before, .mw-scope ::after) {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #E2E8F0;
}

:where(.mw-scope h1, .mw-scope h2, .mw-scope h3, .mw-scope h4, .mw-scope h5, .mw-scope h6, .mw-scope p, .mw-scope ul, .mw-scope ol, .mw-scope figure, .mw-scope blockquote) {
  margin: 0;
  padding: 0;
}

:where(.mw-scope ul, .mw-scope ol) {
  list-style: none;
}

:where(.mw-scope a) {
  color: inherit;
  text-decoration: none;
}

:where(.mw-scope img, .mw-scope svg) {
  display: block;
  max-width: 100%;
}

:where(.mw-scope button) {
  background-color: transparent;
  background-image: none;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

:where(.mw-scope table) {
  border-collapse: collapse;
  border-color: inherit;
}

/* Guarantee hidden works on Material Icons without breaking responsive classes like hidden md:flex */
.mw-scope .material-symbols-outlined.hidden {
  display: none !important;
}

/* WordPress admin bar sticky header offset */
body.admin-bar .mw-sticky-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .mw-sticky-header {
    top: 46px;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar .mw-sticky-header {
    top: 0;
  }
}

/* Anchor scroll margin so sticky header never covers section titles */
section[id] {
  scroll-margin-top: 84px;
}

/* Touch-friendly buttons (min 44px) */
.touch-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Soft Sky Glow for Hero */
.hero-glow {
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.12) 0%, rgba(244, 249, 253, 0) 70%);
}

/* Coral Gradient Title */
.mw-hero-gradient {
  color: #E63946;
  background: linear-gradient(135deg, #FF6B6E 0%, #E63946 50%, #BB152C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CTA Pulse Bounce (toggleable in MinhWeb Settings) */
@keyframes ctaPulseBounce {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -5px rgba(230, 57, 70, 0.35);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 14px 28px -3px rgba(230, 57, 70, 0.48);
  }
}
.mw-pulse-on .cta-pulse {
  animation: ctaPulseBounce 2.4s ease-in-out infinite;
}
.mw-pulse-on .cta-pulse:hover {
  animation: none;
  transform: scale(1.04);
}

/* Subtle Scroll Reveal Animations (toggleable in MinhWeb Settings) */
.mw-animations-on .mw-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.mw-animations-on .mw-reveal.mw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Zalo Pulse Button */
@keyframes mw-pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.mw-zalo-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #E63946;
  animation: mw-pulse-ring 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

/* Active Menu Indicator */
.mw-nav-link.is-active {
  color: #0EA5E9 !important;
  font-weight: 700;
  position: relative;
}
.mw-nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 9999px;
  background-color: #0EA5E9;
}

/* Material Symbols helper */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}
.material-symbols-outlined.is-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Clean prose styling for Sub-service & Blog pages */
.mw-prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0C2D48;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.mw-prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0C2D48;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.mw-prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.mw-prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.mw-prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.mw-prose li {
  margin-bottom: 0.45rem;
}
.mw-prose a {
  color: #0EA5E9;
  font-weight: 600;
  text-decoration: underline;
}

/* Allow custom inline span colors inside Hero gradient headline */
.mw-hero-gradient [style*="color"] {
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

/* Rich Text Content Block Support (Bold, Italic, Color, Alignment) */
.mw-rich-block p {
  margin: 0 0 0.65em 0;
}
.mw-rich-block p:last-child {
  margin-bottom: 0;
}
.mw-rich-block strong,
.mw-rich-block b {
  font-weight: 700;
}
.mw-rich-block em,
.mw-rich-block i {
  font-style: italic;
}
.mw-rich-block u {
  text-decoration: underline;
}
.mw-rich-block a {
  text-decoration: underline;
}
.mw-rich-block ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.4rem 0 0.7rem;
  text-align: left;
}
.mw-rich-block ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0.4rem 0 0.7rem;
  text-align: left;
}
