/* WD2 refreshed public theme
   - WD2A/webdev-inspired palette
   - fixes header overlap
   - improves contrast
   - tighter spacing
   - keeps mobile carousels
   - supports animated cosmic background
*/

:root {
  --wd-bg: #f4f6f8;
  --wd-bg-2: #eef2f6;
  --wd-white: #ffffff;
  --wd-panel: rgba(255,255,255,.86);
  --wd-navy: #17256b;
  --wd-navy-dark: #10194f;
  --wd-red: #b71924;
  --wd-red-dark: #96131b;
  --wd-orange: #e56b1f;
  --wd-yellow: #f5aa22;
  --wd-purple: #4b285d;
  --wd-text: #1f2948;
  --wd-muted: #5f6980;
  --wd-soft: #7d879b;
  --wd-border: #e3e8f0;
  --wd-shadow: 0 16px 44px rgba(23, 37, 107, .09);
  --wd-shadow-soft: 0 10px 26px rgba(23, 37, 107, .07);
  --wd-red-shadow: 0 14px 30px rgba(183, 25, 36, .18);
  --header-h: 104px;
}

/* Reset for readability */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html,
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(245, 170, 34, .12), transparent 24%),
    radial-gradient(circle at 88% 6%, rgba(23, 37, 107, .10), transparent 28%),
    linear-gradient(180deg, #fbfcfd 0%, var(--wd-bg) 48%, var(--wd-bg-2) 100%) !important;
  color: var(--wd-text) !important;
  overflow-x: hidden !important;
}

body {
  color: var(--wd-text) !important;
}

/* New fixed animated canvas */
#wd2CosmicCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .95;
}

/* Keep content above canvas */
header,
main,
section,
footer,
.hero,
.site-footer,
.modal,
.demo-modal {
  position: relative;
  z-index: 1;
}

/* Hide old background systems if still present */
.london-scroll-bg,
.london-layer,
#bgCanvas,
#starsCanvas,
#constellationCanvas,
.constellation-bg,
.elite-3d-bg {
  display: none !important;
}

/* Header */
header,
.site-header,
.topbar,
.navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  min-height: var(--header-h) !important;
  background: rgba(255,255,255,.84) !important;
  border-bottom: 1px solid rgba(23, 37, 107, .10) !important;
  box-shadow: 0 12px 32px rgba(23, 37, 107, .06) !important;
  backdrop-filter: blur(16px) !important;
}

header .container,
.site-header .container,
.topbar .container,
.navbar .container {
  min-height: var(--header-h) !important;
  display: flex !important;
  align-items: center !important;
}

/* Logo */
.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.brand-logo img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.brand-logo span {
  display: none !important;
}

/* Header nav text larger / clearer */
header nav a,
.navbar a,
.site-header a,
.menu a {
  color: var(--wd-navy) !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  opacity: .94 !important;
}

header nav a:hover,
.navbar a:hover,
.site-header a:hover {
  color: var(--wd-red) !important;
}

/* Containers */
.container {
  width: min(1180px, calc(100% - 28px)) !important;
}

/* Sections — less wasted space */
section,
.section {
  padding-top: clamp(34px, 4vw, 64px) !important;
  padding-bottom: clamp(34px, 4vw, 64px) !important;
}

/* HERO: add space so header no longer covers it */
#home,
.hero,
.hero-section {
  padding-top: calc(var(--header-h) + 34px) !important;
  padding-bottom: clamp(42px, 6vw, 80px) !important;
  min-height: auto !important;
}

.hero::before,
.hero-section::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto 0;
  height: min(420px, 56vh);
  border-radius: 0 0 42px 42px;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 22%, rgba(245,170,34,.14), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(23,37,107,.10), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.08));
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
.hero-title,
.section-title {
  color: var(--wd-navy) !important;
  letter-spacing: -0.055em !important;
}

h1,
.hero-title {
  font-size: clamp(3rem, 8vw, 6.8rem) !important;
  line-height: .92 !important;
  margin-bottom: 16px !important;
}

h2,
.section-title {
  font-size: clamp(2.1rem, 4vw, 3.8rem) !important;
  line-height: .98 !important;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem) !important;
  line-height: 1.15 !important;
}

p,
li,
.card p,
.price-card p,
.portfolio-card p,
.process p,
.hero-copy,
.lead {
  color: var(--wd-muted) !important;
  font-size: clamp(15px, 1.25vw, 19px) !important;
  line-height: 1.65 !important;
}

/* Better badge readability */
.badge,
.eyebrow,
.hero-kicker,
.section-kicker,
.trust-badges span,
.dash-pill,
.tags i {
  background: rgba(255,255,255,.70) !important;
  color: var(--wd-navy) !important;
  border: 1px solid rgba(23,37,107,.10) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Buttons */
button,
.btn,
a.btn,
.button {
  min-height: 44px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  letter-spacing: .01em !important;
  font-size: 15px !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

button:hover,
.btn:hover,
a.btn:hover {
  transform: translateY(-1px) !important;
}

.btn.primary,
button[type="submit"],
.primary,
.cta {
  background: var(--wd-red) !important;
  color: #ffffff !important;
  box-shadow: var(--wd-red-shadow) !important;
  border: 1px solid transparent !important;
}

.btn.primary:hover,
button[type="submit"]:hover,
.primary:hover,
.cta:hover {
  background: var(--wd-red-dark) !important;
}

.btn.secondary,
.secondary,
.open-demo,
.btn.ghost {
  background: var(--wd-navy) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 12px 28px rgba(23,37,107,.15) !important;
}

.btn.secondary:hover,
.secondary:hover,
.open-demo:hover,
.btn.ghost:hover {
  background: var(--wd-navy-dark) !important;
}

/* Inputs */
input,
textarea,
select {
  background: #ffffff !important;
  color: var(--wd-text) !important;
  border: 1.6px solid rgba(23,37,107,.14) !important;
  border-radius: 16px !important;
  min-height: 44px !important;
  padding: 11px 13px !important;
  font-size: 15px !important;
}

textarea {
  min-height: 100px !important;
}

input::placeholder,
textarea::placeholder {
  color: #737d90 !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--wd-navy) !important;
  box-shadow: 0 0 0 4px rgba(23,37,107,.10) !important;
  outline: none !important;
}

/* Cards — make them readable and less bulky */
.card,
.price-card,
.portfolio-card,
.process-card,
.feature-card,
.service-card,
article,
.trust-row > div {
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(255,255,255,.66) !important;
  border-radius: 24px !important;
  box-shadow: var(--wd-shadow) !important;
  backdrop-filter: blur(12px) !important;
  color: var(--wd-text) !important;
  padding: clamp(16px, 2vw, 24px) !important;
}

/* Stronger text inside cards */
.card h3,
.price-card h3,
.portfolio-card h3,
.process-card h3,
.feature-card h3,
.service-card h3,
.card strong,
.price-card strong,
.portfolio-card strong,
.process-card strong {
  color: var(--wd-navy) !important;
}

.card p,
.price-card p,
.portfolio-card p,
.process-card p,
.card li,
.price-card li,
.portfolio-card li,
.process-card li {
  color: var(--wd-muted) !important;
}

/* Important: actual build process cards were too dark before */
#process .process > *,
.process > * {
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(255,255,255,.68) !important;
  box-shadow: var(--wd-shadow) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 24px !important;
  color: var(--wd-text) !important;
}

#process .process > * h3,
.process > * h3,
#process .process > * strong,
.process > * strong {
  color: var(--wd-navy) !important;
}

#process .process > * p,
.process > * p,
#process .process > * li,
.process > * li {
  color: var(--wd-muted) !important;
}

#process .process > * .num,
#process .process > * .step-num,
.process > * .num,
.process > * .step-num,
.process > * b:first-child {
  color: #15b8e8 !important;
}

/* Accent top bars */
.price-card::before,
.portfolio-card::before,
#process .process > *::before,
.process > *::before {
  content: "";
  display: block;
  height: 7px;
  margin: calc(clamp(16px, 2vw, 24px) * -1) calc(clamp(16px, 2vw, 24px) * -1) 14px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, var(--wd-navy), var(--wd-purple) 34%, var(--wd-red) 66%, var(--wd-yellow));
}

/* Compact grids */
.pricing-grid,
.portfolio-grid,
.process,
.cards-grid,
.trust-row,
.services-grid {
  gap: clamp(12px, 2vw, 20px) !important;
}

.section-head,
.panel-head {
  margin-bottom: clamp(16px, 3vw, 28px) !important;
}

/* Prevent very tiny faint text */
small,
.muted,
.meta,
.helper,
.footer-note {
  font-size: 14px !important;
  color: var(--wd-soft) !important;
}

/* Footer readability fix */
footer,
.site-footer {
  background: linear-gradient(135deg, #132057, #1a2766 60%, #2f376f 100%) !important;
  color: rgba(255,255,255,.92) !important;
  border-radius: 30px 30px 0 0 !important;
  margin-top: 18px !important;
}

footer *,
.site-footer * {
  color: rgba(255,255,255,.86) !important;
}

footer h3,
footer strong,
.site-footer h3,
.site-footer strong {
  color: #ffffff !important;
}

footer a,
.site-footer a {
  color: #d7defb !important;
}

footer p,
footer li,
footer span,
.site-footer p,
.site-footer li,
.site-footer span {
  color: rgba(255,255,255,.78) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

footer .container,
.site-footer .container {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

/* Inquiry / modal areas */
.modal,
.demo-modal,
.preview-modal,
.demo-frame-wrap {
  border-radius: 24px !important;
}

iframe,
.demo-frame {
  min-height: 640px !important;
}

/* Keep mobile carousels */
@media (max-width: 760px) {
  :root {
    --header-h: 86px;
  }

  .container {
    width: min(100% - 22px, 1180px) !important;
  }

  .brand-logo img {
    width: 54px !important;
    height: 54px !important;
  }

  header nav a,
  .navbar a,
  .site-header a {
    font-size: 13px !important;
  }

  h1,
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem) !important;
    line-height: .94 !important;
  }

  h2,
  .section-title {
    font-size: clamp(1.9rem, 8vw, 3rem) !important;
  }

  p,
  li,
  .card p,
  .price-card p,
  .portfolio-card p,
  .process p,
  .hero-copy,
  .lead {
    font-size: 15px !important;
    line-height: 1.58 !important;
  }

  section,
  .section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .hero,
  .hero-section,
  #home {
    padding-top: calc(var(--header-h) + 24px) !important;
    padding-bottom: 32px !important;
  }

  /* pricing carousel */
  .pricing-grid,
  .price-grid,
  .packages-grid,
  .plans-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(84%, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 4px !important;
    padding: 4px 4px 14px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .pricing-grid > *,
  .price-grid > *,
  .packages-grid > *,
  .plans-grid > * {
    scroll-snap-align: start !important;
  }

  /* portfolio carousel */
  .portfolio-grid,
  .demo-grid,
  .concept-grid,
  .website-concepts-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(84%, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 4px !important;
    padding: 4px 4px 14px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .portfolio-grid > *,
  .demo-grid > *,
  .concept-grid > *,
  .website-concepts-grid > * {
    scroll-snap-align: start !important;
  }

  /* actual build process carousel */
  #process .process,
  .process {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(80%, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 4px !important;
    padding: 4px 4px 14px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #process .process > *,
  .process > * {
    scroll-snap-align: start !important;
  }

  .pricing-grid::-webkit-scrollbar,
  .portfolio-grid::-webkit-scrollbar,
  .process::-webkit-scrollbar {
    height: 5px;
  }

  .pricing-grid::-webkit-scrollbar-thumb,
  .portfolio-grid::-webkit-scrollbar-thumb,
  .process::-webkit-scrollbar-thumb {
    background: rgba(23,37,107,.22);
    border-radius: 999px;
  }

  .card,
  .price-card,
  .portfolio-card,
  .process-card,
  article,
  #process .process > *,
  .process > * {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .price-card::before,
  .portfolio-card::before,
  #process .process > *::before,
  .process > *::before {
    height: 6px;
    margin: -16px -16px 12px;
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 430px) {
  .pricing-grid,
  .price-grid,
  .packages-grid,
  .plans-grid,
  .portfolio-grid,
  .demo-grid,
  .concept-grid,
  .website-concepts-grid {
    grid-auto-columns: minmax(88%, 1fr) !important;
  }

  #process .process,
  .process {
    grid-auto-columns: minmax(86%, 1fr) !important;
  }
}

/* FINAL WD2 header, readability and spacing fix */

/* Smaller page side margins / less horizontal empty space */
:root {
  --header-h: 88px !important;
}

.container {
  width: min(1280px, calc(100% - 24px)) !important;
  max-width: 1280px !important;
}

/* Top header must stay visible and transparent */
header,
.site-header,
.topbar,
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  min-height: var(--header-h) !important;
  background: rgba(255, 255, 255, 0.38) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 12px 34px rgba(23, 37, 107, .06) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

header.is-hidden,
.site-header.is-hidden,
.topbar.is-hidden,
.navbar.is-hidden,
header.hidden,
.site-header.hidden {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header internal spacing */
header .container,
.site-header .container,
.topbar .container,
.navbar .container {
  min-height: var(--header-h) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  width: min(1280px, calc(100% - 24px)) !important;
}

/* Transparent menu buttons/links */
header nav,
.site-header nav,
.navbar nav,
.menu,
.nav {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

header nav a,
.site-header nav a,
.navbar a,
.menu a,
.nav a {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 999px !important;
  color: #17256b !important;
  padding: 8px 12px !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.35) !important;
  backdrop-filter: blur(10px) !important;
}

header nav a:hover,
.site-header nav a:hover,
.navbar a:hover,
.menu a:hover {
  color: #b71924 !important;
  background: rgba(255,255,255,.32) !important;
}

/* Logo smaller so header does not eat space */
.brand-logo img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
}

/* Push page content below fixed header */
main {
  padding-top: var(--header-h) !important;
}

#home,
.hero,
.hero-section {
  padding-top: 34px !important;
  margin-top: 0 !important;
}

/* Reduce biggest letters */
h1,
.hero-title {
  font-size: clamp(3rem, 6.1vw, 5.7rem) !important;
  line-height: .96 !important;
  letter-spacing: -0.058em !important;
  max-width: 980px !important;
}

h2,
.section-title {
  font-size: clamp(2rem, 3.4vw, 3.25rem) !important;
  line-height: 1.02 !important;
}

/* Minimum readable text size across whole page */
body,
p,
li,
span,
small,
label,
input,
textarea,
select,
button,
a,
.card p,
.price-card p,
.portfolio-card p,
.process p,
.hero-copy,
.lead,
.muted,
.meta,
.footer-note,
.trust-badges span,
.badge,
.tag,
.tags i,
.eyebrow,
.hero-kicker,
.section-kicker {
  font-size: max(16px, 1rem) !important;
  line-height: 1.55 !important;
}

/* Keep nav/badges slightly smaller but still readable */
header nav a,
.site-header nav a,
.navbar a,
.menu a,
.badge,
.tag,
.tags i,
.eyebrow,
.hero-kicker,
.section-kicker,
.trust-badges span {
  font-size: 14px !important;
}

/* Stronger readable colours */
p,
li,
.card p,
.price-card p,
.portfolio-card p,
.process p,
.hero-copy,
.lead {
  color: #4d586f !important;
}

.card h3,
.price-card h3,
.portfolio-card h3,
.process h3,
#process .process > * h3 {
  color: #17256b !important;
}

.card p,
.price-card p,
.portfolio-card p,
.process p,
#process .process > * p {
  color: #4f5b72 !important;
}

/* Process cards readability fix */
#process .process > *,
.process > * {
  background: rgba(255,255,255,.92) !important;
  color: #1f2948 !important;
  border: 1px solid rgba(23,37,107,.08) !important;
  box-shadow: 0 14px 36px rgba(23,37,107,.08) !important;
}

#process .process > * *,
.process > * * {
  color: inherit !important;
}

#process .process > * h3,
.process > * h3 {
  color: #17256b !important;
}

#process .process > * p,
.process > * p {
  color: #4f5b72 !important;
}

/* Cards less bulky and less empty spacing */
.card,
.price-card,
.portfolio-card,
.process-card,
.feature-card,
.service-card,
article,
#process .process > *,
.process > * {
  padding: 18px !important;
  border-radius: 22px !important;
}

section,
.section {
  padding-top: clamp(28px, 3.4vw, 52px) !important;
  padding-bottom: clamp(28px, 3.4vw, 52px) !important;
}

.section-head,
.panel-head {
  margin-bottom: 18px !important;
}

.grid,
.cards-grid,
.pricing-grid,
.portfolio-grid,
.process,
.services-grid,
.trust-row {
  gap: 14px !important;
}

/* Hero spacing tighter */
.hero-copy,
.lead {
  max-width: 820px !important;
  margin-bottom: 18px !important;
}

.hero-actions,
.actions {
  gap: 12px !important;
  margin-top: 16px !important;
}

.trust-badges {
  gap: 8px !important;
  margin-top: 16px !important;
}

/* Footer contrast */
footer,
.site-footer {
  background: rgba(23,37,107,.78) !important;
  backdrop-filter: blur(16px) !important;
}

footer *,
.site-footer * {
  color: rgba(255,255,255,.86) !important;
}

footer h3,
footer strong,
.site-footer h3,
.site-footer strong {
  color: #ffffff !important;
}

/* Better cosmic background visibility with transparent header */
#wd2CosmicCanvas {
  opacity: 1 !important;
}

/* Mobile fixes */
@media (max-width: 760px) {
  :root {
    --header-h: 76px !important;
  }

  .container {
    width: min(100% - 18px, 1280px) !important;
  }

  header,
  .site-header,
  .topbar,
  .navbar {
    min-height: var(--header-h) !important;
    background: rgba(255,255,255,.42) !important;
  }

  header .container,
  .site-header .container,
  .topbar .container,
  .navbar .container {
    min-height: var(--header-h) !important;
    width: min(100% - 18px, 1280px) !important;
  }

  .brand-logo img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
  }

  main {
    padding-top: var(--header-h) !important;
  }

  #home,
  .hero,
  .hero-section {
    padding-top: 24px !important;
  }

  h1,
  .hero-title {
    font-size: clamp(2.55rem, 10.5vw, 4.15rem) !important;
    line-height: .98 !important;
  }

  h2,
  .section-title {
    font-size: clamp(1.8rem, 7.5vw, 2.7rem) !important;
  }

  body,
  p,
  li,
  span,
  small,
  label,
  input,
  textarea,
  select,
  button,
  a,
  .card p,
  .price-card p,
  .portfolio-card p,
  .process p,
  .hero-copy,
  .lead {
    font-size: 16px !important;
    line-height: 1.52 !important;
  }

  header nav a,
  .site-header nav a,
  .navbar a,
  .menu a {
    font-size: 13px !important;
    padding: 7px 10px !important;
  }

  section,
  .section {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }

  .card,
  .price-card,
  .portfolio-card,
  .process-card,
  article,
  #process .process > *,
  .process > * {
    padding: 16px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 14px, 1280px) !important;
  }

  h1,
  .hero-title {
    font-size: clamp(2.3rem, 10vw, 3.6rem) !important;
  }
}

/* FINAL card alignment + pricing selected button logic */

/* Make grid cards equal height */
.pricing-grid,
.portfolio-grid,
.process,
.cards-grid,
.services-grid {
  align-items: stretch !important;
}

.pricing-grid > *,
.portfolio-grid > *,
.process > *,
.cards-grid > *,
.services-grid > * {
  height: 100% !important;
}

/* Make all main cards flex columns so buttons align */
.price-card,
.portfolio-card,
.process > *,
.process-card,
.service-card,
.feature-card,
.card {
  display: flex !important;
  flex-direction: column !important;
}

/* Keep content naturally spaced */
.price-card p,
.portfolio-card p,
.process-card p,
.process > * p,
.card p {
  flex: 0 0 auto !important;
}

/* Push buttons/actions to same bottom position */
.price-card .btn,
.price-card button,
.price-card .card-actions,
.price-card .actions,
.portfolio-card .btn,
.portfolio-card button,
.portfolio-card .card-actions,
.portfolio-card .actions,
.process-card .btn,
.process-card button,
.process > * .btn,
.process > * button,
.card .card-actions,
.card .actions {
  margin-top: auto !important;
}

/* Pricing lists should take available height evenly */
.price-card ul,
.price-card .features,
.price-card .package-extra,
.price-card .package-details,
.price-card .price-extra,
.price-card .plan-extra {
  margin-bottom: 16px !important;
}

/* All pricing package buttons default blue */
.price-card .btn,
.price-card button,
.pricing-grid .btn,
.pricing-grid button {
  background: var(--wd-navy) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(23,37,107,.16) !important;
}

/* Only selected/open pricing card button becomes red */
.price-card.selected .btn,
.price-card.selected button,
.price-card.active .btn,
.price-card.active button,
.price-card.is-selected .btn,
.price-card.is-selected button,
.price-card.expanded .btn,
.price-card.expanded button,
.price-card.open .btn,
.price-card.open button,
.price-card[data-selected="true"] .btn,
.price-card[data-selected="true"] button {
  background: var(--wd-red) !important;
  color: #ffffff !important;
  box-shadow: var(--wd-red-shadow) !important;
}

/* Selected card itself gets slightly stronger border */
.price-card.selected,
.price-card.active,
.price-card.is-selected,
.price-card.expanded,
.price-card.open,
.price-card[data-selected="true"] {
  border-color: rgba(183,25,36,.28) !important;
  box-shadow: 0 18px 48px rgba(183,25,36,.13) !important;
}

/* Fix accidental uneven card text blocks */
.portfolio-card h3,
.price-card h3,
.process > * h3 {
  min-height: 2.2em !important;
}

.portfolio-card p,
.process > * p {
  min-height: 4.4em !important;
}

/* Desktop equal card height tuning */
@media (min-width: 761px) {
  .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

  .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

  #process .process,
  .process {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }

  .price-card,
  .portfolio-card,
  #process .process > *,
  .process > * {
    min-height: 100% !important;
  }
}

/* Mobile carousel card alignment */
@media (max-width: 760px) {
  .pricing-grid > *,
  .portfolio-grid > *,
  #process .process > *,
  .process > * {
    height: auto !important;
    min-height: 360px !important;
  }

  .portfolio-card p,
  .process > * p {
    min-height: auto !important;
  }

  .portfolio-card h3,
  .price-card h3,
  .process > * h3 {
    min-height: auto !important;
  }
}

/* WD2 package cards restored */
.price-card {
  position: relative !important;
}

.wd2-package-details {
  width: 100% !important;
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: rgba(247, 248, 251, .98) !important;
  border: 1px solid rgba(23, 37, 107, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.wd2-package-details-inner {
  display: grid !important;
  gap: 10px !important;
}

.wd2-package-details p,
.wd2-package-details li {
  color: #4f5b72 !important;
  font-size: 16px !important;
  line-height: 1.48 !important;
  margin: 0 !important;
}

.wd2-package-details strong {
  display: block !important;
  color: #17256b !important;
  font-size: 16px !important;
  margin-bottom: 4px !important;
}

.wd2-package-details ul {
  margin: 6px 0 0 !important;
  padding-left: 18px !important;
}

.wd2-package-note {
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(23, 37, 107, .06) !important;
}

/* Pricing buttons default blue */
.pricing-grid .price-card .btn,
.pricing-grid .price-card button,
#pricingGrid .price-card .btn,
#pricingGrid .price-card button {
  background: #17256b !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(23,37,107,.16) !important;
}

/* Only selected card button red */
.pricing-grid .price-card.selected .btn,
.pricing-grid .price-card.selected button,
.pricing-grid .price-card.open .btn,
.pricing-grid .price-card.open button,
.pricing-grid .price-card.expanded .btn,
.pricing-grid .price-card.expanded button,
.pricing-grid .price-card[data-selected="true"] .btn,
.pricing-grid .price-card[data-selected="true"] button,
#pricingGrid .price-card.selected .btn,
#pricingGrid .price-card.selected button,
#pricingGrid .price-card.open .btn,
#pricingGrid .price-card.open button,
#pricingGrid .price-card.expanded .btn,
#pricingGrid .price-card.expanded button,
#pricingGrid .price-card[data-selected="true"] .btn,
#pricingGrid .price-card[data-selected="true"] button {
  background: #b71924 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(183,25,36,.18) !important;
}

.price-card.selected,
.price-card.open,
.price-card.expanded,
.price-card[data-selected="true"] {
  border-color: rgba(183,25,36,.26) !important;
}

/* Remove top bar panel; keep logo and floating menu buttons only */
header,
.site-header,
.topbar,
.navbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

header .container,
.site-header .container,
.topbar .container,
.navbar .container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.brand-logo,
header nav,
.site-header nav,
.navbar nav,
.menu {
  pointer-events: auto !important;
}

header nav a,
.site-header nav a,
.navbar a,
.menu a,
.nav a {
  pointer-events: auto !important;
  background: rgba(255,255,255,.42) !important;
  border: 1px solid rgba(255,255,255,.48) !important;
  box-shadow: 0 8px 22px rgba(23,37,107,.08) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

header nav a:hover,
.site-header nav a:hover,
.navbar a:hover,
.menu a:hover,
.nav a:hover {
  background: rgba(255,255,255,.68) !important;
  color: #b71924 !important;
}

.brand-logo img {
  filter: drop-shadow(0 14px 26px rgba(23,37,107,.14)) !important;
}

/* WD2 continuous carousel + service cards carousel */

/* Service cards / capability cards on desktop */
.wd2-service-carousel,
.services-grid,
.capabilities-grid,
.features-grid {
  align-items: stretch !important;
}

.wd2-service-carousel > *,
.services-grid > *,
.capabilities-grid > *,
.features-grid > * {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Better card alignment generally */
.price-card,
.portfolio-card,
.wd2-service-carousel > *,
.services-grid > *,
.capabilities-grid > *,
.features-grid > *,
#process .process > *,
.process > * {
  display: flex !important;
  flex-direction: column !important;
}

.price-card .btn,
.price-card button,
.portfolio-card .btn,
.portfolio-card button,
.wd2-service-carousel .btn,
.wd2-service-carousel button,
.services-grid .btn,
.services-grid button,
.capabilities-grid .btn,
.capabilities-grid button,
.features-grid .btn,
.features-grid button {
  margin-top: auto !important;
}

/* Fix build process mobile cards: remove forced empty height */
@media (max-width: 760px) {
  #process .process > *,
  .process > * {
    min-height: auto !important;
    height: auto !important;
    align-self: stretch !important;
    justify-content: flex-start !important;
  }

  #process .process > * p,
  .process > * p {
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }

  #process .process > * h3,
  .process > * h3 {
    min-height: 0 !important;
  }

  /* Service/capability cards carousel on mobile */
  .wd2-service-carousel,
  .services-grid,
  .capabilities-grid,
  .features-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(84%, 1fr) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 4px !important;
    padding: 4px 4px 14px !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  .wd2-service-carousel > *,
  .services-grid > *,
  .capabilities-grid > *,
  .features-grid > * {
    scroll-snap-align: start !important;
    min-width: 0 !important;
    min-height: auto !important;
    height: auto !important;
  }

  .wd2-service-carousel::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .capabilities-grid::-webkit-scrollbar,
  .features-grid::-webkit-scrollbar {
    height: 5px;
  }

  .wd2-service-carousel::-webkit-scrollbar-thumb,
  .services-grid::-webkit-scrollbar-thumb,
  .capabilities-grid::-webkit-scrollbar-thumb,
  .features-grid::-webkit-scrollbar-thumb {
    background: rgba(23,37,107,.22);
    border-radius: 999px;
  }

  /* Circular carousel clones */
  .wd2-carousel-clone {
    pointer-events: none;
  }
}

@media (max-width: 430px) {
  .wd2-service-carousel,
  .services-grid,
  .capabilities-grid,
  .features-grid {
    grid-auto-columns: minmax(88%, 1fr) !important;
  }
}
