/* ===== Tokens (shared with intro.hvc.wilcoe.com) ===== */
:root {
  --bg: #FAF8F3;
  --ink: #17181C;
  --ink-soft: #55564F;
  --ink-faint: #8A8A80;
  --line: #E6E1D3;
  --card: #FFFFFF;
  --navy: #1B2A41;
  --brass: #A97A34;
  --brass-soft: #E9D9BC;
  --max: 1200px;

  /* Matches --font-heading on wilcoe.com */
  --font-heading: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: inherit; }

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

/* ===== Masthead ===== */
.masthead { border-bottom: 1px solid var(--line); padding: 20px 0; }

.masthead-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--ink-faint);
}
.masthead-inner strong { color: var(--ink); font-weight: 600; }

/* ===== Hero ===== */
.hero { padding: 84px 0 56px; }

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 640px;
  font-size: 18px; line-height: 1.7;
  color: var(--ink-soft);
}

/* The client's current mark, shown as the starting point */
.current-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 34px;
  padding: 20px 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.current-mark__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.current-mark img {
  width: auto;
  height: 46px;
  display: block;
}

/* Hero: copy left, document preview right */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: start;
}

.hero-copy { padding-top: 4px; }

/* ===== Document preview card ===== */
.doc-card { display: flex; flex-direction: column; max-width: 380px; }

.doc-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-shot img { width: 100%; display: block; }

.doc-shot:hover,
.doc-shot:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(23, 24, 28, 0.14);
  border-color: #D8D0BA;
  outline: none;
}

.doc-open {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%) translateY(6px);
  background: rgba(27, 42, 65, 0.94);
  color: #FAF8F3;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.doc-shot:hover .doc-open,
.doc-shot:focus-visible .doc-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.doc-card figcaption {
  padding: 12px 2px 0;
  display: flex; flex-direction: column; gap: 3px;
}

.doc-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.doc-sub { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }

/* ===== Section heads ===== */
.section-head { margin-bottom: 34px; }

.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 8px; }

.section-sub { color: var(--ink-soft); font-size: 15.5px; }

/* ===== Card gallery ===== */
.gallery-section { padding: 24px 0 84px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

.card { display: flex; flex-direction: column; }

.card-media {
  position: relative;
  aspect-ratio: 750 / 1334;      /* the ProMD card proportion */
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  cursor: zoom-in;
}

.card:hover .card-media {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(23, 24, 28, 0.10);
  border-color: #D8D0BA;
}

/* Empty slot */
.card-media.is-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(27,42,65,0.028) 0 12px, transparent 12px 24px),
    var(--card);
  border-style: dashed;
  border-color: #DCD5C2;
}

.ph-num {
  font-family: var(--font-heading);
  font-size: 34px; font-weight: 700;
  color: #CFC6AE; letter-spacing: -0.02em;
}

.ph-note { font-size: 12px; color: var(--ink-faint); padding: 0 16px; text-align: center; }

.card figcaption {
  padding: 12px 2px 0;
  display: flex; flex-direction: column; gap: 2px;
}

.card-brand { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.card-sector { font-size: 13px; color: var(--ink-faint); line-height: 1.45; }

/* ===== Identity applied (apparel sheets) ===== */
.apparel { padding: 8px 0 88px; }

.apparel .section-sub { max-width: 660px; }

.apparel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sheet { display: flex; flex-direction: column; }

.sheet-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Reserve the sheet's proportion before the image loads. Without this the
   element collapses to 0px, and a lazy image that never intersects the
   viewport never starts loading. */
.sheet-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1100 / 1424;
  object-fit: cover;
}

.sheet-shot:hover,
.sheet-shot:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(23, 24, 28, 0.12);
  border-color: #D8D0BA;
  outline: none;
}

.sheet figcaption {
  padding: 11px 2px 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== Process ===== */
.process { background: var(--navy); padding: 80px 0; }

.process-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-soft);
  border: 1px solid rgba(233, 217, 188, 0.35);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 22px;
}

.process h2 {
  color: #FAF8F3;
  font-size: clamp(26px, 3.6vw, 40px);
  max-width: 700px; margin-bottom: 16px;
}

.process-lead {
  color: rgba(250, 248, 243, 0.72);
  max-width: 660px; font-size: 16px; line-height: 1.7;
  margin-bottom: 40px;
}

.process-shot { margin-bottom: 44px; }

.process-shot img {
  width: 100%; display: block;
  border-radius: 14px;
  border: 1px solid rgba(250, 248, 243, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.process-shot figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(250, 248, 243, 0.6);
}

.process-shot figcaption a {
  color: var(--brass-soft);
  font-weight: 600; text-decoration: none;
  margin-left: 6px; white-space: nowrap;
}
.process-shot figcaption a:hover { text-decoration: underline; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step {
  background: rgba(250, 248, 243, 0.05);
  border: 1px solid rgba(250, 248, 243, 0.1);
  border-radius: 14px;
  padding: 24px 22px;
}

.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 100px;
  background: rgba(233, 217, 188, 0.14);
  color: var(--brass-soft);
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700;
  margin-bottom: 14px;
}

.step h3 { color: #FAF8F3; font-size: 16px; margin-bottom: 6px; }

.step p { color: rgba(250, 248, 243, 0.62); font-size: 14px; line-height: 1.6; }

/* ===== CTA ===== */
.cta { padding: 84px 0; text-align: center; }

.cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }

.cta p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 28px; }

.btn {
  display: inline-flex; align-items: center;
  padding: 15px 34px;
  background: var(--navy); color: #FAF8F3;
  font-size: 15.5px; font-weight: 600;
  border-radius: 100px; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(27, 42, 65, 0.26); }

/* ===== Footer ===== */
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--ink-faint);
}

.footer-inner a { text-decoration: none; color: var(--ink-faint); }
.footer-inner a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 16px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 18, 20, 0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(460px, 92vw);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Apparel sheets are letter-shaped, so they get more room */
.lightbox.is-wide img { max-width: min(880px, 94vw); }

.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  width: 42px; height: 42px;
  border: 0; border-radius: 100px;
  background: rgba(250, 248, 243, 0.1);
  color: #FAF8F3; font-size: 26px; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(250, 248, 243, 0.2); }

/* ===== Full-screen document viewer ===== */
.docview {
  position: fixed; inset: 0; z-index: 110;
  background: #111214;
  display: flex; flex-direction: column;
}
.docview[hidden] { display: none; }

.docview-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(250, 248, 243, 0.12);
}

.docview-title {
  font-size: 13.5px; font-weight: 600;
  color: rgba(250, 248, 243, 0.9);
}

.docview-actions { display: flex; align-items: center; gap: 14px; }

.docview-link {
  font-size: 13px; font-weight: 600;
  color: var(--brass-soft);
  text-decoration: none;
  white-space: nowrap;
}
.docview-link:hover { text-decoration: underline; }

.docview-close {
  width: 38px; height: 38px;
  border: 0; border-radius: 100px;
  background: rgba(250, 248, 243, 0.1);
  color: #FAF8F3; font-size: 24px; line-height: 1;
  cursor: pointer;
}
.docview-close:hover { background: rgba(250, 248, 243, 0.2); }

.docview-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  display: flex; flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.docview-page {
  flex: 0 0 auto;
  max-width: min(820px, 100%);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #FAF8F3;
}

.docview-fallback {
  flex: 0 0 auto;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(250, 248, 243, 0.55);
  text-align: center;
}
.docview-fallback a { color: var(--brass-soft); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .doc-card { max-width: 340px; }
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .apparel-grid { grid-template-columns: 1fr; gap: 28px; }
  .sheet { max-width: 520px; }
}

@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 60px 0 44px; }
  .masthead-inner { font-size: 12px; }
}
