/**
 * Theme Name:   Astra WebDev Blue Child
 * Theme URI:    https://wpastra.com/
 * Description:  A professional blue & white child theme for Astra — built for web development agencies & studios. Features scroll-reveal effects, animated gradients, and a clean modern layout.
 * Author:       Custom Build
 * Template:     astra
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  astra-webdev-child
 */

/* ============================================================
   DESIGN TOKENS — Blue & White Palette
   ============================================================ */
:root {
  /* Core blues */
  --wd-blue-deep:      #0a1628;
  --wd-blue-dark:      #0d2144;
  --wd-blue-mid:       #1a3a6b;
  --wd-blue-primary:   #1e5fc4;
  --wd-blue-bright:    #2d7ef7;
  --wd-blue-light:     #5b9cf6;
  --wd-blue-pale:      #cce0ff;
  --wd-blue-ghost:     #e8f1ff;

  /* Grays for scroll effects */
  --wd-gray-100:       #f4f6fa;
  --wd-gray-200:       #e8ecf4;
  --wd-gray-300:       #d0d8e8;
  --wd-gray-400:       #a0aec0;
  --wd-gray-500:       #718096;
  --wd-gray-600:       #4a5568;
  --wd-gray-700:       #2d3748;
  --wd-gray-800:       #1a202c;

  /* White tones */
  --wd-white:          #ffffff;
  --wd-white-soft:     #f9fafc;
  --wd-white-muted:    #f0f4fb;

  /* Accent */
  --wd-cyan:           #06b6d4;
  --wd-cyan-light:     #67e8f9;
  --wd-success:        #22c55e;

  /* Typography */
  --wd-font-display:   'Syne', 'Exo 2', sans-serif;
  --wd-font-body:      'DM Sans', 'Nunito', sans-serif;
  --wd-font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & radii */
  --wd-radius-sm:      6px;
  --wd-radius-md:      12px;
  --wd-radius-lg:      20px;
  --wd-radius-xl:      32px;

  /* Shadows */
  --wd-shadow-card:    0 4px 24px rgba(30, 95, 196, 0.10);
  --wd-shadow-hover:   0 12px 40px rgba(30, 95, 196, 0.22);
  --wd-shadow-hero:    0 24px 80px rgba(10, 22, 40, 0.35);

  /* Transitions */
  --wd-transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--wd-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wd-gray-700);
  background-color: var(--wd-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.ast-blog-single-element,
.entry-title,
.ast-title {
  font-family: var(--wd-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--wd-blue-dark);
  letter-spacing: -0.02em;
}

h1, .ast-page-title { font-size: clamp(2.4rem, 5vw, 4rem); }
h2                  { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3                  { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4                  { font-size: 1.35rem; }
h5                  { font-size: 1.15rem; }
h6                  { font-size: 1rem; }

p {
  font-family: var(--wd-font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--wd-gray-600);
  margin-bottom: 1.25rem;
}

a {
  color: var(--wd-blue-primary);
  text-decoration: none;
  transition: var(--wd-transition);
}
a:hover {
  color: var(--wd-blue-bright);
}

code, pre, .code {
  font-family: var(--wd-font-mono);
  font-size: 0.88em;
}

pre {
  background: var(--wd-blue-deep);
  color: var(--wd-cyan-light);
  border-radius: var(--wd-radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  border-left: 3px solid var(--wd-blue-bright);
}

code {
  background: var(--wd-blue-ghost);
  color: var(--wd-blue-primary);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

/* ============================================================
   SITE CONTAINER
   ============================================================ */
.ast-container,
.entry-content,
.ast-article-inner-wrap {
  max-width: 1200px;
}

/* ============================================================
   HEADER — Blue gradient header
   ============================================================ */
#masthead,
.site-header,
.ast-site-header-wrap,
.ast-masthead-custom-menu-items {
  background: linear-gradient(135deg, var(--wd-blue-deep) 0%, var(--wd-blue-dark) 60%, var(--wd-blue-mid) 100%) !important;
  border-bottom: 1px solid rgba(45, 126, 247, 0.3) !important;
  box-shadow: 0 2px 24px rgba(10, 22, 40, 0.4) !important;
  backdrop-filter: blur(12px);
  position: sticky !important;
  top: 0;
  z-index: 999;
}

/* Header transition on scroll — handled via JS scroll class */
.ast-header-break-point .ast-mobile-header-stack .ast-site-identity,
.ast-site-identity .site-title a,
.site-title,
.ast-site-identity .site-title {
  color: var(--wd-white) !important;
}

/* Logo area */
.site-title a {
  font-family: var(--wd-font-display) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  color: var(--wd-white) !important;
  letter-spacing: -0.03em;
}
.site-title a:hover {
  color: var(--wd-cyan) !important;
}

/* Header scrolled state */
#masthead.wd-scrolled {
  background: linear-gradient(135deg, rgba(10,22,40,0.97) 0%, rgba(13,33,68,0.97) 100%) !important;
  box-shadow: 0 4px 32px rgba(10, 22, 40, 0.55) !important;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-header-menu,
#ast-hfb-mobile-header .main-header-menu {
  background: transparent !important;
}

.main-header-menu .menu-item > a,
.ast-header-menu-item a {
  font-family: var(--wd-font-body) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem !important;
  border-radius: var(--wd-radius-sm) !important;
  transition: var(--wd-transition) !important;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a {
  color: var(--wd-white) !important;
  background: rgba(45, 126, 247, 0.25) !important;
}

/* Nav CTA button */
.main-header-menu .menu-item-type-custom:last-child > a,
.ast-header-cta a,
.ast-header-button-wrap a {
  background: var(--wd-blue-bright) !important;
  color: var(--wd-white) !important;
  border-radius: var(--wd-radius-sm) !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(45, 126, 247, 0.4) !important;
}
.main-header-menu .menu-item-type-custom:last-child > a:hover {
  background: var(--wd-blue-light) !important;
  box-shadow: 0 0 32px rgba(45, 126, 247, 0.65) !important;
  transform: translateY(-1px);
}

/* Dropdown */
.main-header-menu .sub-menu {
  background: var(--wd-blue-deep) !important;
  border: 1px solid rgba(45, 126, 247, 0.2) !important;
  border-radius: var(--wd-radius-md) !important;
  box-shadow: var(--wd-shadow-hero) !important;
  padding: 0.5rem !important;
}
.main-header-menu .sub-menu .menu-item > a {
  color: rgba(255,255,255,0.8) !important;
  border-radius: var(--wd-radius-sm) !important;
}
.main-header-menu .sub-menu .menu-item > a:hover {
  background: rgba(45, 126, 247, 0.2) !important;
  color: var(--wd-white) !important;
}

/* ============================================================
   HERO / BANNER SECTION
   ============================================================ */
.ast-hero-section,
.wp-block-cover,
.wp-block-group.is-style-hero,
.ast-page-title-wrap {
  background: linear-gradient(155deg, var(--wd-blue-deep) 0%, var(--wd-blue-dark) 45%, var(--wd-blue-mid) 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Hero animated mesh overlay */
.ast-hero-section::before,
.wp-block-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(45, 126, 247, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d7ef7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

.ast-hero-section > *,
.wp-block-cover > * {
  position: relative;
  z-index: 1;
}

/* Hero text in white */
.ast-hero-section h1,
.ast-hero-section h2,
.wp-block-cover h1,
.wp-block-cover h2 {
  color: var(--wd-white) !important;
}

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */
.ast-archive-description,
.entry-header,
.ast-page-title-wrap {
  background: var(--wd-blue-ghost) !important;
  border-bottom: 1px solid var(--wd-blue-pale) !important;
  padding: 3rem 0 !important;
}
.ast-archive-title,
.page-title,
.ast-page-title-wrap .ast-page-title {
  color: var(--wd-blue-dark) !important;
  font-family: var(--wd-font-display) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ast-button,
.button,
input[type="submit"],
button[type="submit"],
.wp-block-button__link,
a.wp-block-button__link {
  font-family: var(--wd-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.03em;
  border-radius: var(--wd-radius-sm) !important;
  padding: 0.75rem 1.75rem !important;
  border: none !important;
  cursor: pointer;
  transition: var(--wd-transition) !important;
  position: relative;
  overflow: hidden;
}

/* Primary button */
.ast-button-primary,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background: linear-gradient(135deg, var(--wd-blue-primary), var(--wd-blue-bright)) !important;
  color: var(--wd-white) !important;
  box-shadow: 0 4px 18px rgba(30, 95, 196, 0.3) !important;
}
.ast-button-primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--wd-blue-bright), var(--wd-cyan)) !important;
  box-shadow: 0 8px 28px rgba(30, 95, 196, 0.5) !important;
  transform: translateY(-2px) !important;
  color: var(--wd-white) !important;
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--wd-blue-primary) !important;
  color: var(--wd-blue-primary) !important;
  box-shadow: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wd-blue-primary) !important;
  color: var(--wd-white) !important;
}

/* Ripple effect on buttons */
.ast-button::after,
.wp-block-button__link::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.ast-button:active::after,
.wp-block-button__link:active::after {
  width: 300px; height: 300px;
  opacity: 0;
}

/* ============================================================
   CARDS & CONTENT BLOCKS
   ============================================================ */
.ast-article-post,
.post-summary,
.wp-block-group,
.entry-content .wp-block-columns .wp-block-column {
  border-radius: var(--wd-radius-md) !important;
  transition: var(--wd-transition) !important;
}

/* Blog / post cards */
.ast-article-post {
  background: var(--wd-white) !important;
  border: 1px solid var(--wd-gray-200) !important;
  box-shadow: var(--wd-shadow-card) !important;
  border-radius: var(--wd-radius-lg) !important;
  overflow: hidden;
  transition: var(--wd-transition) !important;
}
.ast-article-post:hover {
  box-shadow: var(--wd-shadow-hover) !important;
  transform: translateY(-4px);
  border-color: var(--wd-blue-pale) !important;
}

.ast-article-post .entry-title a {
  color: var(--wd-blue-dark) !important;
}
.ast-article-post .entry-title a:hover {
  color: var(--wd-blue-bright) !important;
}

/* Post meta */
.ast-post-meta span,
.ast-post-meta a,
.post-meta {
  color: var(--wd-gray-500) !important;
  font-size: 0.85rem !important;
}

/* Feature boxes / service cards */
.wp-block-group.is-style-service-card,
.wd-service-card {
  background: var(--wd-white-soft);
  border: 1px solid var(--wd-gray-200);
  border-radius: var(--wd-radius-lg);
  padding: 2rem;
  box-shadow: var(--wd-shadow-card);
  transition: var(--wd-transition);
}
.wp-block-group.is-style-service-card:hover,
.wd-service-card:hover {
  border-color: var(--wd-blue-pale);
  box-shadow: var(--wd-shadow-hover);
  transform: translateY(-4px);
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  font-family: var(--wd-font-body) !important;
  font-size: 0.95rem !important;
  color: var(--wd-gray-700) !important;
  background: var(--wd-white) !important;
  border: 1.5px solid var(--wd-gray-300) !important;
  border-radius: var(--wd-radius-sm) !important;
  padding: 0.7rem 1rem !important;
  transition: var(--wd-transition) !important;
  outline: none !important;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--wd-blue-bright) !important;
  box-shadow: 0 0 0 3px rgba(45, 126, 247, 0.12) !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.secondary .widget,
.widget {
  background: var(--wd-white) !important;
  border: 1px solid var(--wd-gray-200) !important;
  border-radius: var(--wd-radius-md) !important;
  padding: 1.5rem !important;
  box-shadow: var(--wd-shadow-card) !important;
  margin-bottom: 1.5rem !important;
}

.widget-title {
  font-family: var(--wd-font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--wd-blue-dark) !important;
  border-bottom: 2px solid var(--wd-blue-pale) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon,
.site-footer,
.footer-widget-area {
  background: linear-gradient(180deg, var(--wd-blue-deep) 0%, #060e1c 100%) !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: 1px solid rgba(45, 126, 247, 0.2) !important;
}

.footer-widget-area .widget-title {
  color: var(--wd-white) !important;
  border-bottom-color: rgba(45, 126, 247, 0.3) !important;
  font-family: var(--wd-font-display) !important;
}

.footer-widget-area p,
.footer-widget-area li,
.footer-widget-area span {
  color: rgba(255,255,255,0.65) !important;
}

.footer-widget-area a {
  color: var(--wd-blue-pale) !important;
  transition: var(--wd-transition);
}
.footer-widget-area a:hover {
  color: var(--wd-cyan) !important;
}

.footer-widget-area .widget ul li {
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  padding: 0.4rem 0 !important;
}

/* Footer bottom bar */
.ast-small-footer,
.footer-bar,
#ast-small-footer {
  background: #040a15 !important;
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.85rem !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 1rem 0 !important;
}
.ast-small-footer a {
  color: var(--wd-blue-light) !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ast-breadcrumbs-wrap,
.ast-breadcrumbs {
  background: var(--wd-blue-ghost) !important;
  padding: 0.6rem 0 !important;
  font-size: 0.85rem !important;
}
.ast-breadcrumbs a {
  color: var(--wd-blue-primary) !important;
}
.ast-breadcrumbs .trail-end {
  color: var(--wd-gray-500) !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ast-pagination .page-numbers,
.pagination .page-numbers {
  background: var(--wd-white) !important;
  border: 1.5px solid var(--wd-gray-300) !important;
  color: var(--wd-blue-primary) !important;
  border-radius: var(--wd-radius-sm) !important;
  padding: 0.5rem 0.9rem !important;
  font-weight: 500 !important;
  transition: var(--wd-transition) !important;
}
.ast-pagination .page-numbers:hover,
.ast-pagination .page-numbers.current {
  background: var(--wd-blue-primary) !important;
  border-color: var(--wd-blue-primary) !important;
  color: var(--wd-white) !important;
  box-shadow: 0 4px 14px rgba(30, 95, 196, 0.3) !important;
}

/* ============================================================
   TABLES
   ============================================================ */
table {
  border-collapse: collapse !important;
  width: 100% !important;
  border-radius: var(--wd-radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--wd-shadow-card) !important;
}
table thead tr {
  background: linear-gradient(135deg, var(--wd-blue-primary), var(--wd-blue-mid)) !important;
  color: var(--wd-white) !important;
}
table thead th {
  font-family: var(--wd-font-display) !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.25rem !important;
  text-align: left !important;
  color: var(--wd-white) !important;
}
table tbody tr {
  border-bottom: 1px solid var(--wd-gray-200) !important;
  transition: background 0.2s !important;
}
table tbody tr:hover {
  background: var(--wd-blue-ghost) !important;
}
table tbody td {
  padding: 0.8rem 1.25rem !important;
  color: var(--wd-gray-700) !important;
}
table tbody tr:nth-child(even) {
  background: var(--wd-gray-100) !important;
}

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
blockquote,
.wp-block-quote {
  border-left: 4px solid var(--wd-blue-bright) !important;
  background: var(--wd-blue-ghost) !important;
  border-radius: 0 var(--wd-radius-md) var(--wd-radius-md) 0 !important;
  padding: 1.25rem 1.75rem !important;
  margin: 1.5rem 0 !important;
}
blockquote p,
.wp-block-quote p {
  color: var(--wd-blue-mid) !important;
  font-style: italic !important;
  font-size: 1.1rem !important;
}
blockquote cite,
.wp-block-quote cite {
  color: var(--wd-blue-primary) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

/* ============================================================
   HORIZONTAL RULE
   ============================================================ */
hr,
.wp-block-separator {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--wd-blue-pale), transparent) !important;
  margin: 2.5rem auto !important;
}

/* ============================================================
   TECH / CODE BADGE UTILITY CLASSES
   ============================================================ */
.wd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--wd-font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--wd-blue-ghost);
  color: var(--wd-blue-primary);
  border: 1px solid var(--wd-blue-pale);
}
.wd-badge-blue  { background: var(--wd-blue-primary); color: #fff; border-color: transparent; }
.wd-badge-cyan  { background: var(--wd-cyan);         color: #fff; border-color: transparent; }
.wd-badge-gray  { background: var(--wd-gray-200);     color: var(--wd-gray-600); }

/* ============================================================
   TECH STACK ICONS ROW
   ============================================================ */
.wd-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}
.wd-tech-icon {
  width: 48px; height: 48px;
  background: var(--wd-white);
  border: 1.5px solid var(--wd-gray-200);
  border-radius: var(--wd-radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--wd-shadow-card);
  transition: var(--wd-transition);
}
.wd-tech-icon:hover {
  border-color: var(--wd-blue-pale);
  box-shadow: var(--wd-shadow-hover);
  transform: translateY(-3px);
}

/* ============================================================
   SECTION DIVIDERS — Wave & gradient
   ============================================================ */
.wd-section-wave {
  position: relative;
  overflow: hidden;
}
.wd-section-wave::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 C300 0 900 0 1200 60 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom center / cover;
}

/* ============================================================
   SCROLL REVEAL — Gray layered effect
   Elements start gray/faded and animate to full color
   ============================================================ */

/* Scroll-reveal base state */
.wd-reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: grayscale(0.6);
  transition:
    opacity    0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform  0.65s cubic-bezier(0.4, 0, 0.2, 1),
    filter     0.65s ease;
}

.wd-reveal.wd-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: grayscale(0);
}

/* Staggered delays for child items */
.wd-reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.wd-reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.wd-reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.wd-reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.wd-reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.wd-reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Slide from left */
.wd-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  filter: grayscale(0.5);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}
.wd-reveal-left.wd-revealed {
  opacity: 1;
  transform: translateX(0);
  filter: grayscale(0);
}

/* Slide from right */
.wd-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  filter: grayscale(0.5);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}
.wd-reveal-right.wd-revealed {
  opacity: 1;
  transform: translateX(0);
  filter: grayscale(0);
}

/* Scale-in */
.wd-reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  filter: grayscale(0.4);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    filter 0.55s ease;
}
.wd-reveal-scale.wd-revealed {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#wd-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--wd-blue-bright), var(--wd-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--wd-blue-bright), 0 0 20px rgba(45,126,247,0.5);
}

/* ============================================================
   FLOATING SCROLL-TO-TOP BUTTON
   ============================================================ */
#wd-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--wd-blue-primary), var(--wd-blue-bright));
  color: var(--wd-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 18px rgba(30,95,196,0.45);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--wd-transition);
  z-index: 998;
}
#wd-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#wd-scroll-top:hover {
  box-shadow: 0 8px 28px rgba(30,95,196,0.65);
  transform: translateY(-3px);
}

/* ============================================================
   GRAY PARALLAX SCROLL SECTIONS
   Alternating white / soft-blue-gray sections
   ============================================================ */
.wd-section-white { background: var(--wd-white) !important; }
.wd-section-gray  { background: var(--wd-gray-100) !important; }
.wd-section-blue-ghost { background: var(--wd-blue-ghost) !important; }
.wd-section-dark  {
  background: linear-gradient(135deg, var(--wd-blue-deep), var(--wd-blue-dark)) !important;
  color: var(--wd-white) !important;
}
.wd-section-dark h1, .wd-section-dark h2, .wd-section-dark h3 {
  color: var(--wd-white) !important;
}
.wd-section-dark p { color: rgba(255,255,255,0.75) !important; }

/* Alternating entry sections */
.entry-content > .wp-block-group:nth-child(odd) {
  background: var(--wd-white-soft) !important;
}
.entry-content > .wp-block-group:nth-child(even) {
  background: var(--wd-blue-ghost) !important;
}

/* ============================================================
   HIGHLIGHT PILL & STATS
   ============================================================ */
.wd-stat {
  text-align: center;
  padding: 1.5rem;
}
.wd-stat-number {
  font-family: var(--wd-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--wd-blue-primary);
  display: block;
  line-height: 1;
}
.wd-stat-label {
  font-size: 0.9rem;
  color: var(--wd-gray-500);
  margin-top: 0.25rem;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.ast-search-box,
.ast-header-search {
  background: var(--wd-white) !important;
  border: 1.5px solid var(--wd-blue-pale) !important;
  border-radius: var(--wd-radius-sm) !important;
}
.ast-search-box:focus-within {
  border-color: var(--wd-blue-bright) !important;
  box-shadow: 0 0 0 3px rgba(45, 126, 247, 0.15) !important;
}

/* ============================================================
   WooCommerce compatibility
   ============================================================ */
.woocommerce .price,
.woocommerce-Price-amount {
  color: var(--wd-blue-primary) !important;
  font-family: var(--wd-font-display) !important;
  font-weight: 700 !important;
}
.woocommerce .button,
.woocommerce button.button {
  background: linear-gradient(135deg, var(--wd-blue-primary), var(--wd-blue-bright)) !important;
  color: var(--wd-white) !important;
  border-radius: var(--wd-radius-sm) !important;
  font-family: var(--wd-font-body) !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(30,95,196,0.25) !important;
}
.woocommerce .button:hover {
  background: linear-gradient(135deg, var(--wd-blue-bright), var(--wd-cyan)) !important;
  box-shadow: 0 8px 24px rgba(30,95,196,0.4) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--wd-blue-dark) !important;
  font-family: var(--wd-font-display) !important;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --wd-font-size-base: 15px;
  }

  #masthead, .site-header {
    position: sticky !important;
    top: 0;
  }

  .ast-header-break-point .main-navigation-menu .menu-item > a {
    color: var(--wd-white) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .ast-mobile-popup,
  .ast-header-break-point .ast-mobile-header-wrap {
    background: var(--wd-blue-deep) !important;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  #wd-scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px; height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .wd-tech-icon { width: 40px; height: 40px; font-size: 1.25rem; }
}

/* ============================================================
   UTILITY: ANIMATION KEYFRAMES
   ============================================================ */
@keyframes wd-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes wd-pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(45, 126, 247, 0.3); }
  50%       { box-shadow: 0 0 32px rgba(45, 126, 247, 0.65), 0 0 60px rgba(6,182,212,0.2); }
}
@keyframes wd-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes wd-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes wd-slide-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apply float to featured images */
.ast-featured-img img,
.wp-post-image {
  border-radius: var(--wd-radius-md) !important;
  box-shadow: var(--wd-shadow-card) !important;
  transition: var(--wd-transition) !important;
}
.ast-featured-img img:hover,
.wp-post-image:hover {
  box-shadow: var(--wd-shadow-hover) !important;
  transform: scale(1.02) !important;
}

/* Gradient text utility */
.wd-gradient-text {
  background: linear-gradient(135deg, var(--wd-blue-bright), var(--wd-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow utility */
.wd-glow {
  animation: wd-pulse-glow 3s ease-in-out infinite;
}

/* Glass card utility */
.wd-glass {
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--wd-radius-lg) !important;
}
