/* ============================================================
   STRATEGIES PAGE — addendum to site-style.css / site-components.css
   Only adds components not present in the parent design system:
   - Strategies dropdown (header)
   - KPI strip
   - Computer panel mock
   - Lead intake form
   - FAQ details list
   - Final CTA card
   ============================================================ */

/* ---- DESKTOP DROPDOWN (Strategies) ---- */
.has-dropdown {
  position: relative;
}
.has-dropdown > a,
.has-dropdown > button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.has-dropdown > a:hover,
.has-dropdown > button:hover {
  color: var(--color-text);
}
.has-dropdown > a.active {
  color: var(--color-primary);
}
.dropdown-caret {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-interactive);
}
.has-dropdown:hover .dropdown-caret,
.has-dropdown:focus-within .dropdown-caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.16,1,0.3,1),
              transform 180ms cubic-bezier(0.16,1,0.3,1),
              visibility 180ms;
  z-index: 110;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
  transition: background var(--transition-interactive),
              color var(--transition-interactive);
}
.dropdown-menu a:hover {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.dropdown-menu a small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.dropdown-menu a:hover small {
  color: var(--color-primary);
  opacity: 0.85;
}

/* ---- MOBILE NAV — submenu ---- */
.mobile-nav-group-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: calc(0px - var(--space-3));
  margin-top: var(--space-2);
}
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-divider);
}
.mobile-nav-sub a {
  font-size: var(--text-base) !important;
  font-weight: 500 !important;
  color: var(--color-text-muted) !important;
}

/* ---- KPI STRIP ---- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (min-width: 768px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
}
.kpi {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.kpi-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.kpi-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- AUDIENCE GRID — 3 cards ---- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- PRICING GRID — supports 2 or 3 cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- ACQUISITION TACTICS LIST ---- */
.tactics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .tactics-grid { grid-template-columns: 1fr 1fr; }
}
.tactic {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.tactic-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-highlight);
  color: var(--color-accent);
}
.tactic h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.tactic p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---- COMPUTER PANEL (Perplexity integration mock) ---- */
.computer-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 900px) {
  .computer-block { grid-template-columns: 1fr 1fr; }
}
.computer-panel {
  background: var(--color-navy);
  border: 1px solid var(--color-navy-lighter);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.computer-panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-4);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.dot--red { background: #ff5f56; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #27c93f; }
.computer-panel-title {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.computer-step {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  opacity: 0;
  animation: cstep-fade 600ms cubic-bezier(0.16,1,0.3,1) both;
}
.computer-step:nth-child(1) { animation-delay: 0.1s; }
.computer-step:nth-child(2) { animation-delay: 0.6s; }
.computer-step:nth-child(3) { animation-delay: 1.1s; }
.computer-step:nth-child(4) { animation-delay: 1.6s; }
.computer-step:nth-child(5) { animation-delay: 2.1s; }
.computer-step:nth-child(6) { animation-delay: 2.6s; }
.computer-step--done .computer-step-icon {
  background: rgba(61,184,180,0.18);
  color: var(--color-primary);
}
.computer-step--active .computer-step-icon {
  background: rgba(232,169,62,0.18);
  color: var(--color-accent);
}
.computer-step-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
}
.computer-step strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  margin-right: 4px;
}
@keyframes cstep-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- LEAD FORM ---- */
.lead-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 720px;
  margin: var(--space-8) auto 0;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (min-width: 600px) {
  .form-row.row-2 { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-field label .req { color: var(--color-error); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
  min-height: 44px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.form-help {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-2);
}
@media (min-width: 600px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.form-status {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-height: 1.4em;
}
.form-status.is-success { color: var(--color-success); }
.form-status.is-error { color: var(--color-error); }
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list details {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-4) 0;
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--color-divider);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  padding: var(--space-2) 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition-interactive);
}
.faq-list details[open] summary::after {
  content: '−';
}
.faq-list details > div {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  padding: var(--space-3) 0 var(--space-2);
  max-width: 70ch;
}

/* ---- FINAL CTA ---- */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ---- SECTION DARK overrides for elements used inside ---- */
.section-dark .lead-form {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
.section-dark .form-field label { color: #fff; }
.section-dark .form-field input,
.section-dark .form-field select,
.section-dark .form-field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.section-dark .form-field input::placeholder,
.section-dark .form-field textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.section-dark .form-help { color: rgba(255,255,255,0.5); }
.section-dark .form-status { color: rgba(255,255,255,0.7); }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16,1,0.3,1),
              transform 600ms cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .computer-step { animation: none; opacity: 1; }
}
