/*
Theme Name: Modasoft Theme
Theme URI: https://modasoftsolutions.com/
Author: Modasoft Solutions
Author URI: https://modasoftsolutions.com/
Description: Modern block-based theme for digital marketing and software solutions.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modasoft-theme
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, custom-menu
*/

/* --- Modasoft Header (Base) --- */
.modasoft-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  padding: 20px 48px !important;
  min-height: 80px;
  box-sizing: border-box;
  z-index: 100 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease, background 0.35s ease, padding 0.35s ease;
}

.modasoft-header__branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.modasoft-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.modasoft-header .wp-block-site-logo img {
  max-height: 48px;
  width: auto;
  vertical-align: middle;
  transition: max-height 0.35s ease;
}

.modasoft-header.is-scrolled .wp-block-site-logo img {
  max-height: 36px;
}

.modasoft-header .wp-block-site-title {
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.modasoft-header .wp-block-navigation {
  margin: 0;
}

.modasoft-header .wp-block-navigation-item__content {
  position: relative;
  transition: color 0.15s ease;
}

.modasoft-header .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #14b8a6;
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}

.modasoft-header .wp-block-navigation-item__content:hover::after {
  width: 100%;
  left: 0;
}

.modasoft-header .wp-block-navigation-item__content:hover {
  color: #14b8a6 !important;
}

.modasoft-header .wp-block-button__link {
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.modasoft-header .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

/* --- Header: Centered Variant --- */
.modasoft-header--centered {
  flex-direction: column !important;
  text-align: center;
  padding: 20px 32px 0 !important;
  gap: 12px;
}

.modasoft-header--centered .modasoft-header__branding {
  justify-content: center;
}

.modasoft-header--centered .modasoft-header__nav {
  justify-content: center;
  padding-bottom: 16px;
}

.modasoft-header--centered .wp-block-separator {
  width: 100%;
  opacity: 0.5;
}

/* --- Header: Dark Variant --- */
.modasoft-header--dark {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modasoft-header--dark .wp-block-navigation-item__content:hover {
  color: #ccfbf1 !important;
}

.modasoft-header--dark .wp-block-button__link:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* --- Header: Minimal Variant --- */
.modasoft-header--minimal {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 14px 32px !important;
}

.modasoft-header--minimal .wp-block-button__link:hover {
  background: #14b8a6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

/* --- Header: Scroll State (all variants) --- */
.modasoft-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* --- Header: Transparent Variant (front-page) --- */
/* Applied via template part OR dynamically by header-scroll.js */
/* Double-class specificity beats WP's .has-background-background-color !important */
.modasoft-header.modasoft-header--transparent {
  position: fixed !important;
  top: var(--top-bar-h, 0px) !important;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: top 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, padding 0.35s ease;
}

/* Top-bar fixed on transparent header pages */
body.has-transparent-header .modasoft-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

body.has-transparent-header .modasoft-top-bar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Collapse template-part wrappers so hero starts at viewport top */
body.has-transparent-header .wp-block-template-part:first-child,
body.has-transparent-header .wp-block-template-part:first-child .wp-block-template-part {
  margin: 0;
  padding: 0;
}

/* Push hero content below the fixed header + top-bar overlay */
body.has-transparent-header .wp-block-cover.alignfull {
  padding-top: 140px !important;
}

/* Nav text: white on transparent */
.modasoft-header--transparent .wp-block-navigation-item__content {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.35s ease;
}

.modasoft-header--transparent .wp-block-navigation-item__content::after {
  background: #5eead4;
}

.modasoft-header--transparent .wp-block-navigation-item__content:hover {
  color: #5eead4 !important;
}

/* Site title: white on transparent — high specificity to beat WP element styles */
.modasoft-header.modasoft-header--transparent .wp-block-site-title,
.modasoft-header.modasoft-header--transparent .wp-block-site-title a {
  color: #ffffff !important;
  transition: color 0.35s ease;
}

/* Hamburger icon: white on transparent (all variants) */
.modasoft-header--transparent .modasoft-menu-icon,
.modasoft-header--transparent .modasoft-menu-icon::before,
.modasoft-header--transparent .modasoft-menu-icon::after {
  background: #ffffff;
  transition: background 0.35s ease;
}

/* Transparent → Solid on scroll */
.modasoft-header.modasoft-header--transparent.is-scrolled {
  top: 0 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.modasoft-header--transparent.is-scrolled .wp-block-navigation-item__content {
  color: #0f172a !important;
}

.modasoft-header--transparent.is-scrolled .wp-block-navigation-item__content::after {
  background: #14b8a6;
}

.modasoft-header--transparent.is-scrolled .wp-block-navigation-item__content:hover {
  color: #14b8a6 !important;
}

.modasoft-header--transparent.is-scrolled .wp-block-site-title,
.modasoft-header--transparent.is-scrolled .wp-block-site-title a {
  color: #0f172a !important;
}

/* Hamburger: dark lines on scrolled solid bg */
.modasoft-header--transparent.is-scrolled .modasoft-menu-icon,
.modasoft-header--transparent.is-scrolled .modasoft-menu-icon::before,
.modasoft-header--transparent.is-scrolled .modasoft-menu-icon::after {
  background: #0f172a;
}

.modasoft-header--transparent.is-scrolled .modasoft-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* --- Hamburger Menu --- */
.modasoft-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
  z-index: 110;
}

.modasoft-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modasoft-menu-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  position: relative;
  transition: background 0.2s ease;
}

.modasoft-menu-icon::before,
.modasoft-menu-icon::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, top 0.25s ease;
}

.modasoft-menu-icon::before {
  top: -7px;
}

.modasoft-menu-icon::after {
  top: 7px;
}

/* Hamburger → X animation when .is-active */
.modasoft-menu-toggle.is-active .modasoft-menu-icon {
  background: transparent;
}

.modasoft-menu-toggle.is-active .modasoft-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.modasoft-menu-toggle.is-active .modasoft-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Dark header hamburger - white lines */
.modasoft-menu-icon--light,
.modasoft-menu-icon--light::before,
.modasoft-menu-icon--light::after {
  background: #ffffff;
}

.modasoft-menu-toggle.is-active .modasoft-menu-icon--light {
  background: transparent;
}

.modasoft-menu-toggle.is-active .modasoft-menu-icon--light::before,
.modasoft-menu-toggle.is-active .modasoft-menu-icon--light::after {
  background: #0f172a;
}

.modasoft-menu-toggle--light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Mobile Drawer (body-level element, avoids backdrop-filter stacking bug) --- */
.modasoft-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.modasoft-drawer.is-open {
  pointer-events: auto;
}

.modasoft-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.modasoft-drawer.is-open .modasoft-drawer__backdrop {
  background: rgba(15, 23, 42, 0.5);
  pointer-events: auto;
}

.modasoft-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modasoft-drawer.is-open .modasoft-drawer__panel {
  transform: translateX(0);
}

.modasoft-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  color: #0f172a;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  z-index: 10;
  transition: background 0.15s ease, transform 0.15s ease;
}

.modasoft-drawer__close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.modasoft-drawer__nav {
  padding: 72px 28px 0;
  flex: 1;
}

.modasoft-drawer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modasoft-drawer__links li {
  border-bottom: 1px solid #f1f5f9;
}

.modasoft-drawer__links li:last-child {
  border-bottom: none;
}

.modasoft-drawer__link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.2s ease;
}

.modasoft-drawer__link:hover {
  color: #14b8a6;
  padding-left: 6px;
  text-decoration: none;
}

.modasoft-drawer__cta {
  padding: 24px 28px 32px;
  margin-top: auto;
}

.modasoft-drawer__cta-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #14b8a6;
  color: #ffffff !important;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.modasoft-drawer__cta-btn:hover {
  background: #0d9488;
  transform: translateY(-1px);
  text-decoration: none;
}

/* --- Top Bar --- */
.modasoft-top-bar {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 10px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid #14b8a6;
}

.modasoft-top-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.modasoft-top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.modasoft-top-bar__link:hover {
  color: #5eead4;
  text-decoration: none;
}

.modasoft-top-bar__link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.modasoft-top-bar__promo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.modasoft-top-bar__badge {
  display: inline-block;
  background: #14b8a6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Responsive Header --- */
@media (max-width: 900px) {
  .modasoft-header {
    flex-wrap: wrap !important;
    padding: 14px 20px !important;
    min-height: 64px;
  }

  .modasoft-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  /* Hide in-header nav on mobile (body-level drawer handles it) */
  .modasoft-header__nav {
    display: none !important;
  }

  /* Centered variant mobile */
  .modasoft-header--centered {
    padding: 12px 16px 0 !important;
  }

  /* Dark variant: X lines stay white on dark header */
  .modasoft-header--dark .modasoft-menu-toggle.is-active .modasoft-menu-icon--light::before,
  .modasoft-header--dark .modasoft-menu-toggle.is-active .modasoft-menu-icon--light::after {
    background: #ffffff;
  }

  /* Transparent header: keep mobile padding when scrolled */
  .modasoft-header.modasoft-header--transparent.is-scrolled {
    padding: 12px 20px !important;
  }

  /* Top-bar: hide promo on tablet, reduce padding */
  .modasoft-top-bar {
    padding: 8px 20px;
  }

  .modasoft-top-bar__promo {
    display: none;
  }
}

/* --- Top Bar Mobile --- */
@media (max-width: 600px) {
  .modasoft-top-bar {
    display: none !important;
  }

  /* Reset header offset when top-bar is hidden */
  .modasoft-header.modasoft-header--transparent {
    top: 0 !important;
  }

  /* Less hero padding when top-bar is hidden */
  body.has-transparent-header .wp-block-cover.alignfull {
    padding-top: 100px !important;
  }
}

/* --- Accessibility: Skip Link & Focus --- */
.modasoft-skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #14b8a6;
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.modasoft-skip-link:focus {
  left: 16px;
  outline: 2px solid #fff;
  box-shadow: 0 0 0 3px #14b8a6;
}

.modasoft-menu-toggle:focus {
  outline: 2px solid #14b8a6;
  box-shadow: 0 0 0 3px #ccfbf1;
}

/* --- Service Cards --- */
.modasoft-service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
}

.modasoft-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- Process Steps --- */
.modasoft-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #14b8a6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem auto;
  line-height: 1;
}

/* --- Breadcrumb Hero --- */
.modasoft-breadcrumb-hero a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.modasoft-breadcrumb-hero a:hover {
  color: #fff;
}

/* --- FAQ Styles --- */
.modasoft-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.modasoft-faq details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}

.modasoft-faq details summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: #64748b;
}

.modasoft-faq details[open] summary::after {
  content: "\2212";
}

.modasoft-faq details > div,
.modasoft-faq details > p {
  padding: 0 1.25rem 1rem;
  color: #334155;
  line-height: 1.7;
}

/* --- Trust & Logo Grid --- */
.modasoft-logo-grid img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.modasoft-logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Stats Counter --- */
.modasoft-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #14b8a6;
}

/* --- Testimonial Cards --- */
.modasoft-testimonial-card {
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.modasoft-testimonial-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Scroll Reveal Animation --- */
.modasoft-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.modasoft-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside reveal sections */
.modasoft-reveal .wp-block-column {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modasoft-reveal.is-visible .wp-block-column {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Float Animation --- */
@keyframes modasoftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.modasoft-hero-float {
  animation: modasoftFloat 4s ease-in-out infinite;
}

/* Prevent hero card negative offset from causing horizontal scroll */
.wp-block-cover.alignfull {
  overflow-x: clip;
}

/* Hero gradient overlay for visual depth */
.wp-block-cover.alignfull[style*="min-height:100vh"]::before,
.wp-block-cover.alignfull[style*="min-height: 100vh"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(20, 184, 166, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Hero outline button hover fill */
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #5eead4 !important;
  color: #5eead4 !important;
}

.modasoft-hero-stack .modasoft-hero-float img {
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.2);
}

/* --- Hero Stats Row --- */
.modasoft-hero-stats {
  display: flex;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 1rem;
}

.modasoft-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.modasoft-hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.modasoft-hero-stat__number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #14b8a6;
  line-height: 1;
}

.modasoft-hero-stat__label {
  font-size: 0.8rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* --- Hero Image Stack & Floating Card --- */
.modasoft-hero-stack {
  position: relative;
  padding-bottom: 1.5rem;
}

.modasoft-hero-card {
  position: absolute;
  bottom: -12px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  animation: modasoftFloat 4s ease-in-out infinite;
  animation-delay: -2s;
  z-index: 2;
}

.modasoft-hero-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.modasoft-hero-card__subtitle {
  margin: 0;
  font-size: 0.7rem;
  color: #14b8a6;
  line-height: 1.3;
}

/* --- Hero Bounce Scroll Indicator --- */
@keyframes modasoftBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.modasoft-scroll-indicator {
  animation: modasoftBounce 2s infinite;
}

/* --- CTA Button Pulse --- */
@keyframes modasoftPulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.modasoft-pulse .wp-block-button__link,
.modasoft-pulse.wp-element-button {
  animation: modasoftPulse 2.5s infinite;
}

/* --- SVG Icon Containers --- */
.modasoft-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccfbf1;
  border-radius: 12px;
  margin-bottom: 16px;
  color: #14b8a6;
  flex-shrink: 0;
}

.modasoft-icon-wrap svg {
  width: 28px;
  height: 28px;
}

/* --- Process Steps Connecting Line --- */
@media (min-width: 782px) {
  .modasoft-process-steps .wp-block-columns {
    position: relative;
  }

  .modasoft-process-steps .wp-block-column {
    position: relative;
  }

  .modasoft-process-steps .wp-block-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 54px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      #14b8a6 0,
      #14b8a6 6px,
      transparent 6px,
      transparent 12px
    );
  }
}

/* --- Results Cards Top Border --- */
.modasoft-result-card {
  border-top: 3px solid #14b8a6 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modasoft-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- Testimonial Quote Decoration --- */
.modasoft-testimonial-card {
  position: relative;
}

.modasoft-testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  line-height: 1;
  color: #ccfbf1;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* --- Footer --- */
.modasoft-footer {
  position: relative;
}

/* Footer logo sizing (matches header) */
.modasoft-footer .wp-block-site-logo img {
  max-height: 44px;
  width: auto;
}

/* Column headings — teal accent underline */
.modasoft-footer__heading {
  position: relative;
  padding-bottom: 12px;
}

.modasoft-footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: #14b8a6;
  border-radius: 1px;
}

/* Footer nav links */
.modasoft-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modasoft-footer__links li {
  margin-bottom: 0;
}

.modasoft-footer__links a {
  display: inline-block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2.2;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.modasoft-footer__links a:hover {
  color: #5eead4;
  padding-left: 4px;
}

/* Footer contact list with SVG icons */
.modasoft-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modasoft-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.modasoft-footer__contact li:last-child {
  margin-bottom: 0;
}

.modasoft-footer__contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #14b8a6;
}

.modasoft-footer__contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modasoft-footer__contact a:hover {
  color: #5eead4;
}

/* Social icons hover */
.modasoft-footer__social .wp-social-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.modasoft-footer__social .wp-social-link:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* Footer bottom bar */
.modasoft-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid #1e293b;
}

.modasoft-footer__copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.modasoft-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.modasoft-footer__bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.modasoft-footer__bottom-links a:hover {
  color: #94a3b8;
}

/* Back to Top button */
.modasoft-footer__back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modasoft-footer__back-top:hover {
  background: #14b8a6;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Footer bottom social icons (simple footer variant) */
.modasoft-footer__bottom-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modasoft-footer__bottom-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.modasoft-footer__bottom-social a:hover {
  color: #ffffff;
  background: #14b8a6;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .modasoft-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .modasoft-reveal .wp-block-column {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .modasoft-hero-float,
  .modasoft-scroll-indicator,
  .modasoft-hero-card {
    animation: none;
  }

  .modasoft-pulse .wp-block-button__link {
    animation: none;
  }

  .modasoft-header {
    transition: none !important;
  }

  .modasoft-header .wp-block-site-logo img {
    transition: none;
  }

  .modasoft-header--transparent .wp-block-navigation-item__content,
  .modasoft-header--transparent .wp-block-site-title a,
  .modasoft-header--transparent .modasoft-menu-icon,
  .modasoft-header--transparent .modasoft-menu-icon::before,
  .modasoft-header--transparent .modasoft-menu-icon::after {
    transition: none;
  }

  body.has-transparent-header .modasoft-top-bar {
    transition: none;
  }

  .modasoft-header .wp-block-navigation-item__content::after {
    transition: none;
  }

  .modasoft-top-bar__link {
    transition: none;
  }

  .modasoft-footer__links a,
  .modasoft-footer__contact a,
  .modasoft-footer__back-top,
  .modasoft-footer__bottom-links a,
  .modasoft-footer__bottom-social a,
  .modasoft-footer__social .wp-social-link {
    transition: none;
  }
}

/* --- General Section Spacing --- */
.modasoft-section {
  padding: 4rem 0;
}

/* --- Responsive Hero (aligns with WP column stack at 782px) --- */
@media (max-width: 782px) {
  .modasoft-hero-image-col {
    display: none !important;
  }

  .modasoft-hero-card {
    position: relative;
    bottom: auto;
    left: auto;
    display: inline-flex;
    margin-top: 1rem;
  }

  .modasoft-hero-stat {
    padding-right: 1.5rem;
    margin-right: 1.5rem;
  }

  .modasoft-hero-stat__number {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .modasoft-section {
    padding: 2.5rem 0;
  }

  /* --- Responsive Section Padding --- */
  /* Override spacing--xl (4rem) used on most full-width pattern wrappers */
  .wp-block-group.alignfull[style*="--wp--preset--spacing--xl"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* --- Responsive Typography --- */
  /* Section headings (2.25rem–2.5rem desktop → 1.75rem mobile) */
  .wp-block-heading[style*="font-size:2.5rem"],
  .wp-block-heading[style*="font-size:2.25rem"] {
    font-size: 1.75rem !important;
  }

  /* Stat numbers (3.5rem desktop → 2.25rem mobile) */
  .modasoft-stat-number {
    font-size: 2.25rem !important;
  }

  /* Sub-headings (1.25rem is fine, but 2rem logo-grid heading) */
  .wp-block-heading[style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }

  /* Intro paragraphs (1.2rem–1.25rem desktop → 1.05rem mobile) */
  p[style*="font-size:1.25rem"],
  p[style*="font-size:1.2rem"] {
    font-size: 1.05rem !important;
  }

  /* --- Responsive Card Padding --- */
  /* Service cards and feature cards (30px → 20px) */
  .modasoft-service-card[style*="padding-top:30px"],
  .wp-block-group[style*="padding-top:30px"] {
    padding: 20px !important;
  }

  /* --- Responsive Logo Grid --- */
  .modasoft-logo-grid .wp-block-image img[style*="width:140px"] {
    width: 100px !important;
  }

  .modasoft-logo-grid .wp-block-group.alignwide {
    gap: 24px !important;
  }

  /* --- Responsive Cover / Hero --- */
  .wp-block-cover.alignfull[style*="min-height:100vh"],
  .wp-block-cover.alignfull[style*="min-height: 100vh"] {
    min-height: 80vh !important;
  }

  .wp-block-cover.alignfull .wp-block-buttons .wp-block-button {
    width: 100%;
  }

  .wp-block-cover.alignfull .wp-block-button__link {
    display: block;
    text-align: center;
    width: 100%;
  }

  /* --- Responsive Buttons --- */
  /* CTA buttons with large padding (36px sides → 24px) */
  .wp-block-button__link[style*="padding-right:36px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .wp-block-button__link[style*="padding-right:32px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* --- Responsive Footer --- */
  .wp-block-group.alignfull .wp-block-columns.alignwide {
    gap: 2rem !important;
  }

  .modasoft-footer {
    padding-top: 48px !important;
  }

  .modasoft-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    margin-top: 32px;
    padding: 20px 0;
  }

  .modasoft-footer__bottom-links {
    justify-content: center;
  }

  /* --- Responsive FAQ --- */
  .modasoft-faq details[style*="padding-top:20px"] {
    padding: 16px !important;
  }

  /* --- Responsive Testimonial Cards --- */
  .modasoft-testimonial-card[style*="padding-top:30px"] {
    padding: 20px !important;
  }
}

/* --- Extra Small Screens (phones) --- */
@media (max-width: 480px) {
  /* Further reduce section headings */
  .wp-block-heading[style*="font-size:2.5rem"],
  .wp-block-heading[style*="font-size:2.25rem"] {
    font-size: 1.5rem !important;
  }

  /* Stat numbers smaller on phone */
  .modasoft-stat-number {
    font-size: 1.75rem !important;
  }

  /* Section padding tighter */
  .wp-block-group.alignfull[style*="--wp--preset--spacing--xl"] {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Logo grid even smaller */
  .modasoft-logo-grid .wp-block-image img[style*="width:140px"] {
    width: 80px !important;
  }

  .modasoft-logo-grid .wp-block-group.alignwide {
    gap: 16px !important;
  }

  /* Hero min-height reduced further */
  .wp-block-cover.alignfull[style*="min-height:100vh"],
  .wp-block-cover.alignfull[style*="min-height: 100vh"] {
    min-height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Hero stats tighter on phones */
  .modasoft-hero-stat {
    padding-right: 1rem;
    margin-right: 1rem;
    border-right: none;
  }

  .modasoft-hero-stat__number {
    font-size: 1.25rem;
  }

  .modasoft-hero-stats {
    gap: 0.75rem 1.5rem;
  }

  /* Card padding tighter */
  .modasoft-service-card[style*="padding-top:30px"],
  .wp-block-group[style*="padding-top:30px"] {
    padding: 16px !important;
  }

  /* Breadcrumb hero side padding */
  .modasoft-breadcrumb-hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================================================
   Plugin Compatibility Styles
   All rules below are scoped to body classes injected by plugin-compat.php
   and are therefore completely inert when the corresponding plugin is absent.
   ========================================================================== */

/* --- WooCommerce ---------------------------------------------------------- */
.modasoft-woo .woocommerce-notices-wrapper {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.modasoft-woo .woocommerce-message,
.modasoft-woo .woocommerce-info,
.modasoft-woo .woocommerce-error {
  border-top-color: #14b8a6;
  border-radius: 8px;
  font-family: var(--wp--preset--font-family--base, Inter, sans-serif);
}

.modasoft-woo .woocommerce-message::before,
.modasoft-woo .woocommerce-info::before {
  color: #14b8a6;
}

.modasoft-woo a.button,
.modasoft-woo button.button,
.modasoft-woo input[type="submit"],
.modasoft-woo .wc-block-components-button {
  background: #14b8a6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.modasoft-woo a.button:hover,
.modasoft-woo button.button:hover,
.modasoft-woo input[type="submit"]:hover {
  background: #0d9488;
  transform: translateY(-1px);
  color: #ffffff;
}

.modasoft-woo .woocommerce-loop-product__title {
  font-weight: 600;
  color: var(--wp--preset--color--primary, #0f172a);
}

.modasoft-woo .price ins {
  text-decoration: none;
  font-weight: 700;
  color: #14b8a6;
}

.modasoft-woo .woocommerce-product-rating .star-rating span::before {
  color: #f59e0b;
}

/* Cart / Checkout */
.modasoft-woo .woocommerce-checkout #payment {
  border-radius: 8px;
  background: #f8fafc;
}

.modasoft-woo #add_payment_method #payment ul.payment_methods,
.modasoft-woo .woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #e2e8f0;
}

/* --- Gravity Forms ------------------------------------------------------- */
.modasoft-gf .gform_wrapper input[type="text"],
.modasoft-gf .gform_wrapper input[type="email"],
.modasoft-gf .gform_wrapper input[type="tel"],
.modasoft-gf .gform_wrapper input[type="url"],
.modasoft-gf .gform_wrapper input[type="number"],
.modasoft-gf .gform_wrapper textarea,
.modasoft-gf .gform_wrapper select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--base, Inter, sans-serif);
  font-size: 1rem;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.modasoft-gf .gform_wrapper input:focus,
.modasoft-gf .gform_wrapper textarea:focus,
.modasoft-gf .gform_wrapper select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

.modasoft-gf .gform_wrapper .gfield_label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.35rem;
  display: block;
}

.modasoft-gf .gform_wrapper .gfield_required {
  color: #ef4444;
  margin-left: 2px;
}

.modasoft-gf .gform_wrapper .gform_button,
.modasoft-gf .gform_wrapper input[type="submit"] {
  background: #14b8a6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.modasoft-gf .gform_wrapper .gform_button:hover,
.modasoft-gf .gform_wrapper input[type="submit"]:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.modasoft-gf .gform_wrapper .validation_error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.modasoft-gf .gform_wrapper .gfield_error input,
.modasoft-gf .gform_wrapper .gfield_error textarea {
  border-color: #fca5a5;
}

/* --- The Events Calendar -------------------------------------------------- */
.modasoft-events .tribe-events-header {
  font-family: var(--wp--preset--font-family--base, Inter, sans-serif);
}

.modasoft-events .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"],
.modasoft-events .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"] a {
  background: #14b8a6;
  color: #ffffff;
  border-radius: 4px;
}

.modasoft-events a.tribe-event-url,
.modasoft-events .tribe-event-url {
  color: #14b8a6;
  transition: color 0.15s ease;
}

.modasoft-events a.tribe-event-url:hover {
  color: #0d9488;
}

/* --- Elementor ------------------------------------------------------------ */
.modasoft-elementor .elementor-button {
  font-family: var(--wp--preset--font-family--base, Inter, sans-serif) !important;
}

/* Prevent Elementor canvas from breaking the fixed transparent header */
.modasoft-elementor.has-transparent-header .elementor-section-wrap {
  padding-top: 0;
}

/* --- Contact Form 7 (when CF7 CSS is disabled, we style inline) ----------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--base, Inter, sans-serif);
  font-size: 1rem;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

.wpcf7-submit {
  background: #14b8a6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: var(--wp--preset--font-family--base, Inter, sans-serif);
}

.wpcf7-submit:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-response-output {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.wpcf7 .wpcf7-response-output[aria-hidden="false"] {
  border: 1px solid #14b8a6;
  background: #f0fdfb;
  color: #134e4a;
}

.wpcf7 .wpcf7-response-output.invalid,
.wpcf7 .wpcf7-response-output.unaccepted {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

/* --- Twenty-Twenty-* Content Migration Shim ------------------------------ */
/* Ensures blocks created in TT3/TT4/TT5 render acceptably when the
   Modasoft theme is active. Body class .modasoft-migrated is added by
   theme-compat.php when get_theme_mod('modasoft_migrated_from_classic') is set. */
.modasoft-migrated .wp-block-post-content {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto;
  margin-right: auto;
}

/* Force hide the massive page list fallback in navigation */
.wp-block-navigation .wp-block-page-list {
    display: none !important;
}

/* --- Expert Enhancements --- */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.modasoft-service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modasoft-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ════════════════════════════════════════════════════════════
   WhatsApp Floating Button
   ════════════════════════════════════════════════════════════ */

/* Wrapper — controls entrance slide-up */
.modasoft-wa-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  /* Start hidden, slide in via JS */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.modasoft-wa-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip card */
.modasoft-wa-tooltip {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
  max-width: 230px;
  min-width: 180px;
  border-left: 3px solid #25d366;
  animation: modasoftWaTooltipIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

.modasoft-wa-tooltip[hidden] {
  display: none;
}

@keyframes modasoftWaTooltipIn {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modasoft-wa-tooltip__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
  line-height: 1.3;
}

.modasoft-wa-tooltip__sub {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Main button */
.modasoft-wa-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45),
              0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease;
  outline: none;
}

.modasoft-wa-btn:hover,
.modasoft-wa-btn:focus {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55),
              0 4px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #ffffff;
}

.modasoft-wa-btn:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 3px;
}

/* WhatsApp SVG icon */
.modasoft-wa-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

/* Pulse ring */
.modasoft-wa-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: modasoftWaPulse 2.2s ease-out infinite;
}

/* Outer pulse ring */
.modasoft-wa-btn::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.25);
  animation: modasoftWaPulse 2.2s ease-out infinite 0.5s;
}

/* Pause pulse on hover so button feels "selected" */
.modasoft-wa-btn.is-hovered::before,
.modasoft-wa-btn.is-hovered::after {
  animation-play-state: paused;
}

@keyframes modasoftWaPulse {
  0%   { transform: scale(1);    opacity: 1; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .modasoft-wa-wrap {
    bottom: 20px;
    right: 20px;
  }

  .modasoft-wa-btn {
    width: 54px;
    height: 54px;
  }

  .modasoft-wa-btn svg {
    width: 26px;
    height: 26px;
  }

  .modasoft-wa-tooltip {
    max-width: 190px;
  }
  }
}

/* --- Footer Logo --- */
/* Converts the standard dark text logo into a pure white monochrome logo for dark backgrounds */
.modasoft-footer .wp-block-site-logo img,
.modasoft-footer .custom-logo-link img,
.modasoft-footer img.custom-logo {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
  opacity: 0.95 !important;
  transition: opacity 0.3s ease;
}

.modasoft-footer .wp-block-site-logo img:hover,
.modasoft-footer .custom-logo-link img:hover {
  opacity: 1 !important;
}

/* --- Global FAQ Text Color Fix --- */
.modasoft-faq details summary,
.modasoft-faq details summary strong,
.modasoft-faq details p {
  color: #0f172a !important;
}

/* --- Global Focus Outline Reset --- */
/* Removes the ugly default browser dotted outline from all logos, links, and buttons when clicked */
a:focus,
a:active,
button:focus,
button:active,
.wp-block-site-logo a:focus,
.custom-logo-link:focus {
  outline: none !important;
  box-shadow: none;
}

/* Preserve accessibility focus rings only for keyboard navigation (focus-visible) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.5) !important;
  outline-offset: 4px;
}

/* --- Blog Category Pills --- */
.modasoft-category-pill .wp-block-button__link {
  border-radius: 9999px !important;
  padding: 8px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.modasoft-category-pill.is-style-outline .wp-block-button__link {
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.modasoft-category-pill.is-style-outline .wp-block-button__link:hover {
  border-color: #14b8a6 !important;
  color: #14b8a6 !important;
  background: rgba(20, 184, 166, 0.05) !important;
  transform: translateY(-1px);
}

.modasoft-category-pill--active .wp-block-button__link {
  background: #14b8a6 !important;
  color: #ffffff !important;
  border-color: #14b8a6 !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2) !important;
}

/* --- Premium Blog Grid & Cards --- */
.modasoft-blog-grid {
  gap: 2rem !important;
}

.modasoft-blog-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modasoft-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.modasoft-blog-card__image-wrapper {
  overflow: hidden;
  position: relative;
}

.modasoft-blog-card__image-wrapper img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modasoft-blog-card:hover .modasoft-blog-card__image-wrapper img {
  transform: scale(1.05);
}

.modasoft-blog-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.modasoft-blog-card__category a {
  color: #14b8a6;
  text-decoration: none;
}

.modasoft-blog-card__category a:hover {
  color: #0d9488;
}

.modasoft-blog-card__title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modasoft-blog-card__title a:hover {
  color: #14b8a6;
}

.modasoft-blog-card__excerpt {
  flex-grow: 1;
}

.modasoft-blog-card__read-more a {
  color: #14b8a6;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.modasoft-blog-card:hover .modasoft-blog-card__read-more a {
  padding-left: 4px;
}
