/* ===== Anchor Supply Co. — Design Tokens ===== */
:root {
  --navy: #0F2A4A;
  --navy-deep: #0A1E36;
  --slate: #3D5A73;
  --wave: #4A7FA5;
  --wave-light: #7FA8C9;
  --brass: #B08D57;
  --brass-dark: #8C6D3F;
  --paper: #F7F8F6;
  --paper-warm: #F1EFE8;
  --ink: #20242B;
  --ink-soft: #555B66;
  --line: #DAD9D2;
  --white: #FFFFFF;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --label: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass-dark);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(15, 42, 74, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-mark { display: flex; align-items: center; height: 44px; }
.logo-mark img { height: 100%; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--navy-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--label);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 3px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-1px); }

.btn-brass {
  background: var(--brass);
  color: var(--white);
}
.btn-brass:hover { background: var(--brass-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--navy-deep);
  color: var(--navy-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--navy-deep); color: var(--white); }

.mobile-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 168px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #F7F8F6 0%, #EFF2EF 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 90px;
}

.hero-eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.06;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: italic;
  color: var(--wave);
}

.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1;
}
.stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
  height: 460px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 24px 60px rgba(15,42,74,0.18);
}

.hero-visual .route-graphic {
  width: 100%; height: 100%;
  display: block;
}

.hero-visual-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(255,255,255,0.96);
  padding: 14px 18px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--navy-deep);
  font-weight: 600;
  max-width: 230px;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Wave divider — signature element */
.wave-divider {
  width: 100%;
  height: 64px;
  display: block;
  position: relative;
  z-index: 2;
}

.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ===== Section base ===== */
.section { padding: 100px 0; }
.section-tight { padding: 80px 0; }
.section-paper-warm { background: var(--paper-warm); }
.section-navy { background: var(--navy-deep); color: rgba(255,255,255,0.92); }
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: var(--wave-light); }
.section-navy .eyebrow::before { background: var(--wave-light); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  margin-top: 18px;
  line-height: 1.15;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 16px;
}
.section-navy .section-head p { color: rgba(255,255,255,0.72); }

/* ===== Before/After (replaces generic numbered steps — this is a before/after partnership, not a sequence) ===== */
.divide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.divide-col { padding: 44px 40px; }
.divide-col.before { background: var(--white); border-right: 1px solid var(--line); }
.divide-col.after { background: var(--navy-deep); color: rgba(255,255,255,0.92); }

.divide-label {
  font-family: var(--label);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.divide-col.before .divide-label { color: var(--ink-soft); }
.divide-col.after .divide-label { color: var(--wave-light); }

.divide-list { list-style: none; }
.divide-list li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 15.5px;
  display: flex;
  gap: 12px;
}
.divide-col.after .divide-list li { border-bottom-color: rgba(255,255,255,0.1); }
.divide-list li:last-child { border-bottom: none; }
.divide-list .mark { flex-shrink: 0; font-weight: 700; }
.divide-col.before .mark { color: #B5594B; }
.divide-col.after .mark { color: var(--wave-light); }

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 32px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  border-color: var(--wave-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,42,74,0.08);
}

.service-icon {
  width: 46px; height: 46px;
  margin-bottom: 22px;
  color: var(--navy-deep);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

/* ===== Audience strip ===== */
.audience-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 30px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience-item {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--slate);
  font-style: italic;
}

/* ===== Process timeline (real sequence: how a product gets sourced) ===== */
.timeline { position: relative; margin-top: 10px; }
.timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-step {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--brass-dark);
  letter-spacing: 0.04em;
}
.timeline-content h3 { font-size: 19px; margin-bottom: 8px; }
.timeline-content p { color: var(--ink-soft); font-size: 15.5px; max-width: 600px; }

/* ===== Testimonial / trust ===== */
.trust-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.trust-quote p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-style: italic;
  line-height: 1.4;
  color: var(--navy-deep);
}
.trust-attribution {
  margin-top: 28px;
  font-family: var(--label);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ===== Lead Form ===== */
.form-section {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.form-intro h2 { color: var(--white); font-size: clamp(28px, 3.2vw, 38px); margin-top: 18px; }
.form-intro p { color: rgba(255,255,255,0.7); margin-top: 16px; font-size: 16.5px; max-width: 420px; }

.form-points { margin-top: 36px; list-style: none; }
.form-points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.form-points li:first-child { border-top: none; }
.form-points .mark { color: var(--wave-light); font-weight: 700; }

.lead-form {
  background: var(--white);
  border-radius: 8px;
  padding: 44px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wave);
  box-shadow: 0 0 0 3px rgba(74,127,165,0.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.checkbox-group input { width: auto; margin-top: 3px; }
.checkbox-group label { font-size: 13.5px; color: var(--ink-soft); font-weight: 400; }

.submit-btn {
  width: 100%;
  background: var(--brass);
  color: var(--white);
  padding: 16px;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease;
}
.submit-btn:hover { background: var(--brass-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  display: none;
}
.form-status.success { display: block; color: #2A6E3F; }
.form-status.error { display: block; color: #B5594B; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
}

.footer-logo img { height: 36px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 16px; }
.footer-grid p { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 11px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--wave-light); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Mobile ===== */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .mobile-toggle {
    display: flex;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .mobile-toggle span { width: 22px; height: 2px; background: var(--navy-deep); }

  .header-inner .btn-primary { display: none; }

  .nav-drawer {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px 32px;
    display: none;
    gap: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  .nav-drawer.open { display: flex; }
  .nav-drawer a { font-size: 16px; color: var(--navy-deep); font-weight: 500; }
  .nav-drawer .btn { width: 100%; }

  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .hero-visual { height: 300px; order: -1; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }

  .section { padding: 64px 0; }
  .divide { grid-template-columns: 1fr; }
  .divide-col.before { border-right: none; border-bottom: 1px solid var(--line); }
  .services-grid { grid-template-columns: 1fr; }
  .audience-strip { justify-content: flex-start; }

  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .lead-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wave);
  outline-offset: 2px;
}
