/* Prospero West Projects | site styles
   Concept: each page is a sheet from a drawing set, with a title block. */

:root {
  --navy: #035581;
  --navy-deep: #023a58;
  --grey: #aaaaaa;
  --ink: #1d2830;
  --paper: #f7f9fa;
  --line: #c9d1d6;
  --mud: #e7eaeb;
  --max: 72rem;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; font-stretch: 105%; }
p { margin: 0 0 1em; max-width: 38em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-family: var(--display); font-size: 1rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav .call { color: #fff; background: var(--navy); padding: 0.45rem 0.9rem; border: 0; border-radius: 3px; }
.nav .call:hover { background: var(--navy-deep); color: #fff; }

/* Hero: the dimensioned drawing */
.hero { padding: 4rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.3rem; }
.drawing { background: #fff; border: 1px solid var(--line); padding: 1rem; }
.drawing figcaption {
  font-family: var(--display); font-size: 0.85rem; color: #5b6870;
  border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 0.5rem;
  display: flex; justify-content: space-between; gap: 1rem;
}

.btn {
  display: inline-block; font-family: var(--display); font-weight: 600;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 0.8rem 1.3rem; border-radius: 3px; margin: 0.4rem 0.6rem 0.4rem 0;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* Sections */
section { padding: 3.5rem 0; }
section.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 1.6rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.service + .service { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--navy); text-decoration: underline; }
.service p { font-size: 1rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 0.8rem; font-size: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--navy); display: block; }
.steps strong { font-family: var(--display); font-size: 1.1rem; display: block; margin-bottom: 0.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* Photo placeholders: stay obvious until real job photos go in */
.photo {
  aspect-ratio: 4 / 3; background: var(--mud);
  border: 2px dashed var(--grey); display: grid; place-items: center;
  font-family: var(--display); font-size: 0.95rem; color: #5b6870; text-align: center; padding: 1rem;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }

ul.ticks { padding-left: 1.2rem; }
ul.ticks li { margin-bottom: 0.4rem; }

.areas { font-family: var(--display); font-size: 1.05rem; }

/* Contact */
.contact-card { background: #fff; border: 1px solid var(--line); padding: 1.6rem; }
.contact-card dt { font-family: var(--display); font-weight: 600; margin-top: 0.8rem; }
.contact-card dd { margin: 0; font-size: 1.2rem; }
form label { display: block; font-family: var(--display); font-weight: 600; margin: 1rem 0 0.3rem; }
form input, form select, form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem;
  border: 1px solid #8f9ca4; border-radius: 3px; background: #fff; color: var(--ink);
}
form textarea { min-height: 9rem; }
form button { font: inherit; font-family: var(--display); font-weight: 600; border: 0; cursor: pointer; margin-top: 1.2rem; }
.form-note { font-size: 0.95rem; color: #4b5860; margin-top: 0.8rem; }
.form-status { font-family: var(--display); margin-top: 1rem; padding: 0.8rem 1rem; border-left: 4px solid var(--navy); background: #fff; display: none; }

/* Title block footer */
.title-block { background: #fff; border-top: 2px solid var(--ink); margin-top: 2rem; }
.title-block .wrap { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr 1fr; padding: 0; }
.tb-cell { padding: 1rem 1.2rem; border-right: 1px solid var(--line); font-size: 0.95rem; }
.tb-cell:last-child { border-right: 0; }
.tb-cell .k { font-family: var(--display); font-size: 0.8rem; color: #5b6870; display: block; }
.tb-cell .v { font-family: var(--display); font-weight: 600; }
.tb-cell img { height: 34px; width: auto; margin-bottom: 0.3rem; }
.copyright { text-align: center; font-size: 0.85rem; color: #5b6870; padding: 0.8rem 0 1.2rem; }

@media (max-width: 56rem) {
  .steps { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .services, .gallery { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 1.4rem 0; border-left: 0; }
  .title-block .wrap { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(2) { border-right: 0; }
  .tb-cell { border-bottom: 1px solid var(--line); }
}
@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 0.6rem; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 1.1rem; padding-bottom: 0.3rem; white-space: nowrap; }
  .nav .call { position: absolute; top: 1rem; right: 1.5rem; }
  .site-header { position: relative; }
  .brand img { height: 34px; }
  .nav .call { padding: 0.35rem 0.7rem; font-size: 0.9rem; }
  .title-block .wrap { grid-template-columns: 1fr; }
  .tb-cell { border-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .dim { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-out 0.3s forwards; }
  .dim-text { opacity: 0; animation: show 0.4s ease-out 1.6s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes show { to { opacity: 1; } }
}

/* ---- Contrast pass: blueprint hero and dark bands ---- */
.blueprint-hero { background: var(--navy-deep); color: #fff; padding: 5rem 0 4.5rem; }
.blueprint-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.blueprint-hero p.lead { color: #dbe7ee; }
.blueprint-hero .btn { background: #fff; color: var(--navy-deep); }
.blueprint-hero .btn:hover { background: #dbe7ee; color: var(--navy-deep); }
.blueprint-hero .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.blueprint-hero .btn.ghost:hover { background: #fff; color: var(--navy-deep); }
.blueprint { margin: 0; border: 1px solid rgba(255,255,255,.35); padding: 0.8rem; background: var(--navy); }
.blueprint figcaption { font-family: var(--display); font-size: 0.85rem; color: #cfe0ea; border-top: 1px solid rgba(255,255,255,.3); margin-top: 0.6rem; padding-top: 0.5rem; display: flex; justify-content: space-between; }
section.dark { background: var(--ink); color: #fff; }
section.dark h2, section.dark strong { color: #fff; }
section.dark .steps li { border-top-color: #9fc3d8; color: #d6dde1; }
section.dark .steps li::before { color: #9fc3d8; }
.services { border-top: 3px solid var(--navy); }
.service h3 { font-size: 1.5rem; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.site-header { position: sticky; top: 0; z-index: 10; }

.creds { background: #fff; border-bottom: 1px solid var(--line); padding: 0; }
.creds .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.cred { padding: 1.8rem 1.5rem 1.8rem 0; display: flex; align-items: baseline; gap: 0.9rem; }
.cred + .cred { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.cred .n { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 3.2rem; line-height: 1; color: var(--navy); }
.cred .t { font-family: var(--display); font-size: 1.05rem; line-height: 1.3; max-width: 14em; }
@media (max-width: 56rem) { .creds .wrap { grid-template-columns: 1fr; } .cred, .cred + .cred { padding: 1.1rem 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Variant: drawing as full-width hero background */
.blueprint-hero { position: relative; overflow: hidden; }
.blueprint-hero .wrap { grid-template-columns: 1fr; position: relative; z-index: 1; }
.blueprint-hero .wrap > div { max-width: 40rem; }
.blueprint-hero .blueprint { position: absolute; inset: 0; z-index: 0; border: 0; padding: 0; background: transparent; }
.blueprint-hero .blueprint svg { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 70%; height: auto; opacity: .22; }
.blueprint-hero .blueprint figcaption { display: none; }
.blueprint-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
.blueprint-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 38%, rgba(2,58,88,.35) 80%); z-index: 0; }
@media (max-width: 56rem) { .blueprint-hero .blueprint svg { width: 130%; right: -45%; opacity: .14; } }

/* Home lower half */
.featured { padding: 3rem 0 1rem; }
.feature-photo { aspect-ratio: 21 / 9; font-size: 1.1rem; }
.feature-cap { font-family: var(--display); margin-top: 0.7rem; color: #4b5860; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); color: var(--ink); text-decoration: none; }
.card .photo { border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
.card h3, .card p, .card .more { padding: 0 1.3rem; }
.card h3 { margin-top: 1.2rem; font-size: 1.4rem; }
.card p { font-size: 1rem; }
.card .more { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); padding-bottom: 1.3rem; text-decoration: underline; text-underline-offset: .2em; }
.card:hover { border-color: var(--navy); }
.card:hover h3 { color: var(--navy); }
.trust { background: #fff; border-left: 4px solid var(--navy); padding: 0.9rem 1.1rem; font-size: 1rem; }
.cta-band { background: var(--navy-deep); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7ee; font-size: 1.2rem; }
.cta-band .btn { background: #fff; color: var(--navy-deep); }
.cta-band .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.cta-band .btn.ghost:hover { background: #fff; color: var(--navy-deep); }
.title-block { margin-top: 0; }
@media (max-width: 56rem) { .cards { grid-template-columns: 1fr; } .feature-photo { aspect-ratio: 4 / 3; } }

.blueprint-hero .blueprint img { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: 68%; max-width: none; height: auto; opacity: .3; }
@media (max-width: 56rem) { .blueprint-hero .blueprint img { width: 150%; right: -60%; opacity: .16; } }
