/* Pacific Additive Engineering: site styles. Brand tokens live here only. */
:root {
  --navy: #16284A;
  --ink: #0E1A30;
  --sand: #F3EDE2;
  --sand-deep: #E8DECB;
  --paper: #FFFDF9;
  --coral: #E07A5F;
  --muted: #4A5872;
  --line: #DCD1BD;
  --radius: 10px;
  --wrap: 1120px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--coral); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; scroll-margin-top: 64px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 18px; height: 4px; border-radius: 2px;
  background: var(--coral); vertical-align: middle; margin-right: 8px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand-deep); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; background: var(--navy); color: var(--sand) !important; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; box-shadow: inset 0 -3px 0 var(--coral);
}
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); box-shadow: none; }
.btn.ghost:hover { background: var(--sand-deep); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.layers {
  /* the brand motif: stacked print layers with a coral first layer */
  height: 64px; margin-top: 40px; border-radius: 6px;
  background:
    linear-gradient(var(--coral), var(--coral)) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(to bottom, var(--navy) 0 8px, transparent 8px 14px);
  opacity: .9;
}

/* Audience cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--navy); transform: translateY(-2px); }
.card .tag { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--sand);
  font-size: .85rem; margin-right: 10px;
}

/* Portfolio gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.work { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.work .thumb { aspect-ratio: 4 / 3; background: var(--sand-deep); position: relative; overflow: hidden; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work .thumb.placeholder {
  background:
    linear-gradient(var(--coral), var(--coral)) left 20px bottom 20px / 40% 6px no-repeat,
    repeating-linear-gradient(to bottom, rgba(22,40,74,.14) 0 6px, transparent 6px 11px),
    var(--sand-deep);
}
.work .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.work h3 { font-size: 1.02rem; margin: 0; }
.work p { font-size: .92rem; color: var(--muted); margin: 0; }
.work .meta { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; font-size: .78rem; }
.badge { padding: 2px 8px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.badge.delivered { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.credit { font-size: .75rem; color: var(--muted); }
.gallery-empty { color: var(--muted); }

/* Materials list */
.materials { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.material { border-left: 4px solid var(--coral); background: var(--paper); padding: 14px 16px; border-radius: 0 10px 10px 0; }
.material strong { color: var(--navy); display: block; }
.material span { color: var(--muted); font-size: .92rem; }

/* Quote form */
.quote { background: var(--navy); color: var(--sand); }
.quote h2, .quote h3 { color: var(--sand); }
.quote .lead { color: #C9D1E0; }
form.quote-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 500; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: 8px; border: 1px solid #3A4E73;
  background: #1D3259; color: var(--sand);
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #8E9AB3; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.quote-form .btn { background: var(--coral); color: var(--ink) !important; box-shadow: none; justify-self: start; }
.quote-form .btn:hover { background: #EA8D74; }
.form-note { font-size: .88rem; color: #C9D1E0; }
.form-status { font-weight: 600; }
.form-status.error { color: #FFB4A2; }

/* Footer */
.site-footer { background: var(--ink); color: #B7C0D1; padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer img { height: 28px; width: auto; }
.site-footer a { color: var(--sand); }

/* Small screens */
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .menu-toggle {
    display: inline-flex; background: none; border: 1.5px solid var(--navy); color: var(--navy);
    border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 600;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--sand);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; text-align: center; }
  form.quote-form { grid-template-columns: 1fr; }
}
