/*
 * Spiffworks overrides for the Visible template.
 * Keep brand tweaks here so assets/css/main.css stays close to the original template.
 */

/* Brand blue from the Spiffworks logo (#008ccb), lifted slightly for contrast on the dark background */
:root {
  --accent-color: #1499d6;
  --nav-hover-color: #1499d6;
}

/* Logo: lowercase wordmark next to the logo mark */
.header .logo img {
  max-height: 38px;
  border-radius: 6px;
  margin-right: 10px;
}

.header .logo h1 {
  font-family: var(--heading-font);
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 28px;
}

.footer .footer-about .logo img {
  border-radius: 6px;
  margin-right: 10px;
}

.footer .footer-about .logo span.tld,
.logo .tld {
  color: var(--accent-color);
  font-size: inherit;
}

.footer .footer-contact a {
  color: var(--accent-color);
}

/* Section intros can run long: keep them readable */
.section-title p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* "Let's Talk" stands out as a button in the nav */
.navmenu a.nav-cta,
.navmenu a.nav-cta:focus {
  justify-content: center;
  margin: 10px 20px 0;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a.nav-cta:hover,
.navmenu a.nav-cta.active {
  background-color: color-mix(in srgb, var(--accent-color), white 15%);
  color: var(--contrast-color);
}

/* Shared card used for problems, approaches, and monitoring */
.sw-card {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.sw-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
}

.sw-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  margin-bottom: 1.25rem;
}

.sw-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sw-card p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
}

.sw-card p + p {
  margin-top: 0.75rem;
}

.section-followup {
  text-align: center;
  margin: 2.5rem 0 0;
  font-size: 1.1rem;
}

.section-followup a {
  font-weight: 600;
  white-space: nowrap;
}

/* Belief band */
.belief-statement {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.belief-statement h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.belief-statement p {
  font-size: 1.2rem;
  line-height: 1.75;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

/* Three (four) questions band */
.questions {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), var(--background-color) 55%) 0%, var(--background-color) 100%);
}

.questions .questions-heading {
  text-align: center;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.questions .question-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.questions .question-number {
  flex-shrink: 0;
  font-family: var(--heading-font);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-color);
  min-width: 2rem;
}

.questions .question-item h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.questions .question-item p {
  font-size: 1.1rem;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.questions .questions-closing {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 3rem 0 0;
  color: var(--heading-color);
}

/* How We Fix It: four-way choice above the tabs */
.features-alt .approaches {
  margin-bottom: 4rem;
}

.fixes-heading,
.sub-heading {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 2rem;
}

.partnership .sub-heading {
  margin-top: 4rem;
}

.partnership .container > .sub-heading:first-child {
  margin-top: 0;
}

/* How We Work: three-step timeline */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  position: relative;
}

.steps .step {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.steps .step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.steps .step h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.steps .step p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

@media (min-width: 992px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Connector line between the step circles */
  .steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: color-mix(in srgb, var(--accent-color), transparent 60%);
  }
}

/* Ongoing partnership (monitoring): the subscription offer */
.partnership {
  background: linear-gradient(180deg, var(--background-color) 0%, color-mix(in srgb, var(--background-color), var(--accent-color) 8%) 100%);
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

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

.sw-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.sw-checklist li:last-child {
  border-bottom: 0;
}

.sw-checklist li i {
  color: var(--accent-color);
  font-size: 1.2rem;
  line-height: 1.4;
}

.sw-checklist strong {
  color: var(--heading-color);
}

.partnership .plans {
  padding-top: 14px; /* room for the "Most Popular" badge */
}

.partnership .pricing-item .features-list li {
  align-items: flex-start;
  text-align: left;
}

.partnership .pricing-item .features-list li i {
  line-height: 1.4;
}

.partnership-cta {
  text-align: center;
  margin-top: 3rem;
}

.partnership-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.btn-partnership {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 34px;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-partnership:hover {
  background-color: color-mix(in srgb, var(--accent-color), white 15%);
  color: var(--contrast-color);
}

/* About */
.about-sw .about-copy p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.about-sw .about-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.about-sw .about-details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.about-sw .about-details .sw-icon {
  margin-bottom: 0;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

/* Let's Talk form */
.call-to-action .lead-form-wrapper {
  position: relative;
  z-index: 2;
}

.lead-form {
  background-color: color-mix(in srgb, var(--background-color), transparent 30%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 16px;
  padding: 1.75rem;
}

.lead-form .form-label {
  color: var(--heading-color);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.lead-form .form-label .optional {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 400;
}

.lead-form .form-control {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  color: var(--default-color);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.lead-form .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 55%);
}

.lead-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 75%);
}

.lead-form .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
}

.lead-form .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), white 15%);
  border-color: color-mix(in srgb, var(--accent-color), white 15%);
}

.lead-form .form-status:empty {
  display: none;
}

.lead-form .form-status {
  margin: 0.75rem 0 0;
  text-align: center;
}

.lead-form .form-alt {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Honeypot field: off-screen rather than display:none so bots still see it */
.lead-form .hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
