/* Styles for the static pages (about/, projects/*, services/*).
   They mirror the project view and panels in index.html so a visitor
   arriving from search sees the same site. */

@font-face {
  font-family: 'Chivo';
  src: url(../fonts/chivo-latin-400-700.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url(../fonts/archivo-black-latin-400.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: #FFFFFF;
  color: #000;
  font-family: 'Chivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ----- Header: INFO · JWP INTERIORS · CONTACT ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;               /* above the INFO / CONTACT panels, as on the homepage */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 24px;
  background: #FFFFFF;
  transition: background-color 0.45s ease;
}
.site-header .nav-btn,
.site-header .wordmark { transition: color 0.45s ease; }
.site-header .nav-btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-decoration: none;
  padding: 14px;
  margin: -14px;
}
.site-header .nav-btn:last-child { justify-self: end; }
.site-header .wordmark {
  font-family: 'Archivo Black', 'Chivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  line-height: 0.9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

/* ----- Project hero (image + card), as in the project view ----- */
.project-hero {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hero-left {
  width: 100%;
  height: 46vh;
  height: 46svh;
  object-fit: cover;
  background: #F2F2F2;
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 8px;
}
.hero-card {
  width: min(68vw, calc((54vh - 110px) * 0.75));
  width: min(68vw, calc((54svh - 110px) * 0.75));
  min-width: 160px;
}
.hero-card img, .card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #F2F2F2;
}
.meta { margin-top: 18px; }
.meta .card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.meta .card-tag {
  font-size: 13px;
  color: #595959;
}

/* ----- Text column ----- */
.page-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
}
.page-body h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.page-body h2.page-sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #595959;
  margin-bottom: 28px;
}
.page-body p {
  font-size: 14px;
  color: #595959;
  line-height: 1.75;
  margin: 24px 0;
}
.page-body p a { color: #000; }
.page-body .closing {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: #000;
  margin: 48px 0;
}
.page-body .scope,
.page-body .credit {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.page-body .credit { color: #8A8A8A; }
.page-body .img-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px 0;
}
.page-body .img-pair img,
.page-body .single-wide,
.page-body .portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #F2F2F2;
}
.page-body .single-wide { margin: 36px 0; }
.page-body .portrait { aspect-ratio: 804 / 1000; margin-bottom: 36px; }

/* ----- Services overview list ----- */
.service-list { list-style: none; margin-top: 48px; }
.service-list li { padding: 28px 0; border-top: 1px solid #E5E5E5; }
.service-list li:last-child { border-bottom: 1px solid #E5E5E5; }
.service-list h3 { font-size: 20px; font-weight: 500; }
.service-list h3 a { color: #000; text-decoration: none; }
.service-list h3 a:hover { text-decoration: underline; }
.page-body .service-list .service-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 6px 0 10px;
}
.page-body .service-list p { margin: 0; }

.related {
  margin-top: 48px;
  font-size: 13px;
  color: #595959;
}
.related a { color: #000; }

/* ----- Card grid (more work / service pages) ----- */
.card-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.card-grid > h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.card-grid ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
}
.card { display: block; text-decoration: none; }
@media (hover: hover) {
  .card img { transition: opacity 0.4s ease; }
  .card:hover img { opacity: 0.7; }
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid #E5E5E5;
  padding: 40px 24px 48px;
  font-size: 12px;
  line-height: 1.8;
  color: #595959;
  text-align: center;
}
.site-footer strong { color: #000; font-weight: 700; }
.site-footer a { color: #000; }

/* ----- About page: matches the homepage INFO panel ----- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body.info-page { background: #000; color: #FFF; }
.info-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}
.info-body p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.info-body p a { color: #FFF; }
.info-body .about-quote {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 40px 0 0;
}
body.info-page .site-footer { border-top-color: #333; color: #BFBFBF; }
body.info-page .site-footer strong,
body.info-page .site-footer a { color: #FFF; }
body.info-page .site-header { background: #000; color: #FFF; }

/* ----- INFO / CONTACT panels (same as the homepage; driven by js/panels.js) ----- */
body.panel-open { overflow: hidden; }
body.info-open .site-header,
body.contact-open .site-header { background: transparent; color: #FFF; }

.info-bg, .contact-bg {
  position: fixed; inset: 0;
  background: #000000;
  z-index: 14;
  transform: translateY(-100%);
  will-change: transform;
}
.info-bg.show, .contact-bg.show { transform: translateY(0); }
.info-bg.closing, .contact-bg.closing { transform: translateY(-100%); }

.info-content, .contact-content {
  position: fixed; inset: 0;
  z-index: 16;
  pointer-events: none;      /* clicks pass through to the bg unless on children */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.info-text, .contact-text { pointer-events: auto; }

.info-text {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  text-align: center;
}
.info-paragraphs, .contact-paragraphs { display: flex; flex-direction: column; gap: 18px; }

.contact-text {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 24px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.info-p, .contact-p {
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}
.info-quote, .contact-quote {
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}
.info-p.show, .contact-p.show,
.info-quote.show, .contact-quote.show { opacity: 1; }

.contact-p a, .contact-quote a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.3s ease;
}
.contact-quote a { border-bottom-color: rgba(255,255,255,0.5); }
.contact-p a:hover, .contact-quote a:hover { border-color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .info-p, .contact-p, .info-quote, .contact-quote { transition-duration: 0.01s; }
}

/* ===================== Tablet (481px and up) ===================== */
@media (min-width: 481px) {
  .hero-card {
    width: min(52vw, calc((54vh - 110px) * 0.75));
    width: min(52vw, calc((54svh - 110px) * 0.75));
    min-width: 180px;
  }
  .card-grid ul { grid-template-columns: repeat(3, 1fr); }
  .page-body .closing { font-size: 28px; }
  .info-body .about-quote,
  .info-quote, .contact-quote { font-size: 28px; }
}

/* ===================== Desktop (901px and up) ===================== */
@media (min-width: 901px) {
  .site-header { padding: 30px 48px; }
  .site-header .nav-btn { font-size: 12px; letter-spacing: 0.22em; }
  .site-header .wordmark { font-size: 29px; }

  .project-hero { flex-direction: row; height: calc(100vh - 89px); }
  .hero-left { width: 50vw; height: 100%; }
  .hero-right { width: 50vw; padding: 0; }
  .hero-card { width: 22vw; min-width: 220px; }

  .page-body { padding: 100px 24px 80px; }
  .info-body { padding: 80px 24px 100px; }

  .info-text {
    position: absolute;
    left: 50%;
    top: 110px;
    bottom: 40px;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 620px;
    min-height: 0;
    padding: 0;
  }
  .contact-text {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 640px;
    min-height: 0;
    padding: 0;
  }
  .page-body .img-pair { grid-template-columns: 1fr 1fr; }
  .card-grid { padding: 20px 48px 100px; }
  .card-grid ul { grid-template-columns: repeat(4, 1fr); gap: 48px 3vw; }
}
