/* ============================================
   CASE STUDY — Vaughn Hockey
   Template-specific styles.
   Shared: main.css tokens, components.css
   (breadcrumb, buttons, reveal, CTA, sticky CTA).
============================================ */


/* ============================================
   BROWSER FRAME COMPONENT
   Reusable screenshot wrapper matching the
   web-design page mockup aesthetic.
============================================ */
.cs-browser-frame {
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  overflow: hidden;
}

.cs-browser-chrome {
  background: #e8e7e3;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cs-browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.cs-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.cs-browser-dots span:nth-child(1) { background: #FF5F57; }
.cs-browser-dots span:nth-child(2) { background: #FFBE2E; }
.cs-browser-dots span:nth-child(3) { background: #2BC840; }

.cs-browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
  font-family: var(--sans);
  gap: 0.35rem;
}

.cs-browser-lock {
  width: 9px;
  height: 9px;
  opacity: 0.45;
  flex-shrink: 0;
}

.cs-browser-body {
  background: #f5f5f5;
  line-height: 0;
}

.cs-browser-body img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Smaller variant for deliverable rows */
.cs-browser-frame--small .cs-browser-chrome {
  padding: 0.5rem 0.75rem;
}

.cs-browser-frame--small .cs-browser-dots span {
  width: 8px;
  height: 8px;
}

.cs-browser-frame--small .cs-browser-url {
  height: 20px;
  font-size: 0.6rem;
}


/* ============================================
   HERO — Compact two-column
============================================ */
.cs-hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.cs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 3rem 5rem;
}

.cs-hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: rgba(247, 246, 242, 0.35);
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
  opacity: 0;
  animation: revealUp 0.85s 0.6s var(--ease-out) forwards;
}

.cs-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
  opacity: 0;
  animation: revealUp 0.8s 0.9s var(--ease-out) forwards;
}

.cs-hero-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(74, 143, 216, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
}

/* Hero browser frame entrance */
.cs-hero-browser {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: revealUp 0.9s 0.7s var(--ease-out) forwards;
}


/* ============================================
   SHARED LAYOUT HELPERS
============================================ */
.cs-section {
  padding: 7rem 0;
}

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.cs-two-col-right p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  font-weight: 300;
}

.cs-two-col-right p + p {
  margin-top: 1.25rem;
}

.cs-body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  font-weight: 300;
  max-width: 640px;
  margin-top: 1.25rem;
}


/* ============================================
   OVERVIEW
============================================ */
.cs-overview {
  background: var(--white);
  border-bottom: 1px solid rgba(17, 18, 16, 0.06);
}

.cs-overview .section-heading em {
  font-style: italic;
  color: var(--accent);
}


/* ============================================
   FULL-WIDTH SCREENSHOT
============================================ */
.cs-fullwidth-screenshot {
  background: var(--off-white);
  padding: 3rem 0;
}

.cs-fullwidth-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.cs-fullwidth-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(17, 18, 16, 0.1);
}


/* ============================================
   CHALLENGE
============================================ */
.cs-challenge {
  background: var(--white);
}

.cs-challenge-header {
  margin-bottom: 3rem;
}

.cs-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cs-challenge-card {
  background: var(--off-white);
  border-radius: 3px;
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(17, 18, 16, 0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.cs-challenge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17, 18, 16, 0.06);
}

.cs-challenge-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.cs-challenge-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-body);
  font-weight: 400;
}

/* Last two cards: 4th takes 1 col, 5th takes 2 cols */
.cs-challenge-grid .cs-challenge-card:nth-child(5) {
  grid-column: 2 / 4;
}


/* ============================================
   GOALS — Dark section
============================================ */
.cs-goals {
  background: var(--dark);
  color: var(--white);
}

.cs-goals-header {
  text-align: center;
  margin-bottom: 4rem;
}

.cs-goals .section-eyebrow { color: var(--accent); }
.cs-goals .section-heading { color: var(--white); }
.cs-goals .section-heading em { font-style: italic; color: var(--accent); }

.cs-goals-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
}

.cs-goal {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(247, 246, 242, 0.06);
}

.cs-goal:first-child {
  border-top: 1px solid rgba(247, 246, 242, 0.06);
}

.cs-goal-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  width: 2rem;
  padding-top: 0.1rem;
}

.cs-goal h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.cs-goal p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(247, 246, 242, 0.4);
  font-weight: 300;
}


/* ============================================
   DELIVERABLES — Alternating rows + images
============================================ */
.cs-deliverables {
  background: var(--off-white);
}

.cs-deliverables-header {
  margin-bottom: 4rem;
  align-items: end;
}

/* Deliverable row: content left, image right */
.cs-deliverable-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(17, 18, 16, 0.06);
}

.cs-deliverable-row:first-of-type {
  border-top: 1px solid rgba(17, 18, 16, 0.06);
}

/* Reversed: image left, content right */
.cs-deliverable-row--reverse {
  direction: rtl;
}

.cs-deliverable-row--reverse > * {
  direction: ltr;
}

.cs-deliverable-num {
  display: block;
  font-family: var(--serif);
  font-size: 3.5rem;
  color: rgba(17, 18, 16, 0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.cs-deliverable-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.cs-deliverable-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body);
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.cs-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cs-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.cs-check-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.cs-check-item span {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-body);
  font-weight: 400;
}


/* ============================================
   RESULTS
============================================ */
.cs-results {
  background: var(--white);
}

.cs-results-header {
  margin-bottom: 3.5rem;
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cs-result-card {
  background: var(--off-white);
  border-radius: 3px;
  padding: 2.5rem;
  border: 1px solid rgba(17, 18, 16, 0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.cs-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17, 18, 16, 0.06);
}

.cs-result-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.cs-result-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
  font-weight: 400;
}


/* ============================================
   SERVICES PROVIDED
============================================ */
.cs-services-provided {
  background: var(--white);
  border-top: 1px solid rgba(17, 18, 16, 0.06);
}

.cs-services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: flex-start;
}

.cs-service-pill {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--text-body);
  border: 1px solid rgba(17, 18, 16, 0.12);
  padding: 0.6rem 1.15rem;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.cs-service-pill:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .cs-challenge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-challenge-grid .cs-challenge-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .cs-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 3rem 3.5rem;
  }

  .cs-hero-browser {
    max-width: 480px;
  }

  .cs-section {
    padding: 5rem 0;
  }

  .cs-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .cs-deliverable-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs-deliverable-row--reverse {
    direction: ltr;
  }

  .cs-deliverable-image {
    order: -1;
    max-width: 480px;
  }

  .cs-results-grid {
    grid-template-columns: 1fr;
  }

  .cs-fullwidth-inner {
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  .cs-hero-inner {
    padding: 4rem 1.5rem 2.5rem;
  }

  .cs-section {
    padding: 3.5rem 0;
  }

  .cs-goals-header {
    text-align: left;
    margin-bottom: 2.5rem;
  }

  .cs-goal {
    gap: 1.25rem;
  }

  .cs-deliverables-header {
    margin-bottom: 2.5rem;
  }

  .cs-deliverable-row {
    padding: 2rem 0;
  }

  .cs-result-card {
    padding: 1.75rem;
  }

  .cs-fullwidth-screenshot {
    padding: 2rem 0;
  }
}


/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .cs-hero-subtitle,
  .cs-hero-tags,
  .cs-hero-browser {
    animation: none;
    opacity: 1;
    transform: none;
  }
}