/*
 * Idesignweb Component Primitives
 * Refined Minimalist Editorial Design System
 * Clean flat cards, zero decorative clutter, crisp typography, and unified buttons.
 */

/* ============================================================ */
/* Button Primitives                                            */
/* ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  max-width: 100%;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform 0.15s ease, box-shadow var(--transition-base);
  text-decoration: none;
  gap: 6px;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary CTA - Sleek Obsidian Slate */
.btn-primary, .btn-green, .btn-blue {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: #FFFFFF !important;
}

.btn-primary:hover, .btn-green:hover, .btn-blue:hover {
  background-color: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button - Subtle Neutral Fill */
.btn-secondary {
  background-color: var(--bg-muted);
  border-color: var(--border-hairline);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-muted-hover);
  border-color: var(--border-strong);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-muted);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Ghost / Link Button */
.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  padding: 8px 12px;
}

.btn-ghost:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.btn-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: var(--weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-small);
  transition: color var(--transition-base);
}

.btn-link:hover {
  color: var(--color-accent);
}

.btn-sm {
  padding: 7px 14px;
  font-size: var(--text-tiny);
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ============================================================ */
/* Card Primitives ("No Card House" Pattern)                    */
/* ============================================================ */

/* Flat Clean Minimalist Card */
.card-hairline, .card-light, .card, .card-sky {
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-hairline:hover, .card-light:hover, .card:hover, .card-sky:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Article / Case Study Card */
.card-hairline-image, .card-article {
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-hairline-image:hover, .card-article:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-image-wrap {
  width: 100%;
  overflow: hidden;
  background-color: #F8FAFC;
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 12px 0 12px;
  box-sizing: border-box;
}

.card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1356 / 674;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--border-hairline);
  border-bottom: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card-hairline-image:hover .card-image,
.card-article:hover .card-image {
  /* No scale zoom to prevent screenshot cropping or feeling uncomfortably close */
  opacity: 0.98;
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Midnight Contrast Section */
.card-dark, .section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
}

.card-dark h2, .card-dark h3, .section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}

.card-dark p, .section-dark p {
  color: var(--text-on-dark-muted);
}

/* Service Cards - Minimalist Flat */
.card-service {
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.card-service:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.service-number, .card-service-numeral {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  color: var(--text-dim);
}

.service-title, .card-service-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.service-tagline, .card-service-tagline {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

/* Hide clutter deliverable bullet lists on card fronts */
.service-deliverables, .card-service-deliverables {
  display: none;
}

/* Service Detail Page Deliverable Scope */
.detail-deliverables-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.detail-deliverables-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: var(--text-body);
  color: var(--text-body);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-hairline);
}

.detail-deliverables-list li:first-child {
  padding-top: 0;
}

.detail-deliverables-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-deliverables-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-slate-900);
}

.detail-deliverables-list li:first-child::before {
  top: 7px;
}

/* Founder Cards */
.card-founder {
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.card-founder:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.founder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-hairline);
  gap: var(--space-sm);
}

.founder-name {
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  color: var(--text-main);
  margin-bottom: 2px;
}

.founder-role {
  font-size: var(--text-small);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.founder-bio {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: -0.011em;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.founder-skill-pill {
  font-size: var(--text-tiny);
  font-weight: var(--weight-medium);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-muted);
  border: 1px solid var(--border-hairline);
  color: var(--text-body);
}

/* ============================================================ */
/* Badges & Tags (Refined, Non-Distracting)                     */
/* ============================================================ */
.numeral-badge, .category-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  background-color: var(--bg-muted);
  border: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.badge-founder, .badge-co-founder {
  background-color: var(--bg-muted);
  color: var(--text-main);
  border: 1px solid var(--border-hairline);
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

/* Author bylines & avatars hidden on card fronts to prevent clutter */
.author-byline {
  display: none;
}

/* Section Header Structure */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header-center {
  justify-content: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-h2);
  color: var(--text-main);
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.section-numeral {
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  color: var(--text-main);
  transition: color var(--transition-base);
}

.nav-dropdown-summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-summary:hover {
  color: var(--color-accent);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.nav-dropdown-item {
  padding: 8px 16px;
  font-size: var(--text-small);
  color: var(--text-main);
  transition: background-color var(--transition-base), color var(--transition-base);
  display: block;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background-color: var(--bg-muted);
  color: var(--color-accent);
}

/* Status Tags */
.status-tag {
  font-size: var(--text-tiny);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.status-approved {
  background-color: #DEF7EC;
  color: #03543F;
}

.status-in-review {
  background-color: #FEF08A;
  color: #713F12;
}

.status-draft {
  background-color: var(--bg-muted);
  color: var(--text-muted);
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.form-label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-hint {
  font-size: var(--text-tiny);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Notification & Alert Banner */
.alert-banner {
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-banner-text {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--text-main);
}

.alert-dismiss {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

/* Process steps */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Outline-white button for dark sections */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-tiny);
  font-weight: var(--weight-medium);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

/* Results Metrics Grid */
.results-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.results-metrics-grid--compact {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  background: var(--bg-muted);
  overflow: hidden;
  gap: 0;
}

.results-metrics-grid--compact > div {
  border-right: 1px solid var(--border-hairline);
}

.results-metrics-grid--compact > div:last-child {
  border-right: none;
}

/* ============================================================ */
/* Component Responsive Overrides                                */
/* ============================================================ */
@media (max-width: 768px) {
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
  }

  .card, .card-hairline, .card-light, .card-service, .card-founder {
    padding: 12px 14px;
  }

  .card-dark, .section-dark {
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
  }

  .founder-header {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .card-body {
    padding: 16px;
  }

  .card-image-wrap {
    padding: 12px 12px 0 12px;
  }

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

@media (max-width: 480px) {
  .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}
