/*
Theme Name: NEXDENT
Theme URI: https://nexdent.ae
Author: NEXDENT
Author URI: https://nexdent.ae
Description: Clinical VR Dental Training platform theme. All content editable via Customize panel. Faithful conversion of the original React + Tailwind design.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: nexdent
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ══════════════════════════════════════════
   DESIGN TOKENS (from index.css :root)
   ══════════════════════════════════════════ */
:root {
  /* Core palette – HSL values from original */
  --background: 210 40% 97%;
  --foreground: 215 28% 17%;
  --card: 210 40% 96%;
  --card-foreground: 215 28% 17%;
  --primary: 217 91% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 175 84% 32%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 263 70% 58%;
  --border: 210 20% 90%;
  --ring: 210 100% 50%;
  --radius: 0.5rem;

  /* Gradients */
  --gradient-clinical: linear-gradient(180deg, hsl(210 40% 98%) 0%, hsl(210 40% 96%) 100%);
  --gradient-blue: linear-gradient(135deg, hsl(217 91% 53%) 0%, hsl(224 76% 40%) 100%);
  --gradient-soft: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(210 40% 97%) 100%);
  --gradient-teal: linear-gradient(135deg, hsl(175 84% 32%) 0%, hsl(199 89% 48%) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px hsl(215 28% 17% / 0.04);
  --shadow-md: 0 4px 12px hsl(215 28% 17% / 0.06);
  --shadow-lg: 0 8px 30px hsl(215 28% 17% / 0.08);
  --shadow-xl: 0 20px 50px hsl(215 28% 17% / 0.12);
}

/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s ease; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ══════════════════════════════════════════
   LAYOUT UTILITIES
   ══════════════════════════════════════════ */
.container-narrow { max-width: 80rem; margin: 0 auto; }
.section-padding { padding: 5rem 1.5rem; }
@media (min-width: 640px) { .section-padding { padding: 5rem 2rem; } }
@media (min-width: 1024px) { .section-padding { padding: 7rem 3rem; } }

/* ══════════════════════════════════════════
   COMPONENT CLASSES
   ══════════════════════════════════════════ */
.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.clinical-bg { background: var(--gradient-clinical); }
.soft-bg { background: var(--gradient-soft); }
.blue-gradient-bg { background: var(--gradient-blue); }

.section-label {
  display: inline-block;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-heading {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.section-desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.card-clean {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-clean:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary-lg { padding: 0.875rem 2rem; height: 3.5rem; }
.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid hsl(var(--border));
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-white {
  background: hsl(0 0% 100%);
  color: hsl(var(--primary));
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }

/* Inputs */
.input-field {
  width: 100%;
  padding: 0.75rem 1.5rem;
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.input-field:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12); }
.input-field::placeholder { color: hsl(var(--muted-foreground)); }
.input-round { border-radius: 9999px; padding: 0.75rem 1.5rem; height: 3.5rem; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }

.anim-fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.anim-slide-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.anim-slide-right { opacity: 0; transform: translateX(40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.anim-fade-up.visible, .anim-slide-left.visible, .anim-slide-right.visible { opacity: 1; transform: translate(0); }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .header-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .header-inner { padding: 0 3rem; } }

.site-logo img { height: 4rem; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 5rem; } }

/* Nav — desktop */
.main-nav .nd-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .nd-menu li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  position: relative;
  padding-bottom: 2px;
  text-decoration: none;
}
.main-nav .nd-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: hsl(var(--primary));
  transition: width 0.25s ease;
}
.main-nav .nd-menu li a:hover {
  color: hsl(var(--primary));
}
.main-nav .nd-menu li a:hover::after {
  width: 100%;
}
/* CTA button in nav */
.main-nav .nd-menu li.menu-item-cta a {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.625rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.main-nav .nd-menu li.menu-item-cta a::after { display: none; }
.main-nav .nd-menu li.menu-item-cta a:hover {
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}
/* Hide sub-menus (this theme is single-level) */
.main-nav .nd-menu .sub-menu { display: none !important; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
}
.mobile-toggle svg { width: 24px; height: 24px; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 9998;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: hsl(var(--primary)); }
.mobile-nav a.btn {
  border-bottom: none;
  color: hsl(var(--primary-foreground));
  text-align: center;
  padding: 0.875rem 2rem;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.mobile-nav a.btn:hover {
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}

@media (max-width: 767px) {
  .main-nav { display: none; }
  .header-cta-desktop { display: none; }
  .mobile-toggle { display: block; }
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
/* On phones, don't force full viewport height — let content breathe */
@media (max-width: 639px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
    align-items: flex-start;
  }
}
.hero .clinical-bg { position: absolute; inset: 0; z-index: 0; background: var(--gradient-clinical); }
.hero-pattern {
  position: absolute; inset: 0; z-index: 1; opacity: 0.3;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--border)) 1px, transparent 0);
  background-size: 40px 40px;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 80rem; margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .hero-grid { padding: 0 2rem; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 5rem; padding: 0 3rem; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsl(145 60% 42% / 0.1);
  color: hsl(145 60% 32%);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: hsl(145 60% 32%);
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

/* Hero CTA buttons */
.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid hsl(var(--border));
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

/* Hero trust */
.hero-trust {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: hsl(var(--muted-foreground));
}
.hero-trust-item svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); fill: hsl(var(--primary)); }

/* Hero image */
.hero-visual { position: relative; }
@media (min-width: 1024px) { .hero-visual { padding-left: 2rem; } }
.hero-img-wrap {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-img-wrap img { width: 100%; height: auto; object-fit: cover; }
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(var(--foreground) / 0.2), transparent);
}
.hero-stat-card {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 1rem;
  z-index: 3;
}
.hero-stat-circle {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem; color: hsl(var(--primary));
}
.hero-stat-card .label { font-size: 0.875rem; font-weight: 700; color: hsl(var(--foreground)); }
.hero-stat-card .sublabel { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ══════════════════════════════════════════
   PROBLEM SECTION (The Challenge)
   ══════════════════════════════════════════ */
.problem { position: relative; }
.problem-header { max-width: 48rem; margin: 0 auto; text-align: center; margin-bottom: 4rem; }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }

.problem-card {
  padding: 2rem;
  text-align: center;
}
.problem-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background 0.3s ease;
}
.problem-card:hover .problem-icon { background: hsl(var(--primary) / 0.2); }
.problem-icon svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary)); }
.problem-stat { font-size: 2.5rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.problem-label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.problem-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* ══════════════════════════════════════════
   SOLUTION SECTION
   ══════════════════════════════════════════ */
.solution { position: relative; overflow: hidden; background: hsl(var(--card)); }
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .solution-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

.solution-img-wrap { position: relative; }
.solution-img-wrap .img-main { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-xl); }
.solution-img-wrap .img-main img { width: 100%; height: auto; object-fit: cover; }
.solution-float-card {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 1rem;
}
.solution-float-circle {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: hsl(var(--primary-foreground));
}
.solution-float-card .label { font-size: 0.875rem; font-weight: 700; color: hsl(var(--foreground)); }
.solution-float-card .sublabel { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.feature-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-check {
  width: 1.5rem; height: 1.5rem; min-width: 1.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.125rem;
}
.feature-check svg { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.feature-item span { color: hsl(var(--foreground)); font-weight: 500; }

/* ══════════════════════════════════════════
   BENEFITS
   ══════════════════════════════════════════ */
.benefits-header { max-width: 48rem; margin: 0 auto; text-align: center; margin-bottom: 4rem; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card { padding: 2rem; }
.benefit-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.benefit-card:hover .benefit-icon { background: hsl(var(--primary)); transform: scale(1.05); }
.benefit-icon svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary)); transition: color 0.3s ease; }
.benefit-card:hover .benefit-icon svg { color: hsl(var(--primary-foreground)); }
.benefit-card h3 { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.75rem; }
.benefit-card p { color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ══════════════════════════════════════════
   TRUST SECTION
   ══════════════════════════════════════════ */
.trust { overflow: hidden; background: hsl(var(--card)); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.trust-stat-value {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}
.trust-stat-label { color: hsl(var(--muted-foreground)); font-weight: 500; }
.trust-img { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-xl); }
.trust-img img { width: 100%; height: auto; object-fit: cover; }

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section { position: relative; overflow: hidden; }
.cta-pattern {
  position: absolute; inset: 0; opacity: 0.2;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--border)) 1px, transparent 0);
  background-size: 32px 32px;
}
.cta-card {
  max-width: 48rem;
  margin: 0 auto;
  background: hsl(var(--card));
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative; z-index: 1;
}
@media (min-width: 640px) { .cta-card { padding: 3.5rem; } }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .cta-form { flex-direction: row; } }
.cta-form .input-round { text-align: center; }
@media (min-width: 640px) { .cta-form .input-round { text-align: left; } }
.cta-note { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 1.5rem; }

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq-section { background: hsl(var(--muted) / 0.3); }
.faq-header { max-width: 48rem; margin: 0 auto; text-align: center; margin-bottom: 3rem; }
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: hsl(var(--background));
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  gap: 1rem;
}
.faq-question:hover { color: hsl(var(--primary)); }
.faq-chevron {
  width: 1.25rem; height: 1.25rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: hsl(var(--primary) / 0.05);
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.footer-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 640px) { .footer-inner { padding: 4rem 2rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 4rem 3rem; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand img { height: 3rem; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { color: hsl(var(--muted-foreground)); max-width: 28rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-social {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary));
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.25s ease;
}
.footer-social:hover { background: hsl(var(--primary) / 0.2); }

/* Footer social SVG icons */
.footer-social svg { width: 1.125rem; height: 1.125rem; display: block; }

.footer-col h4 { font-size: 1.125rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 1.5rem; }
.footer-col ul,
.footer-col .footer-menu { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.footer-col ul li a,
.footer-col .footer-menu li a { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; text-decoration: none; }
.footer-col ul li a:hover,
.footer-col .footer-menu li a:hover { color: hsl(var(--primary)); }
/* Hide WP sub-menus in footer */
.footer-col .footer-menu .sub-menu { display: none !important; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact-item svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; margin-top: 0.125rem; }
.footer-contact-item a, .footer-contact-item span { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.footer-contact-item a:hover { color: hsl(var(--primary)); }

/* Prevent oversized SVGs inside buttons/links due to global SVG rules from plugins */
.btn svg, .footer-social svg { max-width: 1.5rem; max-height: 1.5rem; width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* Mobile polish: ensure hero content fits and avoids horizontal overflow */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; }
  .hero-grid { padding-left: 1rem; padding-right: 1rem; gap: 2rem; }
  .hero-cta-wrap { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 0.75rem; }
  .cta-card { padding: 1.75rem; }
}

/* Hero order is handled in the 1023px breakpoint above */

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: hsl(var(--muted-foreground)); }
.footer-legal a:hover { color: hsl(var(--primary)); }

/* ══════════════════════════════════════════
   BLOG — Hero Banner
   ══════════════════════════════════════════ */
.blog-hero {
  position: relative;
  padding: 9rem 1.5rem 3rem;
  text-align: center;
  background: var(--gradient-clinical);
  overflow: hidden;
}
@media (min-width: 640px) { .blog-hero { padding: 10rem 2rem 3.5rem; } }
@media (min-width: 1024px) { .blog-hero { padding: 10rem 3rem 4rem; } }
.blog-hero-pattern {
  position: absolute; inset: 0; opacity: 0.2;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--border)) 1px, transparent 0);
  background-size: 40px 40px;
}
.blog-hero-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; }
.blog-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.15;
  margin-bottom: 1rem;
}
.blog-hero-desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* Search */
.blog-search-wrap { max-width: 28rem; margin: 0 auto 1.5rem; }
.blog-search-form { display: flex; gap: 0.5rem; position: relative; }
.blog-search-input { flex: 1; padding-right: 3.5rem; }
.blog-search-btn {
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Category Filters */
.blog-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem; margin-top: 1.5rem;
}
.blog-filter-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  transition: all 0.25s ease;
}
.blog-filter-tag:hover, .blog-filter-tag.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* ══════════════════════════════════════════
   BLOG — Archive Grid
   ══════════════════════════════════════════ */
.blog-archive { padding: 3rem 1.5rem 4rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 640px) { .blog-archive { padding: 3.5rem 2rem 5rem; } }
@media (min-width: 1024px) { .blog-archive { padding: 4rem 3rem 5rem; } }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.blog-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img-link { display: block; }
.blog-card-img { width: 100%; height: 13rem; overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder {
  width: 100%; height: 100%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary-foreground)); opacity: 0.6;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-cat {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: hsl(var(--primary)); margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
a.blog-card-cat:hover { color: hsl(var(--primary) / 0.7); }
.blog-card h3 { font-size: 1.125rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card h3 a:hover { color: hsl(var(--primary)); }
.blog-card .excerpt { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.blog-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: hsl(var(--muted-foreground)); flex-wrap: wrap; }
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: hsl(var(--muted-foreground) / 0.4); flex-shrink: 0; }
.blog-meta-avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; }

/* Pagination */
.blog-pagination { text-align: center; margin-top: 3rem; padding-bottom: 2rem; }
.blog-pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  transition: all 0.2s ease;
}
.blog-pagination .page-numbers:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.blog-pagination .page-numbers.current { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.blog-pagination .page-numbers svg { vertical-align: middle; }

/* Empty State */
.blog-empty {
  text-align: center; padding: 5rem 1.5rem;
}
.blog-empty-icon {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; color: hsl(var(--primary));
}
.blog-empty h2 { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.75rem; }
.blog-empty p { color: hsl(var(--muted-foreground)); max-width: 28rem; margin: 0 auto; }

/* ══════════════════════════════════════════
   BLOG — Single Post
   ══════════════════════════════════════════ */
.single-post { background: hsl(var(--background)); }

/* Header */
.single-post-header {
  padding: 9rem 1.5rem 3rem;
  text-align: center;
  background: var(--gradient-clinical);
}
@media (min-width: 640px) { .single-post-header { padding: 10rem 2rem 3.5rem; } }
.single-post-header-inner { max-width: 48rem; margin: 0 auto; }
.single-back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground));
  margin-bottom: 2rem; transition: color 0.2s ease;
}
.single-back-link:hover { color: hsl(var(--primary)); }
.single-post-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700;
  color: hsl(var(--foreground)); line-height: 1.2; margin-bottom: 1.5rem;
  text-wrap: balance;
}
.single-post-meta {
  display: inline-flex; align-items: center; gap: 0.75rem; text-align: left;
}
.single-meta-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.single-meta-author { font-weight: 600; color: hsl(var(--foreground)); font-size: 0.9375rem; }
.single-meta-details { font-size: 0.8rem; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 0.5rem; margin-top: 0.125rem; }

/* Featured Image */
.single-post-featured {
  max-width: 56rem; margin: -2rem auto 3rem; padding: 0 1.5rem;
}
@media (min-width: 640px) { .single-post-featured { padding: 0 2rem; } }
.single-post-featured img { width: 100%; border-radius: 1rem; box-shadow: var(--shadow-lg); }

/* Content */
.single-post-content {
  max-width: 45rem; margin: 0 auto; padding: 0 1.5rem 3rem;
  font-size: 1.05rem; line-height: 1.85; color: hsl(215 28% 30%);
}
@media (min-width: 640px) { .single-post-content { padding: 0 2rem 3rem; } }
.single-post-content h2 { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); margin: 2.5rem 0 1rem; }
.single-post-content h3 { font-size: 1.2rem; font-weight: 700; color: hsl(var(--foreground)); margin: 2rem 0 0.75rem; }
.single-post-content h4 { font-size: 1.05rem; font-weight: 700; color: hsl(var(--foreground)); margin: 1.5rem 0 0.5rem; }
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content a { color: hsl(var(--primary)); border-bottom: 1px solid hsl(var(--primary) / 0.3); }
.single-post-content a:hover { border-bottom-color: hsl(var(--primary)); }
.single-post-content blockquote {
  border-left: 3px solid hsl(var(--primary)); padding: 0.5rem 0 0.5rem 1.5rem; margin: 1.5rem 0;
  font-style: italic; color: hsl(var(--muted-foreground));
}
.single-post-content img { border-radius: 0.75rem; margin: 1.5rem 0; }
.single-post-content ul, .single-post-content ol { margin: 0 0 1.25rem 1.5rem; }
.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }
.single-post-content li { margin-bottom: 0.5rem; }
.single-post-content pre {
  background: hsl(var(--foreground)); color: hsl(210 40% 92%);
  padding: 1.25rem 1.5rem; border-radius: 0.75rem; overflow-x: auto;
  margin: 1.5rem 0; font-size: 0.875rem; line-height: 1.6;
}
.single-post-content code { font-size: 0.875em; background: hsl(var(--muted)); padding: 0.15em 0.4em; border-radius: 0.25rem; }
.single-post-content pre code { background: none; padding: 0; }
.single-post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.single-post-content th, .single-post-content td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); }
.single-post-content th { font-weight: 600; color: hsl(var(--foreground)); background: hsl(var(--muted)); }

/* Tags */
.single-post-tags {
  max-width: 45rem; margin: 0 auto; padding: 0 1.5rem 2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.single-tag {
  display: inline-block; padding: 0.375rem 0.875rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 500;
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
  transition: all 0.2s ease;
}
.single-tag:hover { background: hsl(var(--primary) / 0.15); }

/* Share */
.single-share {
  max-width: 45rem; margin: 0 auto; padding: 0 1.5rem 2.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.single-share-label { font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); }
.single-share-btns { display: flex; gap: 0.5rem; }
.single-share-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground)); cursor: pointer; font-family: inherit;
  font-size: 0.75rem; transition: all 0.2s ease;
}
.single-share-btn:hover { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.3); }
.single-share-btn svg { width: 1rem; height: 1rem; }

/* Author Box */
.single-author-box {
  max-width: 45rem; margin: 0 auto 3rem; padding: 0 1.5rem;
}
.single-author-box > div:last-child, .single-author-box {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.single-author-box > div:last-child { display: block; border: none; background: none; padding: 0; box-shadow: none; }
.single-author-avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.single-author-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--primary)); font-weight: 600; margin-bottom: 0.25rem; }
.single-author-name { font-size: 1.125rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.single-author-bio { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* Post Navigation */
.single-post-nav {
  max-width: 45rem; margin: 0 auto 3rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .single-post-nav { grid-template-columns: 1fr 1fr; } }
.single-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem; border-radius: 0.75rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  transition: all 0.25s ease;
}
.single-nav-link:hover { border-color: hsl(var(--primary) / 0.3); box-shadow: var(--shadow-md); }
.single-nav-link svg { flex-shrink: 0; color: hsl(var(--muted-foreground)); }
.single-nav-link small { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 0.25rem; }
.single-nav-link span { font-weight: 600; color: hsl(var(--foreground)); font-size: 0.9375rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.single-nav-next { text-align: right; justify-content: flex-end; }

/* Related Posts */
.single-related {
  max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem 4rem;
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 640px) { .single-related { padding: 4rem 2rem 5rem; } }
@media (min-width: 1024px) { .single-related { padding: 4rem 3rem 5rem; } }
.single-related-title {
  font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground));
  text-align: center; margin-bottom: 2.5rem;
}

/* Comments */
.single-comments-wrap {
  max-width: 45rem; margin: 0 auto; padding: 0 1.5rem 5rem;
}
.single-comments-wrap .comments-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem; }
.single-comments-wrap .comment { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid hsl(var(--border)); }
.single-comments-wrap .comment-author img { border-radius: 50%; float: left; margin-right: 1rem; }
.single-comments-wrap .comment-content { overflow: hidden; }
.single-comments-wrap .comment-content p { margin-bottom: 0.5rem; }
.single-comments-wrap .comment-respond { margin-top: 3rem; }
.single-comments-wrap label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: hsl(var(--foreground)); }
.single-comments-wrap input[type="text"],
.single-comments-wrap input[type="email"],
.single-comments-wrap textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; font-family: inherit; font-size: 0.9375rem; margin-bottom: 1rem; background: hsl(var(--background)); }
.single-comments-wrap textarea { min-height: 8rem; resize: vertical; }
.single-comments-wrap input[type="submit"] {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border: none; padding: 0.75rem 2rem; border-radius: 9999px;
  font-family: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: all 0.25s ease;
}
.single-comments-wrap input[type="submit"]:hover { background: hsl(var(--primary) / 0.9); }

/* ══════════════════════════════════════════
   PAGE
   ══════════════════════════════════════════ */
.page-content { padding: 10rem 1.5rem 5rem; max-width: 50rem; margin: 0 auto; }
.page-content h1 { font-size: 2.5rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 2rem; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* Hero: text first, image second on tablet & mobile */
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  /* Solution section: content first, image second */
  .solution-img-order { order: 2; }
  .solution-content-order { order: 1; }
  .hero-stat-card { bottom: -1rem; left: 0; }
  .solution-float-card { bottom: -1rem; right: 0; }
}
@media (max-width: 639px) {
  .hero-stat-card, .solution-float-card { position: relative; bottom: auto; left: auto; right: auto; margin-top: 1rem; display: inline-flex; }
  /* Give image wrap bottom padding so stat card doesn't clip */
  .hero-img-wrap { padding-bottom: 0; }
  /* Stack CTA buttons on very small phones */
  .hero-cta-wrap { flex-direction: column; align-items: flex-start; }
  .hero-cta-wrap .btn { width: 100%; justify-content: center; }
  .trust-stats { gap: 1.5rem; }
}


/* Mobile fit + spacing */
@media (max-width: 768px){
  html, body { overflow-x: hidden; }
  .page-content{ padding-left:16px; padding-right:16px; }
  .nx-form-card, .mc4wp-form{ max-width:100%; }
  .nx-form-card input, .mc4wp-form input, .mc4wp-form button{ max-width:100%; box-sizing:border-box; }
  /* Ensure no element bleeds off screen */
  img, video, iframe, table { max-width: 100%; }
  /* Section headings scale down on phones */
  .section-heading { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  /* Benefits grid single column on phones */
  .benefits-grid { grid-template-columns: 1fr !important; }
  /* Problem grid single column on phones */
  .problem-grid { grid-template-columns: 1fr !important; }
  /* Footer grid single column on phones */
  .footer-grid { grid-template-columns: 1fr !important; }
  /* CTA form full width on phones */
  .cta-form, .cta-mc4wp-wrap { max-width: 100%; }
  /* Adjust section padding for phones */
  .section-padding { padding: 3.5rem 1.25rem !important; }
  /* Trust stats grid 2 cols on phone */
  .trust-stats { grid-template-columns: 1fr 1fr; display: grid; gap: 1.5rem; }
}
/* ══════════════════════════════════════════
   MAILCHIMP (MC4WP) FORM — CTA SECTION
   ══════════════════════════════════════════ */

/* Wrapper centres and constrains the form */
.cta-mc4wp-wrap {
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

/* Hide {message} placeholder when empty */
.mc4wp-form .mc4wp-response:empty,
.mc4wp-form p:empty,
.cta-mc4wp-wrap .mc4wp-response:empty {
  display: none;
}

/* Hide the grey submit bar / extra elements MC4WP sometimes renders */
.mc4wp-form-fields > p:empty,
.mc4wp-form-fields br {
  display: none;
}

/* Labels */
.cta-mc4wp-wrap .mc4wp-form label,
.cta-mc4wp-wrap .mc4wp-form-fields label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
  text-align: left;
}

/* All text inputs, email, tel */
.cta-mc4wp-wrap .mc4wp-form input[type="text"],
.cta-mc4wp-wrap .mc4wp-form input[type="email"],
.cta-mc4wp-wrap .mc4wp-form input[type="tel"],
.cta-mc4wp-wrap .mc4wp-form input[type="number"],
.cta-mc4wp-wrap .mc4wp-form select,
.cta-mc4wp-wrap .mc4wp-form textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.cta-mc4wp-wrap .mc4wp-form input:focus,
.cta-mc4wp-wrap .mc4wp-form select:focus,
.cta-mc4wp-wrap .mc4wp-form textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}
.cta-mc4wp-wrap .mc4wp-form input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Submit button */
.cta-mc4wp-wrap .mc4wp-form input[type="submit"],
.cta-mc4wp-wrap .mc4wp-form button[type="submit"] {
  width: 100%;
  padding: 0.875rem 2rem;
  height: 3.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
  margin-top: 0.25rem;
}
.cta-mc4wp-wrap .mc4wp-form input[type="submit"]:hover,
.cta-mc4wp-wrap .mc4wp-form button[type="submit"]:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Success / error messages */
.cta-mc4wp-wrap .mc4wp-alert,
.cta-mc4wp-wrap .mc4wp-response p {
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  text-align: center;
}
.cta-mc4wp-wrap .mc4wp-alert-success,
.cta-mc4wp-wrap .mc4wp-success p {
  background: hsl(145 60% 95%);
  color: hsl(145 60% 28%);
  border: 1px solid hsl(145 60% 82%);
}
.cta-mc4wp-wrap .mc4wp-alert-error,
.cta-mc4wp-wrap .mc4wp-error p {
  background: hsl(0 60% 96%);
  color: hsl(0 60% 38%);
  border: 1px solid hsl(0 60% 85%);
}

/* Completely hide any empty paragraphs or ghost elements MC4WP injects */
.cta-mc4wp-wrap p:empty,
.cta-mc4wp-wrap .mc4wp-form p:empty {
  display: none !important;
}

/* ══════════════════════════════════════════
   GLOBAL FORM FEEDBACK — success / error
   Works with mc4wp responses in any context
   ══════════════════════════════════════════ */

/* Base response container */
.mc4wp-response,
.nx-form-messages {
  margin-top: 1rem;
}

/* Success — green */
.mc4wp-response .mc4wp-alert-success,
.mc4wp-form[data-status="success"] .mc4wp-response p,
.nx-form-card .mc4wp-response p:not(:empty) {
  padding: 0.875rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.mc4wp-response .mc4wp-alert-success,
.mc4wp-form[data-status="success"] .mc4wp-response p {
  background: hsl(145 60% 95%);
  color: hsl(145 60% 28%);
  border: 1px solid hsl(145 60% 82%);
}

/* Error — red */
.mc4wp-response .mc4wp-alert-error,
.mc4wp-form[data-status="error"] .mc4wp-response p {
  background: hsl(0 60% 96%);
  color: hsl(0 60% 38%);
  border: 1px solid hsl(0 60% 85%);
  padding: 0.875rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* HTML5 validation — red border on invalid fields after interaction */
.nx-field input:invalid:not(:placeholder-shown),
.nx-form-card input:invalid:not(:placeholder-shown),
.mc4wp-form input:invalid:not(:placeholder-shown) {
  border-color: hsl(0 60% 60%) !important;
  box-shadow: 0 0 0 3px hsl(0 60% 60% / 0.12) !important;
}

/* ══════════════════════════════════════════
   MOBILE POLISH — touch targets, logo, nav
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Logo smaller on phones */
  .site-logo img { height: 3rem; }
  /* Header height slightly smaller on phones */
  .header-inner { height: 4rem; }
  /* Hero top padding matches smaller header */
  .hero { padding-top: 4.5rem; }
  /* Bigger touch targets for nav links */
  .mobile-nav a:not(.btn) { padding: 0.875rem 0; min-height: 44px; }
  /* Mobile toggle touch target */
  .mobile-toggle { padding: 0.75rem; min-width: 44px; min-height: 44px; }
  /* Page content top padding on generic pages */
  .page-content { padding-top: 7rem; }
  /* Blog hero text size */
  .blog-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  /* Single post headings */
  .single-post-header h1 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  /* Contact page grid single col */
}

/* Extra small phones (< 375px) */
@media (max-width: 374px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
  .btn-primary-lg { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
  .section-heading { font-size: 1.4rem; }
  .cta-card { padding: 1.5rem 1.25rem; }
}

/* ══════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════ */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100000;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Keyboard focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Only remove outlines for mouse/touch (not keyboard) */
:focus:not(:focus-visible) {
  outline: none;
}

/* ══════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .anim-fade-up,
  .anim-slide-left,
  .anim-slide-right {
    opacity: 1;
    transform: none;
  }
}
