/* ==========================================================================
   BunchFin LLC – Global Styles
   ========================================================================== */

/* Color system (CSS variables) */
:root {
  --navy: #003087;
  --deep-red: #bf2c2c;
  --gold: #d4af37;
  --dark-bg: #0f172a;
  --off-white: #f8fafc;

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-subtle: #1e293b;
  --surface-dark: #020617;
  --surface-card: #050816;

  --radius-small: 0.5rem;
  --radius-large: 1.25rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
}

/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1e293b 0, var(--dark-bg) 42%, #020617 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Selection colors */
::selection {
  background-color: var(--deep-red);
  color: var(--off-white);
}

/* Layout helpers */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.8);
}

.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  font-weight: 600;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Desktop Nav */
.main-nav {
  display: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-link {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-main);
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transition: width 0.22s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link-active::after {
  width: 100%;
}

.nav-link-active {
  color: var(--gold);
}

/* Header badge */
.header-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), rgba(15, 23, 42, 0.9));
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--gold);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  height: 2px;
  width: 55%;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--off-white);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Rotate bars when open (class set by JS) */
.nav-toggle.is-open .nav-toggle-bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile Fullscreen Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  transform: translateY(-100%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mobile-nav-link:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.mobile-active {
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--gold);
}

.mobile-menu-badge {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   Hero (Home)
   ========================================================================== */

.hero-section {
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--off-white);
}

.hero-highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Trust row */
.trust-row {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.trust-item {
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
}

.trust-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.trust-value {
  font-size: 0.9rem;
  color: var(--off-white);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  grid-column: 1 / -1;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

/* Hero visual card */
.hero-visual {
  max-width: 380px;
  margin: 0 auto;
}

.hero-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.hero-logo {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.96);
  padding: 0.4rem;
}

.hero-card-content {
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(0, 48, 135, 0.28), rgba(4, 12, 33, 0.95));
  padding: 1rem;
}

.hero-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-white);
}

.hero-card-subtitle {
  margin: 0.4rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-metrics {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.85rem;
}

.metric-ok {
  color: #22c55e;
}

.hero-naics {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: #111827;
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.65);
  color: var(--off-white);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(15, 23, 42, 0.8);
}

.btn-primary-inline {
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: #111827;
}

.btn-primary-block,
.btn-secondary-block {
  width: 100%;
}

.btn-secondary-block {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--off-white);
}

.btn-secondary-block:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   Sections / Generic layout
   ========================================================================== */

.section {
  padding: 3rem 0;
}

.subtle-section {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.96));
  border-top: 1px solid rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-header {
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--off-white);
}

.body-text {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.6;
}

.body-text + .body-text {
  margin-top: 0.75rem;
}

.small-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Two-column layout */
.two-column {
  display: grid;
  gap: 2rem;
}

/* Three-column info cards */
.three-column-grid {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  border-radius: var(--radius-large);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(0, 48, 135, 0.15), rgba(2, 6, 23, 0.98));
  padding: 1.3rem;
}

.info-card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.info-card-body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Info panel / aside */
.info-panel {
  border-radius: var(--radius-large);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96));
  padding: 1.5rem 1.3rem;
}

.info-panel-title {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.info-list {
  margin: 0;
  padding: 0;
}

.info-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

.info-list-row:last-child {
  border-bottom: none;
}

.info-list-row dt {
  color: var(--text-muted);
}

.info-list-row dd {
  margin: 0;
  text-align: right;
}

.info-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.info-bullets li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.info-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.info-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Card grid (products) */
.card-grid {
  display: grid;
  gap: 1.6rem;
}

.product-card {
  border-radius: var(--radius-large);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.26), rgba(4, 12, 33, 0.98));
  padding: 1.4rem 1.3rem;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.product-card-title {
  margin: 0;
  font-size: 1rem;
  color: var(--off-white);
}

.product-tag {
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.2rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--gold);
}

.product-card-body {
  margin: 0.7rem 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.product-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA panel */
.cta-panel {
  border-radius: var(--radius-large);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(191, 44, 44, 0.22), rgba(2, 6, 23, 0.98));
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Page hero */
.page-hero {
  padding: 2.6rem 0 1.2rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.page-title {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
  color: var(--off-white);
}

.page-subtitle {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Forms (Contact)
   ========================================================================== */

.form-panel {
  border-radius: var(--radius-large);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(0, 48, 135, 0.16), rgba(2, 6, 23, 0.98));
  padding: 1.5rem 1.3rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row-align {
  align-items: center;
  margin-top: 0.6rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.required {
  color: var(--deep-red);
  margin-left: 0.15rem;
}

.form-field input,
.form-field textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  color: var(--off-white);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.7);
  background: rgba(15, 23, 42, 1);
}

.form-field input.error,
.form-field textarea.error {
  border-color: var(--deep-red);
  box-shadow: 0 0 0 1px rgba(191, 44, 44, 0.7);
}

.checkbox-label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border-radius: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 1);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 1.7rem 0;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(2, 6, 23, 0.97);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 32px;
  width: auto;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  padding: 0.25rem;
}

.footer-name {
  font-size: 0.92rem;
  color: var(--off-white);
  margin: 0;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-copy {
  margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 600px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .page-title {
    font-size: 1.9rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero-visual {
    justify-self: end;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-badge {
    grid-column: auto;
  }

  .two-column {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .three-column-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-meta {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 768px) {
  .brand-text {
    display: flex;
  }

  .main-nav {
    display: block;
  }

  .header-badge {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .hero-section {
    padding: 3.6rem 0 4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: 3rem 0 1.6rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
