/* =================================================
   CC Case Study — InClover Dashboard
   Paste into: Design Manager > Module > CSS tab
   ================================================= */

/* Hide HubSpot default header/footer */
header.header { display: none !important; }
body { padding-top: 0 !important; margin-top: 0 !important; }

/* Brand tokens (matches main site) */
:root {
  --cc-slate:       #425B76;
  --cc-slate-dark:  #2C3E52;
  --cc-slate-deep:  #1E2D3D;
  --cc-coral:       #D96B4F;
  --cc-coral-hover: #B8553C;
  --cc-white:       #FFFFFF;
  --cc-border:      #DDE3E9;
  --cc-text-light:  #7A8FA0;
  --font-ui:        'Lato', sans-serif;
  --font-display:   'Merriweather', Georgia, serif;
  --font-body:      'Montserrat', sans-serif;
  --container-max:  1160px;
}

/* Nav */
#cs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--cc-slate-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 32px;
}
.cs-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.cs-nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}
.cs-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.cs-nav-links a {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.cs-nav-links a:hover { color: var(--cc-white); }
.cs-nav-cta {
  background: var(--cc-coral);
  color: var(--cc-white) !important;
  padding: 9px 22px;
  border-radius: 5px;
}
.cs-nav-cta:hover { background: var(--cc-coral-hover); }
.cs-nav-mobile-btn {
  display: none;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.cs-nav-mobile-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--cc-white); margin: 5px 0; border-radius: 2px;
}

/* Footer */
#cs-footer {
  background: var(--cc-slate-deep);
  padding: 48px 32px 36px;
}
.cs-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-footer-logo img {
  height: 48px; width: auto; display: block;
}
.cs-footer-links {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.cs-footer-links a {
  font-family: var(--font-ui); font-size: 13px;
  color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s;
}
.cs-footer-links a:hover { color: var(--cc-white); }
.cs-footer-copy {
  font-family: var(--font-ui); font-size: 12px;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 660px) {
  #cs-nav { padding: 0 20px; }
  .cs-nav-links { display: none; }
  .cs-nav-mobile-btn { display: block; }
  .cs-footer-inner { flex-direction: column; align-items: flex-start; }
  .cs-footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ---- Case study styles below ---- */

.cs-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;

  --cs-orange:     #F57220;
  --cs-slate:      #425B76;
  --cs-slate-dk:   #2C3E52;
  --cs-slate-dp:   #1E2D3D;
  --cs-bg:         #F5F8FA;
  --cs-border:     #DDE3E9;
  --cs-text:       #1E2A35;
  --cs-text-mid:   #4A5A6A;
  --cs-text-light: #7A8FA0;
  --cs-white:      #FFFFFF;
  --cs-inner:      1160px;

  --font-display: 'Merriweather', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;
  --font-ui:      'Lato', sans-serif;

  font-family: var(--font-body);
  color: var(--cs-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  padding-bottom: 0;
}

.cs-inner {
  max-width: var(--cs-inner);
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

/* Full-width breakout — escapes HubSpot's constrained content wrapper */
.cs-hero,
.cs-stats-band,
.cs-cta-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* Hero */
.cs-hero {
  background: var(--cs-slate-dp);
  overflow: hidden;
}
.cs-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,114,32,0.10), transparent 60%);
  pointer-events: none;
}
.cs-hero .cs-inner {
  padding-top: 160px; /* 80px nav + 80px breathing room */
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}
.cs-hero-inner { max-width: 700px; }
.cs-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cs-orange);
  display: block; margin-bottom: 24px;
}
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700; line-height: 1.15;
  color: var(--cs-white);
  margin: 0 0 24px;
}
.cs-hero h1 em { font-style: normal; color: var(--cs-orange); }
.cs-hero-sub {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,0.58);
  max-width: 580px; margin: 0 0 40px;
}
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tag {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
}

/* Stats strip */
.cs-stats-band {
  background: var(--cs-slate-dk);
  border-bottom: 3px solid var(--cs-orange);
}
.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cs-stat {
  padding: 36px 40px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.cs-stat:last-child { border-right: none; }
.cs-stat-val {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700;
  color: var(--cs-orange);
  display: block; margin-bottom: 8px; line-height: 1;
}
.cs-stat-label {
  font-family: var(--font-ui); font-size: 12px;
  color: rgba(255,255,255,0.5); line-height: 1.55;
}

/* Body band */
.cs-body-band {
  background: var(--cs-white);
  width: 100%;
}

/* Two-column layout */
.cs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: start;
  padding: 72px 0 80px;
}

/* Outline nav */
.cs-outline {
  position: sticky;
  top: 32px;
  padding: 0 32px 0 0;
  border-right: 1px solid var(--cs-border);
  align-self: start;
}
.cs-outline-label {
  font-family: var(--font-ui);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--cs-text-light);
  display: block; margin-bottom: 16px;
}
.cs-outline-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cs-outline-links a {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  color: var(--cs-text-light);
  text-decoration: none;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  line-height: 1.35;
  transition: color 0.2s, border-color 0.2s;
}
.cs-outline-links a:hover {
  color: var(--cs-text);
  border-left-color: var(--cs-border);
}
.cs-outline-links a.cs-active {
  color: var(--cs-orange);
  border-left-color: var(--cs-orange);
}

/* Main content */
.cs-content { padding: 0 0 0 56px; }

/* Client bar */
.cs-client-bar { scroll-margin-top: 120px; }
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 72px;
}
.cs-client-cell {
  padding: 20px 22px;
  border-right: 1px solid var(--cs-border);
}
.cs-client-cell:last-child { border-right: none; }
.cs-client-label {
  font-family: var(--font-ui); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--cs-text-light);
  display: block; margin-bottom: 8px;
}
.cs-client-val {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--cs-text); line-height: 1.5;
}
.cs-client-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cs-client-tag {
  font-family: var(--font-ui); font-size: 11px;
  background: var(--cs-white); border: 1px solid var(--cs-border);
  color: var(--cs-text-mid); padding: 3px 9px; border-radius: 20px;
}

/* Sections */
.cs-section { margin-bottom: 80px; scroll-margin-top: 120px; }
.cs-section-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cs-orange); display: block; margin-bottom: 14px;
}
.cs-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px); font-weight: 700;
  color: var(--cs-slate-dp); margin: 0 0 20px; line-height: 1.25;
}
.cs-section > p {
  font-size: 15.5px; line-height: 1.8;
  color: var(--cs-text-mid); margin: 0 0 16px;
}

/* Check list */
.cs-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.cs-list li {
  font-family: var(--font-ui); font-size: 15px;
  color: var(--cs-text); padding-left: 28px;
  position: relative; line-height: 1.55;
}
.cs-list li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--cs-orange); font-weight: 700; font-size: 14px;
}

/* Numbered steps */
.cs-steps { margin: 40px 0 0; display: flex; flex-direction: column; }
.cs-step {
  display: grid; grid-template-columns: 56px 1fr;
  padding: 28px 0;
  border-top: 1px solid var(--cs-border);
}
.cs-step:last-child { border-bottom: 1px solid var(--cs-border); }
.cs-step-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--cs-orange); letter-spacing: 1px; padding-top: 2px;
}
.cs-step-content h3 {
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--cs-slate-dp); margin: 0 0 6px; line-height: 1.3;
}
.cs-step-content p {
  font-family: var(--font-ui); font-size: 14px;
  color: var(--cs-text-mid); line-height: 1.7; margin: 0;
}

/* Image blocks */
.cs-img-block {
  margin: 40px 0 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--cs-border);
  box-shadow: 0 4px 24px rgba(30,45,61,0.10);
}
.cs-img-block img { display: block; width: 100%; height: auto; }
.cs-img-placeholder {
  background: var(--cs-slate-dp);
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; position: relative; overflow: hidden;
}
.cs-img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cs-img-placeholder-icon {
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  background: rgba(245,114,32,0.15);
  border: 1px solid rgba(245,114,32,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cs-img-placeholder-icon svg { width: 22px; height: 22px; opacity: 0.9; }
.cs-img-placeholder span {
  position: relative; z-index: 1;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.cs-img-caption {
  background: var(--cs-bg); padding: 12px 20px;
  font-family: var(--font-ui); font-size: 12px;
  color: var(--cs-text-light);
  border-top: 1px solid var(--cs-border);
  display: flex; align-items: center; gap: 8px;
}
.cs-img-caption::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--cs-orange); flex-shrink: 0;
}
.cs-img-inline {
  margin: 32px 0 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--cs-border);
  box-shadow: 0 4px 24px rgba(30,45,61,0.10);
}
.cs-img-inline .cs-img-placeholder { aspect-ratio: 16/7; }

/* CTA */
.cs-cta-band {
  background: var(--cs-slate-dp);
  overflow: hidden;
}
.cs-cta-band::after {
  content: ''; position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(circle, rgba(245,114,32,0.09), transparent 60%);
  pointer-events: none;
}
.cs-cta-band .cs-inner {
  padding-top: 80px; padding-bottom: 80px;
  text-align: center; position: relative; z-index: 1;
}
.cs-cta-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cs-orange); display: block; margin-bottom: 20px;
}
.cs-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px); font-weight: 700;
  color: var(--cs-white); margin: 0 0 18px; line-height: 1.25;
}
.cs-cta-band p {
  font-family: var(--font-body); font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin: 0 auto 36px; max-width: 460px; line-height: 1.7;
}
.cs-cta-btn {
  display: inline-block; background: var(--cs-orange);
  color: var(--cs-white); font-family: var(--font-ui);
  font-size: 15px; font-weight: 700;
  padding: 17px 40px; text-decoration: none; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.cs-cta-btn:hover { background: #d4621b; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 900px) {
  .cs-inner { padding-left: 28px; padding-right: 28px; }
  .cs-layout { grid-template-columns: 1fr; padding: 48px 0 60px; }
  .cs-outline { display: none; }
  .cs-content { padding: 0; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 28px 32px; }
  .cs-stat:last-child { border-bottom: none; }
  .cs-client-bar { grid-template-columns: 1fr 1fr; }
  .cs-client-cell:nth-child(2) { border-right: none; }
  .cs-client-cell:nth-child(3),
  .cs-client-cell:nth-child(4) { border-top: 1px solid var(--cs-border); }
}
@media (max-width: 480px) {
  .cs-client-bar { grid-template-columns: 1fr; }
  .cs-client-cell { border-right: none; border-bottom: 1px solid var(--cs-border); }
  .cs-client-cell:last-child { border-bottom: none; }
}