/* LaserCutGenius.com - landing page styles
   Palette: near-black, warm ivory text, muted brass. No animation. */
:root {
  --bg: #0e0d0c;          /* near-black */
  --bg-alt: #151311;
  --surface: #1b1916;
  --surface-2: #221f1b;
  --border: #2f2b26;
  --text: #f1ece3;        /* warm ivory */
  --muted: #a89f92;
  --brass: #c9a66b;
  --brass-strong: #d9b77a;
  --brass-soft: rgba(201, 166, 107, 0.14);
  --brass-line: rgba(201, 166, 107, 0.35);
  --success: #6fcf97;
  --error: #ef8a7a;
  --radius: 6px;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h1 em { font-style: italic; color: var(--brass); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.nowrap { white-space: nowrap; }   /* keeps hyphenated phrases on one line */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border: 1px solid var(--brass); border-radius: var(--radius); cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .03em; text-decoration: none;
  color: #17120b; background: var(--brass);
}
.btn:hover { background: var(--brass-strong); border-color: var(--brass-strong); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border-color: #4a443c; }
.btn-ghost:hover { background: transparent; color: var(--brass); border-color: var(--brass); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 12, 0.94);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 56px; height: 76px; }
.logo {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text);
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em;
}
.logo-mark { width: 36px; height: 36px; }
.logo-tld { color: var(--brass); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; margin: 6px 0; background: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(760px, calc(100vh - 76px)); display: flex; align-items: center;
  padding: 96px 0; background: #3a2414;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* The engraving, aligned to the right side of the centered content column
   (the column is 1140px wide, so its right edge is at 50% + 570px). */
.hero-mark {
  position: absolute; z-index: -2; top: 0; height: 100%; width: auto; max-width: none;
  right: max(0px, calc(50% - 630px));
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(14, 13, 12, 0.94) 0,
      rgba(14, 13, 12, 0.85) calc(50% - 200px),
      rgba(14, 13, 12, 0.3) 50%,
      rgba(14, 13, 12, 0) calc(50% + 120px)),
    linear-gradient(0deg, rgba(14, 13, 12, 1) 0%, rgba(14, 13, 12, 0) 18%);
}
.hero-inner { position: relative; }
.hero-copy { max-width: 600px; }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.hero h1 em { white-space: nowrap; }
.hero .lead { max-width: 500px; }
.hero .lead { color: #c9c0b2; }
.eyebrow {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
  color: var(--brass); margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }


/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-sub { color: var(--muted); font-size: 1.07rem; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card p { color: var(--muted); margin: 0; }
.icon, .icon-sm {
  fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; border: 1px solid var(--brass-line); margin-bottom: 22px; }
.icon-sm { width: 20px; height: 20px; flex-shrink: 0; }

/* Gallery: 4:3 tiles, cropped on screen only (the enlarged view shows the whole photo) */
.gallery-section { padding-top: 0; }   /* continues straight on from Services */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: zoom-in;
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.gallery-tile:hover { border-color: var(--brass); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gallery-tile img.focus-top { object-position: center top; }
.gallery-tile img.focus-bottom { object-position: center bottom; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; text-align: left;
  font-size: .92rem; line-height: 1.35; background: linear-gradient(180deg, rgba(14, 13, 12, 0), rgba(14, 13, 12, 0.88));
}
.gallery-more { margin-top: 36px; text-align: center; }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 7, 6, 0.95); }
.lb-figure {
  margin: 0; width: 100%; height: 100%; padding: 64px 96px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lb-img { min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-caption { flex: none; color: var(--muted); text-align: center; font-size: .95rem; }
.lb-text { color: var(--text); }
.lb-count { margin-left: 10px; font-size: .85rem; }
.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1px solid var(--brass-line); background: rgba(27, 25, 22, 0.85); cursor: pointer;
}
.lb-btn:hover { border-color: var(--brass); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: .95rem;
}

/* How it works: four nodes joined by arrows (horizontal on wide screens, vertical on phones) */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow li { position: relative; text-align: center; padding: 0 8px; }
.flow-node {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--brass-line); box-shadow: 0 0 0 8px var(--bg);
}
.flow li:last-child .flow-node { background: var(--brass-soft); border-color: var(--brass); }
.flow-icon {
  width: 40px; height: 40px; fill: none; stroke: var(--brass); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* connector line from this node to the next */
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; height: 1px;
  left: calc(50% + 62px); right: calc(-50% - 24px + 62px);
  background: linear-gradient(90deg, var(--brass-line), var(--brass));
}
/* arrowhead at the end of the line */
.flow li:not(:last-child)::before {
  content: ""; position: absolute; top: 44px; right: calc(-50% - 24px + 62px);
  width: 8px; height: 8px; border: solid var(--brass); border-width: 1px 1px 0 0; transform: rotate(45deg);
}
.flow h3 { font-size: 1.3rem; margin-bottom: 6px; }
.flow p { color: var(--muted); margin: 0 auto; max-width: 220px; }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Why section: icon bullets */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.perks li {
  display: flex; align-items: center; gap: 20px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.perk-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--brass-soft); border: 1px solid var(--brass-line);
}
.perk-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--brass); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.perk-text { color: var(--muted); font-size: 1.05rem; }
.perk-text strong { color: var(--text); font-weight: 600; }

.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.4rem; font-weight: 300; color: var(--brass);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* Quote */
.section-quote { background: var(--bg-alt); border-top: 1px solid var(--border); }
.quote-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--brass-line); }
.contact-list a:hover { color: var(--brass); }

.quote-form {
  padding: 40px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 7px; }
.field label span[aria-hidden] { color: var(--brass); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid #3a352f; border-radius: 4px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6f675d; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .85rem; margin: 6px 0 0; }
.field-hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.field-hint button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--brass); text-decoration: underline; text-underline-offset: 2px;
}
.field-hint button:hover { color: var(--brass-strong); }
.date-rush { display: flex; gap: 10px; }
.date-rush input[type="date"] { flex: 1; min-width: 0; }
.field .rush-toggle { position: relative; display: flex; margin: 0; flex: none; cursor: pointer; }
.rush-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rush-toggle span {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid #3a352f; border-radius: 4px;
  background: var(--bg); color: var(--muted); font-size: .95rem; font-weight: 600; white-space: nowrap; user-select: none;
}
.rush-toggle span::before {
  content: ""; width: 14px; height: 14px; border: 1px solid #6f675d; border-radius: 3px; flex: none;
}
.rush-toggle:hover span { border-color: var(--brass); color: var(--text); }
.rush-toggle input:checked + span { background: var(--brass); border-color: var(--brass); color: #1a1714; }
.rush-toggle input:checked + span::before {
  content: "\2713"; border-color: #1a1714; color: #1a1714; font-size: 12px; line-height: 13px; text-align: center;
}
.rush-toggle input:focus-visible + span { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }
.form-note { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.site-footer .logo { font-size: 1.15rem; }
.site-footer .logo-mark { width: 32px; height: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Responsive */
/* Mid widths: the whole engraving is shown at the page width (nothing cropped),
   with the text on the left as in the full layout. */
@media (max-width: 1199px) {
  .hero-mark { display: none; }
  .hero { padding: 64px 0; min-height: 50vw; align-items: center; }
  .hero-bg { inset: 0 0 auto 0; width: 100%; height: 50vw; object-fit: contain; object-position: top center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(14, 13, 12, 0.94) 0%, rgba(14, 13, 12, 0.8) 30%, rgba(14, 13, 12, 0.2) 52%, rgba(14, 13, 12, 0) 62%),
      linear-gradient(180deg, rgba(14, 13, 12, 0) 0, rgba(14, 13, 12, 0) calc(50vw - 140px), rgba(14, 13, 12, 1) 50vw);
  }
  .hero .lead { max-width: 440px; }
}
@media (max-width: 980px) {
  .site-nav { gap: 22px; }
  .why, .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow { gap: 12px; }
  .flow li { padding: 0; }
  .flow-node { width: 76px; height: 76px; }
  .flow-icon { width: 32px; height: 32px; }
  .flow li:not(:last-child)::after { top: 38px; left: calc(50% + 50px); right: calc(-50% - 12px + 50px); }
  .flow li:not(:last-child)::before { top: 34px; right: calc(-50% - 12px + 50px); }
}
/* Below 900px the full menu no longer fits on one line, so use the menu button */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 16px; }
}
@media (max-width: 760px) {
  .site-nav { padding: 8px 16px 20px; }
  .container { padding: 0 16px; }
  .logo { font-size: 1.15rem; }
  .hero { padding: 300px 0 64px; min-height: 0; align-items: flex-end; }
  .hero-bg { height: 420px; inset: 0 0 auto 0; object-fit: cover; object-position: 90% center; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(14, 13, 12, 0) 0px, rgba(14, 13, 12, 0) 220px, rgba(14, 13, 12, 0.85) 330px, rgba(14, 13, 12, 1) 420px);
  }
  .section { padding: 72px 0; }
  .cards, .field-row { grid-template-columns: 1fr; }
  /* phones: the flow runs top to bottom, icon on the left */
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: left; align-items: start; }
  .flow-node { grid-row: 1 / span 2; width: 72px; height: 72px; margin: 0; box-shadow: 0 0 0 6px var(--bg); }
  .flow-icon { width: 30px; height: 30px; }
  .flow h3, .flow p { grid-column: 2; }
  .flow h3 { margin-top: 10px; }
  .flow p { margin: 0; max-width: none; }
  .flow li:not(:last-child)::after {
    top: 84px; bottom: -22px; left: 36px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, var(--brass-line), var(--brass));
  }
  .flow li:not(:last-child)::before { top: auto; bottom: -21px; left: 32px; right: auto; transform: rotate(135deg); }
  .field-row { gap: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-cap { padding: 24px 10px 8px; font-size: .8rem; }
  /* phones: photo uses the full width, arrows sit below it */
  .lb-figure { padding: 72px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .card { padding: 28px; }
  .quote-form { padding: 24px; }
}
