/* Shared visual polish for tallysolutions-me.com public pages */
:root {
  --tz-primary: #007bff;
  --tz-primary-dark: #0056b3;
  --tz-navy: #0b1437;
  --tz-gold: #ffb100;
  --tz-success: #00a651;
  --tz-bg: #f5f7fb;
  --tz-card: #ffffff;
  --tz-text: #111827;
  --tz-muted: #4b5563;
  --tz-border: #e5e7eb;
  --tz-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  --tz-shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.14);
  --tz-radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 177, 0, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(0, 123, 255, 0.09), transparent 26rem),
    var(--tz-bg) !important;
  color: var(--tz-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topbar,
.top-wrapper .topbar {
  background: linear-gradient(90deg, #08122f, #0b235d) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-logo {
  border-radius: 10px;
  background: #fff;
  padding: 2px;
}

.nav-title {
  color: #374151 !important;
  font-weight: 700 !important;
}

.nav-menu a,
.nav-menu > a,
.nav-dropdown-toggle,
.dropdown > a {
  color: #1f2937 !important;
  font-weight: 700 !important;
}

.nav-menu a:hover,
.nav-menu > a:hover,
.nav-dropdown-toggle:hover,
.dropdown > a:hover {
  color: var(--tz-primary) !important;
}

.nav-dropdown-menu,
.dropdown-menu {
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--tz-shadow-lg) !important;
}

.hero {
  border-radius: 28px;
}

.badge {
  background: #fff7d6 !important;
  border: 1px solid #ffe19b;
  color: #654a00 !important;
  font-weight: 800 !important;
}

.hero h1,
h1 {
  letter-spacing: -0.055em;
}

.hero-sub,
.section-sub,
.section-header p,
.card p,
.service-text,
.faq-a {
  color: var(--tz-muted) !important;
}

.btn-primary,
.nav-cta,
button.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, var(--tz-primary), #4f46e5) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 10px 22px rgba(0, 123, 255, 0.23);
}

.btn-primary:hover,
.nav-cta:hover,
button.btn-primary:hover,
a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 123, 255, 0.32);
}

.btn-outline,
button.btn-outline,
a.btn-outline {
  background: #fff !important;
  color: var(--tz-primary) !important;
  border: 1px solid rgba(0, 123, 255, 0.35) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.btn-outline:hover,
button.btn-outline:hover,
a.btn-outline:hover {
  background: #eef6ff !important;
  color: var(--tz-primary-dark) !important;
  transform: translateY(-2px);
}

.card,
.review-card,
.feature-card,
.price-card,
.info-card,
.mini-card,
.faq,
.seo-enhanced,
.contact-highlight,
.hero-panel,
.panel {
  border: 1px solid rgba(229, 231, 235, 0.95) !important;
  box-shadow: var(--tz-shadow) !important;
}

.card,
.review-card,
.feature-card,
.price-card,
.info-card,
.mini-card,
.faq,
.seo-enhanced,
.contact-highlight,
.hero-panel,
.panel,
.service-card,
.industry-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.review-card:hover,
.feature-card:hover,
.price-card:hover,
.info-card:hover,
.mini-card:hover,
.service-card:hover,
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tz-shadow-lg) !important;
}

.service-card,
.industry-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(145deg, #0f67ff, #043a82) !important;
}

.service-card,
.service-card h2,
.service-card h3,
.service-card h4,
.service-card .service-title,
.service-card .service-text,
.service-card .service-description,
.service-card .card-text,
.service-card p,
.service-card li,
.service-card a,
.industry-card,
.industry-card h2,
.industry-card h3,
.industry-card h4,
.industry-card .service-title,
.industry-card .service-text,
.industry-card .service-description,
.industry-card .card-text,
.industry-card p,
.industry-card li,
.industry-card a {
  color: #ffffff !important;
}

.service-card .service-text,
.service-card .service-description,
.service-card .card-text,
.service-card p,
.service-card li,
.industry-card .service-text,
.industry-card .service-description,
.industry-card .card-text,
.industry-card p,
.industry-card li {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.service-card .badge,
.service-card .tag,
.service-card .service-tag,
.industry-card .badge,
.industry-card .tag,
.industry-card .service-tag {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

.service-icon,
.icon,
.mini-icon {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.section-header h2,
.section-title,
.section-title h2 {
  color: var(--tz-text) !important;
  letter-spacing: -0.035em;
}

.cta-strip,
.cta {
  background: linear-gradient(135deg, #0f67ff, #4f46e5) !important;
  box-shadow: var(--tz-shadow-lg);
}

.floating-contact a {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24) !important;
}

footer {
  background: linear-gradient(90deg, #08122f, #111827) !important;
}

img {
  max-width: 100%;
}

@media (max-width: 900px) {
  main,
  .section,
  .nav,
  .topbar-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero {
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .floating-contact {
    left: 0.6rem;
    right: 0.6rem !important;
    bottom: 0.6rem !important;
    flex-direction: row !important;
  }

  .floating-contact a {
    flex: 1;
    text-align: center;
    white-space: normal !important;
  }
}
