/* WebsiteCare.Direct - Shared Styles */
/* Extracted from approved index.html and case-study-metro-security.html */

/* Reset and Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --teal: #06b6d4;
  --green: #10b981;
  --n50: #f9fafb;
  --n100: #f3f4f6;
  --n200: #e5e7eb;
  --n300: #d1d5db;
  --n400: #9ca3af;
  --n500: #6b7280;
  --n600: #4b5563;
  --n700: #374151;
  --n800: #1f2937;
  --n900: #111827;
  --white: #ffffff;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--n700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 2px solid var(--n200);
  color: var(--n800);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--n400);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: white;
  color: var(--blue);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--n200);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0;
}

.bracket {
  font-size: 28px;
  font-weight: 300;
  color: var(--n400);
  font-family: monospace;
}

.heart-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  5% { transform: scale(1.12); }
  10% { transform: scale(1); }
  15% { transform: scale(1.2); }
  35% { transform: scale(1); }
  100% { transform: scale(1); }
}

.heart-wrap svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: heartbeat 3s infinite ease-in-out;
}

.heart-wrap span {
  position: relative;
  z-index: 2;
  color: white;
  font-weight: 800;
  font-size: 16px;
  padding-bottom: 2px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--n900);
}

.header-cta {
  padding: 10px 20px;
  background: var(--n900);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--n700);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--blue);
}

.nav-item {
  position: relative;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--n700);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.2s;
}

.nav-toggle-btn:hover {
  color: var(--blue);
}

.nav-caret {
  transition: transform 0.2s;
}

.nav-item[data-open="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  padding: 8px;
  display: none;
  z-index: 50;
}

.nav-item[data-open="true"] .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.nav-submenu a:hover {
  background: var(--n100);
  color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--n900);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#services,
#our-work,
#about,
#pricing,
#how-it-works {
  scroll-margin-top: 76px;
}

/* Footer */
.footer {
  background: var(--n900);
  color: var(--n400);
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
}

.footer-links {
  margin-top: 12px;
}
.footer-links a {
  color: var(--n500);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--n300);
}

.heart-pulse {
  display: inline-block;
  color: var(--blue);
  animation: heartbeat 3s infinite ease-in-out;
  vertical-align: -3px;
  margin: 0 4px;
}

.heart-pulse svg {
  display: block;
}

/* Breadcrumb */
.svc-breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: var(--n500);
}
.svc-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.svc-breadcrumb a:hover { text-decoration: underline; }
.svc-breadcrumb span { color: var(--n400); margin: 0 8px; }

/* Breadcrumb inside the FAQ hero (sits on the hero's gray gradient) */
.faq-hero .svc-breadcrumb {
  text-align: left;
  margin: 0;
  padding: 0 0 48px;
}

/* Breadcrumb inside the service hero (sits on the hero's gray gradient) */
.svc-hero .svc-breadcrumb {
  text-align: left;
  margin: 0;
  padding: 0 0 48px;
}

/* Testimonial Quote (same as index page) */
.testimonial-quote {
  max-width: 640px;
  margin: 56px auto;
  padding: 40px 0;
  text-align: center;
}
.testimonial-quote blockquote {
  font-family: "Caveat", cursive;
  font-size: 28px;
  font-weight: 500;
  color: var(--n900);
  line-height: 1.35;
  margin-bottom: 24px;
  transform: rotate(-1deg);
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.testimonial-attr img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--n400), 0 3px 8px rgba(0,0,0,0.2);
}
.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--n900);
}
.testimonial-role {
  font-size: 13px;
  color: var(--n500);
}
.testimonial-role a {
  color: var(--blue);
  text-decoration: underline;
}

/* Testimonial Section */
.testimonial {
  padding: 80px 0;
  background: var(--n900);
  color: white;
}

.testimonial-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: "Caveat", cursive;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial cite {
  font-size: 16px;
  font-style: normal;
  color: var(--n400);
}

.testimonial cite strong {
  color: white;
  display: block;
  margin-bottom: 4px;
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid var(--white);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.4);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--n500);
}

.modal-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: 8px;
}

.modal-card > p {
  font-size: 15px;
  color: var(--n600);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--n800);
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--n200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: white;
}

.form-input:focus {
  border-color: var(--blue);
  outline: none;
}

.form-status {
  font-size: 14px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 640px) {
  .header-content {
    padding: 10px 0;
  }
  
  .logo-text {
    display: none;
  }
  
  .header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .bracket {
    font-size: 22px;
  }
  
  .heart-wrap {
    width: 34px;
    height: 34px;
  }
  
  .heart-wrap span {
    font-size: 13px;
  }
  
  .testimonial-quote blockquote {
    font-size: 23px;
    line-height: 1.5;
    color: var(--n800);
  }
  .testimonial {
    padding: 60px 0;
  }
  
  .testimonial blockquote {
    font-size: 26px;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-section h2 {
    font-size: 28px;
  }
  
  .cta-section p {
    font-size: 16px;
  }
  
  .modal-card {
    padding: 28px 20px;
  }
}

/* Nav collapses to hamburger on large phones / small tablets */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--n200);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--n200);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .nav-item {
    border-bottom: 1px solid var(--n200);
  }

  .nav-toggle-btn {
    width: 100%;
    justify-content: space-between;
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 8px;
    background: var(--n50);
  }

  .nav-item[data-open="true"] .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 12px 24px 12px 40px;
    font-size: 15px;
    border-bottom: 1px solid var(--n200);
    border-radius: 0;
  }

  .nav-submenu a:last-child {
    border-bottom: none;
  }

  .nav-submenu a:hover {
    background: var(--n100);
  }

  .nav-toggle {
    display: flex;
  }
}

      /* CASE STUDY HERO */
      .case-hero {
        padding: 100px 0 80px;
        background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 40%, #eef2ff 100%);
        border-bottom: 1px solid var(--n200);
      }
      .case-hero-inner {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
      }
      .case-hero h1 {
        font-size: 56px;
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -2px;
        color: var(--n900);
        margin-bottom: 20px;
      }
      .case-hero-subtitle {
        font-size: 20px;
        color: var(--n500);
        line-height: 1.6;
        margin-bottom: 32px;
      }
      .case-hero-meta {
        display: flex;
        gap: 24px;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 14px;
        color: var(--n600);
      }
      .case-hero-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .case-hero-cta {
        margin-top: 32px;
      }
      .results-cta {
        display: flex;
        justify-content: center;
        margin-top: 32px;
      }

      /* BEFORE/AFTER SLIDER */
      .comparison-section {
        padding: 80px 0;
        background: var(--n50);
      }
      .comparison-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 48px;
      }
      .comparison-header h2 {
        font-size: 40px;
        font-weight: 800;
        color: var(--n900);
        letter-spacing: -1px;
        line-height: 1.2;
        margin-bottom: 16px;
      }
      .comparison-header p {
        font-size: 18px;
        color: var(--n600);
        line-height: 1.6;
      }
      .comparison-slider {
        position: relative;
        max-width: 620px;
        margin: 0 auto;
        height: 900px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        background: #f1f5f9;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
      }
      .comparison-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
        -webkit-user-select: none;
      }
      .comparison-after {
        z-index: 1;
      }
      .comparison-before {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        overflow: hidden;
        z-index: 2;
        pointer-events: none;
      }
      .comparison-before img {
        position: absolute;
        top: 0;
        left: 0;
        width: 620px;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        user-select: none;
        -webkit-user-drag: none;
        -webkit-user-select: none;
      }
      .comparison-handle {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 3px;
        background: white;
        z-index: 3;
        pointer-events: none;
        transform: translateX(-50%);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
      }
      .comparison-handle-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 4;
        pointer-events: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      }
      .comparison-handle-btn svg {
        width: 20px;
        height: 20px;
        color: var(--n600);
        transform: rotate(90deg);
      }
      .comparison-label {
        position: absolute;
        bottom: 16px;
        padding: 6px 14px;
        border-radius: 100px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 3;
        pointer-events: none;
      }
      .comparison-label-before { left: 16px; }
      .comparison-label-after { right: 16px; }
      .comparison-hint {
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 6;
        color: white;
        font-size: 11px;
        font-weight: 600;
        background: rgba(0, 0, 0, 0.5);
        padding: 4px 14px;
        border-radius: 100px;
        pointer-events: none;
      }
      .comparison-slider input[type="range"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        outline: none;
        background: transparent;
        -webkit-appearance: none;
        appearance: none;
        z-index: 5;
        cursor: ew-resize;
        margin: 0;
        opacity: 0;
        touch-action: pan-y;
        pointer-events: none;
      }

      @media (max-width: 640px) {
        .comparison-slider {
          height: 480px;
        }
      }

      /* CHALLENGE SECTION */
      .challenge {
        padding: 80px 0;
        background: var(--white);
      }
      .challenge-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 48px;
      }
      .challenge-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--n900);
        letter-spacing: -1px;
        line-height: 1.2;
        margin-bottom: 16px;
      }
      .challenge-header p {
        font-size: 18px;
        color: var(--n600);
        line-height: 1.6;
      }
      .challenge-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
      }
      .challenge-item {
        background: var(--n50);
        border: 1px solid var(--n200);
        border-radius: 12px;
        padding: 28px;
      }
      .challenge-item h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--n900);
        margin-bottom: 8px;
      }
      .challenge-item p {
        font-size: 15px;
        color: var(--n600);
        line-height: 1.6;
      }

      /* SOLUTION SECTION */
      .solution {
        padding: 80px 0;
        background: var(--n50);
      }
      .solution-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 48px;
      }
      .solution-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--n900);
        letter-spacing: -1px;
        line-height: 1.2;
        margin-bottom: 16px;
      }
      .solution-header p {
        font-size: 18px;
        color: var(--n600);
        line-height: 1.6;
      }
      .solution-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1000px;
        margin: 0 auto;
      }
      .solution-card {
        background: white;
        border: 1px solid var(--n200);
        border-radius: 16px;
        padding: 32px;
        transition: all 0.3s;
      }
      .solution-card:hover {
        border-color: var(--blue);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
      }
      .solution-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        background: linear-gradient(145deg, var(--blue), #06b6d4);
        border: 2px solid #ffffff;
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
      }
      .solution-icon svg {
        width: 30px;
        height: 30px;
        color: #ffffff;
        stroke: #ffffff;
      }
      .solution-card h3 {
        font-size: 20px;
        font-weight: 700;
        color: var(--n900);
        margin-bottom: 12px;
      }
      .solution-card p {
        font-size: 15px;
        color: var(--n600);
        line-height: 1.6;
      }

      /* RESULTS SECTION */
      .results {
        padding: 80px 0;
        background: var(--n50);
      }
      .results-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 48px;
      }
      .results-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--n900);
        letter-spacing: -1px;
        line-height: 1.2;
        margin-bottom: 16px;
      }
      .scorecard {
        max-width: 900px;
        margin: 0 auto;
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      }
      .scorecard-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
      }
      .scorecard-column {
        padding: 40px;
      }
      .scorecard-column-before {
        background: var(--n50);
        border-right: 1px solid var(--n200);
      }
      .scorecard-column-after {
        background: white;
      }
      .scorecard-column-title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--n500);
        margin-bottom: 24px;
      }
      .scorecard-column-after .scorecard-column-title {
        color: var(--blue);
      }
      .scorecard-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .scorecard-list li {
        font-size: 15px;
        color: var(--n700);
        line-height: 1.6;
        padding: 12px 0;
        border-bottom: 1px solid var(--n200);
        display: flex;
        align-items: flex-start;
        gap: 12px;
      }
      .scorecard-list li:last-child {
        border-bottom: none;
      }
      .scorecard-list-icon {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        margin-top: 2px;
      }
      .scorecard-column-before .scorecard-list-icon {
        color: var(--n400);
      }
      .scorecard-column-after .scorecard-list-icon {
        color: var(--green);
      }
      .scorecard-footer {
        background: var(--white);
        padding: 40px;
        text-align: center;
        border-top: 1px solid var(--n200);
      }
      .scorecard-outcome {
        font-size: 28px;
        font-weight: 800;
        color: var(--n900);
        letter-spacing: -0.5px;
        line-height: 1.25;
        max-width: 560px;
        margin: 0 auto;
      }
      .scorecard-score {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin-bottom: 12px;
      }
      .scorecard-score-before {
        font-size: 32px;
        font-weight: 700;
        color: var(--n400);
      }
      .scorecard-score-arrow {
        color: var(--n500);
        font-size: 24px;
      }
      .scorecard-score-after {
        font-size: 48px;
        font-weight: 800;
        color: var(--blue);
        letter-spacing: -1px;
      }
      .scorecard-score-label {
        font-size: 14px;
        color: var(--n400);
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      /* SCOPE SECTION */
      .scope {
        padding: 80px 0;
        background: var(--white);
      }
      .scope-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 48px;
      }
      .scope-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--n900);
        letter-spacing: -1px;
        line-height: 1.2;
        margin-bottom: 16px;
      }
      .scope-header p {
        font-size: 18px;
        color: var(--n600);
        line-height: 1.6;
      }
      .scope-list {
        max-width: 800px;
        margin: 0 auto;
      }
      .scope-item {
        border-bottom: 1px solid var(--n200);
        padding: 20px 0;
        cursor: pointer;
        transition: all 0.2s;
      }
      .scope-item:first-child {
        border-top: 1px solid var(--n200);
      }
      .scope-item:hover {
        background: var(--n50);
        padding-left: 16px;
        padding-right: 16px;
      }
      .scope-item-header {
        display: flex;
        align-items: center;
        gap: 16px;
      }
      .scope-item-title {
        font-size: 17px;
        font-weight: 700;
        color: var(--n900);
        flex: 1;
      }
      .scope-item-teaser {
        font-size: 14px;
        color: var(--n500);
        flex: 2;
      }
      .scope-item-chevron {
        width: 20px;
        height: 20px;
        color: var(--n400);
        transition: transform 0.2s;
        flex-shrink: 0;
      }
      .scope-item.expanded .scope-item-chevron {
        transform: rotate(180deg);
      }
      .scope-item-detail {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 0 0 32px;
      }
      .scope-item.expanded .scope-item-detail {
        max-height: 800px;
        padding: 16px 0 0 32px;
      }
      .scope-item-detail p {
        font-size: 15px;
        color: var(--n600);
        line-height: 1.6;
        margin-bottom: 10px;
      }
      .scope-item-detail p:last-child {
        margin-bottom: 0;
      }
      .scope-item-detail p strong {
        color: var(--n800);
      }

      /* ==========================================================
         CASE STUDY — MOBILE / TABLET RESPONSIVE
         (placed last so these win the cascade; grids below must
         collapse to one column or they push off the right edge)
         ========================================================== */

      /* Allow grid children to shrink below their content width */
      .challenge-item,
      .solution-card,
      .scorecard-column,
      .scope-item {
        min-width: 0;
      }

      @media (max-width: 900px) {
        .solution-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      @media (max-width: 640px) {
        .case-hero h1 {
          font-size: 40px;
          letter-spacing: -1px;
        }

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

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

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

        .scorecard-column-before {
          border-right: none;
          border-bottom: 1px solid var(--n200);
        }

        .challenge {
          padding: 48px 0;
        }

        .solution {
          padding: 48px 0;
        }

        .results {
          padding: 48px 0;
        }

        .scorecard-column {
          padding: 24px;
        }

        .scorecard-footer {
          padding: 24px;
        }

        .challenge-item,
        .solution-card {
          padding: 20px;
        }
      }

      /* Safety net: never allow horizontal bleed beyond the viewport */
      body {
        overflow-x: hidden;
      }

      /* RESPECT REDUCED MOTION */
      @media (prefers-reduced-motion: reduce) {
        .heart-wrap svg,
        .heart-pulse,
        .hero-glow,
        .hero-blob.one,
        .hero-blob.two,
        .hero-inner,
        .hero-underline-path {
          animation: none !important;
        }
        html {
          scroll-behavior: auto;
        }
      }


      /* ============================================================
         RESOURCE CENTER (support/index.html)
         Page-specific styles for the small business resource hub.
         ============================================================ */

      .rc-hero {
        position: relative; overflow: hidden;
        padding: 88px 0 72px;
        background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 45%, #eef2ff 100%);
      }
      .rc-hero-grid {
        position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
        background-image:
          linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
          linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
        background-size: 56px 56px;
      }
      .rc-hero-glow {
        position: absolute; width: 520px; height: 520px; border-radius: 50%;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
        top: -160px; right: -120px; pointer-events: none;
      }
      .rc-hero-blob {
        position: absolute; width: 360px; height: 360px; border-radius: 50%;
        background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
        bottom: -120px; left: -80px; pointer-events: none; filter: blur(30px);
      }
      .rc-hero-inner {
        position: relative; z-index: 1;
        display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
      }
      .rc-hero h1 {
        font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -1.5px;
        color: var(--n900); margin-bottom: 16px;
      }
      .rc-hero p { font-size: 18px; color: var(--n500); max-width: 460px; line-height: 1.65; margin-bottom: 28px; }
      .rc-hero-media {
        position: relative; border-radius: 20px; overflow: hidden;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16); border: 1px solid rgba(255, 255, 255, 0.6);
      }
      .rc-hero-img {
        width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
        transform: scale(1.32) translateX(-3%); transform-origin: center;
      }

      .rc-trust {
        display: flex; gap: 10px; flex-wrap: wrap;
      }
      .rc-trust-pill {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
        background: white; border: 1px solid var(--n200); color: var(--n600);
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
      }
      .rc-trust-pill svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }

      .rc-body { background: var(--n50); }
      .rc-body .container { max-width: 1200px; }

      /* ---- section ---- */
      .sec { padding: 44px 0; }
      .sec:last-of-type { padding-bottom: 64px; }
      .sec-head { margin-bottom: 22px; }
      .sec-head h2 { font-size: 22px; font-weight: 800; color: var(--n900); letter-spacing: -0.3px; }
      .sec-head p { font-size: 15px; color: var(--n600); margin-top: 4px; max-width: 600px; line-height: 1.6; }

      /* ---- card images ---- */
      .card-img {
        width: 100%; height: 140px; object-fit: cover; object-position: center 15%; border-radius: 6px;
        margin-bottom: 12px; display: block;
      }
      .card-img-sm {
        width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
      }

      /* ---- featured split ---- */
      .feat-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
      .feat-main {
        display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; align-items: stretch;
        background: linear-gradient(135deg, #1e3a5f, #2563eb); border-radius: 14px;
        text-decoration: none; color: white; min-height: 240px;
        overflow: hidden; transition: all 0.2s;
      }
      .feat-main:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,0.25); }
      .feat-main-img {
        width: 100%; height: 100%; object-fit: cover; display: block;
      }
      .feat-main-img-wrap {
        overflow: hidden; position: relative;
      }
      .feat-main-img { object-position: 30% 30%; }
      .feat-main-text { padding: 32px; display: flex; flex-direction: column; justify-content: flex-start; }
      .feat-main .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.6; margin-bottom: 8px; }
      .feat-main h3 { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.3px; }
      .feat-main p { font-size: 15px; opacity: 0.85; line-height: 1.55; margin-bottom: 12px; max-width: 400px; }
      .feat-main .cta { font-size: 14px; font-weight: 600; }

      .feat-side { display: flex; flex-direction: column; gap: 16px; }
      .feat-side .card { flex: 1; justify-content: flex-start; }

      /* ---- chips ---- */
      .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
      .chip {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
        background: white; border: 1px solid var(--n200); color: var(--n700);
        text-decoration: none; transition: all 0.15s;
      }
      .chip:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
      .chip .count { font-size: 11px; color: var(--n400); font-weight: 400; }

      /* ---- card grid ---- */
      .grid-c { display: grid; gap: 16px; }
      .grid-c-4 { grid-template-columns: repeat(4, 1fr); }
      .grid-c-3 { grid-template-columns: repeat(3, 1fr); }
      .grid-c-2 { grid-template-columns: repeat(2, 1fr); }

      .card .card-img { transition: transform 0.3s ease; }
      .card:hover .card-img { transform: scale(1.03); }

      .card {
        display: flex; flex-direction: column;
        background: white; border: 1px solid var(--n200); border-radius: 12px;
        padding: 20px; text-decoration: none; color: inherit; transition: all 0.15s;
      }
      .card:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
      .card .meta { font-size: 12px; color: var(--n400); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
      .card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--n300); }
      .card .meta .lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blue); }
      .card h3 { font-size: 16px; font-weight: 700; color: var(--n900); line-height: 1.3; margin-bottom: 6px; }
      .card p { font-size: 14px; color: var(--n500); line-height: 1.55; }
      .card .cta { font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 10px; }

      /* ---- article list ---- */
      .alist { display: flex; flex-direction: column; gap: 10px; }
      .alist a {
        display: flex; align-items: center; gap: 12px;
        padding: 14px 18px; background: white; border: 1px solid var(--n200);
        border-radius: 10px; text-decoration: none; color: inherit; transition: all 0.15s;
      }
      .alist a:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
      .alist .info { flex: 1; min-width: 0; }
      .alist .info .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 2px; display: block; }
      .alist .info .t { font-size: 15px; font-weight: 600; color: var(--n900); line-height: 1.35; }
      .alist .ar { font-size: 16px; color: var(--blue); flex-shrink: 0; font-weight: 600; }
      .alist a:hover .ar { transform: translateX(2px); }
      .alist .ar { transition: transform 0.15s; }

      /* ---- mixed ---- */
      .mixed { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

      /* ---- industry cards ---- */
      .ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
      .ind-card {
        display: flex; flex-direction: column;
        background: white; border: 1px solid var(--n200); border-radius: 12px;
        padding: 20px; transition: all 0.15s;
      }
      .ind-card:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
      .ind-card h3 { font-size: 16px; font-weight: 700; color: var(--n900); margin-bottom: 10px; }
      .ind-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
      .ind-card ul li a { font-size: 14px; color: var(--blue); text-decoration: none; font-weight: 500; line-height: 1.4; }
      .ind-card ul li a:hover { text-decoration: underline; }

      .rc-cta {
        padding: 64px 0; text-align: center;
        background: linear-gradient(135deg, var(--blue), var(--teal)); color: white;
      }
      .rc-cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
      .rc-cta p { font-size: 17px; opacity: 0.9; max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }

      @media (max-width: 900px) {
        .feat-row { grid-template-columns: 1fr; }
        .feat-main { grid-template-columns: 1fr; }
        .feat-main-img { max-height: 200px; }
        .feat-main-text { padding: 24px; }
        .mixed { grid-template-columns: 1fr; }
        .grid-c-4 { grid-template-columns: repeat(2, 1fr); }
        .grid-c-3 { grid-template-columns: repeat(2, 1fr); }
        .ind-grid { grid-template-columns: repeat(2, 1fr); }
        .rc-hero-inner { grid-template-columns: 1fr; gap: 36px; }
        .rc-hero-media { order: -1; max-width: 420px; margin: 0 auto; }
        .rc-hero p { max-width: 560px; }
      }
      @media (max-width: 640px) {
        .rc-hero { padding: 64px 0 48px; }
        .rc-hero-inner { gap: 28px; }
        .rc-hero h1 { font-size: 34px; letter-spacing: -1px; }
        .rc-hero p { font-size: 17px; }
        .sec { padding: 36px 0; }
        .sec:last-of-type { padding-bottom: 44px; }
        .tidx { grid-template-columns: 1fr; }
        .grid-c-4 { grid-template-columns: 1fr; }
        .grid-c-3 { grid-template-columns: 1fr; }
        .grid-c-2 { grid-template-columns: 1fr; }
        .ind-grid { grid-template-columns: 1fr; }
        .feat-main { min-height: 0; }
        .feat-main h3 { font-size: 20px; }
      }


