/* New Mexico Lightning — nmlightning.com */

:root {
  --ink:        #14181f;
  --ink-soft:   #3d4653;
  --ink-mute:   #66707e;
  --line:       #e0dcd4;
  --line-soft:  #efece6;
  --paper:      #fbfaf7;
  --paper-alt:  #f4f1ea;
  --navy:       #1c2b3a;
  --bolt:       #c8811f;
  --bolt-dark:  #a56714;
  --maxw:       1080px;
  --measure:    62ch;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav a, .btn, .eyebrow, label, .site-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--bolt-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bolt-dark); margin: 0 0 1rem;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { flex: none; }
.site-title {
  font-size: .95rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy); line-height: 1.25;
}
.site-title span { display: block; font-weight: 500; letter-spacing: .12em; font-size: .68rem; color: var(--ink-mute); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .88rem; font-weight: 550; letter-spacing: .01em;
  color: var(--ink-soft); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--bolt); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 12px; font-size: .85rem;
  color: var(--navy); cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 3px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; transition: background .15s, border-color .15s;
}
.btn:hover { background: #14212e; border-color: #14212e; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-alt); border-color: var(--ink-mute); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

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

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero { padding: 96px 0 84px; }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 58ch; }

.rule { width: 54px; height: 3px; background: var(--bolt); border: 0; margin: 0 0 28px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }
.cols p { margin-bottom: 0; }
.col h3 { padding-top: 16px; border-top: 2px solid var(--navy); }

.stack { display: grid; gap: 38px; margin-top: 8px; }
.item { max-width: 72ch; }
.item h3 { margin-bottom: .35em; }
.item p { margin-bottom: 0; max-width: none; }

/* Narrow reading column, kept flush with the page's left margin. */
.narrow > * { max-width: 72ch; }
.narrow > p { max-width: var(--measure); }

.closing { text-align: left; }

/* ---------- Contact form ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 640px; margin-top: 32px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 7px; }
label .opt { font-weight: 400; color: var(--ink-mute); text-transform: none; letter-spacing: 0; }
input, textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: 3px; padding: 12px 13px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--bolt); outline-offset: 1px; border-color: var(--bolt); }
textarea { min-height: 170px; resize: vertical; }
.form-grid .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { max-width: 640px; padding: 16px 18px; border-radius: 3px; margin: 0 0 28px; font-size: .96rem; }
.notice p { margin: 0; max-width: none; }
.notice-ok  { background: #edf5ee; border: 1px solid #bcd9c1; color: #1f4a2c; }
.notice-err { background: #fbeeed; border: 1px solid #e2bdb9; color: #7a2a22; }
.notice ul { margin: .5em 0 0; padding-left: 1.2em; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy); color: #c3ccd6;
  padding: 44px 0; margin-top: 0; font-size: .86rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0; max-width: 60ch; }
.site-footer .legal { font-style: italic; color: #9aa7b4; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: #dbe2e9; text-decoration: none; font-size: .85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { color: #7f8d9b; margin-top: 22px !important; font-size: .8rem; }

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

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--bolt); }
  .header-inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
