/* ============================================================
   JPGH Developments — shared stylesheet
   Premium, restrained, typography-led.
   ============================================================ */

:root {
  --ink: #16181a;          /* near-black */
  --ink-soft: #3c4043;
  --paper: #faf8f4;        /* warm off-white */
  --paper-dim: #f1ede6;
  --line: #dcd6cb;
  --accent: #9a7b4f;       /* muted bronze */
  --accent-dark: #7d6340;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.brand span { color: var(--accent); }

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  margin-left: 2.2rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active { color: var(--accent-dark); }

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(rgba(22, 24, 26, 0.72), rgba(22, 24, 26, 0.82)),
    var(--ink);
  color: var(--paper);
  padding: 9rem 0 8rem;
  position: relative;
  overflow: hidden;
}

/* subtle blueprint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 248, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 244, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 1.6rem;
}

.hero p.lead {
  max-width: 54ch;
  font-size: 1.05rem;
  color: rgba(250, 248, 244, 0.78);
  margin-bottom: 2.6rem;
}

.btn {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--accent);
  color: var(--paper);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--accent); color: var(--ink); }

.btn.solid { background: var(--accent); color: var(--ink); }
.btn.solid:hover { background: var(--accent-dark); color: var(--paper); }

.btn.dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn.dark:hover { background: var(--ink); color: var(--paper); }

.hero .btn + .btn { margin-left: 1rem; }

/* ---------- Sections ---------- */

section { padding: 6rem 0; }

.section-head {
  margin-bottom: 3.5rem;
  max-width: 62ch;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin: 0.6rem 0 1rem;
}

.section-head p { color: var(--ink-soft); }

.rule {
  width: 56px;
  height: 2px;
  background: var(--accent);
  border: 0;
  margin: 0 0 1.2rem;
}

/* ---------- Services ---------- */

.services { background: var(--paper); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
}

.card .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Approach strip ---------- */

.approach {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.approach-item h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.approach-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Featured project ---------- */

.featured {
  background: var(--ink);
  color: var(--paper);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0.6rem 0 1.2rem;
}

.featured p { color: rgba(250, 248, 244, 0.78); margin-bottom: 1.2rem; }

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  margin-bottom: 1.8rem;
}

/* stylized building mark */
.project-mark {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(250, 248, 244, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(250, 248, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 244, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.project-mark .mark-inner {
  text-align: center;
  font-family: var(--serif);
}

.project-mark .mark-num {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: var(--paper);
}

.project-mark .mark-word {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* ---------- Testimonials ---------- */

.testimonials { background: var(--paper); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

blockquote {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 2.2rem 2rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
}

blockquote footer {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0.6rem 0 1rem;
}

.contact p {
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  color: var(--ink-soft);
}

.contact .rule { margin: 0 auto 1.2rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.6);
  padding: 2.4rem 0;
  font-size: 0.82rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(250, 248, 244, 0.8);
  text-decoration: none;
  margin-left: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-footer a:hover { color: var(--accent); }

/* ============================================================
   120 King project page
   ============================================================ */

.project-hero {
  background:
    linear-gradient(rgba(22, 24, 26, 0.78), rgba(22, 24, 26, 0.88)),
    var(--ink);
  color: var(--paper);
  padding: 8rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 248, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 244, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.project-hero.has-image {
  background-size: cover;
  background-position: center;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5rem;
}

.project-hero.has-image::before { content: none; }

.project-hero .container { position: relative; }

.project-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
}

.project-hero p.lead {
  max-width: 56ch;
  color: rgba(250, 248, 244, 0.78);
  font-size: 1.05rem;
}

/* facts bar */
.facts {
  background: var(--ink);
  border-top: 1px solid rgba(250, 248, 244, 0.14);
  padding: 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: 1.8rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(250, 248, 244, 0.1);
}

.fact:last-child { border-right: 0; }

.fact .label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
  margin-bottom: 0.35rem;
}

.fact .value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--paper);
}

/* narrative */
.narrative-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.narrative-grid h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0.6rem 0 1.2rem;
}

.narrative-grid p { color: var(--ink-soft); margin-bottom: 1.1rem; }

.aside-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 2rem 1.8rem;
}

.aside-panel h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.aside-panel ul { list-style: none; }

.aside-panel li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--paper-dim);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.aside-panel li:last-child { border-bottom: 0; }

.aside-panel li strong { color: var(--ink); font-weight: 600; }

/* gallery */
.gallery-section {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
}

.gallery-figure { margin: 0 0 1.8rem; }

.gallery-figure img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(22, 24, 26, 0.35);
}

.gallery-figure figcaption {
  font-size: 0.82rem;
  color: #8b857a;
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
  max-width: 72ch;
}

.gallery-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.gallery-duo .gallery-figure { margin-bottom: 1.8rem; }

@media (max-width: 880px) {
  .gallery-duo { grid-template-columns: 1fr; gap: 0; }
}

/* timeline */
.timeline-section {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  list-style: none;
  position: relative;
  margin-top: 1rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 2.2rem 1.4rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper-dim);
  border: 2px solid var(--line);
}

.timeline li.done::before { background: var(--accent); border-color: var(--accent); }

.timeline li.current::before {
  background: var(--paper-dim);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(154, 123, 79, 0.2);
}

.timeline .phase {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.timeline h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.2rem 0 0.3rem;
}

.timeline p { font-size: 0.92rem; color: var(--ink-soft); max-width: 60ch; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(250, 248, 244, 0.75);
  max-width: 52ch;
  margin: 0 auto 2.2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .card-grid, .quote-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .narrative-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(250, 248, 244, 0.1); }
  .hero { padding: 6rem 0 5rem; }
  .project-hero { padding: 6rem 0 4.5rem; }
  section { padding: 4rem 0; }
  .site-nav a { margin-left: 1.2rem; }
}

@media (max-width: 560px) {
  .approach-grid { grid-template-columns: 1fr; }
  .hero .btn + .btn { margin-left: 0; margin-top: 0.8rem; }
  .btn { display: block; text-align: center; }
  .site-header .container { flex-direction: column; gap: 0.6rem; }
}
