/* MRD Benefits Consulting. Plain, high-contrast, accessible styling. */
:root { --ink: #1a1a1a; --accent: #1a5276; --light: #eef4f8; --white: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: #f2f2f2; }
.sale-banner { background: #14532d; color: #fff; text-align: center; font-weight: 700; padding: 0.6rem 1rem; margin: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 0.5rem 1rem; }
.skip-link:focus { left: 0; }
header { background: var(--accent); color: #fff; padding: 1rem 1.5rem; }
.brand { display: flex; gap: 1rem; align-items: center; }
.brand-link { display: flex; gap: 0.9rem; align-items: center; text-decoration: none; color: #fff; }
.brand-mark { height: 76px; width: auto; flex-shrink: 0; background: #fff; padding: 0.4rem 0.6rem; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.2; }
.brand-name { font-size: 1.6rem; font-weight: 700; }
.brand-tagline { font-size: 1.05rem; font-style: italic; }
nav ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav a { color: #fff; display: inline-block; padding: 0.55rem 0.4rem; }
nav a:focus, a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 3px solid #f1c40f; outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
main { max-width: 760px; margin: 1rem auto; padding: 1rem 1.5rem 3rem; background: var(--white); border-radius: 8px; }
.hero { background: var(--light); padding: 1.5rem; border-radius: 8px; }
.slogan { font-size: 1.35rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.section-photo { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.section-photo.portrait { max-width: min(400px, 100%); }
h1 { font-size: 2rem; line-height: 1.3; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; color: var(--accent); }
h3 { color: var(--accent); }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: 6px; text-decoration: none; margin-right: 0.75rem; }
.button.secondary { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
button.button { border: none; font: inherit; cursor: pointer; }
form div { margin-bottom: 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status { font-weight: 600; }
#form-status:focus { outline: 3px solid #f1c40f; outline-offset: 2px; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, select, textarea { width: 100%; font-size: 1rem; padding: 0.6rem; border: 2px solid #666; border-radius: 4px; }
button[type="submit"] { background: var(--accent); color: #fff; font-size: 1.1rem; padding: 0.75rem 1.5rem; border: none; border-radius: 6px; cursor: pointer; }
footer { background: var(--light); padding: 1.5rem; text-align: center; }
footer a { display: inline-block; padding: 0.55rem 0.4rem; }

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

.form-sent {
  margin: 0.75rem 0 0;
  font-weight: 700;
  color: #14532d;
}
.form-sent:empty { display: none; }
.form-sent:focus { outline: 3px solid #f1c40f; outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.language-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; border-bottom: 3px solid #f1c40f; }

a[href^="mailto:"] { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  header { padding: 0.75rem 1rem; }
  .brand-mark { height: 54px; }
  .brand-name { font-size: 1.25rem; }
  .brand-tagline { font-size: 0.95rem; }
  main { margin: 0.5rem; padding: 1rem 1rem 2.5rem; }
  h1 { font-size: 1.7rem; }
  .hero { padding: 1rem; }
}

/* Form error messages: dark red, 7.8 to 1 contrast on white */
.field-error {
  color: #a4161a;
  font-weight: 700;
  margin: 0.25rem 0 0;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 3px solid #a4161a;
}

/* Best way to reach you (only needed if the phone fields are added) */
.contact-pref {
  border: 1px solid #666;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.contact-pref legend {
  font-weight: 700;
  padding: 0 0.25rem;
}
.contact-pref div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.contact-pref input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-links a {
  display: inline-block;
  padding: 0.5rem 0;
}

/* Footer links stay blue on the light footer (nav a is white for the header). */
footer .footer-links a {
  color: #0000ee;
}
