/* =========================================================
   BaseStock Supply — shared styles
   ========================================================= */
:root {
  --navy: #0B1F3F;
  --navy-2: #12305E;
  --blue: #1565D8;
  --blue-dark: #0F4FAF;
  --blue-soft: #E8F0FC;
  --blue-light: #6CB8FF;
  --text: #0B1F3F;
  --muted: #55606F;
  --line: #E1E6EC;
  --bg-soft: #F5F7FA;
  --white: #FFFFFF;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --success: #067647;
  --success-bg: #ECFDF3;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(11, 31, 63, 0.04), 0 4px 16px rgba(11, 31, 63, 0.06);
  --shadow-hover: 0 2px 4px rgba(11, 31, 63, 0.06), 0 12px 28px rgba(11, 31, 63, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

.display {
  font-family: Archivo, system-ui, sans-serif;
  font-stretch: 112%;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.eyebrow {
  font-family: Archivo, system-ui, sans-serif;
  font-stretch: 112%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: var(--white);
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: #CBD3DD; }
.btn-secondary:hover { background: var(--bg-soft); border-color: #B6C0CC; color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--navy); }
.btn[disabled] { opacity: .7; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 35px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: Archivo, system-ui, sans-serif; font-stretch: 125%; font-weight: 900; font-size: 21px; letter-spacing: -0.02em; line-height: 1; }
.brand-name .b { color: var(--navy); }
.brand-name .s { color: var(--blue); }
.brand-sub { font-family: Archivo, system-ui, sans-serif; font-stretch: 125%; font-weight: 800; font-size: 9px; letter-spacing: 0.44em; color: var(--muted); margin-top: 4px; line-height: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(11,31,63,0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a.nav-link {
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: color .15s ease, background-color .15s ease;
}
.nav-menu a.nav-link:hover { color: var(--blue); background: var(--bg-soft); }
.nav-menu .btn { margin-left: 10px; min-height: 42px; padding: 0 20px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(11, 31, 63, 0.08);
    padding: 10px 24px 22px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a.nav-link { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-menu a.nav-link:hover { background: transparent; }
  .nav-menu .btn { margin: 16px 0 0; min-height: 50px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 92px; background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); margin-bottom: 22px; max-width: 14ch; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: 19px; color: #3A4657; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art svg { max-width: 150px; }
  .hero .lead { font-size: 17px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Value cards ---------- */
.values { padding: 0 0 100px; background: var(--bg-soft); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #D3DBE5; }
.card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.card p { color: var(--muted); }
.icon-badge {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr; } .values { padding-bottom: 68px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.about-copy h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 22px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.principles { display: grid; gap: 14px; }
.principle {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.principle .icon-badge { width: 42px; height: 42px; border-radius: 10px; margin: 0; flex-shrink: 0; }
.principle h3 { font-size: 16px; margin-bottom: 2px; }
.principle p { color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: Archivo, system-ui, sans-serif; font-stretch: 112%; font-weight: 800; font-size: 16px;
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.steps-cta { display: flex; justify-content: center; margin-top: 44px; }
@media (min-width: 1001px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 53px; left: calc(24px + 46px + 12px); right: -12px;
    border-top: 2px dashed #C4CEDA;
  }
}
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; } .step::before { grid-row: span 2; margin: 0; } }

/* ---------- Who we work with ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.partner-card { text-align: left; }
.partner-statement {
  margin-top: 34px; text-align: center; color: var(--muted); font-size: 16px;
}
.partner-statement strong { color: var(--navy); }
@media (max-width: 880px) { .partner-grid { grid-template-columns: 1fr; } }

/* ---------- Inquiry form ---------- */
.inquiry-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.inquiry-copy h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 18px; }
.inquiry-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); font-weight: 500; }
.check-list svg { color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.direct-email { font-size: 15px; color: var(--muted); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--navy); }
.field .req { color: var(--blue); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  padding: 12px 14px; min-height: 48px;
  border: 1px solid #C3CCD7; border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355606F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.18); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { display: none; font-size: 13px; font-weight: 500; color: var(--error); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.field.invalid .error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.form-footer .btn { width: 100%; }
.form-privacy { font-size: 13px; color: var(--muted); text-align: center; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.45); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; }
.form-status.show { display: block; }
.form-status.error { background: var(--error-bg); color: var(--error); border: 1px solid #FECDCA; }
.form-success { display: none; text-align: center; padding: 28px 8px; }
.form-success.show { display: block; }
.form-success .icon-badge { margin: 0 auto 20px; background: var(--success-bg); color: var(--success); width: 60px; height: 60px; border-radius: 50%; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 420px; margin: 0 auto; }
@media (max-width: 920px) { .inquiry-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease; }
.faq-item[open] { border-color: #C9D6E8; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 17px; color: var(--navy);
  min-height: 64px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary .chev { flex-shrink: 0; color: var(--blue); transition: transform .2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--muted); }
@media (max-width: 560px) { .faq-item summary { padding: 18px; font-size: 16px; } .faq-item .answer { padding: 0 18px 18px; } }

/* ---------- Contact CTA ---------- */
.contact-band { padding: 0 0 100px; }
.contact-box {
  background: var(--navy); color: var(--white); border-radius: 22px;
  padding: 64px 56px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.contact-box::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border: 40px solid rgba(108, 184, 255, 0.08); border-radius: 50%; pointer-events: none;
}
.contact-box h2 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 14px; }
.contact-box p { color: #C3CEDE; font-size: 17px; max-width: 560px; }
.contact-box .email-line { margin-top: 18px; font-size: 15px; color: #C3CEDE; }
.contact-box .email-line a { color: var(--white); font-weight: 600; }
.contact-actions { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .contact-band { padding-bottom: 68px; }
  .contact-box { grid-template-columns: 1fr; padding: 44px 28px; gap: 28px; }
  .contact-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AEBBCE; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand-name .b { color: var(--white); }
.site-footer .brand-name .s { color: #3B82F6; }
.site-footer .brand-sub { color: #8496AE; }
.footer-tagline { margin-top: 18px; max-width: 300px; }
.footer-col h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #AEBBCE; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.legal-hero p { color: var(--muted); }
.legal { padding: 56px 0 96px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-body p, .legal-body li { color: #3A4657; margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin: 0 0 12px; }
.legal-notice {
  background: #FFF8E6; border: 1px solid #F5D98B; color: #6B4E00;
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 32px; font-size: 15px;
}
.fill { background: #FFF1C2; color: #6B4E00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .btn .arrow { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* Keep section labels blue (section paragraph styles would otherwise override them) */
.section-head p.eyebrow, .about-copy p.eyebrow, .inquiry-copy > p.eyebrow { color: var(--blue); font-size: 13px; margin-bottom: 14px; }
