/* Brassfork Software Solutions — single-page site styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --heading: #0f172a;
  --border: #e2e8f0;

  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #f59e0b;
  --accent-hover: #d97706;

  --header-bg: #0f172a;
  --header-text: #f8fafc;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;

  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .logo, .btn, .card-index { font-weight: 700; }

/*
  iOS Safari (all versions support -webkit-touch-callout, so this scopes to iOS/iPadOS only)
  renders regular-weight text noticeably lighter on iOS 26 than on iOS <=18, because WebKit
  changed how it resolves the system font's variable-weight default. Loading an explicit-weight
  web font above (Inter) is the primary fix; this hairline stroke is a small belt-and-suspenders
  reinforcement so body copy doesn't look washed out if a font fails to load.
*/
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-text-stroke: 0.018em currentColor;
  }
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Centered container used by every section */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.6em 1em;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--header-text) !important;
  letter-spacing: -0.01em;
}
.logo img { width: 36px; height: 36px; object-fit: contain; }
.logo span { font-weight: 400; opacity: 0.8; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--header-text);
  left: 0;
}
.nav-toggle-label span { top: 10px; }
.nav-toggle-label::before { top: 2px; }
.nav-toggle-label::after { top: 18px; }

.header-flex {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: block;
  padding: 1.5rem 0.85rem;
  color: var(--header-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a:focus {
  color: var(--accent);
}
.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  padding: 0.5rem;
  z-index: 50;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: block;
}
.dropdown li a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown li a:hover, .dropdown li a:focus {
  background: var(--bg-alt);
  color: var(--primary);
}
.nav-cta { margin-left: 0.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-hover); color: #111; }
.btn-outline { background: transparent; border-color: #ffffff; color: #ffffff; }
.btn-outline:hover, .btn-outline:focus { background: #ffffff; color: var(--primary); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover, .btn-secondary:focus { background: var(--primary-hover); color: #fff; }
.btn-small { padding: 0.55em 1.1em; font-size: 0.85rem; }

/* Hero */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 62ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }

.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}
.page-hero p.lead { max-width: 68ch; margin: 1rem auto 0; color: var(--text-muted); font-size: 1.08rem; }

/* Sections */
.section { padding: 4.5rem 0; scroll-margin-top: 90px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 68ch; margin: 0 auto 2.5rem; text-align: center; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}
.section-head p { color: var(--text-muted); }

/* Card grids */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }
.card .card-link { font-weight: 700; }
.card .card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Table of contents / quick nav */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 2rem 0 0;
}
.toc a {
  display: inline-block;
  padding: 0.5em 1em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.toc a:hover, .toc a:focus { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Service / industry detail blocks */
.detail-block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.detail-block:last-child { border-bottom: none; }
.detail-block .index-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.detail-block .tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.detail-cols {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}
.capability-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}
.capability-list h4 {
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.capability-list ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.capability-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.closing-line { font-weight: 700; color: var(--primary); margin-top: 1.25rem; }
.sub-block { margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed var(--border); }
.sub-block h4.sub-heading { font-size: 1.05rem; color: var(--heading); margin-bottom: 0.25rem; }
.sub-block .sub-tagline { font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.approach-line {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8em 1.2em;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
}

/* CTA band */
.cta-band { background: var(--primary); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 56ch; margin: 0 auto 1.75rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.contact-email { display: inline-block; font-size: 1.15rem; font-weight: 800; color: var(--primary); margin: 0.5rem 0 1.25rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3.5rem 0 0; }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer-inner .logo { color: var(--footer-text) !important; margin-bottom: 0.75rem; }
.footer-inner p { color: rgba(255,255,255,0.7); }
.footer-nav h3 {
  color: var(--footer-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-nav ul li { margin-bottom: 0.6rem; }
.footer-nav ul li a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-nav ul li a:hover, .footer-nav ul li a:focus { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 880px) {
  .nav-toggle-label { display: block; }
  .header-flex { position: static; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.5rem 1.5rem;
  }
  .nav-toggle:checked ~ .header-flex .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { padding: 0.85rem 0; }
  .nav-cta { margin: 0.75rem 0 0; }
  .nav-cta .btn { display: block; }
  .has-dropdown > .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    display: none;
  }
  .has-dropdown:focus-within > .dropdown { display: block; }
  .detail-cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
}
