/* WHY: spec rebuild of firstfederalplaza.com — restrained, monochrome aesthetic. Centered headings, B&W hero, subtle gray section bands, brass used only as minor accent rule. Original markup. */

:root {
  --ink: #2a2a2a;
  --charcoal: #1d1d1d;
  --soft-black: #0e0e0e;
  --paper: #ffffff;
  --paper-warm: #f9f8f5;
  --band: #f0eeea;
  --band-cool: #e8e8e6;
  --band-deep: #2e2e2e;
  --rule: #d4d4d2;
  --muted: #6e6e6e;
  --muted-light: #9a9a9a;
  --brass: #a08456;
  --serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 15px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(8px);
  padding: 14px 48px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }

.nav--scrolled .nav__brand img { height: 44px; transition: height 0.3s; }

.nav__brand-text {
  font-family: var(--serif);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav__links a:hover { opacity: 1; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--soft-black);
}

.hero__bg {
  position: absolute;
  inset: -6%;
  background: url('../assets/hero-building-hd.jpg') center center/cover no-repeat;
  filter: grayscale(100%) contrast(1.05) brightness(0.85);
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
  opacity: 0;
  animation: fade-up 1.4s 0.4s ease-out forwards;
}

.hero h1 .italic {
  font-style: italic;
  font-weight: 400;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1.2s 1.2s ease-out forwards, bob 2.4s 2.4s ease-in-out infinite;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: #fff;
  margin: 10px auto 0;
  opacity: 0.5;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- SECTION SHELL ---------- */
.section {
  padding: 120px 40px;
  position: relative;
}

.section--paper { background: var(--paper); }
.section--band  { background: var(--band); }
.section--warm  { background: var(--paper-warm); }
.section--cool  { background: var(--band-cool); }
.section--dark  { background: var(--band-deep); color: #fff; }

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: 72px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin-bottom: 16px;
  color: var(--ink);
}

.section--dark h2 { color: #fff; }

.section h2 .italic {
  font-style: italic;
  font-weight: 400;
}

.section__sub {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.section--dark .section__sub { color: var(--muted-light); }

.section__lede {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 580px;
}

.section--dark .section__lede { color: rgba(255,255,255,0.72); }

.section__lede--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- TWO-COL LAYOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse > :first-child { order: 2; }

.two-col img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.two-col__copy h2 {
  text-align: left;
  margin-bottom: 12px;
}

.two-col__copy .section__sub {
  display: block;
  margin-bottom: 14px;
}

/* ---------- BUILDING STATS ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding: 56px 0 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.stat img {
  height: 36px;
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.7;
}

.section--dark .stat img { filter: brightness(0) invert(1); opacity: 0.7; }

.section--dark .stats-strip { border-top-color: rgba(255,255,255,0.18); }

.stat__num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 400;
}

.section--dark .stat__num { color: #fff; }

.stat__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.section--dark .stat__label { color: var(--muted-light); }

/* ---------- AMENITY GRID ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.amenity {
  text-align: center;
}

.amenity img {
  height: 48px;
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.78;
}

.section--dark .amenity img {
  filter: brightness(0) invert(1);
  opacity: 0.78;
}

.amenity__title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

.section--dark .amenity__title { color: #fff; }

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: all 0.25s;
  margin-top: 16px;
}

.cta:hover {
  background: var(--ink);
  color: #fff;
}

.section--dark .cta {
  border-color: #fff;
  color: #fff;
}

.section--dark .cta:hover {
  background: #fff;
  color: var(--ink);
}

/* ---------- LOCATION ---------- */
.location-card {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.location-card__phone {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- CONTACT ---------- */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 32px auto 0;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--soft-black);
  color: rgba(255,255,255,0.5);
  padding: 36px 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav--scrolled { padding: 10px 20px; }
  .nav__brand img { height: 40px; }
  .nav--scrolled .nav__brand img { height: 32px; }
  .nav__brand-text { font-size: 12px; letter-spacing: 0.18em; }
  .nav__links { display: none; }
  .nav__links--open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(20,20,20,0.97);
    padding: 14px 0;
  }
  .nav__links--open li { padding: 14px 24px; list-style: none; }
  .nav__toggle { display: block; }

  .hero { min-height: 100vh; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); padding: 0 8px; }

  .section { padding: 72px 22px; }
  .section__head { margin-bottom: 42px; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  /* WHY: on mobile, copy reads better above image even for "reversed" desktop layouts */
  .two-col--reverse > :first-child { order: 0; }
  .two-col img { height: 260px; }
  .two-col__copy { text-align: center; }
  .two-col__copy h2 { text-align: center; }
  .two-col__copy .section__sub { text-align: center; }
  .two-col__copy .cta-wrap { text-align: center; }
  .two-col__copy .section__lede { margin-left: auto; margin-right: auto; }

  /* WHY: 3-col with 5 stats keeps the orphaned 5th item less awkward than 2-col */
  .stats-strip { grid-template-columns: repeat(3, 1fr); gap: 32px 12px; padding-top: 36px; margin-top: 40px; }
  .stat img { height: 28px; margin-bottom: 12px; }
  .stat__num { font-size: 1.4rem; }
  .stat__label { font-size: 9px; letter-spacing: 0.18em; }

  .amenities { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .amenity img { height: 38px; }
  .amenity__title { font-size: 9.5px; letter-spacing: 0.14em; }

  .location-card { font-size: 0.95rem; }

  .footer { padding: 28px 20px; font-size: 10.5px; line-height: 1.8; }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .amenity img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .hero h1, .hero__scroll { opacity: 1 !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
