/* Projects, Contact, Thank-you and 404 pages (built in build.py) */

/* ---------- Page hero ---------- */
.pg-hero { position: relative; overflow: hidden; min-height: 440px; display: flex; align-items: center; justify-content: center; text-align: center; }
.pg-hero--short { min-height: 360px; }
.pg-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,27,42,.62), rgba(13,27,42,.88)); z-index: 1; }
.pg-hero-in { position: relative; z-index: 2; padding: 72px 24px; max-width: 820px; }
.pg-hero h1 { font-family: var(--serif); font-weight: 900; font-size: 60px; line-height: 1.05; margin: 0 0 14px; }
.pg-hero-sub { font-size: 18px; font-weight: 300; color: var(--w75); margin: 0; line-height: 1.6; }
.pg-hero .site-eyebrow::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin: 12px auto 0; }

.pg-intro { background: var(--navy-mid); padding: 56px 24px; border-bottom: 1px solid rgba(201,168,76,.18); }
.pg-intro p { max-width: 860px; margin: 0 auto; text-align: center; font-family: var(--serif); font-size: 20px; line-height: 1.75; color: rgba(255,255,255,.86); }
.pg-h2 { font-family: var(--serif); font-size: 36px; font-weight: 700; margin: 0 0 32px; line-height: 1.15; }

/* ---------- Buttons / CTA ---------- */
.pg-btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 1px solid var(--gold);
  background: var(--gold); color: var(--navy); padding: 15px 30px;
  font: 600 12px var(--sans); letter-spacing: 1.5px; text-transform: uppercase; transition: background .2s, color .2s;
}
.pg-btn:hover { background: var(--gold-h); border-color: var(--gold-h); }
.pg-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.pg-btn--ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.pg-cta { background: var(--gold); color: var(--navy); text-align: center; padding: 56px 24px; }
.pg-cta h2 { font-family: var(--serif); font-size: 34px; font-weight: 900; margin: 0 0 8px; }
.pg-cta p { margin: 0 0 24px; font-size: 16px; color: rgba(13,27,42,.75); }
.pg-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pg-cta .pg-btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.pg-cta .pg-btn:hover { background: var(--navy-deep); }
.pg-cta .pg-btn--ghost { background: transparent; color: var(--navy); border-color: rgba(13,27,42,.5); }
.pg-cta .pg-btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: transparent; }

/* ---------- Projects ---------- */
.pj-sec { padding: 72px 44px; max-width: 1280px; margin: 0 auto; }
.pj-sec--alt { max-width: none; background: var(--navy-mid); }
.pj-sec--alt > * { max-width: 1192px; margin-left: auto; margin-right: auto; }
.pj-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pj-g { display: block; overflow: hidden; grid-column: span 2; aspect-ratio: 3 / 4; background: var(--navy-deep); }
.pj-g:nth-child(1), .pj-g:nth-child(2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.pj-g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pj-g:hover img { transform: scale(1.04); }

.pj-pair { margin: 0 auto 48px; }
.pj-pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pj-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-deep); }
.pj-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-tag { position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(10,21,32,.85); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 12px; }
.pj-tag--after { background: var(--gold); color: var(--navy); }
.pj-pair figcaption { font-size: 14px; color: var(--w75); margin-top: 12px; line-height: 1.6; }
.pj-review { margin: 8px auto 56px; padding: 40px 48px; border-left: 3px solid var(--gold); background: rgba(10,21,32,.6); }
.pj-review p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.7; margin: 0 0 14px; color: rgba(255,255,255,.9); }
.pj-review footer { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

.pj-gallery--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; }
.pj-gallery--3 .pj-g, .pj-gallery--3 .pj-g:nth-child(1), .pj-gallery--3 .pj-g:nth-child(2) { grid-column: span 1; aspect-ratio: 4 / 3; }

/* ---------- Contact ---------- */
.ct { max-width: 1200px; margin: 0 auto; padding: 72px 44px; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.ct-side img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ct-details { background: var(--navy-mid); border-top: 3px solid var(--gold); padding: 24px 28px; margin-bottom: 6px; }
.ct-details h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 12px; }
.ct-details p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--w75); }
.ct-details a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.5); }
.ct-form { display: grid; gap: 18px; }
.ct-row { display: grid; gap: 18px; }
.ct-row--2 { grid-template-columns: 1fr 1fr; }
.ct-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .6px; color: var(--w75); }
.ct-form label b { color: var(--gold); font-weight: 600; }
.ct-form input, .ct-form textarea, .ct-form select {
  font: 400 16px var(--sans); color: #fff; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.2); padding: 13px 14px; width: 100%; border-radius: 0;
}
.ct-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.ct-form select option { color: #000; }
.ct-form input[type="date"] { color-scheme: dark; }
.ct-form input:focus, .ct-form textarea:focus, .ct-form select:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
.ct-form .pg-btn { justify-self: start; padding: 16px 44px; }

/* ---------- Simple pages ---------- */
.pg-simple { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 24px; }
.pg-simple h1 { font-family: var(--serif); font-size: 52px; font-weight: 900; margin: 0 0 14px; }
.pg-simple p { color: var(--w75); font-size: 17px; margin: 0 0 28px; max-width: 520px; line-height: 1.7; }

@media (max-width: 900px) {
  .ct { grid-template-columns: 1fr; padding: 52px 22px; gap: 36px; }
  .ct-side { order: 2; }
}
@media (max-width: 767px) {
  .pg-hero { min-height: 340px; }
  .pg-hero h1 { font-size: 40px; }
  .pg-hero-sub { font-size: 16px; }
  .pg-intro { padding: 40px 22px; }
  .pg-intro p { font-size: 17px; }
  .pg-h2 { font-size: 28px; margin-bottom: 24px; }
  .pj-sec { padding: 52px 22px; }
  .pj-gallery { grid-template-columns: 1fr 1fr; }
  .pj-g, .pj-g:nth-child(1), .pj-g:nth-child(2) { grid-column: span 1; aspect-ratio: 3 / 4; }
  .pj-g:nth-child(5) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .pj-gallery--3 { grid-template-columns: 1fr 1fr; }
  .pj-gallery--3 .pj-g:nth-child(1) { grid-column: span 2; }
  .pj-gallery--3 .pj-g:nth-child(n) { aspect-ratio: 4 / 3; }
  .pj-pair-imgs { grid-template-columns: 1fr; }
  .pj-review { padding: 28px 22px; }
  .pj-review p { font-size: 18px; }
  .ct-row--2 { grid-template-columns: 1fr; }
  .ct-form .pg-btn { justify-self: stretch; text-align: center; }
  .pg-simple h1 { font-size: 38px; }
  .pg-cta h2 { font-size: 28px; }
}
