/* ZMelt LLC — zmelting.com
   Restrained, professional. Navy / slate / paper. */

:root {
  --navy:        #0f2438;
  --navy-deep:   #091727;
  --slate:       #47586b;
  --slate-light: #7a8a9a;
  --rule:        #d8dee4;
  --paper:       #ffffff;
  --paper-warm:  #f6f8fa;
  --accent:      #1e6f6a;
  --accent-dark: #14524e;
  --warn-bg:     #fdf6e8;
  --warn-rule:   #d9b063;

  --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--font-ui);
}
.skip:focus { left: 0; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.narrow { max-width: var(--measure); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.brand span {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93a7bb;
  margin-top: 0.2rem;
}
.header-contact {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-align: right;
}
.header-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.header-contact a:hover { text-decoration: underline; }
.header-contact small {
  display: block;
  color: #93a7bb;
  font-weight: 400;
  font-size: 0.78rem;
}

/* License strip */
.license-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.09);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #a9bccd;
  padding: 0.55rem 0;
}
.license-strip strong { color: #fff; font-weight: 600; }

/* ---------- Nav ---------- */
.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-ui);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 0.9rem 1.1rem 0.9rem 0;
  margin-right: 0.4rem;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0 3rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  margin-left: 0.5rem;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row .btn-secondary { margin-left: 0; }

/* ---------- Sections ---------- */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--paper-warm); border-block: 1px solid var(--rule); }

h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
h3 {
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--navy);
}
p { margin: 0 0 1.1rem; }
.section > .wrap > p,
.section > .wrap > ul { max-width: var(--measure); }

a { color: var(--accent-dark); }
a:hover { color: var(--navy); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; }

/* ---------- License card (signature element) ---------- */
.license-card {
  border: 2px solid var(--navy);
  background: var(--paper);
  max-width: 460px;
  margin: 2rem 0;
  font-family: var(--font-ui);
}
.license-card .lc-head {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.license-card dl {
  margin: 0;
  padding: 1.25rem;
}
.license-card dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 600;
}
.license-card dd {
  margin: 0.15rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.license-card dd:last-of-type { margin-bottom: 0; }

/* ---------- Notices ---------- */
.notice {
  border-left: 4px solid var(--warn-rule);
  background: var(--warn-bg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.6;
}
.notice strong { display: block; margin-bottom: 0.4rem; color: var(--navy); }
.notice p:last-child { margin-bottom: 0; }

.notice-plain {
  border-left: 4px solid var(--slate-light);
  background: var(--paper-warm);
}

/* ---------- Lists ---------- */
ul.checks { list-style: none; padding: 0; margin: 1.25rem 0; }
ul.checks li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
ul.checks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
ul.checks li:last-child { border-bottom: none; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
  border-left: 1px solid var(--rule);
  margin-left: 1rem;
}
ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
ol.steps h3 { margin-top: 0.15rem; }
ol.steps p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
details.faq summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq > *:not(summary) { margin-top: 0.85rem; }
details.faq p:last-child { margin-bottom: 0; }

/* ---------- Form ---------- */
form { max-width: 34rem; margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.req { color: #a3341f; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--slate-light);
  border-radius: 2px;
  background: #fff;
  color: var(--navy);
}
textarea { min-height: 8rem; resize: vertical; }
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 400;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 1rem;
}
.consent input { margin-top: 0.25rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-error {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #a3341f;
  font-weight: 600;
  margin-top: 0.3rem;
}
.form-status {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-warm);
  margin-top: 1.25rem;
}

/* ---------- Contact block ---------- */
.contact-direct {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.75rem;
  background: var(--paper-warm);
  font-family: var(--font-ui);
}
.contact-direct dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 700;
}
.contact-direct dd { margin: 0.2rem 0 1.15rem; font-size: 1.2rem; font-weight: 600; }
.contact-direct dd:last-child { margin-bottom: 0; }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.crumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--slate-light);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumb li::after { content: "/"; margin-left: 0.45rem; color: var(--rule); }
.crumb li:last-child::after { content: ""; }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Page head ---------- */
.page-head { padding: 2.75rem 0 2rem; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.22;
  margin: 0 0 0.85rem;
  font-weight: 600;
  max-width: 24ch;
}
.page-head p {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b6c6d4;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7e96ab;
  margin: 0 0 0.9rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #dbe5ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 0.75rem; }

.independence {
  padding: 1.75rem 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #93a7bb;
  max-width: 78ch;
}
.independence strong { color: #fff; }
.colophon {
  font-size: 0.8rem;
  color: #7e96ab;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; }
.small { font-size: 0.9rem; color: var(--slate); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .header-contact { text-align: left; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); border-left-color: var(--accent); padding-left: 0.7rem; }
  .hero { padding: 2.5rem 0 2.25rem; }
  .btn { display: block; text-align: center; width: 100%; }
  .btn-secondary { margin-left: 0; }
  .btn-row { flex-direction: column; }
  .section { padding: 2.5rem 0; }
  ol.steps li { padding-left: 2.5rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .site-footer, .btn { display: none; }
  body { color: #000; }
}
