/* ==========================================================================
   Heartland LaserWorks — Design System
   ========================================================================== */

:root {
  /* Palette */
  --ink: #1c1712;
  --ink-soft: #5a5148;
  --ink-faint: #8a8074;
  --cream: #faf5ec;
  --cream-deep: #f0e6d4;
  --dark: #15120e;
  --dark-alt: #1f1a14;
  --line: #e2d6bf;
  --line-dark: #35302a;
  --copper: #c2762c;
  --copper-deep: #9c5c1e;
  --copper-light: #e3a765;
  --laser: #e0261f;
  --laser-deep: #b31d17;
  --white: #ffffff;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 22px;
  --shadow-card: 0 18px 40px -20px rgba(20, 15, 8, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(20, 15, 8, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dark h1, .dark h2, .dark h3, .dark p, .dark span, .dark li { color: var(--cream); }

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.dark .eyebrow { color: var(--copper-light); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--laser);
  display: inline-block;
}

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.dark .lede { color: #d8cdbc; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.6rem; }
.section-head .lede { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--laser);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(224, 38, 31, 0.55);
}
.btn-primary:hover { background: var(--laser-deep); box-shadow: 0 14px 30px -10px rgba(224, 38, 31, 0.6); }

.btn-light {
  background: var(--cream);
  color: var(--ink);
}
.btn-light:hover { background: var(--white); }

.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.dark .btn-outline { color: var(--cream); }
.dark .btn-outline:hover { background: var(--cream); color: var(--dark); }

.btn-copper {
  background: var(--copper);
  color: var(--white);
}
.btn-copper:hover { background: var(--copper-deep); }

.btn-sm { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.nav-primary { display: flex; align-items: center; gap: 2.4rem; }
.nav-primary a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--laser);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-primary a[aria-current="page"] { color: var(--copper-deep); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .phone {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 880px) {
  .nav-primary { display: none; }
  .header-actions .phone { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav-primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.5rem;
  }
  .site-header.nav-open .nav-primary a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0.35) 0%, rgba(15,12,9,0.55) 55%, rgba(15,12,9,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: 5rem 4.5rem; }
.hero-content .eyebrow { color: var(--copper-light); margin-bottom: 1.1rem; }
.hero-content h1 { color: var(--white); max-width: 16ch; }
.hero-content .lede { color: #e7ded0; margin-top: 1.3rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink); }
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 1.6rem;
}
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--cream); }
.trust-item svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--copper-light); }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 0.92rem; }
.trust-item span { display: block; font-size: 0.76rem; color: #b9ad9a; letter-spacing: 0.03em; text-transform: uppercase; }
@media (max-width: 880px) { .trust-bar .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: 6rem; }
.section-alt { background: var(--cream-deep); }
.section.dark { background: var(--dark); }
.section-tight { padding-block: 4rem; }

/* ---------- Category / service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 1020px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 3/4;
  color: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease;
}
.category-card:hover { transform: translateY(-6px); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0) 35%, rgba(15,12,9,0.88) 100%);
}
.category-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem;
}
.category-card-body .tag {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-light);
}
.category-card-body h3 { color: var(--white); margin-top: 0.35rem; font-size: 1.2rem; }
.category-card-body .go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 0.7rem; font-size: 0.82rem; font-weight: 600; color: var(--cream);
  opacity: 0.85;
}
.category-card-body .go svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.category-card:hover .go svg { transform: translateX(4px); }
.category-card > a.card-link { position: absolute; inset: 0; z-index: 3; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.product-media { aspect-ratio: 1/1; overflow: hidden; background: #efe7d8; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.product-body .sku { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.product-body h3 { font-size: 1.15rem; }
.product-body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--copper-deep); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 0.4rem; }
.step .num {
  counter-increment: step;
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--copper);
  margin-bottom: 0.5rem; display: block;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }
.dark .step p { color: #cfc3b0; }

/* ---------- Split / about panels ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.2rem; } }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ---------- Quote / contact banner ---------- */
.cta-banner {
  background: var(--dark);
  border-radius: var(--radius-l);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  color: var(--cream);
}
.cta-banner h2 { color: var(--white); max-width: 20ch; }
.cta-banner .lede { margin-top: 0.6rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: 0.96rem;
}
.dark .field input, .dark .field select, .dark .field textarea {
  background: rgba(255,255,255,0.06); border-color: var(--line-dark); color: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(194, 118, 44, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.9rem; }
.dark .form-note { color: #a99f8f; }
.form-status {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-m);
  font-size: 0.92rem; display: none;
}
.form-status.ok { display: block; background: #e8f3e6; color: #2c5c28; }
.form-status.err { display: block; background: #fbe7e5; color: #93231b; }

/* ---------- Testimonials-style quote / callout ---------- */
.callout {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 1.8rem 2rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--copper); }
.callout p { color: var(--ink-soft); font-size: 0.94rem; }
.callout strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--cream); padding-block: 4rem 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: #b9ad9a; font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--copper-light); margin-bottom: 1rem;
}
.footer-col a, .footer-col span { display: block; color: #cfc3b0; font-size: 0.92rem; margin-bottom: 0.65rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.6rem; font-size: 0.82rem; color: #8a8074;
}
.social-row { display: flex; gap: 0.9rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--copper); border-color: var(--copper); }
.social-row svg { width: 17px; height: 17px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--dark); color: var(--cream); padding-block: 4rem 3.5rem; }
.page-hero .eyebrow { color: var(--copper-light); }
.page-hero h1 { color: var(--white); margin-top: 0.7rem; max-width: 22ch; }
.page-hero .lede { color: #d8cdbc; margin-top: 1rem; }
.breadcrumb { font-size: 0.82rem; color: #a99f8f; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-deep); color: var(--copper-deep);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.divider-burst { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 3.5rem 0; }
.divider-burst span { height: 1.5px; width: 90px; background: var(--line); }
.dark .divider-burst span { background: var(--line-dark); }
.divider-burst svg { width: 20px; height: 20px; color: var(--laser); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream);
  padding: 0.8rem 1.2rem; z-index: 1000; border-radius: var(--radius-m);
}
.skip-link:focus { left: 16px; top: 16px; }

::selection { background: var(--laser); color: var(--white); }
