/* ============================================================
   VisiHost — Full Visual Overhaul
   Style: Approachable + Warm (Mailchimp/Notion-inspired)
   Layered ON TOP of /assets/visiblehost-site.css
   ============================================================ */

/* ---- 1. Root tokens (warm palette) ---- */
:root {
  --vh-cream:        #FFF8F0;
  --vh-cream-deep:   #FDF1E1;
  --vh-coral:        #FF7A59;
  --vh-coral-deep:   #E85A3C;
  --vh-coral-soft:   #FFD4C7;
  --vh-teal:         #14B8A6;
  --vh-teal-deep:    #0F9488;
  --vh-magenta:      #E83E8C;
  --vh-magenta-deep: #C42E73;
  --vh-ink:          #1F2937;
  --vh-ink-soft:     #4B5563;
  --vh-ink-muted:    #6B7280;
  --vh-warm-gray:    #F9FAFB;
  --vh-yellow:       #FBBF24;
  --vh-yellow-soft:  #FEF3C7;

  --vh-radius-sm:    12px;
  --vh-radius-md:    20px;
  --vh-radius-lg:    28px;
  --vh-radius-pill:  999px;

  --vh-shadow-sm:    0 2px 8px rgba(31, 41, 55, 0.06);
  --vh-shadow-md:    0 8px 24px rgba(31, 41, 55, 0.08);
  --vh-shadow-lg:    0 16px 48px rgba(31, 41, 55, 0.12);
  --vh-shadow-glow:  0 0 0 4px rgba(255, 122, 89, 0.18);

  --vh-transition:   200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 2. Global typography & body ---- */
html { scroll-behavior: smooth; }

body {
  background: var(--vh-cream) !important;
  color: var(--vh-ink) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  color: var(--vh-ink) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem) !important; font-weight: 800 !important; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem) !important; font-weight: 700 !important; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important; font-weight: 600 !important; }

p { color: var(--vh-ink-soft); }

a {
  color: var(--vh-coral-deep);
  transition: color var(--vh-transition);
}
a:hover { color: var(--vh-coral); }

/* ---- 3. Header polish ---- */
.site-header {
  background: rgba(255, 248, 240, 0.85) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.06) !important;
  box-shadow: var(--vh-shadow-sm);
  transition: box-shadow var(--vh-transition);
}
.site-header.scrolled {
  box-shadow: var(--vh-shadow-md);
}
.brand-mark img {
  height: 44px !important;
  transition: transform var(--vh-transition);
}
.brand-mark:hover img { transform: scale(1.04); }

.nav-links a {
  color: var(--vh-ink-soft) !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  border-radius: var(--vh-radius-pill) !important;
  transition: all var(--vh-transition) !important;
}
.nav-links a:hover {
  background: var(--vh-coral-soft) !important;
  color: var(--vh-coral-deep) !important;
}
.nav-links a.btn,
.nav-links a[class*="btn"] {
  background: linear-gradient(135deg, var(--vh-coral) 0%, var(--vh-coral-deep) 100%) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: var(--vh-radius-pill) !important;
  box-shadow: 0 4px 12px rgba(232, 90, 60, 0.32) !important;
  transition: all var(--vh-transition) !important;
}
.nav-links a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 90, 60, 0.4) !important;
}

/* ---- 4. Hero section warmth ---- */
.hero,
section[class*="hero"],
[class*="hero-section"] {
  background: linear-gradient(180deg, var(--vh-cream) 0%, var(--vh-cream-deep) 100%) !important;
  position: relative;
  overflow: hidden;
}
.hero::before,
section[class*="hero"]::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::after,
section[class*="hero"]::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero > *,
section[class*="hero"] > * {
  position: relative;
  z-index: 1;
}

/* ---- 5. Cards: rounded, soft, hover-lift ---- */
.card,
[class*="card"],
.pricing-card,
.plan,
.feature,
[class*="feature-card"],
[class*="service-card"] {
  background: white !important;
  border-radius: var(--vh-radius-md) !important;
  border: 1px solid rgba(31, 41, 55, 0.06) !important;
  box-shadow: var(--vh-shadow-sm) !important;
  padding: 28px !important;
  transition: transform var(--vh-transition), box-shadow var(--vh-transition) !important;
}
.card:hover,
[class*="card"]:hover,
.pricing-card:hover,
.plan:hover,
.feature:hover,
[class*="feature-card"]:hover,
[class*="service-card"]:hover {
  transform: translateY(-6px);
  box-shadow: var(--vh-shadow-lg) !important;
  border-color: var(--vh-coral-soft) !important;
}

/* ---- 6. Buttons: pill, gradient, hover-lift ---- */
.btn,
button,
input[type="submit"],
a[class*="btn"]:not(.nav-links a) {
  border-radius: var(--vh-radius-pill) !important;
  font-weight: 600 !important;
  padding: 12px 26px !important;
  transition: all var(--vh-transition) !important;
  cursor: pointer;
}
.btn-primary,
.btn:not([class*="secondary"]):not([class*="ghost"]):not([class*="outline"]) {
  background: linear-gradient(135deg, var(--vh-coral) 0%, var(--vh-coral-deep) 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(232, 90, 60, 0.32) !important;
}
.btn-primary:hover,
.btn:not([class*="secondary"]):not([class*="ghost"]):not([class*="outline"]):hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(232, 90, 60, 0.42) !important;
}
.btn-secondary,
.btn[class*="secondary"],
.btn[class*="outline"] {
  background: white !important;
  color: var(--vh-coral-deep) !important;
  border: 2px solid var(--vh-coral-soft) !important;
}
.btn-secondary:hover,
.btn[class*="secondary"]:hover,
.btn[class*="outline"]:hover {
  background: var(--vh-cream) !important;
  border-color: var(--vh-coral) !important;
}

/* ---- 7. Forms: warm, rounded, focus-glow ---- */
input,
textarea,
select {
  border-radius: var(--vh-radius-sm) !important;
  border: 2px solid rgba(31, 41, 55, 0.1) !important;
  padding: 12px 16px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  transition: all var(--vh-transition) !important;
  background: white !important;
}
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--vh-coral) !important;
  box-shadow: var(--vh-shadow-glow) !important;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--vh-coral) !important;
  width: 18px !important;
  height: 18px !important;
}

/* ---- 8. Section padding & rhythm ---- */
section,
.section {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

/* ---- 9. Footer: warm dark ---- */
footer,
.site-footer,
[class*="footer"] {
  background: linear-gradient(135deg, #1F2937 0%, #2D3748 100%) !important;
  color: #D1D5DB !important;
  padding: 60px 0 32px !important;
  border-top-left-radius: var(--vh-radius-lg);
  border-top-right-radius: var(--vh-radius-lg);
  margin-top: 80px;
}
footer a,
.site-footer a,
[class*="footer"] a {
  color: #FBCFE8 !important;
  transition: color var(--vh-transition);
}
footer a:hover,
.site-footer a:hover,
[class*="footer"] a:hover { color: var(--vh-coral) !important; }
footer h4, footer h5,
.site-footer h4, .site-footer h5,
[class*="footer"] h4, [class*="footer"] h5 {
  color: white !important;
  margin-bottom: 16px;
}

/* ---- 10. Animations: fade-in on scroll ---- */
[data-vh-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
[data-vh-animate].vh-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 11. Skip-to-content link (a11y) ---- */
.vh-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--vh-coral);
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 var(--vh-radius-sm) var(--vh-radius-sm);
  font-weight: 600;
  z-index: 99999;
  transition: top var(--vh-transition);
}
.vh-skip-link:focus {
  top: 0;
}

/* ---- 12. Focus-visible for keyboard a11y ---- */
*:focus-visible {
  outline: 3px solid var(--vh-coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- 13. Scrollbar polish ---- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--vh-cream); }
::-webkit-scrollbar-thumb {
  background: var(--vh-coral-soft);
  border-radius: var(--vh-radius-pill);
  border: 3px solid var(--vh-cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--vh-coral); }

/* ---- 14. Image lazy-loading fade-in ---- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 600ms ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ---- 15. Pricing cards: highlight "popular" plan ---- */
.pricing-card.popular,
.plan.popular,
[class*="featured-plan"] {
  border: 3px solid var(--vh-coral) !important;
  position: relative;
}
.pricing-card.popular::before,
.plan.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--vh-coral) 0%, var(--vh-coral-deep) 100%);
  color: white;
  padding: 5px 18px;
  border-radius: var(--vh-radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(232, 90, 60, 0.3);
}

/* ---- 16. Mobile: tighten spacing, ensure tap targets ---- */
@media (max-width: 768px) {
  section, .section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .nav-links a { padding: 12px 16px !important; }
  .card, [class*="card"] { padding: 20px !important; }
}

/* ---- 17. Print: clean output ---- */
@media print {
  .vh-chat-widget, .vh-sticky-cta, .vh-social-proof,
  .nav-links, .site-header { display: none !important; }
  body { background: white !important; }
}

/* ---- 18. Reduced motion: respect user preference ---- */
@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;
  }
  [data-vh-animate] { opacity: 1; transform: none; }
}
