/* =========================================================================
   Tell Construction Advisors — site styles
   Palette: warm ink, brick/oxblood red, bronze, bone. Heritage + modern.
   ========================================================================= */

:root {
  --ink:        #1b1714;
  --ink-2:      #2a2421;
  --brick:      #901a1c;
  --brick-dark: #6f1417;
  --bronze:     #b08d57;
  --bronze-lt:  #c9a877;
  --bone:       #f6f2ea;
  --bone-2:     #ece5d8;
  --slate:      #3a4a54;
  --muted:      #6c655d;
  --line:       rgba(27, 23, 20, 0.12);
  --white:      #ffffff;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.45);
  --shadow-sm: 0 6px 20px -12px rgba(27, 23, 20, 0.5);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brick);
  margin: 0 0 16px;
}
.eyebrow--bronze { color: var(--bronze); }
.lede { font-size: 1.22rem; color: var(--muted); max-width: 64ch; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.divider { width: 56px; height: 3px; background: var(--brick); border: 0; margin: 22px 0; }
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1.5px solid transparent; transition: all .2s ease; cursor: pointer;
}
.btn--primary { background: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 76px; width: auto; display: block; }
.site-footer .brand__logo { height: 80px; filter: brightness(0) invert(1); opacity: .92; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 3px;
  background: var(--brick); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 20px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.brand__sub { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.93rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brick); transition: width .22s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--brick); }
.nav__cta { margin-left: 8px; }
.nav__cta a.btn { padding: 11px 22px; font-size: 0.9rem; color: #fff; }
.nav__cta a.btn::after { display: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(20,16,14,.92) 0%, rgba(27,23,20,.78) 55%, rgba(27,23,20,.6) 100%),
    url("../img/hero.jpg") center/cover no-repeat,
    var(--ink);
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 .5H40M.5 0V40' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 120px 24px 110px; max-width: 780px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); margin: 26px 0 36px; max-width: 60ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: center;
  gap: 10px 40px; padding: 24px; text-align: center;
  color: rgba(255,255,255,.8); font-size: 0.9rem;
}
.hero__strip strong { color: var(--bronze-lt); font-family: var(--serif); }

/* ---------- page banner (interior pages) ---------- */
.banner {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, var(--brick-dark) 130%);
  color: #fff; padding: 80px 0 70px;
}
.banner h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.banner p { color: rgba(255,255,255,.82); max-width: 62ch; margin: 18px 0 0; font-size: 1.15rem; }
.crumb { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-lt); margin-bottom: 14px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--brick); line-height: 1; }
.stat__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 10px; }
.stats--onbanner .stat__num { color: var(--bronze-lt); }
.stats--onbanner .stat__label { color: rgba(255,255,255,.7); }

/* ---------- services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__num { font-family: var(--serif); color: var(--bronze); font-size: 1.1rem; margin-bottom: 16px; }
.card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 1rem; margin: 0 0 20px; }
.card__link { color: var(--brick); font-weight: 600; font-size: 0.92rem; margin-top: auto; }

/* ---------- split / feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.split__media img { display: block; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius); overflow: hidden; min-height: 360px;
  background: linear-gradient(135deg, var(--slate), var(--ink)); box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose p.first { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- band (dark CTA) ---------- */
.band {
  background: linear-gradient(120deg, var(--ink), var(--brick-dark));
  color: #fff; text-align: center;
}
.band h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.band p { color: rgba(255,255,255,.82); max-width: 56ch; margin: 18px auto 30px; }

/* ===================== PROJECTS / PORTFOLIO ===================== */
.portfolio-controls {
  position: sticky; top: 96px; z-index: 40;
  background: rgba(246,242,234,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.controls-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--brick); color: var(--brick); }
.filter-btn.is-active { background: var(--brick); border-color: var(--brick); color: #fff; }
.filter-btn .count { opacity: .6; font-weight: 500; margin-left: 5px; }
.search-box { position: relative; }
.search-box input {
  font-family: var(--sans); font-size: 0.92rem; padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; width: 230px;
  transition: border-color .18s ease;
}
.search-box input:focus { outline: none; border-color: var(--brick); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .45; }

.result-meta { color: var(--muted); font-size: 0.9rem; margin: 26px 0 18px; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.proj-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); cursor: pointer; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0; transform: translateY(14px); animation: rise .5s ease forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-card:hover .proj-card__img { transform: scale(1.06); }
/* generated placeholder shown behind/instead of a missing photo */
.proj-card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--slate) 0%, var(--ink) 70%);
}
.proj-card__ph[data-cat="Multifamily"]      { background: linear-gradient(140deg, #4a5a64, var(--ink)); }
.proj-card__ph[data-cat="Education"]         { background: linear-gradient(140deg, #6f241b, var(--ink)); }
.proj-card__ph[data-cat="Healthcare"]        { background: linear-gradient(140deg, #3a4a54, var(--ink)); }
.proj-card__ph[data-cat="Civic & Community"] { background: linear-gradient(140deg, #7a623a, var(--ink)); }
.proj-card__ph[data-cat="Religious"]         { background: linear-gradient(140deg, #514a6b, var(--ink)); }
.proj-card__ph[data-cat="Legacy"]            { background: linear-gradient(140deg, #8b2e23, #2a1410); }
.proj-card__ph span { font-family: var(--serif); color: rgba(255,255,255,.28); font-size: 3rem; }
.proj-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(15,12,10,.9) 0%, rgba(15,12,10,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.proj-card__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: auto; }
.proj-card__cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: #fff; background: rgba(139,46,35,.9);
  padding: 5px 10px; border-radius: 3px;
}
.proj-card__name { font-family: var(--serif); color: #fff; font-size: 1.18rem; margin: 0 0 4px; }
.proj-card__loc { color: rgba(255,255,255,.78); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.proj-card.is-hidden { display: none; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,12,10,.7); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; z-index: 2; background: var(--bone); border-radius: 6px;
  max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow);
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.modal__hero { position: relative; height: 380px; background: var(--ink); }
.modal__hero img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.modal__hero .proj-card__ph span { font-size: 4rem; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.modal__close:hover { background: #fff; }
.modal__body { padding: 32px 36px 38px; }
.modal__cat { color: var(--brick); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }
.modal__body h2 { font-size: 1.9rem; margin: 10px 0 6px; }
.modal__loc { color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.modal__desc { font-size: 1.08rem; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.fact__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.fact__val { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-top: 4px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brick); }
.field textarea { min-height: 130px; resize: vertical; }
.info-block { margin-bottom: 28px; }
.info-block h4 { font-size: 1.05rem; margin-bottom: 8px; }
.info-block a, .info-block p { color: var(--muted); margin: 2px 0; }
.info-block a:hover { color: var(--brick); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h5 { color: #fff; font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 18px; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); margin: 9px 0; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--bronze-lt); }
.footer-about p { font-size: 0.95rem; max-width: 38ch; margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,.5); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== PEOPLE: TEAM + LEGACY ===================== */
.person {
  display: grid; grid-template-columns: 290px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 30px;
}
.person__media { position: relative; height: 380px; background: var(--ink); align-self: start; }
.person__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.person__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--slate), var(--ink)); }
.person__ph span { font-family: var(--serif); color: rgba(255,255,255,.3); font-size: 3.4rem; }
.person__body { padding: 34px 36px 36px; }
.person__role { color: var(--brick); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.person__name { font-size: 1.85rem; margin: 7px 0 4px; }
.person__where { color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 18px; font-size: .95rem; }
.person__bio { color: var(--ink-2); margin: 0 0 20px; }
.person__facts { display: grid; gap: 13px; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
.person__fact { display: grid; grid-template-columns: 132px 1fr; gap: 14px; font-size: .95rem; }
.person__fact dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding-top: 3px; }
.person__fact dd { margin: 0; color: var(--ink-2); }

.legacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 32px; }
.legacy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.legacy-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--ink); }
.legacy-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.25) sepia(.12); }
.legacy-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, #4a3f36, var(--ink)); }
.legacy-card__ph span { font-family: var(--serif); color: rgba(255,255,255,.32); font-size: 3.4rem; }
.legacy-card__body { padding: 28px 30px 32px; }
.legacy-card__gen { color: var(--bronze); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.legacy-card__name { font-size: 1.55rem; margin: 7px 0 2px; }
.legacy-card__years { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.legacy-card__body p { color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
  .person__media { height: auto; aspect-ratio: 4 / 5; }
  .legacy-grid { grid-template-columns: 1fr; }
  .person__fact { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 2; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 96px; left: 0; right: 0; background: var(--bone);
    border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
  }
  .nav__links.is-open a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links.is-open .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: block; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 92px 26px 72px; }
  .hero h1 { font-size: clamp(1.6rem, 8.7vw, 3rem); white-space: nowrap; }
  .grid, .cards, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search-box input { width: 100%; }
  .controls-row { flex-direction: column; align-items: stretch; }
  .modal__body { padding: 24px; }
}
