/*************************************************
 * NEIGHBORSOURCE
 * MAIN STYLESHEET
 *************************************************/


:root {
  --navy: #0b3a63;
  --navy-dark: #06243d;
  --navy-light: #174f7a;

  --blue: #2675e8;
  --blue-dark: #175fc9;

  --green: #2da343;
  --green-dark: #208235;
  --green-light: #eaf7ee;

  --page: #f4f7fb;
  --soft: #edf3f8;
  --white: #ffffff;

  --text: #132238;
  --muted: #64748b;
  --line: #d7e1eb;

  --warning: #de8500;
  --warning-bg: #fff7e8;

  --shadow: 0 10px 30px rgba(15, 44, 72, 0.08);
  --shadow-hover: 0 14px 34px rgba(15, 44, 72, 0.13);

  --radius: 18px;

  --container: 1180px;
  --header-container: 1500px;
}


/*************************************************
 * RESET
 *************************************************/

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--page);
  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;
  line-height: 1.55;

  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.15;
}

h1 {
  margin-bottom: 22px;

  font-size:
    clamp(
      2.3rem,
      5vw,
      4.7rem
    );
}

h2 {
  margin-bottom: 14px;

  font-size:
    clamp(
      1.7rem,
      3vw,
      2.4rem
    );
}

h3 {
  margin-bottom: 10px;

  font-size: 1.25rem;
}

p {
  margin-bottom: 18px;
}

main {
  min-height: 60vh;
}


/*************************************************
 * CONTAINER
 *************************************************/

.container {
  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  margin: 0 auto;
}


/*************************************************
 * HEADER
 *************************************************/

.site-header {
  position: relative;
  z-index: 100;

  background: var(--white);

  border-bottom: 1px solid var(--line);
}


/*
 * Give only the header more width.
 * The main site content stays at 1180px.
 */

.site-header .container {
  width:
    min(
      calc(100% - 40px),
      var(--header-container)
    );
}


.nav {
  min-height: 88px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


.brand {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  flex-shrink: 0;

  color: var(--navy);

  font-size: 1.7rem;
  font-weight: 800;
}


.brand-mark {
  width: 50px;
  height: 50px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: #edf8f4;

  border: 1px solid #cce3da;
  border-radius: 14px;

  font-size: 1.6rem;
}


.nav-links {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 20px;

  min-width: 0;

  font-weight: 700;
}


.nav-links > a {
  color: #172235;

  white-space: nowrap;
}


.nav-links > a:hover {
  color: var(--blue);
}


.nav-links .nav-cta {
  flex-shrink: 0;

  padding: 13px 18px;

  background: var(--green);
  color: var(--white);

  border-radius: 12px;
}


.nav-links .nav-cta:hover {
  background: var(--green-dark);
  color: var(--white);
}


.menu-btn {
  display: none;

  width: 46px;
  height: 46px;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: var(--white);
  color: var(--navy);

  border: 1px solid var(--line);
  border-radius: 10px;

  font-size: 1.5rem;
}


/*************************************************
 * BUTTONS
 *************************************************/

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 12px 22px;

  border: 1px solid transparent;
  border-radius: 12px;

  font-weight: 800;
  line-height: 1.2;

  text-align: center;

  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}


.btn:hover {
  transform: translateY(-1px);
}


.btn:disabled {
  cursor: not-allowed;

  opacity: 0.65;

  transform: none;
}


.btn-primary {
  background: var(--blue);
  color: var(--white);
}


.btn-primary:hover {
  background: var(--blue-dark);
}


.btn-green {
  background: var(--green);
  color: var(--white);
}


.btn-green:hover {
  background: var(--green-dark);
}


.btn-outline {
  background: var(--white);
  color: var(--navy);

  border-color: var(--line);
}


.btn-outline:hover {
  border-color: var(--navy);
}


.btn-outline-light {
  background: transparent;
  color: var(--white);

  border-color:
    rgba(
      255,
      255,
      255,
      0.5
    );
}


.btn-outline-light:hover {
  background:
    rgba(
      255,
      255,
      255,
      0.1
    );

  border-color: var(--white);
}


/*************************************************
 * HERO
 *************************************************/

.hero {
  padding: 76px 0 80px;

  background:
    linear-gradient(
      120deg,
      #0b3a63 0%,
      #0c4167 48%,
      #12615e 100%
    );

  color: var(--white);
}


.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(320px, 0.75fr);

  align-items: center;

  gap: 64px;
}


.hero h1 {
  max-width: 780px;

  margin-bottom: 22px;

  color: var(--white);
}


.hero-text {
  max-width: 780px;

  color: #edf6ff;

  font-size: 1.18rem;
  line-height: 1.7;
}


.eyebrow {
  margin-bottom: 14px;

  color: #b9f3c9;

  font-size: 0.82rem;
  font-weight: 900;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.eyebrow.dark {
  color: var(--green-dark);
}


.hero-search {
  display: flex;

  max-width: 820px;

  margin: 30px 0 20px;

  padding: 7px;

  gap: 8px;

  background: var(--white);

  border-radius: 15px;
}


.hero-search input {
  flex: 1;

  min-width: 0;

  padding: 13px 16px;

  border: 0;
  outline: none;

  background: transparent;
  color: var(--text);
}


.hero-search input::placeholder {
  color: #7d8796;
}


.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}


.hero-side-card {
  padding: 32px;

  background:
    rgba(
      255,
      255,
      255,
      0.11
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.23
    );

  border-radius: 22px;
}


.hero-side-card h2 {
  margin-bottom: 20px;

  color: var(--white);
}


.hero-side-card p {
  color: #edf6ff;
}


.trust-list {
  display: grid;

  gap: 10px;

  margin-top: 24px;
}


.trust-item {
  padding: 11px 14px;

  background:
    rgba(
      255,
      255,
      255,
      0.93
    );

  color: var(--green-dark);

  border-radius: 10px;

  font-weight: 800;
}


/*************************************************
 * PAGE HERO
 *************************************************/

.page-hero {
  padding: 54px 0;

  background:
    linear-gradient(
      120deg,
      var(--navy),
      #135d64
    );

  color: var(--white);
}


.page-hero h1 {
  margin-bottom: 12px;

  color: var(--white);

  font-size:
    clamp(
      2.2rem,
      4vw,
      3.6rem
    );
}


.page-hero p {
  max-width: 760px;

  margin-bottom: 0;

  color: #e8f2f7;

  font-size: 1.1rem;
}


/*************************************************
 * SECTIONS
 *************************************************/

.section {
  padding: 68px 0;
}


.section-soft {
  background: var(--soft);
}


.section-heading-row {
  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  gap: 30px;

  margin-bottom: 30px;
}


.section-heading {
  margin-bottom: 34px;
}


.section-heading.centered {
  max-width: 720px;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}


.section-intro {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 1.04rem;
}


/*************************************************
 * CARDS
 *************************************************/

.card {
  background: var(--white);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}


.card:hover {
  box-shadow: var(--shadow-hover);
}


/*************************************************
 * CATEGORIES
 *************************************************/

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 18px;
}


.category-card {
  min-height: 185px;

  padding: 24px;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}


.category-card:hover {
  transform: translateY(-3px);

  border-color: #b7cee5;
}


.category-icon {
  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  background: var(--soft);

  border-radius: 12px;

  font-size: 1.55rem;
}


.category-card h3 {
  margin-bottom: 8px;

  color: var(--navy);
}


/*************************************************
 * STEPS
 *************************************************/

.steps-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 22px;
}


.step-card {
  padding: 30px;
}


.step-number {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 22px;

  background: var(--green);
  color: var(--white);

  border-radius: 50%;

  font-weight: 900;
}


.step-card p {
  color: var(--muted);
}


.step-card a {
  color: var(--blue);

  font-weight: 800;
}


/*************************************************
 * PROVIDERS
 *************************************************/

.provider-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 22px;
}


.provider-card {
  display: flex;

  flex-direction: column;

  padding: 26px;
}


.provider-card h3 {
  margin: 7px 0 14px;

  color: var(--navy);

  font-size: 1.45rem;
}


.meta {
  display: flex;

  flex-wrap: wrap;

  gap: 12px 18px;

  margin-bottom: 18px;

  color: var(--muted);
}


.provider-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: auto;

  padding-top: 14px;
}


/*************************************************
 * BADGES
 *************************************************/

.badges {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin: 12px 0;
}


.badge {
  display: inline-flex;

  align-items: center;

  padding: 7px 10px;

  background: var(--soft);
  color: var(--navy);

  border-radius: 999px;

  font-size: 0.86rem;
  font-weight: 700;
}


.badge.green {
  background: var(--green-light);
  color: var(--green-dark);
}


/*************************************************
 * PILLS
 *************************************************/

.pill {
  display: inline-flex;

  align-items: center;

  margin: 4px 6px 4px 0;

  padding: 8px 13px;

  background: var(--white);
  color: var(--text);

  border: 1px solid var(--line);
  border-radius: 999px;
}


/*************************************************
 * CTA
 *************************************************/

.section-cta {
  padding-top: 20px;
}


.cta-card {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 36px;

  padding: 40px;

  background: var(--navy);
  color: var(--white);

  border-radius: 22px;
}


.cta-card h2 {
  margin-bottom: 10px;

  color: var(--white);
}


.cta-card p {
  max-width: 680px;

  margin-bottom: 0;

  color: #d9e9f5;
}


.cta-actions {
  display: flex;

  flex-shrink: 0;
  flex-wrap: wrap;

  gap: 10px;
}


/*************************************************
 * FORMS
 *************************************************/

.form-card {
  max-width: 980px;

  margin: 0 auto;

  padding: 34px;
}


.form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 24px;
}


.field {
  display: flex;

  flex-direction: column;

  min-width: 0;
}


.field.full {
  grid-column: 1 / -1;
}


.field label {
  margin-bottom: 8px;

  color: var(--text);

  font-weight: 800;
}


.field input,
.field select,
.field textarea {
  width: 100%;

  background: var(--white);
  color: var(--text);

  border: 1px solid #cdd9e5;
  border-radius: 12px;

  outline: none;
}


.field input,
.field select {
  min-height: 56px;

  padding: 0 16px;
}


.field textarea {
  min-height: 150px;

  padding: 15px 16px;

  resize: vertical;
}


.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 4px
    rgba(
      38,
      117,
      232,
      0.12
    );
}


.helper {
  margin-top: 7px;

  color: var(--muted);

  font-size: 0.93rem;
}


.check-row {
  display: flex !important;

  flex-direction: row !important;

  align-items: flex-start;

  gap: 11px;

  margin: 0 !important;

  font-weight: 600 !important;
}


.check-row input[type="checkbox"] {
  width: 19px;
  height: 19px;

  min-height: auto;

  flex: 0 0 auto;

  margin: 3px 0 0;
}


.checkbox-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 12px 24px;

  margin-top: 16px;
}


.checkbox-grid .check-row {
  padding: 10px 12px;

  background: #fafcfe;

  border: 1px solid var(--line);
  border-radius: 10px;
}


.form-card > .btn {
  margin-top: 24px;
}


/*************************************************
 * NOTICES
 *************************************************/

.notice {
  padding: 17px 20px;

  background: #eef5ff;
  color: var(--navy);

  border-left: 5px solid var(--blue);
  border-radius: 12px;
}


.notice.green {
  background: var(--green-light);

  border-left-color: var(--green);
}


.notice.warning {
  background: var(--warning-bg);

  border-left-color: var(--warning);
}


/*************************************************
 * EMPTY STATES
 *************************************************/

.empty-state {
  padding: 38px;

  text-align: center;
}


.empty-state h3 {
  color: var(--navy);
}


.empty-state p {
  color: var(--muted);
}


/*************************************************
 * SEARCH
 *************************************************/

.search-layout {
  display: grid;

  grid-template-columns:
    280px
    minmax(0, 1fr);

  gap: 32px;

  align-items: start;
}


.search-sidebar,
.filters {
  padding: 24px;

  position: sticky;
  top: 20px;
}


.search-results {
  display: grid;

  gap: 18px;
}


.search-bar,
.search-page-form {
  display: flex;

  gap: 10px;

  margin-bottom: 30px;
}


.search-bar input,
.search-page-form input {
  flex: 1;

  min-width: 0;
  min-height: 54px;

  padding: 0 16px;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 12px;

  outline: none;
}


/*************************************************
 * PROVIDER PROFILE
 *************************************************/

.profile-hero {
  padding: 60px 0;

  background: var(--navy);
  color: var(--white);
}


.profile-hero h1 {
  margin-bottom: 16px;

  color: var(--white);
}


.profile-hero p,
.profile-hero .small {
  color: #e1edf6;
}


.profile-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(320px, 0.9fr);

  gap: 32px;

  align-items: start;
}


.profile-main {
  display: grid;

  gap: 24px;
}


.profile-main > .card {
  padding: 30px;
}


.profile-sidebar {
  display: grid;

  gap: 18px;
}


.profile-sidebar > .card {
  padding: 26px;
}


.profile-stats {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 12px;

  margin-bottom: 24px;
}


.stat {
  min-width: 0;

  padding: 20px 10px;

  background: #f7faff;

  border: 1px solid var(--line);
  border-radius: 14px;

  text-align: center;
}


.stat strong {
  display: block;

  margin-bottom: 5px;

  color: var(--navy);

  font-size: 1.8rem;
}


.stat .small {
  color: var(--muted);
}


/*************************************************
 * CONTENT
 *************************************************/

.content-card {
  max-width: 900px;

  margin: 0 auto;

  padding: 36px;
}


.content-card h2 {
  margin-top: 34px;
}


.content-card h2:first-child {
  margin-top: 0;
}


.small {
  color: var(--muted);

  font-size: 0.93rem;
}


hr {
  height: 1px;

  margin: 12px 0;

  background: var(--line);

  border: 0;
}


/*************************************************
 * FOOTER
 *************************************************/

.footer {
  margin-top: 50px;

  padding: 52px 0 24px;

  background: var(--navy-dark);
  color: var(--white);
}


.footer-grid {
  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1fr
    1fr;

  gap: 42px;
}


.footer h4 {
  margin-bottom: 15px;

  color: var(--white);
}


.footer a {
  display: block;

  margin-bottom: 9px;

  color: #cbdce9;
}


.footer a:hover {
  color: var(--white);
}


.footer .brand {
  display: inline-flex;

  margin-bottom: 6px;
}


.footer-bottom {
  margin-top: 38px;

  padding-top: 22px;

  color: #9eb5c7;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.15
    );

  font-size: 0.9rem;
}


/*************************************************
 * DESKTOP NAV FALLBACK
 *
 * If there is not enough room for every
 * navigation item, switch to hamburger before
 * anything gets clipped.
 *************************************************/

@media (max-width: 1350px) {

  .site-header .container {
    width:
      min(
        calc(100% - 32px),
        var(--header-container)
      );
  }


  .brand {
    font-size: 1.5rem;
  }


  .brand-mark {
    width: 46px;
    height: 46px;
  }


  .nav-links {
    gap: 15px;

    font-size: 0.95rem;
  }


  .nav-links .nav-cta {
    padding: 12px 15px;
  }

}


/*************************************************
 * TABLET / COLLAPSED NAV
 *************************************************/

@media (max-width: 1180px) {

  .nav {
    min-height: 76px;
  }


  .menu-btn {
    display: inline-flex;
  }


  .nav-links {
    display: none;

    position: absolute;

    top: 76px;
    left: 0;
    right: 0;

    padding: 18px 24px 24px;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    background: var(--white);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    box-shadow: var(--shadow);
  }


  .nav-links.open {
    display: flex;
  }


  .nav-links > a {
    padding: 14px 8px;

    border-bottom:
      1px solid #edf1f5;
  }


  .nav-links > a:last-child {
    border-bottom: 0;
  }


  .nav-links .nav-cta {
    margin-top: 12px;

    padding: 14px 16px;

    text-align: center;
  }


  .hero-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }


  .hero-side-card {
    max-width: 720px;
  }


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


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


  .profile-grid {
    grid-template-columns: 1fr;
  }


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

}


/*************************************************
 * MOBILE
 *************************************************/

@media (max-width: 720px) {

  body {
    font-size: 15px;
  }


  .container {
    width:
      min(
        calc(100% - 28px),
        var(--container)
      );
  }


  .site-header .container {
    width:
      calc(100% - 28px);
  }


  .nav {
    min-height: 70px;
  }


  .brand {
    font-size: 1.35rem;
  }


  .brand-mark {
    width: 43px;
    height: 43px;

    font-size: 1.35rem;
  }


  .nav-links {
    top: 70px;
  }


  .hero {
    padding: 52px 0 56px;
  }


  .hero h1 {
    font-size: 2.65rem;
  }


  .hero-text {
    font-size: 1.04rem;
  }


  .hero-search {
    flex-direction: column;
  }


  .hero-search .btn {
    width: 100%;
  }


  .hero-actions {
    display: grid;

    grid-template-columns: 1fr;
  }


  .hero-actions .btn {
    width: 100%;
  }


  .hero-side-card {
    padding: 24px;
  }


  .section {
    padding: 48px 0;
  }


  .page-hero {
    padding: 42px 0;
  }


  .section-heading-row {
    align-items: flex-start;

    flex-direction: column;

    gap: 16px;
  }


  .section-heading-row .btn {
    width: 100%;
  }


  .category-grid,
  .provider-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }


  .form-card {
    padding: 24px 18px;
  }


  .form-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }


  .field.full {
    grid-column: auto;
  }


  .checkbox-grid {
    grid-template-columns: 1fr;
  }


  .form-card > .btn {
    width: 100%;
  }


  .cta-card {
    flex-direction: column;

    align-items: stretch;

    padding: 28px 22px;
  }


  .cta-actions {
    display: grid;

    grid-template-columns: 1fr;
  }


  .cta-actions .btn {
    width: 100%;
  }


  .search-layout {
    grid-template-columns: 1fr;
  }


  .search-sidebar,
  .filters {
    position: static;
  }


  .search-bar,
  .search-page-form {
    flex-direction: column;
  }


  .profile-stats {
    grid-template-columns: 1fr;
  }


  .profile-main > .card,
  .profile-sidebar > .card {
    padding: 22px;
  }


  .footer-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }

}


/*************************************************
 * SMALL PHONES
 *************************************************/

@media (max-width: 420px) {

  .hero h1 {
    font-size: 2.25rem;
  }


  .page-hero h1 {
    font-size: 2rem;
  }


  .brand {
    font-size: 1.18rem;
  }


  .category-card,
  .provider-card,
  .step-card {
    padding: 20px;
  }

}
