/* ==========================================================================
   salesforce-page.css
   Rebuilt stylesheet for salesforce-development.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --sf-primary: #00a1e0;
  --sf-primary-dark: #0176d3;
  --sf-gold: #f7b11d;
  --sf-gold-dark: #e69f0e;
  --sf-navy: #042c3c;
  --sf-navy-2: #01516f;
  --sf-text: #0f172a;
  --sf-text-muted: #5c6873;
  --sf-border: #e6eaf1;
  --sf-bg-soft: #f5f8fd;
  --sf-radius-lg: 20px;
  --sf-radius-md: 14px;
  --sf-radius-sm: 10px;
  --sf-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --sf-shadow-lg: 0 24px 60px rgba(9, 30, 66, 0.18);
  --sf-max-width: 1280px;

  /* Fallback only — overwritten at runtime by the header-measuring script
     in salesforce-development.php so this always matches the real header. */
  --site-header-height: 78px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
.salesforce-page {
  margin: 0;
  padding: 0;
  color: var(--sf-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.salesforce-page * {
  box-sizing: border-box;
}

.salesforce-page img {
  max-width: 100%;
  display: block;
}

.salesforce-page h1,
.salesforce-page h2,
.salesforce-page h3 {
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--sf-text);
  font-weight: 800;
}

.salesforce-page p {
  margin: 0 0 14px;
  color: var(--sf-text-muted);
}

/* Skip link — visually hidden until keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sf-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* Shared inner container */
.sf-shell {
  width: 100%;
  max-width: var(--sf-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------------
   3. FIX #1 — NO EXTRA WHITE SPACE ABOVE THE MAIN header.php
   The old file reserved a fixed block of top padding/margin to compensate
   for a fixed-position header + fixed-position TOC. Neither element is
   fixed anymore (see Fix #2), so nothing here should add artificial space.
   -------------------------------------------------------------------------- */
.salesforce-page,
.sf-main {
  margin-top: 0;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   4. FIX #2 — PAGE TOC NO LONGER SITS ON TOP OF THE HEADER
   Root cause: .page-toc was `position:fixed`, floating independently of the
   header and requiring a guessed offset that didn't match the real header
   height, so it overlapped header.php. Switching to `position:sticky`
   keeps it in normal document flow (directly under the header, no overlap
   possible) and it only sticks once the user scrolls to it.
   -------------------------------------------------------------------------- */
.page-toc {
  position: sticky;
  top: var(--site-header-height);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 56px);
  max-width: var(--sf-max-width);
  margin: 12px auto 0;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(11, 95, 224, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.page-toc::-webkit-scrollbar {
  display: none;
}
.page-toc .toc-title {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-primary);
  margin-right: 6px;
}
.page-toc a {
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-toc a:hover,
.page-toc a:focus-visible {
  color: var(--sf-primary);
  background: #eaf2ff;
}

/* Breadcrumb sits right under the sticky TOC, no big compensating offset */
.sf-breadcrumb-nav {
  margin: 0 auto;
  max-width: var(--sf-max-width);
  padding: 16px 32px 12px;
}
.sf-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.6px;
  color: var(--sf-text-muted);
}
.sf-breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sf-breadcrumb-list li + li::before {
  content: "›";
  color: #cbd5e1;
}
.sf-breadcrumb-list a {
  color: var(--sf-primary);
  text-decoration: none;
}
.sf-breadcrumb-list a:hover {
  text-decoration: underline;
}

/* Anchor targets shouldn't hide under the sticky TOC when jumped to */
.sf-main [id] {
  scroll-margin-top: calc(var(--site-header-height) + 76px);
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.sf-hero {
  position: relative;
  padding: 24px 0 48px;
  margin-top: 0;
  overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, #00a1e0 0%, var(--sf-navy-2) 45%, var(--sf-navy) 100%);
  color: #fff;
  scroll-margin-top: 0;
}
.sf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px 360px at 90% 10%, rgba(0, 161, 224, 0.5), transparent 70%),
    radial-gradient(260px 260px at 100% 60%, rgba(1, 118, 211, 0.35), transparent 70%);
  pointer-events: none;
}
.sf-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 28px;
}
.sf-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.sf-tag i {
  color: var(--sf-gold);
}
.sf-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 46px);
  max-width: 620px;
}
.sf-hero h1 span {
  color: var(--sf-gold);
}
.sf-hero > .sf-hero-grid > div:first-child > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 520px;
}
.sf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 40px;
}
.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sf-btn-primary {
  background: linear-gradient(135deg, var(--sf-gold), var(--sf-gold-dark));
  color: #1a1200;
  box-shadow: 0 14px 30px rgba(247, 177, 29, 0.35);
}
.sf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(247, 177, 29, 0.45);
}
.sf-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.sf-btn-secondary:hover {
 background: linear-gradient(135deg, var(--sf-primary), var(--sf-primary-dark));
 color: #ffffff;
}

.sf-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 620px;
}
.sf-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-metric strong {
  color: var(--sf-gold);
  font-size: 15px;
  font-weight: 800;
}
.sf-metric span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.sf-visual-card {
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
  box-shadow: var(--sf-shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.08);
  background: #fff;
}
.sf-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. GENERIC SECTIONS
   -------------------------------------------------------------------------- */
.sf-section {
  padding: 52px 0;
}
.sf-section:nth-of-type(even) {
  background: var(--sf-bg-soft);
}

.sf-section-head {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}
.sf-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-primary);
  margin-bottom: 14px;
}
.sf-section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.sf-section-head p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  line-height: 1.7;
  color: #465264;
}

/* --------------------------------------------------------------------------
   7. CARD GRID
   -------------------------------------------------------------------------- */
.sf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sf-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-md);
  padding: 30px 26px;
  box-shadow: var(--sf-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
.sf-card > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
  /* default icon color for cards that don't set an inline gradient */
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-primary-dark));
}
.sf-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.sf-card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* Process / methodology grids reuse .sf-card but without an icon block */
.sf-process .sf-card h3,
#methodology .sf-card h3 {
  color: var(--sf-primary);
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   8. COMPARISON TABLES
   -------------------------------------------------------------------------- */
.sf-comparison-tables {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sf-comparison-tables table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--sf-radius-md);
  overflow: hidden;
  box-shadow: var(--sf-shadow);
}
.sf-comparison-tables caption {
  text-align: left;
  font-weight: 800;
  font-size: 15px;
  padding: 4px 4px 14px;
  color: var(--sf-text);
}
.sf-comparison-tables th,
.sf-comparison-tables td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--sf-border);
}
.sf-comparison-tables thead th {
  background: var(--sf-primary);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sf-comparison-tables tbody th {
  color: var(--sf-text);
  font-weight: 700;
  white-space: nowrap;
}
.sf-comparison-tables tbody td {
  color: var(--sf-text-muted);
}
.sf-comparison-tables tbody tr:nth-child(even) {
  background: var(--sf-bg-soft);
}
.sf-comparison-tables tbody tr:last-child td,
.sf-comparison-tables tbody tr:last-child th {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   9. FAQ ACCORDION
   -------------------------------------------------------------------------- */
#faq > div {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#faq details {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-sm);
  padding: 4px 20px;
  box-shadow: var(--sf-shadow);
}
#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  color: var(--sf-text);
}
#faq summary::-webkit-details-marker {
  display: none;
}
#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--sf-primary);
  transition: transform 0.2s ease;
}
#faq details[open] summary::after {
  content: "−";
}
#faq details p {
  padding-bottom: 18px;
  margin: 0;
  font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   10. FIX #3 — "WHY TEAMS CHOOSE US" SECTION, CENTERED
   Root cause: .sf-quote used a 2-column grid (image | text) which pushed
   the heading/paragraph to the right edge with no visual center anchor.
   Fixed layout: heading + intro text centered at the top, image centered
   below, then the 3-step process list spans full width beneath everything.
   -------------------------------------------------------------------------- */
.sf-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow);
  padding: 56px clamp(24px, 6vw, 64px);
}
.sf-quote-box {
  order: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sf-quote-box .sf-section-label,
.sf-quote-box > h3 {
  max-width: 760px;
}
.sf-quote-box > p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: #465264;
}
.sf-quote-box > h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}
.sf-quote > img {
  order: 2;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow-lg);
}
.sf-quote-box .sf-process-list {
  order: 3;
  width: 100%;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  text-align: left;
}
.sf-process-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sf-process-step {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-primary-dark));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.sf-process-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.sf-process-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. CTA BAND
   -------------------------------------------------------------------------- */
.sf-cta {
  padding: 48px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-navy-2));
}
.sf-cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
}
.sf-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* --------------------------------------------------------------------------
   12. CONTACT MODAL
   -------------------------------------------------------------------------- */
/* ================================
   Contact Modal Overlay
================================ */

.contact-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
    z-index: 9998;
}

/* ================================
   Contact Modal
================================ */

.contact-modal{
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
    z-index: 9999;
}

.contact-modal.is-open,
.contact-modal-overlay.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ================================
   Modal Panel
================================ */

.contact-modal__panel{
    width: min(980px,95vw);
    max-width: 980px;
    height: min(880px,94vh);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15,23,42,.22);
    transform: translateY(24px);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
}

.contact-modal.is-open .contact-modal__panel{
    transform: translateY(0);
}

/* ================================
   Header
================================ */

.contact-modal__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    flex: 0 0 auto;
}

.contact-modal__title{
    font-size: clamp(22px,2.2vw,30px);
    margin: 0;
    color: #101828;
}

.contact-modal__close{
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(26,31,54,.06);
    border-radius: 14px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #0f172a;
}

/* ================================
   Body
================================ */

.contact-modal__body{
    display: flex;
    flex-direction: column;
    padding: 0 18px 18px;
    min-height: 0;
    flex: 1 1 auto;
}

/* ================================
   Calendly Widget
================================ */

.contact-modal__widget{
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
}

.contact-modal__widget .calendly-inline-widget{
    width: 100%;
    height: 100%;
    overflow-y: hidden !important;
}

/* ==========================================
   Tablet
========================================== */

@media (max-width:900px){

    .contact-modal{
        padding:12px;
    }

    .contact-modal__panel{
        width:100%;
        height:min(760px,92vh);
    }

    .contact-modal__body{
        padding:0 16px 16px;
    }

}

/* ==========================================
   Mobile
========================================== */

@media (max-width:720px){

    .contact-modal{
        padding:8px;
    }

    .contact-modal__header{
        padding:16px;
    }

    .contact-modal__panel{
        width:100%;
        height:calc(100vh - 16px);
        border-radius:20px;
    }

    .contact-modal__body{
        padding:0 12px 12px;
    }

    .contact-modal__title{
        font-size:clamp(19px,5vw,24px);
    }

}

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .sf-hero-grid {
    grid-template-columns: 1fr;
  }
  .sf-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sf-comparison-tables {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .sf-shell {
    padding: 0 20px;
  }
  .sf-breadcrumb-nav {
    padding-top: 16px;
  }
  .sf-grid-3 {
    grid-template-columns: 1fr;
  }
  .sf-metrics {
    grid-template-columns: 1fr;
  }
  .sf-section {
    padding: 36px 0;
  }
  .page-toc {
    width: calc(100% - 32px);
  }
}