/* =========================================================
   89er Creative Co. — Brand tokens (sampled from logo files)
   ========================================================= */
:root {
  --navy: #1E2A38;
  --navy-deep: #16202B;
  --rust: #A4472B;
  --rust-dark: #8A3B23;
  --cream: #F4EEE3;
  --cream-dark: #E8DFCF;
  --ink: #1E2A38;
  --muted: #5A6472;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --radius: 14px;
  --container: 1160px;
  --shadow: 0 10px 30px rgba(30, 42, 56, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--rust); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-slab);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--rust);
  margin-bottom: .75em;
}
.eyebrow-light { color: #E07A55; }
.rule { width: 72px; height: 5px; background: var(--rust); margin: 1rem 0 0; }
.accent { color: var(--rust); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-slab);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  text-decoration: none;
  color: var(--cream);
  background: var(--rust);
  border: 2px solid var(--rust);
  padding: .95em 1.6em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-light { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-small { padding: .65em 1.2em; font-size: .75rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .filter:focus-visible, .site-nav a:focus-visible { outline: 3px solid #E07A55; outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(244, 238, 227, .08);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  color: var(--cream); text-decoration: none;
  font-family: var(--font-slab); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 3px; width: 0;
  background: var(--rust); transition: width .25s;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--cream); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(5rem, 11vw, 8.5rem);
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); margin-bottom: .4em; }
.hero .lede { font-size: 1.2rem; max-width: 36ch; color: rgba(244, 238, 227, .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-badge img {
  width: min(100%, 420px); margin-inline: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* Nod to 3D printing: subtle "layer lines" at the hero base */
.layer-lines {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: repeating-linear-gradient(to bottom, transparent 0 6px, rgba(164, 71, 43, .35) 6px 8px);
  mask-image: linear-gradient(to bottom, transparent, #000);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-head { margin-bottom: 3rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow); border-top: 6px solid var(--rust);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,42,56,.18); }
.service-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 32px; height: 32px; }
.service-card p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li { padding: .45rem 0 .45rem 1.75rem; position: relative; border-bottom: 1px dashed var(--cream-dark); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--rust); transform: translateY(-50%); }

.combo-banner {
  margin-top: 2rem; padding: 2rem 2.5rem; border-radius: var(--radius);
  background: var(--rust); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.combo-banner h3 { margin-bottom: .25em; }
.combo-banner p { margin: 0; max-width: 60ch; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--font-slab); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  padding: .6em 1.3em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
  transition: background .2s, color .2s;
}
.filter:hover, .filter.is-active { background: var(--navy); color: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.work-item { margin: 0; transition: opacity .3s, transform .3s; }
.work-item.is-hidden { display: none; }
.work-thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); overflow: hidden; transition: transform .3s; }
.work-item:hover .work-thumb { transform: scale(1.02); }
.ph { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.ph-navy { background: var(--navy); color: var(--cream); }
.ph-rust { background: var(--rust); color: var(--cream); }
.ph-cream { background: #fff; color: var(--navy); border: 2px dashed var(--navy); }
.work-item figcaption { display: flex; flex-direction: column; padding: .9rem .25rem 0; }
.work-item figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { position: relative; padding: 2rem 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { display: block; font-family: var(--font-display); font-size: 2.75rem; color: var(--rust); line-height: 1; margin-bottom: .75rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: center; }
.about-badge { width: 100%; max-width: 320px; margin-inline: auto; }
.section-dark p { color: rgba(244, 238, 227, .85); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-copy > p { margin-top: 1.5rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.contact-list strong { font-family: var(--font-slab); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; color: var(--rust); }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--rust); }

.contact-form { background: #fff; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .8em 1em; border: 2px solid var(--cream-dark); border-radius: 10px; background: var(--cream);
  transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--rust); background: #fff; }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .invalid { border-color: var(--rust); background: #fff; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #2E7D4F; }
.form-status.err { color: var(--rust); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-logo { height: 52px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: var(--cream); text-decoration: none; font-family: var(--font-slab); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.footer-nav a:hover { color: #E07A55; }
.copyright { width: 100%; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(244,238,227,.12); font-size: .85rem; color: rgba(244,238,227,.6); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner, .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { max-width: 220px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--navy); padding: 0 16px;
    max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s;
  }
  .site-nav.open { max-height: 400px; padding: 1rem 16px 1.5rem; }
  .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(244,238,227,.1); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { order: -1; }
  .hero-badge img { width: 200px; }
  .service-grid { grid-template-columns: 1fr; }
  .combo-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand img { height: 36px; }
  .work-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .service-card, .contact-form { padding: 1.75rem; }
  .combo-banner { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
