/* Starlight Professional Services, P.C. — site styles
   Vanilla CSS, mobile-first. Brand palette sampled from the original SPS
   banner/logo: deep indigo-navy wordmark (#14205f family), banner blues
   #012c55 / #08549c, cyan highlights #00a8e6. */

:root {
  --navy: #14205f;        /* SPS wordmark navy */
  --navy-dark: #0c1542;
  --ink: #23293a;
  --ink-soft: #4c5468;
  --accent: #0b6aa8;      /* text-safe brand blue, >= 4.5:1 on white */
  --cyan: #00a8e6;        /* decorative accents only (banner cyan) */
  --paper: #ffffff;
  --paper-cool: #f1f6fa;  /* icy blue tint from banner's left edge */
  --line: #dbe5ee;
  --radius: 10px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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;
}

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

.container {
  width: min(68rem, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

a { color: var(--navy); }
a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title { font-size: clamp(1.7rem, 4vw, 2.3rem); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 3.25rem;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(12, 21, 66, 0.25);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
}

.brand-pc { color: var(--ink-soft); font-weight: 500; }

@media (max-width: 30rem) {
  .brand-name { display: none; }  /* logo chip alone on small screens */
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.site-nav {
  display: none;
  width: 100%;
}
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}
.site-nav a:hover { color: var(--navy); }

.nav-cta {
  color: var(--navy) !important;
  font-weight: 600 !important;
}

@media (min-width: 48rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
  }
  .nav-cta {
    border: 1.5px solid var(--navy);
    border-radius: 6px;
    padding: 0.35rem 0.9rem !important;
  }
  .nav-cta:hover { background: var(--navy); color: #fff !important; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -20%, rgba(8, 84, 156, 0.09), transparent 60%),
    linear-gradient(180deg, var(--paper-cool), var(--paper));
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  letter-spacing: -0.01em;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}
.button-primary:hover { background: var(--navy-dark); color: #fff; }

.button-quiet {
  background: transparent;
  color: var(--navy);
}
.button-quiet:hover { background: var(--navy); color: #fff; }

/* ---------- Values strip ---------- */

.values { padding-block: clamp(2.5rem, 6vw, 4rem); }

.values-grid {
  display: grid;
  gap: 1.75rem;
}

.value h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.value p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (min-width: 48rem) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- Services ---------- */

.services {
  background: var(--paper-cool);
  border-block: 1px solid var(--line);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
}

.service-card h3 { font-size: 1.3rem; }

.service-card > p { color: var(--ink-soft); font-size: 0.96rem; }

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--paper-cool);
}
.service-card li:last-child { border-bottom: 0; }

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
}

@media (min-width: 48rem) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ---------- About ---------- */

.about { padding-block: clamp(3rem, 8vw, 5.5rem); }

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-text p { max-width: 38rem; }

.affiliations h3 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.affiliations h3 + .affiliation-list { margin-bottom: 2rem; }

.affiliation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.affiliation-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.affiliation-list li:last-child { border-bottom: 0; }

.affiliation-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.affiliation-list a:hover { color: var(--accent); text-decoration: underline; }

.affiliation-list img {
  width: auto;
  height: 3rem;
  flex: none;
}

.affiliation-list-text li { padding: 0.45rem 0; }

@media (min-width: 48rem) {
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--navy);
  color: #e8eaf2;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.contact .eyebrow { color: #7cc4ea; }

.contact .section-title { color: #fff; }

.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
}

.contact-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.contact-card p { font-size: 0.98rem; }

.contact-card a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact-card a:hover { color: #7cc4ea; }

address { font-style: normal; margin-bottom: 1em; }

.contact-line { margin-bottom: 0.5em; }

.contact-label {
  display: inline-block;
  min-width: 3.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aab3cf;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.contact .button-primary {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}
.contact .button-primary:hover { background: #e8eaf2; border-color: #e8eaf2; color: var(--navy); }

.contact .button-quiet {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.contact .button-quiet:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.text-link { font-weight: 600; }

@media (min-width: 48rem) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #aab3cf;
  padding-block: 1.75rem;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0.2em 0; }

.site-footer a { color: #cfd5e6; }
.site-footer a:hover { color: #fff; }

@media (min-width: 48rem) {
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Reduced motion ---------- */

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