/* Alliance Building LLC — site styles
   Palette drawn from the logo: navy #2c2a6e, silver #c0c0c0, ink #10120f.
   The 2x2 logo grid (saw, hammer, compass, square) is the recurring visual thread.
*/

:root {
  --navy: #2c2a6e;
  --navy-deep: #1a1848;
  --navy-soft: #3d3a86;
  --ink: #10120f;
  --silver: #c0c0c0;
  --silver-soft: #e2e2e0;
  --ivory: #f6f4f0;
  --paper: #fbfaf8;
  --white: #ffffff;
  --muted: #5c5b58;
  --line: rgba(16, 18, 15, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --header-h: 4.6rem;
  --max: 1160px;
  --wide: 1320px;
  --shadow: 0 16px 40px rgba(16, 18, 15, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-soft); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }
.wrap { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.4rem, var(--wide)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(16, 18, 15, 0.08); }
.header-inner {
  width: min(100% - 1.6rem, var(--wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-llc {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}
.site-nav a {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
}
.btn-navy, .site-nav .btn-navy {
  background: var(--navy);
  color: #fff !important;
  border-color: var(--navy);
  border-bottom: 0;
  padding: 0.7rem 1.05rem;
}
.btn-navy:hover, .site-nav .btn-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff !important;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* ---------- Logo: hi-res mark in kickers, header, and value quadrants ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.kicker-logo {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.kicker-logo img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}
.kicker-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.quad {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
}
.quad picture, .quad img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand picture {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-media, .hero-media picture, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,18,15,0.15) 0%, rgba(16,18,15,0.15) 40%, rgba(16,18,15,0.72) 100%),
    linear-gradient(90deg, rgba(16,18,15,0.35) 0%, rgba(16,18,15,0.05) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.4rem, var(--wide));
  margin: 0 auto 4.5rem;
  max-width: 760px;
  margin-left: max(1.2rem, calc((100% - var(--wide)) / 2));
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #f3efe8;
  margin-bottom: 0.7em;
}
.hero .cities { color: var(--silver); letter-spacing: 0.08em; font-size: 0.92rem; text-transform: uppercase; }

/* ---------- Trust bar ---------- */
.trust {
  background: var(--navy);
  color: #fff;
  padding: 1.35rem 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.2rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trust-row strong { font-weight: 500; color: #fff; }
.trust-row span { color: var(--silver); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy-deep); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .kicker-label { color: var(--silver); }
.section-navy .lead, .section-navy p { color: rgba(255,255,255,0.86); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.intro-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 1rem;
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.25rem 1.3rem 1.5rem; }
.card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card a.card-link { display: block; color: inherit; }
.card a.card-link:hover h3 { color: var(--navy); }

/* ---------- Values / principles ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.values-3 { grid-template-columns: repeat(3, 1fr); }
.value {
  background: var(--white);
  padding: 1.6rem 1.35rem 1.7rem;
  border-top: 3px solid var(--navy);
}
.value h3 { margin: 0.85rem 0 0.5rem; font-size: 1.45rem; }
.value p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.quote {
  background: var(--white);
  padding: 1.8rem 1.6rem;
  border-left: 3px solid var(--navy);
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.step h3 { margin-bottom: 0.3em; }
.step p { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.45rem 0 0;
}
.project-block { margin-bottom: 4.5rem; }
.project-block .lead { max-width: 42rem; }

.gallery-flagship figure:first-child {
  grid-column: 1 / -1;
}
.gallery-flagship figure:first-child img {
  aspect-ratio: 16 / 9;
  object-position: center 58%;
}

.founder {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1.6rem 2.8rem;
  align-items: start;
}
.founder figure, .founder picture { margin: 0; display: block; width: 100%; }
.founder img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: var(--shadow);
}
.founder figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.55rem 0 0;
}
.founder .person-name,
.founder .owner-name {
  color: var(--ink);
  font-weight: 500;
  display: block;
}
.founder .person-title { display: block; }

#people { scroll-margin-top: calc(var(--header-h) + 0.75rem); }
.founder-bio { min-width: 0; }
.founder-bio .lead { margin-bottom: 0; }
.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 1.35rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder-stats li {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.founder-creds {
  margin: 1.5rem 0 1.25rem;
}
.founder-creds h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.founder-creds ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.founder-creds li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink);
}
.founder-creds li:last-child { border-bottom: 1px solid var(--line); }


/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
}
label, .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
  margin-bottom: 1rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.contact-aside h2 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.contact-list li { margin: 0 0 0.7rem; }
.contact-list a { font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
}
.page-hero .hero-media img { object-position: center; }
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto 2.8rem;
}
.page-hero h1 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .brand { color: #fff; margin-bottom: 0.8rem; }
.site-footer .brand-llc { color: var(--silver); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--silver); }
.site-footer h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.center { text-align: center; }
.narrow { max-width: 42rem; }
.narrow.center, .center .narrow { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid, .footer-grid, .founder { grid-template-columns: 1fr; }
  .founder figure { max-width: 300px; }
  .project-grid, .values, .values-3 { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.6rem; }
}
@media (max-width: 540px) {
  .founder-stats {
    gap: 0.65rem 0.7rem;
    padding: 0.85rem 0;
  }
  .founder-stats li { font-size: 1.2rem; }
}
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn-navy { margin-top: 0.6rem; text-align: center; border-bottom: 0; }
  .hero-content { margin-bottom: 2.6rem; }
  .hero { min-height: 86svh; }
  .section { padding: 3.6rem 0; }
}
@media (max-width: 640px) {
  .project-grid, .values, .values-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery.gallery-2, .gallery { grid-template-columns: 1fr 1fr; }
  body { font-size: 1rem; }
  .brand-text { display: none; }
  .brand picture, .brand img { width: 44px; height: 44px; }
  .trust-row { gap: 0.7rem 1.2rem; font-size: 0.75rem; }
}

/* Contrast for kickers over photography */
.hero .kicker-label,
.page-hero .kicker-label { color: #e8e4dc; }
.hero .kicker-logo img,
.page-hero .kicker-logo img { box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }

@media (max-width: 800px) {
  .hero h1 { font-size: 2.15rem; }
  .hero .tagline { font-size: 1.08rem; margin-bottom: 0.45em; }
  .hero-content { margin-bottom: 1.25rem; }
  .hero .btn-row { margin-top: 1rem; }
  .hero .btn { width: 100%; }
}
@media (max-width: 640px) {
  .brand-text { display: flex; }
  .brand-llc { display: none; }
  .brand-name { font-size: 0.92rem; letter-spacing: 0.06em; }
}
