/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-in-out),
    color var(--duration-fast) var(--ease-in-out),
    box-shadow var(--duration-fast) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-in-out);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

/* Primary (blue) */
.btn--primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background-color: var(--color-blue-light);
  box-shadow: 0 10px 28px -4px rgba(26, 63, 160, 0.35);
}

/* Secondary (outline) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}

.btn--secondary:hover {
  border-color: var(--color-text);
  background-color: rgba(17, 24, 39, 0.04);
}

/* Gold */
.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  background-color: var(--color-gold-dark);
  box-shadow: 0 6px 20px -4px rgba(200, 132, 14, 0.45);
}

/* Large */
.btn--lg {
  font-size: var(--text-base);
  padding: 14px 28px;
}

/* ---- UNDERLINE WORD (gold SVG signature detail) ---- */
.underline-word {
  position: relative;
  display: inline-block;
}

.underline-word svg {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.underline-word svg path {
  stroke: var(--color-gold);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.underline-word svg path.is-drawn {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 600ms var(--ease-out);
  transition-delay: 400ms;
}

/* ---- PILLAR CARDS ---- */
.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  position: relative;
}

.pillar-card--gold {
  box-shadow: var(--shadow-sm), inset 4px 0 0 var(--color-gold);
}

.pillar-card--blue {
  box-shadow: var(--shadow-sm), inset 4px 0 0 var(--color-blue);
}

.pillar-card--success {
  box-shadow: var(--shadow-sm), inset 4px 0 0 var(--color-success);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), inset 6px 0 0 currentColor;
}

.pillar-card--gold:hover {
  box-shadow: var(--shadow-lg), inset 6px 0 0 var(--color-gold);
}

.pillar-card--blue:hover {
  box-shadow: var(--shadow-lg), inset 6px 0 0 var(--color-blue);
}

.pillar-card--success:hover {
  box-shadow: var(--shadow-lg), inset 6px 0 0 var(--color-success);
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-shrink: 0;
}

.pillar-card--gold .pillar-card__icon {
  background-color: var(--color-gold-tint);
}

.pillar-card--blue .pillar-card__icon {
  background-color: var(--color-blue-tint);
}

.pillar-card--success .pillar-card__icon {
  background-color: #ecfdf5;
}

.pillar-card .eyebrow {
  margin-bottom: var(--space-2);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.pillar-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ---- CLIENT WIN CARDS ---- */
.win-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.win-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.win-card__amount {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--color-blue);
  margin-bottom: var(--space-2);
}

.win-card__descriptor {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.win-card__divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-6);
}

.win-card__context {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.win-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.win-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
}

.win-card__link:hover {
  color: var(--color-blue-light);
}

.win-card__link .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-in-out);
}

.win-card__link:hover .arrow {
  transform: translateX(4px);
}

/* ---- PROJECT CARDS ---- */
.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.project-card__accent {
  height: 6px;
  flex-shrink: 0;
  transition: height var(--duration-fast) var(--ease-in-out);
}

.project-card:hover .project-card__accent {
  height: 8px;
}

.project-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: padding-top var(--duration-fast) var(--ease-in-out);
}

.project-card:hover .project-card__body {
  padding-top: calc(var(--space-8) - 2px);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card .eyebrow {
  margin-bottom: var(--space-3);
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.project-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  flex: 1;
  margin-bottom: var(--space-6);
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
}

.project-card__tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
  white-space: nowrap;
}

.project-card__link:hover {
  color: var(--color-blue-light);
}

.project-card__link .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-in-out);
}

.project-card__link:hover .arrow {
  transform: translateX(4px);
}

/* ---- INTRO STRIP ---- */
.intro-strip {
  background-color: var(--color-blue);
  padding: var(--space-10) 0;
}

.intro-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.intro-strip__stat {
  flex: 1;
  text-align: center;
  padding: var(--space-4) var(--space-8);
}

.intro-strip__divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.intro-strip__number {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 30px;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.intro-strip__label {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

/* ---- CTA SECTION ---- */
.cta-section {
  background-color: var(--color-blue);
  padding: var(--space-24) 0;
  text-align: center;
}

.cta-section .eyebrow {
  color: var(--color-gold-light);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: var(--leading-snug);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-10);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- PROJECT CARD ACCENT COLORS ---- */
.project-card--blue   .project-card__accent { background-color: var(--color-blue); }
.project-card--gold   .project-card__accent { background-color: var(--color-gold); }
.project-card--success .project-card__accent { background-color: var(--color-success); }
.project-card--purple .project-card__accent { background-color: var(--color-purple); }
.project-card--teal   .project-card__accent { background-color: var(--color-teal); }
.project-card--rose   .project-card__accent { background-color: var(--color-rose); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }

/* ---- CANVAS SCREENSHOT (automations sub-pages) ---- */
.canvas-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f2f5;
  min-height: 220px;
  border-radius: 8px;
}

.canvas-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.canvas-badge {
  position: absolute;
  background: #1a3fa0;
  color: white;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.canvas-credit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-4);
  text-align: center;
}

@media (max-width: 768px) {
  .canvas-badge { display: none; }
}

/* ---- PROCESS STEPS (automations sub-pages) ---- */
.process-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.process-step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  counter-increment: step-counter;
}

.process-step::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.process-step__content strong {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
}

.process-step__content p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ---- VALUE BULLETS (automations sub-pages) ---- */
.value-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-bullets li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.value-bullets li::before {
  content: "✓";
  color: var(--color-gold);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- TEMPLATE ROW ---- */
.project-card__template {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-8);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.project-card__template-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
  white-space: nowrap;
}

.project-card__template-link:hover {
  color: var(--color-text);
}

/* ---- AUTOMATION HUB CARDS (bullets inside project card) ---- */
.project-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-card__bullets li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.project-card__bullets li::before {
  content: "→";
  color: var(--color-gold);
  font-weight: var(--weight-medium);
  flex-shrink: 0;
}

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

/* ---- BRAND LOCKUP (hero) ---- */
.brand-lockup {
  margin-bottom: var(--space-6);
}

.brand-lockup__name {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: var(--text-4xl);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-blue);
  text-shadow:
    0 0 6px rgba(200, 132, 14, 1),
    0 0 18px rgba(200, 132, 14, 0.7),
    0 0 36px rgba(200, 132, 14, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ---- CASE STUDY CARDS ---- */
.case-study-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.case-study-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.case-study-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.case-study-card__client {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--color-blue);
  line-height: 1;
}

.case-study-card__industry {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.case-study-card__section {
  margin-bottom: var(--space-6);
}

.case-study-card__section:last-of-type {
  margin-bottom: var(--space-8);
}

.case-study-card__section h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.case-study-card__section p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.case-study-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-blue);
  transition: color var(--duration-fast) var(--ease-in-out);
}

.case-study-card__cta:hover {
  color: var(--color-blue-light);
}

.case-study-card__cta .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-in-out);
}

.case-study-card__cta:hover .arrow {
  transform: translateX(4px);
}

/* ---- DISCOVERY INTRO ---- */
.discovery-intro {
  max-width: 680px;
}

.discovery-intro p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

@media (max-width: 767px) {
  .brand-lockup__name {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 767px) {
  .intro-strip__inner {
    flex-direction: column;
    gap: 0;
  }

  .intro-strip__divider {
    width: 40px;
    height: 1px;
  }

  .intro-strip__stat {
    padding: var(--space-5) var(--space-4);
  }

  .cta-section h2 {
    font-size: var(--text-3xl);
  }

  .win-card__amount {
    font-size: 28px;
  }
}
