/* Write for Work: palette from the BR / business writing deck */
:root {
  --navy: #1F3A5F;
  --blue: #4275A4;      /* "my blue" */
  --blue-mid: #2E5C88;
  --blue-pale: #A9C0D8;
  --grey: #D9D8D6;
  --grey-light: #EEF1F4;
  --slate: #7A8794;
  --ink: #1F2933;
  --red: #D21717;       /* Write for Work logo red */
  --white: #FFFFFF;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-head); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--slate); }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.wfw-logo { height: 80px; width: auto; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--blue); }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: .5rem 1rem; border-radius: 6px; }
.nav-cta:hover { background: var(--blue); }

/* Buttons */
.button {
  display: inline-block; background: var(--red); color: var(--white);
  font: 700 1rem var(--font); padding: .85rem 1.6rem; border: 0; border-radius: 6px;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.button:hover { background: #A81212; color: var(--white); }
.button:disabled { background: var(--slate); cursor: wait; }
.button-full { width: 100%; }
.button-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.button-ghost:hover { background: var(--navy); color: var(--white); }

/* Hero: grey field with the deck's navy swoop */
.hero {
  position: relative; overflow: hidden;
  background: var(--grey-light) url("assets/swoop.png") no-repeat right bottom / min(900px, 80%) auto;
  padding: 5rem 0 6rem;
}
.hero-inner { max-width: 720px; margin-left: max(4%, calc((100% - 1120px) / 2)); position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); }
.lead { font-size: 1.15rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-small { padding: 3rem 0; }
.section-tint {
  background: var(--grey-light) url("assets/spiral.png") no-repeat right -120px center / auto 130%;
}
.section-intro { font-size: 1.1rem; color: var(--slate); max-width: 640px; }

.quality-group { margin-top: 2.2rem; }
.group-label {
  font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--slate); border-bottom: 1px solid var(--grey); padding-bottom: .4rem; margin-bottom: 1rem;
}
.cards { display: grid; gap: 1.2rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--grey); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 1.3rem 1.3rem .4rem;
}
.cards-2 .card { border-top-color: var(--navy); }
.card p { font-size: .97rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: var(--white); box-shadow: 0 4px 16px rgba(31,58,95,.07); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 1rem; }
.step-num {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700;
  display: grid; place-items: center;
}
.steps p { margin: 0; font-size: .97rem; }

/* Upload */
.upload-section { background: var(--white); }
.upload-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.upload-form, .success {
  background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 6px 24px rgba(31,58,95,.08);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--slate); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .65rem .8rem;
  border: 1px solid #B9BDC3; border-radius: 6px; background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { outline: 3px solid var(--blue-pale); border-color: var(--blue); }
.field.invalid input, .field.invalid textarea, .field.invalid .dropzone { border-color: var(--red); }

.dropzone {
  position: relative; border: 2px dashed var(--blue-pale); border-radius: var(--radius);
  background: var(--grey-light); padding: 1.4rem; text-align: center; transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--blue); background: #E3EBF4; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone p { margin: 0; }
.dropzone-text strong { color: var(--blue); }
.dropzone-hint { font-size: .85rem; color: var(--slate); }
.dropzone-file { margin-top: .5rem !important; font-weight: 600; color: var(--navy); word-break: break-all; }

.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; }
.checkbox label { font-weight: 400; color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: .5rem 0 1rem; }
.form-message { padding: .75rem 1rem; border-radius: 6px; background: #FBEAEA; color: #8A1010; font-size: .95rem; }
.success h3 { font-family: var(--font-head); }

/* Footer */
.site-footer { background: var(--navy); color: #DCE4EE; padding: 2rem 0; }
.site-footer a { color: var(--white); }
.site-footer .small { color: var(--blue-pale); }
.footer-inner { display: flex; gap: 1.5rem; align-items: center; }
.footer-inner p { margin: 0 0 .3rem; }
.br-logo { width: 96px; height: auto; flex: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .upload-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .wfw-logo { height: 46px; }
  .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 15rem; background-size: 110% auto; background-position: center bottom; }
  .upload-form, .success { padding: 1.3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
