/* ========== SERVICES.HTML STYLES ========== */

/* --- CSS Variables --- */
:root {
  --bg-cream: #FAF9F7;
  --bg-white: #FFFFFF;
  --bg-warm: #F5F4F2;
  --text-primary: #1a1a1a;
  --text-secondary: #444;
  --text-muted: #666;
  --accent-teal: #2DD4BF;
  --border-light: #E5E2DC;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-cream) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
}

/* ===================================================================
   GLOBAL OVERRIDE: Neutralize index.css wildcard card rules
   index.css [class*="card"], [class*="-card"] forces borders,
   bg-color, and color on every element containing "card" in class.
   We reset all of them here for the services page.
   =================================================================== */
.product-cards-grid,
.product-cards-grid--two,
.product-card,
.product-card--featured,
.product-card--flexible,
.product-card__badge,
.product-card__badge--outline,
.product-card__tier,
.product-card__price,
.product-card__price-note,
.product-card__description,
.product-card__features,
.product-card__features li,
.addon-card,
.addon-card__name,
.addon-card__price,
.addon-card__interval,
.addon-row,
.roi-card,
.roi-card__number,
.roi-card__title,
.roi-card__desc,
.inversion-col,
.inversion-col--problem,
.inversion-col--solution,
.inversion-col__label,
.inversion-list,
.inversion-list li,
.how-it-works__step,
.how-it-works__number,
.checkout-modal,
.checkout-modal__close {
  border: none !important;
  background-color: transparent !important;
}

/* Now re-apply only the borders/backgrounds we actually want */
.product-card {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-card--featured {
  border: 2px solid var(--accent-teal) !important;
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.12);
  position: relative;
  padding-top: 3rem;
}

.product-card--flexible {
  border: 1.5px solid var(--text-secondary) !important;
  position: relative;
  padding-top: 3rem;
}

.product-card__badge--outline {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--text-primary);
  box-sizing: border-box;
}

.addon-card {
  background: var(--bg-white) !important;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.roi-card {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, rgba(45, 212, 191, 0.02) 100%) !important;
  padding: 2rem;
  border-radius: 8px;
}

/* Also neutralize the wildcard color override on card children */
.product-card *,
.addon-card *,
.roi-card * {
  color: inherit !important;
}

/* Kill section border-bottom from index.css .section rule */
.services-hero,
.product-cards-section,
.how-it-works,
.inversion-section,
.comparison-section,
.addons-section,
.bottom-cta {
  border-bottom: none !important;
}

/* Fix: index.css .section_header has max-width: 800px but no auto margin */
.section_header {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Also neutralize the checkout modal from wildcard (has "modal" not "card", but be safe) */
.checkout-modal,
.checkout-modal * {
  border: none;
}

/* --- Navigation Overrides --- */
.nav {
  background: rgba(250, 249, 247, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.nav .logo-text {
  color: var(--text-primary) !important;
}

.nav_link {
  color: var(--text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav_link:hover,
.nav_link.w--current {
  color: var(--text-primary) !important;
}

.logo-accent {
  color: var(--accent-teal) !important;
}

.nav_mobile-menu-button {
  color: var(--text-primary) !important;
}

.button.is-secondary {
  background: var(--accent-teal) !important;
  color: #000 !important;
  border: none !important;
}

.button.is-secondary:hover {
  background: var(--text-primary) !important;
  color: #fff !important;
}

/* --- Hero Section --- */
.services-hero {
  background: var(--bg-cream);
  padding: 7rem 0 4rem;
  text-align: center;
}

.services-hero .eyebrow {
  color: var(--accent-teal);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}

.services-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 auto 1.25rem;
  max-width: 700px;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.services-hero .hero-subtext {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary) !important;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.services-hero .button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent !important;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--accent-teal) !important;
  color: #000 !important;
}

.btn--teal:hover {
  background: var(--text-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.3);
}

.btn--outline {
  background: transparent !important;
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
}

.btn--outline:hover {
  background: var(--text-primary) !important;
  color: #fff !important;
}

.btn--dark {
  background: var(--text-primary) !important;
  color: #fff !important;
}

.btn--dark:hover {
  background: var(--accent-teal) !important;
  color: #000 !important;
}

.btn--full {
  width: 100%;
}

/* --- Product Cards Section --- */
.product-cards-section {
  padding: 4rem 0 5rem;
  background: var(--bg-white) !important;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.product-cards-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
}

.product-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-teal) !important;
  color: #000 !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.product-card__tier {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted) !important;
  margin-bottom: 0.75rem;
}

.product-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.product-card__price-note {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem;
}

.product-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary) !important;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.product-card__features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  line-height: 1.5;
}

.product-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent-teal) !important;
  font-weight: 700;
}

.product-card .btn {
  margin-top: auto;
}

/* --- How It Works --- */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-cream) !important;
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 3rem;
}

.how-it-works__header .eyebrow {
  color: var(--accent-teal) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.how-it-works__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-primary) !important;
  margin: 0;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.how-it-works__step {
  text-align: center;
}

.how-it-works__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-teal) !important;
  color: #000 !important;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.how-it-works__step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  margin: 0 0 0.5rem;
}

.how-it-works__step p {
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  line-height: 1.5;
  margin: 0;
}

/* ===================================================================
   THE INVERSION — Light section, clean contrast
   =================================================================== */
.inversion-section {
  background: var(--bg-white) !important;
  color: var(--text-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.inversion-section .bg-glow {
  display: none;
}

.inversion-section .section_header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.inversion-section .eyebrow {
  color: var(--accent-teal) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.inversion-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text-primary) !important;
}

.inversion-section .section_header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary) !important;
}

.inversion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.inversion-col {
  padding: 2rem;
  border-radius: 12px;
}

.inversion-col--problem {
  background: var(--bg-cream) !important;
  border: none !important;
}

.inversion-col--solution {
  background: rgba(45, 212, 191, 0.06) !important;
  border: none !important;
}

/* Remove floating labels — use the h3 as the only heading */
.inversion-col__label {
  display: none;
}

.inversion-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.inversion-col--problem h3 {
  color: var(--text-muted) !important;
}

.inversion-col--solution h3 {
  color: var(--accent-teal) !important;
}

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

.inversion-list li {
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.inversion-list li:last-child {
  margin-bottom: 0;
}

.inversion-list li .icon {
  position: absolute;
  left: 0;
  font-weight: bold;
}

.inversion-col--problem .inversion-list li {
  color: var(--text-secondary) !important;
}

.inversion-col--problem .inversion-list li .icon {
  color: #ccc !important;
}

.inversion-col--solution .inversion-list li {
  color: var(--text-primary) !important;
}

.inversion-col--solution .inversion-list li .icon {
  color: var(--accent-teal) !important;
}

.inversion-col--solution .inversion-list li strong,
.inversion-col--solution .inversion-list li em {
  color: var(--text-primary) !important;
}

/* --- Comparison Table Section --- */
.comparison-section {
  padding: 6rem 0;
  background: var(--bg-cream) !important;
}

.comparison-section .section_header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.comparison-section .eyebrow {
  color: var(--accent-teal) !important;
  font-size: 0.95rem;
  font-weight: 700;
}

.comparison-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0;
  line-height: 1.2;
  color: var(--text-primary) !important;
}

.comparison-section .section_header p {
  color: var(--text-secondary) !important;
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 1.15rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 3rem;
}

.comparison-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.comparison-table-wrapper thead tr {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.comparison-table-wrapper th {
  padding: 1.5rem 2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table-wrapper th:first-child { color: #fff; width: 25%; }
.comparison-table-wrapper th:nth-child(2) { color: #999; width: 25%; }
.comparison-table-wrapper th:last-child { color: var(--accent-teal); width: 50%; }

.comparison-table-wrapper td {
  padding: 1.75rem 2rem;
  vertical-align: top;
}

.comparison-table-wrapper tbody tr {
  border-bottom: 1px solid var(--border-light);
}

.comparison-table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.comparison-table-wrapper td:last-child {
  background: rgba(45, 212, 191, 0.03);
}

/* --- ROI Grid --- */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.roi-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-teal) !important;
  margin-bottom: 0.5rem;
}

.roi-card__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary) !important;
}

.roi-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  line-height: 1.5;
}

/* --- Strategic Reporting Add-ons --- */
.addons-section {
  padding: 5rem 0;
  background: var(--bg-warm) !important;
}

.addons-section .section_header {
  text-align: center;
  margin-bottom: 3rem;
}

.addons-section .eyebrow {
  color: var(--accent-teal) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.addons-section h2 {
  font-size: 2rem;
  margin-top: 0.75rem;
  color: var(--text-primary) !important;
}

.addons-section .section_header p {
  color: var(--text-secondary) !important;
  max-width: 550px;
  margin: 0.75rem auto 0;
}

.addon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.addon-card__name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary) !important;
}

.addon-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-teal) !important;
  margin-bottom: 0.25rem;
}

.addon-card__interval {
  font-size: 0.8rem;
  color: var(--text-muted) !important;
}

.addons-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem;
}

.addons-cta {
  text-align: center;
}

/* --- Bottom CTA --- */
.bottom-cta {
  background: var(--accent-teal) !important;
  padding: 4rem 0;
  text-align: center;
}

.bottom-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-primary) !important;
  margin: 0 0 1.5rem;
}

.bottom-cta .button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bottom-cta .btn--dark:hover {
  background: #fff !important;
  color: var(--text-primary) !important;
}

/* --- Checkout Modal --- */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.checkout-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  background: var(--bg-white) !important;
  border-radius: 16px !important;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.checkout-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none !important;
  border: none !important;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.checkout-modal__close:hover {
  color: var(--text-primary);
}

.checkout-modal h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary) !important;
}

.checkout-modal p {
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.checkout-modal__input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light) !important;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff !important;
}

.checkout-modal__input:focus {
  border-color: var(--accent-teal) !important;
}

.checkout-modal__error {
  color: #c44 !important;
  font-size: 0.8rem;
  margin: -0.5rem 0 1rem;
  display: none;
}

.checkout-modal__error.is-visible {
  display: block;
}

.checkout-modal__submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-teal) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.checkout-modal__submit:hover {
  background: var(--text-primary) !important;
  color: #fff !important;
}

.checkout-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-modal__fine-print {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

/* --- Footer Overrides --- */
.footer {
  background: var(--text-primary) !important;
}

.footer .logo-text {
  color: #fff !important;
}

.footer .logo-accent {
  color: var(--accent-teal) !important;
}

.footer p,
.footer_column h4 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer_link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.2s ease !important;
}

.footer_link:hover {
  color: var(--accent-teal) !important;
}

.footer_bottom {
  color: rgba(255, 255, 255, 0.4) !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 767px) {
  .comparison-table-wrapper table {
    min-width: 0 !important;
    display: block !important;
  }

  .comparison-table-wrapper thead {
    display: none !important;
  }

  .comparison-table-wrapper tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .comparison-table-wrapper tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-white) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--border-light) !important;
  }

  .comparison-table-wrapper td {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid var(--border-light) !important;
  }

  .comparison-table-wrapper td:last-child {
    border-bottom: none !important;
  }
}

@media (max-width: 1000px) and (min-width: 601px) {
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
}

@media (max-width: 900px) {
  .product-cards-grid--two {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .product-card--featured {
    order: -1;
  }

  .inversion-grid {
    grid-template-columns: 1fr;
  }

  .addon-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .services-hero {
    padding: 5.5rem 0 3rem;
  }

  .services-hero h1 {
    font-size: 2rem;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 320px;
  }

  .addon-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .checkout-modal {
    padding: 2rem 1.5rem;
  }
}
