/* ────────────────────────────────────────────────────────────────────────────
   New Space Office Solutions — site stylesheet
   Design language: commercial / architectural. Sharp edges, hairline rules,
   restrained bronze accent, photography-led layout.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand palette sampled from NewSpaceLogo.svg / NewSpacefavicon.svg */
  --ink: #0d1b2a;             /* logo navy */
  --graphite: #263646;        /* navy-tinted secondary text */
  --stone: #6b6f72;           /* logo gray */
  --line: #d6d9dc;
  --line-soft: #e7e9eb;
  --paper: #f5f6f7;           /* near-white section background */
  --white: #ffffff;
  --accent: #8f6522;          /* logo gold, darkened for AA text on white */
  --accent-bright: #c68c3a;   /* logo gold — rules & large accents only */
  --focus: #1355c9;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --wrap-narrow: 800px;
  --space: clamp(3.5rem, 7vw, 6rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

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

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.17rem; }

p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--space); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: calc(var(--space) * 0.55); }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 2px;
  background: var(--accent-bright);
  margin-right: 0.6rem;
  vertical-align: 0.22em;
}

.lede { font-size: 1.17rem; color: var(--graphite); max-width: 46em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--graphite); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--invert { border-color: #fff; background: #fff; color: var(--ink); }
.btn--invert:hover { background: transparent; color: #fff; }

.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.text-link {
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-bright);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.text-link::after { content: " →"; }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar { background: var(--ink); color: #cfd5db; font-size: 0.83rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--accent-bright); }
@media (max-width: 700px) { .topbar__inner span:first-child { display: none; } .topbar__inner { justify-content: center; } }

/* ── Header / nav ─────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.4rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand__logo { height: 42px; width: auto; aspect-ratio: 2145.877 / 512; }
/* "NEW SPACE" wordmark turns gold on hover/focus (pointer devices only). */
.brand__logo path { transition: fill 0.15s ease; }
@media (hover: hover) {
  .brand:hover { --logo-word-fill: var(--accent-bright); }
}
.brand:focus-visible { --logo-word-fill: var(--accent-bright); }
@media (max-width: 480px) { .brand__logo { height: 34px; } }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a {
  text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding: 0.6rem 0.75rem; color: var(--ink);
}
.nav__item.is-active > a { box-shadow: inset 0 -3px 0 var(--accent-bright); }
.nav__item > a:hover { color: var(--accent); }
.nav__item--cta { display: none; }

.nav__toggle {
  background: none; border: 0; padding: 0.4rem 0.5rem 0.4rem 0; cursor: pointer;
  margin-left: -0.5rem;
}
.nav__toggle span {
  display: block; width: 8px; height: 8px;
  border-right: 2px solid var(--stone); border-bottom: 2px solid var(--stone);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}
.nav__toggle[aria-expanded="true"] span { transform: rotate(225deg) translateY(-2px); }

.nav__sub {
  list-style: none; margin: 0; padding: 0.5rem 0;
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent-bright);
  box-shadow: 0 14px 30px rgba(20, 22, 26, 0.12);
  display: none;
}
.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub,
.nav__item--sub.is-open .nav__sub { display: block; }
.nav__sub a {
  display: block; padding: 0.5rem 1.1rem; text-decoration: none;
  font-size: 0.93rem; font-weight: 550;
}
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--paper); color: var(--accent); }

.site-header__cta { flex: none; }
.site-header__call {
  display: none;
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--ink); padding: 0.55rem 1rem;
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0.6rem; cursor: pointer;
}
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .site-header__cta { display: none; }
  .site-header__call { display: inline-block; }
  .nav-burger { display: flex; }
  .nav {
    position: fixed; inset: 0; top: var(--header-offset, 74px);
    background: var(--white); overflow-y: auto;
    display: none; z-index: 99;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; padding: 0.6rem 0 3rem; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
  .nav__item > a { flex: 1; padding: 0.95rem clamp(1.1rem, 4vw, 2rem); font-size: 1.05rem; }
  .nav__item.is-active > a { box-shadow: inset 3px 0 0 var(--accent-bright); }
  .nav__toggle { padding: 1rem 1.4rem; margin: 0; }
  .nav__toggle span { width: 10px; height: 10px; }
  .nav__sub {
    position: static; min-width: 0; width: 100%;
    border: 0; box-shadow: none; background: var(--paper);
    display: none;
  }
  .nav__item--sub:hover .nav__sub { display: none; }
  .nav__item--sub.is-open .nav__sub,
  .nav__item--sub:focus-within.is-open .nav__sub { display: block; }
  .nav__sub a { padding: 0.7rem clamp(1.6rem, 6vw, 2.6rem); }
  .nav__item--cta { display: block; padding: 1.2rem clamp(1.1rem, 4vw, 2rem); border: 0; }
  .nav__item--cta a {
    display: block; background: var(--ink); color: #fff; text-align: center;
    padding: 0.9rem; font-size: 1.02rem;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero__inner { position: relative; padding-block: clamp(4rem, 10vw, 8.5rem); max-width: 780px; }
.hero h1 { color: #fff; }
.hero .lede { color: #e2e6ea; font-size: clamp(1.05rem, 1.6vw, 1.24rem); }
.hero .kicker { color: var(--accent-bright); }
.hero .btn--ghost { border-color: #fff; color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero__meta { margin-top: 2.2rem; font-size: 0.88rem; color: #b3bac1; letter-spacing: 0.04em; }

/* ── Page header (interior) ───────────────────────────────────────── */
.page-header { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-header h1 { max-width: 18em; }
.page-header .lede { margin-bottom: 0; }

.crumbs { font-size: 0.84rem; margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--stone); }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ── Cards ────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.4rem; }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--ink); color: var(--ink); }
.card__media { border-bottom: 1px solid var(--line-soft); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.card__body p { color: var(--stone); font-size: 0.95rem; margin: 0; flex: 1; }
.card__more {
  margin-top: 0.9rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.card__more::after { content: " →"; }
.card:hover .card__more { color: var(--ink); }

/* ── Split sections ───────────────────────────────────────────────── */
.split__grid { display: grid; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 880px) {
  .split__grid { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { width: 100%; border: 1px solid var(--line); }
.split__copy h2 { max-width: 16em; }
.split__cta { margin-top: 1.4rem; }

/* ── Checklists ───────────────────────────────────────────────────── */
.checklist { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.48em;
  width: 0.65em; height: 0.32em;
  border-left: 2.5px solid var(--accent-bright); border-bottom: 2.5px solid var(--accent-bright);
  transform: rotate(-45deg);
}
.checklist--cols { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 2rem; }

/* ── Numbered process ─────────────────────────────────────────────── */
.process { counter-reset: step; list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
@media (min-width: 880px) { .process { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.process li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.4rem;
}
.process h3 { font-size: 1.03rem; margin-bottom: 0.3rem; }
.process p { font-size: 0.94rem; color: var(--stone); margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 2.4rem 1.1rem 0; position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; font-size: 1.06rem; margin: 0; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--accent);
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 1.3rem; color: var(--graphite); max-width: 60em; }
.faq h2 { margin-bottom: 1.2rem; }

/* ── CTA band ─────────────────────────────────────────────────────── */
.cta-band { background: var(--ink); color: #fff; padding-block: var(--space); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8cfd6; max-width: 44em; }
.cta-band .btn--primary { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }
.cta-band .btn--ghost { border-color: #8b95a0; color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ── Related links ────────────────────────────────────────────────── */
.related { background: var(--paper); border-top: 1px solid var(--line); padding-block: 2.6rem; }
.related h2 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; }
.related a {
  display: inline-block; padding: 0.45rem 1rem;
  border: 1px solid var(--line); background: var(--white);
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
}
.related a:hover { border-color: var(--ink); }

/* ── Stats / trust strip ──────────────────────────────────────────── */
.trust { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2.4rem; }
.trust div { border-left: 3px solid var(--accent-bright); padding-left: 1.1rem; }
.trust strong { display: block; font-size: 1.35rem; letter-spacing: -0.01em; }
.trust span { color: var(--stone); font-size: 0.95rem; }

/* ── Gallery ──────────────────────────────────────────────────────── */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery-grid figure { margin: 0; border: 1px solid var(--line); background: var(--white); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 0.6rem 0.9rem; font-size: 0.85rem; color: var(--stone); }

/* ── Forms ────────────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-field--full { grid-column: 1 / -1; }
}
.form-field label { display: block; font-weight: 650; font-size: 0.93rem; margin-bottom: 0.35rem; }
.form-field .hint { font-weight: 400; color: var(--stone); font-size: 0.85rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 0;
  font: inherit; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input[type="file"] { padding: 0.55rem; background: var(--paper); }
.form-actions { margin-top: 1.6rem; }
.form-error {
  background: #fdf4e8;
  border-left: 4px solid var(--accent-bright);
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-note { font-size: 0.88rem; color: var(--stone); margin-top: 0.9rem; }
.required { color: var(--accent); }

/* ── Contact page ─────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.contact-info h2 { font-size: 1.2rem; }
.contact-info dl { margin: 0 0 1.6rem; }
.contact-info dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 1.1rem; }
.contact-info dd { margin: 0.15rem 0 0; font-size: 1.05rem; }
.map-embed { border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #c8cfd6; font-size: 0.93rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer__grid {
  display: grid; gap: 2.4rem; padding-block: 3.6rem 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8b95a0; margin-bottom: 0.8rem; }
.site-footer h2 a { color: #8b95a0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer .brand__logo--footer { height: 34px; width: auto; margin-bottom: 1.1rem; }
.site-footer__hours { color: #8b95a0; }
.site-footer__area { color: #8b95a0; font-size: 0.88rem; }
.site-footer__area-h { margin-top: 1.6rem; }
.site-footer__legal {
  border-top: 1px solid #223349; padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-size: 0.8rem; color: #8b95a0;
}
.site-footer__disclaimer { max-width: 56em; margin: 0; }

/* ── Toast (phone-number confirmation) ────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(0.75rem);
  background: var(--ink);
  color: #fff;
  border-left: 4px solid var(--accent-bright);
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Utility ──────────────────────────────────────────────────────── */
.section-head { max-width: 700px; margin-bottom: 2.2rem; }
.section-head p { color: var(--graphite); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
