/* ===========================================================
   PALMER & CO — Design System
   Grounded in the brand's existing language: safety-orange +
   charcoal, diagonal-cut panels, the rounded "site tag" badge.
   Typographic pairing: Archivo (bold, industrial display) +
   Work Sans (body) + IBM Plex Mono (spec/measurement data).
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800;900&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #232323;
  --ink-soft: #34322f;
  --signal: #EE7C0E;
  --signal-dark: #c9660a;
  --paper: #FAFAF8;
  --paper-dim: #F0EEE9;
  --line: #E1DED7;
  --steel: #6b6863;
  --white: #ffffff;

  --display: 'Archivo', sans-serif;
  --body: 'Work Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--display); margin: 0; line-height: 1.05; }
p { margin: 0 0 1em 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Eyebrow / spec-tag system (signature element) ----------
   A "spec tag" mimics a site permit / materials tag: uppercase
   label, monospace value, hairline border. Used for nav eyebrow,
   project stats, and section kickers throughout the site. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-dark);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--signal);
  display: inline-block;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 22px 0;
}
.spec-chip {
  flex: 1 1 120px;
  background: var(--paper);
  padding: 12px 16px;
}
.spec-chip .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.spec-chip .v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
}
.dark .spec-chip { background: var(--ink-soft); }
.dark .spec-chip .v { color: var(--white); }
.dark .spec-chip .k { color: #9c988f; }

/* ---------- Diagonal-cut panel (signature motif, carried over
   from the brand's existing Canva materials) ---------- */
.cut-corner {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 82%);
}
.cut-corner-top {
  clip-path: polygon(0 0, 22% 0, 100% 78%, 100% 100%, 0 100%);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--signal);
  overflow: visible;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding: 10px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo {
  position: absolute;
  left: 28px;
  top: 6px;
  z-index: 20;
}
.nav-logo img { height: 150px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #d8d5cd;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--signal);
}
.nav-cta {
  background: var(--signal);
  color: var(--ink) !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 2px;
  border-bottom: none !important;
}
.nav-cta:hover { background: #ffa338; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: var(--ink);
    padding: 18px 28px 26px;
    gap: 16px;
    border-bottom: 3px solid var(--signal);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--signal);
  color: var(--ink);
}
.btn-primary:hover { background: #ffa338; }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35,35,35,0.97) 30%, rgba(35,35,35,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 28px;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 900;
  text-transform: uppercase;
  max-width: 720px;
}
.hero-content .sub {
  font-size: 18px;
  color: #d8d5cd;
  max-width: 480px;
  margin: 18px 0 30px 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 46px;
}
.page-header h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  text-transform: uppercase;
}
.page-header p {
  color: #d8d5cd;
  max-width: 560px;
  margin-top: 12px;
  font-size: 16px;
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 50px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 10px;
  text-transform: uppercase;
}
.dark { background: var(--ink); color: var(--white); }
.dim { background: var(--paper-dim); }

/* ---------- Grids & Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.card .num {
  font-family: var(--mono);
  color: var(--signal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.card p { color: var(--steel); font-size: 14.5px; margin-bottom: 0; }

/* ---------- Stats strip ---------- */
.stats {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 50px 0;
}
.stats .stat { flex: 1; padding: 24px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats .stat:last-child { border-right: none; }
.stats .stat .n {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
}
.stats .stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 4px;
}

/* ---------- Project cards ---------- */
.proj-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proj-card .img { height: 240px; background-size: cover; background-position: center 35%; }
.proj-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.proj-card h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 6px; }
.proj-card .client { font-family: var(--mono); font-size: 12px; color: var(--signal-dark); margin-bottom: 10px; }
.proj-card p { color: var(--steel); font-size: 14px; flex: 1; }
.proj-card .more { font-weight: 700; font-size: 13.5px; margin-top: 12px; }
.proj-card .more::after { content: ' \2192'; }

/* Full case-study block (used on portfolio page) */
.case {
  border: 1px solid var(--line);
  margin-bottom: 50px;
  background: var(--white);
}
.case .top { display: grid; grid-template-columns: 1.1fr 1fr; }
.case .photo { background-size: cover; background-position: center 35%; min-height: 380px; }
.case .content { padding: 40px; }
.case h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 4px; }
.case .tag { font-family: var(--mono); color: var(--signal-dark); font-size: 12.5px; margin-bottom: 16px; display:block; }
.case p { color: var(--ink-soft); font-size: 15px; }
.case blockquote {
  margin: 18px 0 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--signal);
  background: var(--paper-dim);
  font-style: italic;
  font-size: 14.5px;
}
.case blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  margin-top: 8px;
}
.case .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
}
.case .gallery div { height: 190px; background-size: cover; background-position: center 30%; }
@media (max-width: 800px) {
  .case .top { grid-template-columns: 1fr; }
  .case .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Team ---------- */
.team-lead {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .team-lead { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: left; }
.team-card .photo {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: top center;
  margin-bottom: 12px;
  filter: grayscale(1);
  border: 1px solid var(--line);
}
.team-card h4 { font-size: 16px; text-transform: uppercase; }
.team-card .role { font-family: var(--mono); font-size: 11.5px; color: var(--signal-dark); text-transform: uppercase; margin-top: 2px; }

.crew-photo { border: 1px solid var(--line); }

/* ---------- Clients ---------- */
.clients-strip { border: 1px solid var(--line); background: var(--white); padding: 10px; }

/* ---------- Testimonials ---------- */
.testi {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
  border-top: 3px solid var(--signal);
}
.testi p { font-size: 16px; font-style: italic; color: var(--ink-soft); }
.testi cite { font-family: var(--mono); font-size: 12px; color: var(--steel); font-style: normal; display: block; margin-top: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8d5cd;
  padding: 56px 0 26px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--mono);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--signal); }
.footer-bottom {
  border-top: 1px solid #3a3833;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #8f8c85;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 10px;
  color: var(--steel);
}
