/* NucliVision - custom.css
   Accent: #2980b9 (medical blue)
   ALL values in px, NO rem
*/

/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --accent: #2980b9;
  --accent-dark: #1a5276;
  --accent-light: #3498db;
  --bg-white: #ffffff;
  --bg-light: #f4f7fb;
  --text-dark: #1a2533;
  --text-body: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --bg-rgb: 26, 37, 51;
}

/* ============================
   GLOBAL RESETS
   ============================ */
h1, h2, h3, h4, h5, h6 {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dark);
}

body {
  color: var(--text-body);
  font-size: 18px;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  background-color: #fff;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

/* ============================
   LAYOUT
   ============================ */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad {
  padding-top: 80px;
  padding-bottom: 80px;
}

.mb-60 {
  margin-bottom: 60px;
}

.bg-white {
  background-color: #ffffff;
  color: var(--text-body);
}

.bg-light-gray {
  background-color: #f4f7fb;
  color: var(--text-body);
}

.bg-accent-dark {
  background-color: var(--accent-dark);
  color: #ffffff;
}

/* ============================
   NAVBAR
   ============================ */
.bg-dark-nav {
  background-color: #1a2533 !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: #c8d6e5;
  font-size: 15px;
  padding: 8px 14px;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
  color: #ffffff;
}

.navbar-brand img {
  max-height: 36px;
}

/* R77: Nav cleanup */
.nav-item {
  margin-bottom: 0 !important;
  background-image: none !important;
}

.site-logo {
  max-width: none !important;
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* R75: Outline button on dark bg = white border+text */
.btn-secondary-outline {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.btn-secondary-outline:hover {
  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline-light-custom {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #ffffff;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.btn-outline-light-custom:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.12);
  color: #ffffff;
  text-decoration: none;
}

.btn-accent, .cta-primary, .cta-secondary {
  white-space: nowrap;
}

/* ============================
   SECTION HEADINGS
   ============================ */
.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================
   HERO
   ============================ */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 37, 51, 0.72);
  pointer-events: none !important;
}

/* R89: overlay must not block clicks */
.tm-bg-overlay, [class*="overlay"] {
  pointer-events: none !important;
}

/* R79: Hero container transparent */
.header-thumb {
  background: transparent !important;
  border: none !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.hero-h1 {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 20px;
  color: #c8d6e5;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ============================
   PAGE HERO (sub-pages)
   ============================ */
.page-hero {
  padding: 72px 0 64px;
  background-color: var(--accent-dark);
  color: #ffffff;
}

.page-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 20px;
  color: #c8d6e5;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================
   FEATURE CARDS
   ============================ */
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* R87: uniform feature card heading/text/icon sizes */
.feature-card .feature-icon {
  height: 48px;
  display: flex;
  align-items: center;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0;
}

/* R81: Force accent on icons */
.feature-icon .fa,
.card-icon .fa,
.step-icon .fa {
  color: var(--accent) !important;
}

/* ============================
   CARD EQUAL HEIGHT
   ============================ */
.card-equal-height {
  display: flex;
  flex-wrap: wrap;
}
.card-equal-height > [class*="col-"] {
  display: flex;
}

/* ============================
   STEPS / HOW IT WORKS
   ============================ */
/* R80: Horizontal CSS grid, vertical card content */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  background-color: var(--accent);
  padding: 48px 0;
  color: #ffffff;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ============================
   TEAM CARDS
   ============================ */
.team-card {
  padding: 8px;
}

.team-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--accent);
}

/* R86: avatar object-position center */
.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ============================
   CULTURE STATS
   ============================ */
.culture-stat {
  padding: 16px;
}

.culture-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.culture-label {
  font-size: 16px;
  line-height: 1.4;
}

/* ============================
   ABOUT PAGE
   ============================ */
.value-card {
  padding: 8px 0;
}

.value-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 8px;
}

.timeline {
  border-left: 3px solid var(--accent);
  padding-left: 32px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.timeline-content p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ============================
   SOLUTIONS PAGE
   ============================ */
.solution-badge {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.solution-badge-2 {
  background-color: #1a6b41;
}

.solution-badge-3 {
  background-color: #7d2e8a;
}

.solution-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-specs li {
  font-size: 16px;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.solution-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ============================
   PRODUCT PAGE
   ============================ */
.arch-card {
  padding: 32px 24px;
  background: #f4f7fb;
  border-radius: 8px;
  height: 100%;
}

.arch-icon {
  margin-bottom: 16px;
}

.arch-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.arch-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

.workflow-callout {
  background-color: #e8f4fd;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 24px 28px;
  color: var(--text-dark);
}

.workflow-callout h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.compliance-card {
  padding: 32px 16px;
  background: #f4f7fb;
  border-radius: 8px;
}

.compliance-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.compliance-card p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 0;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  font-size: 16px;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-icon {
  color: var(--accent);
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.contact-form-wrap {
  background: #f4f7fb;
  border-radius: 8px;
  padding: 36px 32px;
}

.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control {
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
  color: var(--text-dark);
  padding: 10px 14px;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

/* ============================
   NEWS / BLOG
   ============================ */
/* R78: fixed 3-col grid, no flex+grid conflict */
.news-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-img-wrap {
  overflow: hidden;
}

/* R-IMG: article img must be full-width */
.news-thumb {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
}

.news-tag {
  font-size: 12px;
  font-weight: 700;
  background-color: #e8f4fd;
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 20px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.45;
}

.news-excerpt {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background-color: #1a2533;
  color: #c8d6e5;
  padding-top: 56px;
  padding-bottom: 0;
}

.footer-desc {
  font-size: 15px;
  color: #8fabc4;
  line-height: 1.6;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* R85: dark sections use solid text colors */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 15px;
  color: #8fabc4;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact {
  font-size: 15px;
  color: #8fabc4;
  margin-bottom: 8px;
}

.footer-contact i {
  color: var(--accent);
  margin-right: 8px;
  width: 16px;
}

.footer-contact a {
  color: #8fabc4;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-copy {
  font-size: 14px;
  color: #8fabc4;
  margin-bottom: 0;
}

.footer-bottom a {
  font-size: 14px;
  color: #8fabc4;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-sep {
  color: #8fabc4;
  margin: 0 8px;
}

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a2533;
  color: #c8d6e5;
  padding: 16px 0;
  z-index: 9999;
  border-top: 3px solid var(--accent);
}

.cookie-banner p {
  font-size: 14px;
  color: #c8d6e5;
}

.cookie-banner a {
  color: #3498db;
}

/* ============================
   LEGAL PAGES
   ============================ */
.container-narrow h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-dark);
}

.container-narrow h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.container-narrow p, .container-narrow li {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.75;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991px) {
  .hero-h1 {
    font-size: 36px;
  }

  .page-hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .hero-h1 {
    font-size: 28px;
  }

  .section-pad {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .stats-bar {
    padding: 32px 0;
  }

  .stat-number {
    font-size: 30px;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }
}

/* ============================================================
   Fix CTA button contrast (complete override) — appended
   ============================================================ */
.cta-section .btn-accent,
.cta-section .btn-primary,
.bg-dark-brand .btn-accent,
.bg-dark-brand .btn-primary {
  background-color: #ffffff !important;
  border: 2px solid #ffffff !important;
}
.cta-section .btn-accent:hover,
.cta-section .btn-primary:hover,
.bg-dark-brand .btn-accent:hover,
.bg-dark-brand .btn-primary:hover {
  background-color: transparent !important;
  color: #ffffff !important;
}
/* Outline/secondary buttons on dark bg */
.cta-section .btn-secondary,
.cta-section .btn-outline,
.bg-dark-brand .btn-secondary {
  border-color: #ffffff !important;
  color: #ffffff !important;
}
