/* NeighborTrack — Mobile-First Stylesheet */
/* Base: 320px phones → scales up to desktop */

:root {
  --green-dark:  #2D6A4F;
  --green-mid:   #52B788;
  --green-light: #D8F3DC;
  --green-pale:  #EEF8F0;
  --tan-dark:    #7D6240;
  --tan-mid:     #B89A6E;
  --tan-light:   #F0E4CC;
  --tan-pale:    #FAF5EC;
  --brown:       #5C4A32;
  --cream:       #FBF8F2;
  --border:      #D6CAB5;
  --text-dark:   #2C2415;
  --text-mid:    #5A4A35;
  --text-light:  #8A7A65;
  --white:       #FFFFFF;
  --radius:      10px;
  --radius-sm:   7px;
  --shadow:      0 1px 4px rgba(44,36,21,0.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE TYPOGRAPHY (mobile-first — large for 60+ readers) ── */
body.nt-public {
  font-family: 'Segoe UI', Lato, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream);
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.75rem; color: var(--green-dark); margin-bottom: 0.5rem; }
h2 { font-size: 1.35rem; color: var(--tan-dark);   margin-bottom: 0.4rem; }
h3 { font-size: 1.1rem;  color: var(--text-dark);  margin-bottom: 0.3rem; }

p  { margin-bottom: 1rem; }
a  { color: var(--green-dark); text-decoration: underline; }
a:hover { color: var(--green-mid); }

/* ── LAYOUT ── */
.nt-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── NAVBAR ── */
.nt-navbar {
  background: var(--green-dark);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nt-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.nt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nt-brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.nt-brand-name  { font-family: Georgia,serif; font-size: 17px; font-weight: 700; color: #fff; line-height:1.1; }
.nt-brand-sub   { font-size: 11px; color: #9FD9B8; }

/* Hamburger — visible on mobile only */
.nt-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.nt-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: 0.2s;
}

/* Nav links — hidden on mobile, shown on desktop */
.nt-nav-links {
  display: none;
  flex-direction: column;
  background: var(--green-dark);
  padding: 12px 0;
}
.nt-nav-links.open { display: flex; }
.nt-nav-link {
  font-family: 'Segoe UI',sans-serif; font-size: 15px;
  color: #CEE9DA; padding: 12px 20px;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nt-nav-link.active, .nt-nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── CARDS ── */
.nt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.nt-card-green { background: var(--green-pale); border-color: #B7E0C4; }
.nt-card-tan   { background: var(--tan-pale);   border-color: #C8A87A; }

/* ── BUTTONS ── */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Segoe UI',sans-serif; font-size: 16px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-dark);
  text-decoration: none; transition: background 0.15s;
  min-height: 48px;  /* touch target — min 48px for accessibility */
  width: 100%;       /* full width on mobile */
}
.nt-btn:hover  { background: var(--tan-pale); }
.nt-btn-primary { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.nt-btn-primary:hover { background: #1F4F39; color: #fff; }
.nt-btn-tan    { background: var(--tan-light); border-color: var(--tan-mid); color: var(--brown); }

/* ── FORMS ── */
.nt-form-group  { margin-bottom: 20px; }
.nt-label {
  display: block; font-size: 16px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 7px;
}
.nt-label .req { color: #B03020; margin-left: 3px; }
.nt-hint  { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.nt-input, .nt-select, .nt-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Segoe UI',sans-serif; font-size: 17px; color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;  /* remove iOS default styling */
}
.nt-input:focus, .nt-select:focus, .nt-textarea:focus {
  border-color: var(--green-mid); outline: none;
  box-shadow: 0 0 0 3px rgba(82,183,136,0.2);  /* visible focus ring */
}
.nt-textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

/* ── STEP WIZARD ── */
.nt-steps {
  display: flex; align-items: center; margin-bottom: 28px;
  overflow-x: auto; padding-bottom: 4px;
}
.nt-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-light); white-space: nowrap;
}
.nt-step.active { color: var(--green-dark); font-weight: 700; }
.nt-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.nt-step.active  .nt-step-circle { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }
.nt-step.done    .nt-step-circle { border-color: var(--green-mid); background: var(--green-light); color: var(--green-dark); }
.nt-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px; min-width: 20px; }
.nt-step-line.done { background: var(--green-mid); }

/* ── LETTER PREVIEW ── */
.nt-letter-preview {
  background: #FFFEF9;
  border: 1px solid #C8BFA8;
  border-radius: var(--radius);
  padding: 24px 20px;
  font-family: Georgia, serif;
  font-size: 16px; line-height: 1.85;
  color: var(--text-dark);
}
.nt-letter-highlight {
  background: #FFF5C2; border-radius: 3px; padding: 1px 4px;
}

/* ── BADGES ── */
.nt-badge {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 20px; font-size: 13px; font-weight: 700;
}
.nt-badge-green  { background: #D8F3DC; color: #1B6B3A; }
.nt-badge-amber  { background: #FEF3CD; color: #7D5A00; }
.nt-badge-red    { background: #FDECEA; color: #8B2020; }
.nt-badge-blue   { background: #E3EEF9; color: #1A4E8A; }
.nt-badge-tan    { background: #F0E4CC; color: #5C4A32; }
.nt-badge-gray   { background: #EDEBE6; color: #5A4A35; }

/* ── ALERTS ── */
.nt-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.6; margin-bottom: 20px;
}
.nt-alert-green { background: var(--green-pale); border: 1px solid #9FD9B8; color: #1B5E35; }
.nt-alert-tan   { background: var(--tan-pale);   border: 1px solid #C8A87A; color: #5C3A10; }
.nt-alert-red   { background: #FDECEA; border: 1px solid #F5A0A0; color: #8B2020; }

/* ── PROGRESS BAR ── */
.nt-prog-wrap { background: #E8E2D8; border-radius: 20px; height: 10px; overflow: hidden; }
.nt-prog-bar  { height: 100%; border-radius: 20px; background: var(--green-mid); transition: width 0.4s; }

/* ── CONFIRMATION ── */
.nt-confirm-box {
  background: var(--green-pale); border: 2px solid var(--green-mid);
  border-radius: 12px; padding: 32px 24px; text-align: center;
}
.nt-confirm-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 36px; color: #fff;
}

/* ── UTILITY ── */
.nt-spacer    { height: 20px; }
.nt-divider   { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.nt-text-muted { color: var(--text-light); }
.nt-text-green { color: var(--green-dark); }
.nt-required-note { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

/* ════════════════════════════════════════════════════
   TABLET: 600px and wider
   ════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nt-btn { width: auto; }  /* buttons no longer full-width */

  .nt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .nt-letter-preview { padding: 32px 36px; }
}

/* ════════════════════════════════════════════════════
   DESKTOP: 900px and wider
   ════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .nt-hamburger { display: none; }  /* hide hamburger */

  /* Show horizontal nav on desktop */
  .nt-nav-links {
    display: flex !important;
    flex-direction: row;
    padding: 0;
    background: transparent;
  }
  .nt-nav-link {
    padding: 6px 14px; border-bottom: none; border-radius: 6px;
    font-size: 14px;
  }

  .nt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .nt-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .nt-container { padding: 0 24px; }
}
