/* Closet Factory of West Michigan — SMS consent + legal site
   Visually inspired by polished custom-storage / home-improvement brands.
   Original code; no third-party assets copied. */

:root {
  --brand-navy: #0F2A52;
  --brand-navy-dark: #081A36;
  --brand-navy-soft: #1B3A6B;
  --brand-accent: #C9A45C;
  --brand-accent-dark: #A4842F;
  --ink: #1B2330;
  --ink-soft: #3A4252;
  --ink-muted: #6B7383;
  --line: #E4E8EF;
  --line-strong: #C8CFDC;
  --bg: #FFFFFF;
  --bg-soft: #F7F4EE;
  --bg-tint: #FAF7F0;
  --card: #FFFFFF;
  --error-bg: #FDECEA;
  --error-ink: #8A1F1B;
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1100px;
  --content-width: 760px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: var(--brand-accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  max-width: var(--content-width);
  padding-top: 8px;
  padding-bottom: 24px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-navy);
  border-bottom: none;
}
.brand:hover {
  color: var(--brand-navy-dark);
  border-bottom: none;
}
.brand-mark { flex: 0 0 44px; display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-line-1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
  color: var(--brand-navy-dark);
}
.brand-line-2 {
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}
.brand-meta { font-size: 0.92rem; }
.brand-meta-phone {
  color: var(--brand-navy-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: none;
}
.brand-meta-phone:hover { color: var(--brand-accent-dark); border-bottom: none; }

.header-accent {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--brand-accent) 0%,
    var(--brand-accent-dark) 50%,
    var(--brand-accent) 100%
  );
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 164, 92, 0.08), transparent 70%),
    var(--bg-tint);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero-inner { max-width: var(--content-width); margin: 0 auto; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
  margin: 0 0 14px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--brand-navy-dark);
  margin: 0 0 16px;
}
.hero-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 620px;
}
.hero-meta {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ---------- form ---------- */
.consent-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 36px 0;
  box-shadow: 0 2px 14px rgba(15, 42, 82, 0.05);
}

.form-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 8px; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--brand-navy-dark);
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}
.section-lede {
  margin: -8px 0 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.93rem;
  letter-spacing: 0.1px;
}
.field .optional { font-weight: 400; color: var(--ink-muted); font-size: 0.88rem; }
.req { color: #B7361C; margin-left: 2px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230F2A52' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(15, 42, 82, 0.13);
}
.field textarea { resize: vertical; min-height: 96px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}

/* honeypot — fully hidden */
.field-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- availability checkbox grid ---------- */
.checkbox-grid {
  border: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.check-tile:hover {
  border-color: var(--brand-navy);
  background: var(--bg-tint);
}
.check-tile input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand-navy);
  flex: 0 0 auto;
  margin: 0;
}
.check-tile:has(input:checked) {
  border-color: var(--brand-navy);
  background: var(--bg-tint);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--brand-navy);
}
.availability-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 6px 0 0;
  font-style: italic;
}

/* ---------- consent block ---------- */
.consent-block {
  border: 1px solid var(--brand-accent);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 24px 0;
  background: var(--bg-tint);
}
.consent-block .section-title { margin-bottom: 14px; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--ink);
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  margin-top: 4px;
  width: 20px; height: 20px;
  accent-color: var(--brand-navy);
  flex: 0 0 auto;
}
.disclosure, .privacy-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 10px 0;
}
.privacy-note {
  padding: 10px 14px;
  background: #fff;
  border-left: 3px solid var(--brand-navy);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}
.links-row { font-size: 0.95rem; margin: 14px 0 0; }
.links-row span { margin: 0 8px; color: var(--ink-muted); }

/* ---------- submit ---------- */
.submit-row { margin-top: 16px; }
.btn-primary {
  background: var(--brand-navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  text-transform: uppercase;
}
.btn-primary:hover { background: var(--brand-navy-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 42, 82, 0.25);
}
.btn-secondary {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid var(--brand-navy);
  color: var(--brand-navy);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: background-color 0.15s, color 0.15s;
}
.btn-secondary:hover {
  background: var(--brand-navy);
  color: #fff;
  border-bottom: 1px solid var(--brand-navy);
}

.support-line {
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- alerts ---------- */
.alert {
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin: 24px 0 0;
}
.alert-error {
  background: var(--error-bg);
  color: var(--error-ink);
  border: 1px solid #F0BFBC;
  border-left: 4px solid var(--error-ink);
}
.alert ul { margin: 8px 0 0 22px; }

/* ---------- success card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 36px 0;
  box-shadow: 0 2px 14px rgba(15, 42, 82, 0.05);
}
.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 14px;
  color: var(--brand-navy-dark);
}
.card-meta { color: var(--ink-soft); margin: 18px 0 14px; }
.numbered-list {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.numbered-list li {
  position: relative;
  padding: 8px 0 8px 44px;
  counter-increment: step;
  color: var(--ink-soft);
}
.numbered-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 30px;
  height: 30px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- legal pages ---------- */
.legal { padding: 16px 0 32px; }
.legal section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.legal section:last-of-type { border-bottom: none; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--brand-navy-dark);
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
.legal p, .legal ul, .legal ol { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal a {
  color: var(--brand-navy);
  border-bottom: 1px solid var(--line-strong);
}
.legal a:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: var(--brand-accent);
}
.callout {
  background: var(--bg-tint);
  border-left: 4px solid var(--brand-accent);
  padding: 14px 18px;
  border-radius: var(--radius);
  color: var(--ink);
  margin: 14px 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--brand-navy-dark);
  color: #C6D0E1;
  padding: 40px 0 20px;
  margin-top: 40px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}
.footer-legal-name {
  margin: 0 0 12px;
  color: #98A6BF;
  font-size: 0.88rem;
}
.footer-address { font-style: normal; color: #C6D0E1; }
.footer-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.78rem;
  color: var(--brand-accent);
  margin-bottom: 12px;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 6px; }
.footer-list a { color: #C6D0E1; border-bottom: 1px solid transparent; }
.footer-list a:hover { color: #fff; border-bottom-color: var(--brand-accent); }
.footer-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1B3A6B;
  font-size: 0.82rem;
  color: #8190AC;
  text-align: center;
}

/* ---------- a11y ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 40px 0 36px; }
  .hero-title { font-size: 2rem; }
  .hero-lede { font-size: 1rem; }
  .consent-form, .card { padding: 22px; }
  .section-title { font-size: 1.2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 0; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-line-1 { font-size: 1.15rem; }
  .brand-line-2 { font-size: 0.72rem; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .header-inner { padding: 14px 20px; }
  .brand-meta { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .consent-form, .card { padding: 18px; }
  .consent-block { padding: 18px; }
  .btn-primary { width: 100%; }
}
