/* ==========================================================================
   Avalon Strategic Supply — Site Stylesheet
   Design system: charcoal / midnight blue / slate / white + amber-copper accent
   ========================================================================== */

:root {
  --charcoal: #191b1f;
  --charcoal-2: #212429;
  --midnight: #14213D;      /* matches Avalon Sourcing Advisors' navy exactly, for corporate consistency */
  --midnight-2: #0d162b;
  --slate: #4b5563;
  --slate-light: #6b7280;
  --slate-mist: #eef1f5;
  --white: #ffffff;
  --offwhite: #F7F7F5;
  --accent: #c8792f;
  --accent-light: #e29a52;
  --accent-dark: #9c5f22;
  --border: #E5E7EB;
  --shadow: 0 12px 30px rgba(16, 26, 44, 0.10);
  --shadow-sm: 0 4px 12px rgba(16, 26, 44, 0.08);
  --radius: 4px;
  --max: 1120px;
  --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
  color: var(--midnight);
}
h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9em;
}
.section { padding: 56px 0; }
.section--tight { padding: 48px 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section--dark { background: var(--midnight); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark .eyebrow-white { color: var(--white); }
.section--dark p { color: #b9c2d1; }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--charcoal p { color: #b7bcc4; }
.section--offwhite { background: var(--offwhite); }
.section--border-top { border-top: 1px solid var(--border); }

/* Buttons — dimensions/radius/no-shadow match Avalon Sourcing Advisors;
   color stays Strategic Supply's own amber/copper accent */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-secondary:hover { background: var(--white); color: var(--midnight); }
.btn-outline-dark { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn-outline-dark:hover { background: var(--midnight); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header — white, sticky, border-bottom: matches Avalon Sourcing Advisors' header pattern */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--midnight); letter-spacing: 0.01em;
}
.brand-name span { color: var(--accent); }
.brand-tag {
  font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--slate-light); margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--slate); font-size: 0.95rem; font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--midnight); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 8px 16px; font-size: 0.8rem; white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 26px; height: 18px; padding: 0;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--midnight);
  margin: 0; transition: 0.2s;
}

/* Hero — kept as a filled navy panel; Avalon Sourcing Advisors uses the
   same solid-navy hero treatment, so this was already consistent */
.hero {
  background: linear-gradient(155deg, var(--midnight) 0%, var(--midnight-2) 55%, #1c2c46 100%);
  color: var(--white);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: -12%; top: -20%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(200,121,47,0.16) 0%, rgba(200,121,47,0) 70%);
}
.hero h1 { color: var(--white); }
.hero-inner { position: relative; max-width: 780px; }
.hero p.lede { font-size: 1.15rem; color: #c3cbd8; max-width: 640px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 44px; margin-top: 64px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 30px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent-light); }
.hero-stat .lbl { font-size: 0.86rem; color: #9fabbd; margin: 4px auto 0; max-width: 180px; }

/* Two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.path-card .tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.path-card ul { margin: 18px 0 26px; }
.path-card li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--slate); font-size: 0.96rem; }
.path-card li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 2px; background: var(--accent);
}
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card--dark { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.path-card--dark h3 { color: var(--white); }
.path-card--dark p, .path-card--dark li { color: #c3cbd8; }

/* Two-column feature */
.feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center;
}
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature-visual {
  background: var(--offwhite); border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--border);
}
.feature-visual.dark { background: var(--midnight); border-color: var(--midnight); }
.criteria-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--charcoal-2);
}
.criteria-list li:last-child { border-bottom: none; }
.criteria-list .ico {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.7rem; font-weight: 800; margin-top: 1px;
}
.disclaimer {
  font-size: 0.82rem; color: var(--slate-light); font-style: italic;
  border-left: 3px solid var(--border); padding-left: 14px; margin-top: 22px;
}
.section--dark .disclaimer, .section--charcoal .disclaimer { color: #8a94a3; border-left-color: rgba(255,255,255,0.2); }

/* Capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 8px; }
.cap-grid li {
  display: flex; align-items: center; gap: 12px; font-size: 0.96rem;
  color: var(--white); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cap-grid .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step { position: relative; padding-top: 8px; }
.step .step-num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
  color: var(--accent); opacity: 0.85; line-height: 1;
}
.step h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* Product category grid */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.category-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.15s ease;
}
.category-card:hover { border-color: var(--accent); }
.category-card .ic { color: var(--accent); margin-bottom: 14px; }
.category-card h3 { font-size: 1rem; margin-bottom: 6px; }
.category-card p { font-size: 0.86rem; margin: 0; color: var(--slate-light); }
.category-note {
  margin-top: 30px; font-size: 0.85rem; color: var(--slate-light); font-style: italic;
  max-width: 720px;
}

/* Buyer requirement chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.chip {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 20px; font-size: 0.9rem; font-weight: 600; color: var(--charcoal-2);
}

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.why-item .ic { color: var(--accent); margin-bottom: 16px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--white); }
.why-item p { font-size: 0.92rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.founder-badge {
  background: linear-gradient(160deg, var(--midnight) 0%, var(--charcoal) 100%);
  border-radius: var(--radius); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  border: 1px solid var(--border);
}
.founder-badge .initial { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--accent-light); }
.founder-facts { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.founder-fact .num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--accent); }
.founder-fact .lbl { font-size: 0.8rem; color: var(--slate-light); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid.full { grid-template-columns: 1fr; }
.field { margin-bottom: 20px; }
.field.span-2 { grid-column: span 2; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 7px;
  color: var(--charcoal-2); letter-spacing: 0.01em;
}
.field .opt { font-weight: 400; color: var(--slate-light); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--charcoal); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,121,47,0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow);
}
.form-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; gap: 16px;
}
.form-fallback { font-size: 0.85rem; color: var(--slate-light); }
.form-fallback a { color: var(--accent); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note {
  font-size: 0.82rem; color: var(--slate-light); margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-status {
  display: none; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.92rem; font-weight: 600;
}
.form-status.success { display: block; background: #eaf6ee; color: #1e7a3d; border: 1px solid #bfe6cb; }
.form-status.error { display: block; background: #fbecec; color: #a3312e; border: 1px solid #f0c6c4; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.final-cta .hero-ctas { justify-content: center; }

/* Footer — navy, 3-column layout: matches Avalon Sourcing Advisors' footer structure */
.site-footer { background: var(--midnight); color: #C7D0E0; padding-top: 48px; font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col p.footer-brand { color: var(--white); font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.footer-col h4 {
  color: var(--white); font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; margin-bottom: 10px; color: #C7D0E0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0; font-size: 0.85rem; color: #C7D0E0;
}
.footer-related {
  margin-top: 8px; font-size: 0.82rem; color: #a7b4cc;
}
.footer-related a { color: var(--accent-light); font-weight: 600; }

/* Interior/legal page header — matches Avalon Sourcing Advisors' .page-header */
.page-header {
  background: var(--offwhite); padding: 56px 0; border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { max-width: 640px; margin: 0; font-size: 1.05rem; }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 980px) {
  .paths, .feature, .founder, .footer-top { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy, .feature.reverse .feature-visual { order: initial; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .founder { text-align: left; }
  .founder-badge { max-width: 220px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: 0.8rem; }
  .brand-name { font-size: 1rem; }

  /* Slide-down mobile nav panel (matches Avalon Sourcing Advisors' pattern) */
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }

  .section { padding: 48px 0; }
  .steps, .why-grid, .category-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .form-card { padding: 28px 22px; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
