/* NexPhase Management LLC — site styles */

:root {
  --navy: #1a365d;
  --navy-deep: #10233f;
  --navy-mid: #2c5282;
  --navy-soft: #2a4a73;
  --gold: #d4af37;
  --gold-dark: #b8942a;
  --gold-soft: #e8c96a;
  --ink: #1a202c;
  --muted: #4a5568;
  --faint: #718096;
  --line: #e2e8f0;
  --line-strong: #cbd5e0;
  --paper: #ffffff;
  --wash: #f7fafc;
  --wash-2: #edf2f7;
  --danger: #b42318;
  --focus: #2c5282;
  --header-h: 4.5rem;
  --wrap: 70rem;
  --radius: 0.5rem;
  --shadow: 0 1px 2px rgba(16, 35, 63, 0.06), 0 8px 24px rgba(16, 35, 63, 0.06);
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
iframe { border: 0; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-mid); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0 0 0.25rem 0.25rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .wrap { width: min(100% - 3rem, var(--wrap)); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img,
.brand svg {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.375rem;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 0.1rem;
  background: var(--navy);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
}
.nav-toggle-bars::before { top: -0.35rem; }
.nav-toggle-bars::after { top: 0.35rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.65rem 0.85rem;
  border-radius: 0.375rem;
}
.site-nav a:hover { background: var(--wash-2); color: var(--navy); }
.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--navy);
  font-weight: 600;
}
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  text-align: center;
}
.nav-cta:hover { background: var(--navy-mid) !important; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.1rem;
  box-shadow: 0 12px 24px rgba(16, 35, 63, 0.08);
}
.site-nav.is-open { display: block; }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.45rem 0.8rem; }
  .nav-cta { padding-inline: 1rem !important; margin-left: 0.35rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  min-height: min(36rem, 88svh);
  display: flex;
  align-items: center;
  padding: 4rem 0 4.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { max-width: 44rem; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-lead {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.0625rem;
  max-width: 42rem;
}

/* Sections */
.section { padding: 4.25rem 0; }
@media (min-width: 48rem) { .section { padding: 5.5rem 0; } }

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section-rule {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.5rem;
}
.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 44rem;
}
.prose p { margin: 0 0 1.1rem; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }

.bg-wash { background: var(--wash); }
.bg-navy {
  background: var(--navy-deep);
  color: #fff;
}
.bg-navy .section-title,
.bg-navy .section-kicker { color: #fff; }
.bg-navy .section-kicker { color: var(--gold); }
.bg-navy .lede,
.bg-navy p { color: rgba(255, 255, 255, 0.82); }

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56rem) {
  .about-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 4rem;
    align-items: start;
  }
}
.value-list { display: grid; gap: 1.15rem; }
.value {
  padding: 0;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.value h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 650;
}
.value p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.approach {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.approach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 48rem) {
  .approach-list { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
}
.approach-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
}
.approach-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 40rem) { .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.45rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.25rem; height: 1.25rem; }

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; }
.service-card p { margin-bottom: 0.85rem; }
.service-card ul {
  margin: 0.15rem 0 0;
  padding: 0.85rem 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-card li + li { margin-top: 0.3rem; }
.service-card.credential {
  border-color: #e8d59a;
  background: linear-gradient(180deg, #fffdf6 0%, #fff 40%);
}
.credential-mark {
  width: 4.5rem;
  height: auto;
  margin: 0 0 1rem;
}

/* Process */
.process {
  margin-top: 3rem;
}
.process ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 56rem) {
  .process ol { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.process li {
  counter-increment: step;
  position: relative;
  padding-top: 0.25rem;
}
.process .step-num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}
.process h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--navy);
}
.process p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Financing */
.finance-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 40rem) { .finance-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .finance-grid { grid-template-columns: repeat(3, 1fr); } }
.finance-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
}
.finance-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 650;
}
.finance-card p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 58rem) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }
}
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}
@media (min-width: 40rem) { .form { padding: 1.85rem 1.75rem; } }

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 40rem) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}
.field select {
  cursor: pointer;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a365d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 6 8 10.5 12.5 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.9rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #a0aec0; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.form { position: relative; }
.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}
.form-error[hidden] { display: none !important; }
.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aside-block + .aside-block { margin-top: 1.75rem; }
.aside-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  color: var(--navy);
}
.aside-block p, .aside-block address {
  margin: 0;
  font-style: normal;
  color: var(--muted);
}
.aside-block a {
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: none;
}
.aside-block a:hover { text-decoration: underline; color: var(--navy); }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--muted);
}
.hours-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 0.3rem 0.75rem 0.3rem 0;
}
.hours-table td { padding: 0.3rem 0; }
.hours-table tr + tr th,
.hours-table tr + tr td { border-top: 1px solid var(--line); }

.map-frame {
  margin-top: 0.85rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 16rem;
}
.map-frame iframe { width: 100%; height: 16rem; display: block; }
.dir-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--navy-mid);
}
.dir-link:hover { text-decoration: underline; color: var(--navy); }
.map-attrib {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--faint);
}
.map-attrib a { color: inherit; }
.map-frame { background: var(--wash-2); }


/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; gap: 2.5rem; }
}
.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
}
.site-footer p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.site-footer .footer-grid p a {
  color: var(--gold-soft);
  text-decoration: none;
}
.site-footer .footer-grid p a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Interior pages */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0 2.75rem;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}
.page-hero p { margin: 0.75rem 0 0; color: rgba(255, 255, 255, 0.82); max-width: 40rem; }

.legal {
  max-width: 44rem;
}
.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 600;
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }

.thanks {
  text-align: left;
  max-width: 36rem;
}
.thanks h1 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.8rem;
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-bg, .btn-row, .form, .site-footer .footer-links { }
  .site-header { position: static; }
  .hero { min-height: 0; padding: 2rem 0; }
}
