/* Maloney Industries — single shared stylesheet */

:root {
  --green: #0F5132;
  --deep: #0B3B3C;
  --ink: #14201F;
  --gold: #C8A24A;
  --paper: #FBFAF6;
  --cream: #EFEDE4;
  --hairline: rgba(20, 32, 31, 0.14);
  --muted-on-light: rgba(20, 32, 31, 0.72);
  --muted-on-dark: rgba(251, 250, 246, 0.82);
  --system-fonts: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--system-fonts);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .mark { width: 36px; height: 36px; color: var(--green); flex: none; }

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--green); }
.wm-sub { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.34em; color: var(--muted-on-light); }

.header-right { display: flex; align-items: center; gap: 24px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-on-light);
  text-decoration: none;
  padding: 6px 0;
}
.site-nav a:hover,
.site-nav a.is-current { color: var(--green); }

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 3px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.btn-apply:hover { background: var(--green); color: var(--paper); }
.btn-apply .arr { color: var(--gold); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  background: var(--deep);
  color: var(--paper);
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow-gold { color: var(--gold); }

.hero-copy .eyebrow { margin-top: 24px; }

.hero h1 {
  margin-top: 0;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--paper);
}

.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  color: var(--muted-on-dark);
}

/* ---------- Application form card ---------- */

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 30px 28px;
}

.form-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

#application-form { margin-top: 20px; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(20, 32, 31, 0.28);
  border-radius: 3px;
}
.field input::placeholder { color: rgba(20, 32, 31, 0.45); opacity: 1; }
.field input:focus { border-color: var(--green); outline: none; }

.field-error { margin-top: 6px; font-size: 12px; color: var(--green); }

.field-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 20px;
}
.field-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--green);
}
.field-consent label { font-size: 13.5px; font-weight: 400; line-height: 1.55; }
.field-consent a { color: var(--green); }

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.btn-primary:hover { background: #B8923F; }
.btn-primary[disabled] { opacity: 0.45; cursor: not-allowed; }

.form-error { margin-top: 14px; font-size: 14px; }
.form-error a { color: var(--green); }

.form-confirmation h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.form-confirmation p { margin-top: 10px; font-size: 15px; color: rgba(20, 32, 31, 0.8); }

/* ---------- Flywheel ---------- */

.flywheel { padding: 0; }
.flywheel img { width: 100%; height: auto; }

.flywheel-mobile { display: none; }

@media (max-width: 680px) {
  .flywheel { background: #FBF4E6; }
  .flywheel .flywheel-img { display: none; }
  .flywheel-mobile { display: block; }

  .fm-inner {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 24px 52px;
  }
  .fm-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--green);
    text-align: center;
  }
  .fm-sub {
    margin-top: 8px;
    font-size: 15px;
    color: rgba(20, 32, 31, 0.7);
    text-align: center;
  }
  .fm-flow {
    position: relative;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
  .fm-node { text-align: center; max-width: 250px; }
  .fm-pill {
    display: inline-block;
    border: 1.5px solid var(--green);
    border-radius: 999px;
    padding: 7px 20px;
    font-size: 17px;
    font-weight: 800;
    color: var(--green);
    background: #FBF4E6;
  }
  .fm-desc {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
  }
  .fm-arrow { flex: none; }
  .fm-return {
    position: absolute;
    left: -8px;
    top: 12%;
    width: 44px;
    height: 76%;
  }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--deep); color: var(--paper); }

.section-title {
  margin: 16px 0 22px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 840px;
}
.section-dark .section-title { color: var(--paper); }

.section-body {
  max-width: 780px;
  font-size: 17.5px;
  margin-bottom: 18px;
  color: rgba(20, 32, 31, 0.85);
}
.section-dark .section-body { color: var(--muted-on-dark); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: rgba(20, 32, 31, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---------- YourVoice spec list ---------- */

.spec-list {
  margin: 36px 0 8px;
  border-bottom: 1px solid rgba(20, 32, 31, 0.18);
  max-width: 840px;
}
.spec-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(20, 32, 31, 0.18);
}
.spec-row dt { flex: none; width: 230px; font-weight: 700; }
.spec-row dd { color: rgba(20, 32, 31, 0.8); }

.arr { color: var(--gold); font-weight: 700; }

/* ---------- Text links ---------- */

.text-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .arr { margin-left: 6px; }
.link-on-dark { color: var(--paper); }

/* ---------- StrategicROI split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split-media img { border-radius: 4px; }

/* ---------- Certification ---------- */

.cert-block { margin-top: 56px; }

.cert-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 12px 0 10px;
}

.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.box {
  background: var(--paper);
  border: 1px solid rgba(20, 32, 31, 0.15);
  border-radius: 4px;
  padding: 26px 26px 18px;
}
.box h4 { font-size: 18px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.box ul { list-style: none; }
.box li {
  padding: 11px 0;
  border-top: 1px solid rgba(20, 32, 31, 0.12);
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 44px;
}

.site-footer .mark { width: 40px; height: 40px; color: var(--gold); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
}
.footer-nav a {
  font-size: 14.5px;
  color: rgba(251, 250, 246, 0.75);
  text-decoration: none;
  padding: 6px 0;
}
.footer-nav a:hover { color: var(--paper); }
.footer-nav a.footer-apply { color: var(--gold); font-weight: 700; }

.footer-rule {
  border-top: 1px solid rgba(251, 250, 246, 0.18);
  margin: 28px 0 18px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: rgba(251, 250, 246, 0.6);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) and (min-width: 681px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; }
  .split { gap: 44px; }
}

@media (max-width: 767.98px) {
  .site-nav { display: none; }

  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 6px 0 10px;
  }
  .site-header.nav-open .site-nav a {
    padding: 14px 24px;
    font-size: 16px;
    border-top: 1px solid rgba(20, 32, 31, 0.08);
  }
  .site-header.nav-open .site-nav a:first-child { border-top: 0; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); }

  .header-right { gap: 12px; }
}

@media (max-width: 680px) {
  .hero { padding: 52px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: stretch; }
  .hero h1 { margin-top: 0; }
  .hero-copy .eyebrow { margin-top: 20px; }
  .section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .box-grid { grid-template-columns: 1fr; }
  .spec-row { flex-direction: column; gap: 4px; }
  .spec-row dt { width: auto; }
  .footer-meta { flex-direction: column; }
}
