/**
 * new-construction.css
 *
 * Styling for views/new-construction-homes.php, loaded only on that page (layouts/head.php). Mobile first: one column, 16px controls,
 * 44px tap targets. Everything is scoped under .nc-* so nothing leaks into the rest of the site (the ShowingNew embed this replaces did
 * not: its <style> had global *, html, body and fieldset rules). Palette: #12233D text, #DCE1E8 borders, #4B5A70 labels, #1E40AF accent.
 */

.nc-wrap {
  max-width: var(--wrap-container, 900px);
  margin: 0 auto;
  padding: 24px var(--wrap-gutter, 16px) 56px;
  color: #12233D;
}

.nc-heading {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.nc-intro {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #4B5A70;
}

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

/* ---- Search card ---- */
.nc-search {
  padding: 16px;
  border: 1px solid #DCE1E8;
  border-radius: 8px;
  background: #F7F8FA;
}

.nc-search-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.nc-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.nc-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #DCE1E8;
  border-radius: 9999px;
  background: #FFFFFF;
  font-size: 15px;
  cursor: pointer;
}

.nc-type-option:has(input:checked) {
  border-color: #1E40AF;
  box-shadow: 0 0 0 1px #1E40AF;
  font-weight: 600;
}

.nc-today {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #1E40AF;
  text-decoration: none;
}

.nc-today:hover {
  text-decoration: underline;
}

.nc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nc-field label {
  font-size: 12px;
  font-weight: 600;
  color: #4B5A70;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nc-field input[type="text"],
.nc-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #DCE1E8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #12233D;
  font-size: 16px;   /* 16px stops iOS zooming into the field */
  font-family: inherit;
}

.nc-field input:focus-visible,
.nc-field select:focus-visible,
.nc-submit:focus-visible,
.nc-type-option:has(input:focus-visible) {
  outline: 2px solid #1E40AF;
  outline-offset: 1px;
}

.nc-field input.nc-invalid {
  border-color: #B3261E;
}

.nc-error {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #B3261E;
}

.nc-error[hidden] {
  display: none;
}

.nc-field--search {
  margin-bottom: 12px;
}

.nc-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.nc-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  background: #1E40AF;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.nc-submit:hover {
  background: #16327F;
}

.nc-credit {
  margin: 12px 0 0;
  font-size: 12px;
  color: #4B5A70;
  text-align: right;
}

.nc-credit a {
  color: #4B5A70;
}

/* ---- Article ---- */
.nc-copy {
  margin-top: 48px;
}

.nc-copy a {
  color: #1E40AF;
}

.nc-steps {
  padding-left: 22px;
}

.nc-steps li {
  margin-bottom: 10px;
}

.nc-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.nc-compare > div {
  padding: 4px 16px 8px;
  border: 1px solid #DCE1E8;
  border-radius: 8px;
}

.nc-faq-item p {
  margin: 0;
}

.nc-note {
  margin-top: 32px;
  font-size: 13px !important;
  color: #4B5A70 !important;
}

@media (min-width: 640px) {
  .nc-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nc-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .nc-heading {
    font-size: 36px;
  }

  .nc-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nc-submit {
    width: auto;
    padding: 0 40px;
  }
}
