/* Iron Dockets marketing site theme */
:root {
  --id-navy: #1a365d;
  --id-navy-dark: #0f2440;
  --id-red: #c53030;
  --id-red-hover: #9b2c2c;
  --id-bg: #f7fafc;
  --id-surface: #ffffff;
  --id-text: #2d3748;
  --id-muted: #718096;
  --id-border: #e2e8f0;
  --id-success: #276749;
  --id-radius: 0.5rem;
  --id-shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
  --id-shadow-lg: 0 12px 40px rgba(26, 54, 93, 0.12);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Source Serif 4", Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--id-text);
  background: var(--id-surface);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.display-4, .display-5 {
  font-family: var(--font-heading);
  color: var(--id-navy);
  font-weight: 600;
}

a {
  color: var(--id-navy);
  text-decoration: none;
}

a:hover {
  color: var(--id-red);
}

/* Bootstrap overrides */
.btn-primary {
  --bs-btn-bg: var(--id-red);
  --bs-btn-border-color: var(--id-red);
  --bs-btn-hover-bg: var(--id-red-hover);
  --bs-btn-hover-border-color: var(--id-red-hover);
  --bs-btn-active-bg: var(--id-red-hover);
  --bs-btn-active-border-color: var(--id-red-hover);
  --bs-btn-focus-shadow-rgb: 197, 48, 48;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--id-radius);
}

.btn-outline-light {
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.15);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--id-radius);
}

.btn-outline-primary {
  --bs-btn-color: var(--id-navy);
  --bs-btn-border-color: var(--id-navy);
  --bs-btn-hover-bg: var(--id-navy);
  --bs-btn-hover-border-color: var(--id-navy);
  font-weight: 600;
  border-radius: var(--id-radius);
}

.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

.form-control {
  border-color: var(--id-border);
  border-radius: var(--id-radius);
}

.form-control:focus {
  border-color: var(--id-navy);
}

/* Navbar */
.id-navbar {
  background: var(--id-navy) !important;
  padding: 0.75rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.id-navbar .navbar-brand img {
  height: 40px;
  width: auto;
}

.id-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.id-navbar .nav-link:hover,
.id-navbar .nav-link.active {
  color: #fff !important;
}

.id-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.id-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Layout */
main {
  flex: 1;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: var(--id-bg);
}

.section-dark {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--id-navy-dark) 0%, var(--id-navy) 100%);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark .display-5 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--id-navy-dark) 0%, var(--id-navy) 55%, #234e82 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/hero/hero-pattern.svg") repeat;
  opacity: 0.35;
  pointer-events: none;
}

.hero-illustration {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: min(55%, 640px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.hero .sublead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

/* Page header (inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--id-navy-dark) 0%, var(--id-navy) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 640px;
}

/* Trust strip */
.trust-strip {
  background: var(--id-surface);
  border-bottom: 1px solid var(--id-border);
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  color: var(--id-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-item i {
  color: var(--id-red);
  font-size: 1.25rem;
}

/* Feature cards */
.feature-card {
  background: var(--id-surface);
  border: 1px solid var(--id-border);
  border-radius: var(--id-radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--id-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--id-shadow-lg);
}

.feature-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(26, 54, 93, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card .icon-circle i {
  font-size: 1.5rem;
  color: var(--id-navy);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--id-muted);
  margin: 0;
}

/* Step timeline */
.step-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--id-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
}

.step-item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--id-navy);
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--id-muted);
  margin: 0;
}

.step-timeline-expanded .step-item {
  text-align: left;
}

.step-timeline-expanded .step-number {
  margin: 0 0 1rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--id-navy) 0%, var(--id-navy-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* Product illustration row */
.product-showcase {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-showcase img {
  max-width: 280px;
  flex-shrink: 0;
}

.product-showcase.reverse {
  flex-direction: row-reverse;
}

/* Audience row */
.audience-card {
  text-align: center;
  padding: 1.5rem;
}

.audience-card i {
  font-size: 2rem;
  color: var(--id-red);
  margin-bottom: 0.75rem;
  display: block;
}

.audience-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--id-muted);
  margin: 0;
}

/* Contact */
.contact-aside {
  background: var(--id-bg);
  border-radius: var(--id-radius);
  padding: 2rem;
  height: 100%;
}

.contact-aside .trust-bullet {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-aside .trust-bullet i {
  color: var(--id-red);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Legal content */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content p {
  line-height: 1.7;
  color: var(--id-text);
}

/* Footer */
.id-footer {
  background: var(--id-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.id-footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.id-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 0.5rem;
}

.id-footer a:hover {
  color: #fff;
}

.id-footer .footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
}

.id-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

/* Flow diagram */
.flow-diagram-img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}

/* Security section */
.security-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.security-row img {
  max-width: 320px;
  flex-shrink: 0;
}

/* Error page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--id-red);
}

/* Capability panels (Product) */
.capability-panel {
  background: var(--id-bg);
  border-radius: var(--id-radius);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--id-border);
}

.capability-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.capability-panel h3 i {
  color: var(--id-red);
  margin-right: 0.35rem;
}

/* Industries teaser (Home) */
.industries-teaser {
  background: linear-gradient(180deg, var(--id-surface) 0%, var(--id-bg) 100%);
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.industry-chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--id-border);
  background: var(--id-surface);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--id-navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.industry-chip:hover {
  border-color: var(--id-navy);
  box-shadow: var(--id-shadow);
  color: var(--id-navy);
}

/* Profile switcher */
.profile-switcher {
  max-width: 720px;
  margin: 0 auto;
}

.profile-switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.profile-tab {
  border: 1px solid var(--id-border);
  background: var(--id-surface);
  color: var(--id-text);
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.profile-tab:hover,
.profile-tab.active {
  border-color: var(--id-navy);
  background: var(--id-navy);
  color: #fff;
}

.profile-switcher-panel {
  background: var(--id-bg);
  border: 1px solid var(--id-border);
  border-radius: var(--id-radius);
  padding: 1.5rem;
  box-shadow: var(--id-shadow);
}

.profile-panel-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--id-navy);
  background: rgba(26, 54, 93, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.profile-mock-ui {
  display: grid;
  gap: 0.75rem;
}

.profile-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--id-border);
}

.profile-mock-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-mock-label {
  font-size: 0.85rem;
  color: var(--id-muted);
}

.profile-mock-value {
  font-weight: 600;
  color: var(--id-navy);
  text-align: right;
}

.profile-mock-value.profile-swap {
  animation: profileSwap 0.35s ease;
}

@keyframes profileSwap {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Industry cards */
.industry-card {
  background: var(--id-surface);
  border: 1px solid var(--id-border);
  border-radius: var(--id-radius);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 5rem;
}

.industry-card-featured {
  padding: 2rem;
  box-shadow: var(--id-shadow-lg);
}

.industry-card-compact {
  padding: 1rem;
  text-align: center;
}

.industry-card-compact .industry-card-title {
  font-size: 0.85rem;
}

.industry-card-compact .industry-body {
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.industry-card-compact .industry-cta {
  font-size: 0.75rem;
}

.industry-card-icon {
  font-size: 1.75rem;
  color: var(--id-red);
  margin-bottom: 0.75rem;
}

.industry-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--id-muted);
  margin-bottom: 0.5rem;
}

.industry-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.industry-headline {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--id-navy);
  margin-bottom: 0.5rem;
}

.industry-body {
  font-size: 0.9rem;
  color: var(--id-muted);
  flex-grow: 1;
}

.industry-cta {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Scenario blocks */
.scenario-blocks {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.scenario-block {
  background: var(--id-bg);
  border-left: 4px solid var(--id-red);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--id-radius) var(--id-radius) 0;
}

.scenario-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Platform primitives strip */
.platform-primitives .primitive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.platform-primitives .primitive-item i {
  font-size: 1.5rem;
  color: #fff;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-illustration {
    display: none;
  }

  .product-showcase,
  .product-showcase.reverse {
    flex-direction: column;
    text-align: center;
  }

  .security-row {
    flex-direction: column;
    text-align: center;
  }

  .trust-item {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-alt,
  .section-dark {
    padding: 2.5rem 0;
  }
}
