/* Mesa Sign Shop — Bold Typographic archetype
   Palette: red / black / white. Type IS the design. */

:root {
  --red: #d62828;
  --red-deep: #a31818;
  --ink: #121212;
  --ink-soft: #1d1d1d;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --white: #ffffff;
  --grey: #8a8a8a;
  --line: rgba(18,18,18,.14);
  --maxw: 1120px;
  --display: "Anton", "Archivo", Impact, sans-serif;
  --headline: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--pad-y) 22px;
  background: var(--red); color: #fff;
  font-family: var(--headline); font-weight: 800; font-size: .98rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--red); border-radius: 4px; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.05rem; padding: 16px 30px; min-height: 52px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-header { padding: 10px 18px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.header-inner { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-mark {
  font-family: var(--display);
  background: var(--red); color: #fff;
  width: 44px; height: 44px; border-radius: 5px;
  display: grid; place-items: center;
  font-size: 1.15rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--headline); font-weight: 900; font-size: 1.12rem; letter-spacing: -.01em; }
.logo-tag { font-size: .68rem; font-weight: 700; letter-spacing: .18em; color: var(--red); text-transform: uppercase; margin-top: 3px; }

.main-nav { display: none; gap: 26px; }
.main-nav a {
  text-decoration: none; font-family: var(--headline); font-weight: 700;
  font-size: .92rem; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 2px; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--red); transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }

.btn-header { display: none; }

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .btn-header { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  padding: 54px 0 0;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 40px; }

.hero-kicker {
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  letter-spacing: .22em; font-size: .74rem; color: var(--red); margin: 0 0 14px;
}

.hero-type {
  font-family: var(--display);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(3.4rem, 16vw, 11rem);
  color: var(--ink);
}
.hero-type .line { display: block; }
.hero-type .accent {
  color: var(--red);
  -webkit-text-stroke: 0;
}
.hero-type .line span, .hero-type .line { will-change: transform, opacity; }

.hero-sub {
  max-width: 56ch; margin: 26px 0 0;
  font-size: 1.08rem; color: #333; font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* EST badge */
.hero-badge {
  position: absolute; top: 18px; right: 16px; z-index: 3;
  width: 96px; height: 96px; color: var(--red);
}
.hero-badge svg { width: 100%; height: 100%; }
.badge-arc { font-family: var(--headline); font-weight: 800; font-size: 8px; letter-spacing: 1.5px; fill: var(--red); }
.badge-est { font-family: var(--headline); font-weight: 800; font-size: 11px; fill: var(--ink); letter-spacing: 2px; }
.badge-year { font-family: var(--display); font-size: 24px; fill: var(--red); }
@media (min-width: 860px) { .hero-badge { width: 132px; height: 132px; top: 28px; right: 40px; } }

/* Hero marquee */
.hero-marquee {
  position: relative; z-index: 2;
  background: var(--ink); color: var(--paper);
  border-top: 3px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  padding: 12px 0;
}
.marquee-track {
  display: inline-flex; gap: 22px; align-items: center;
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em;
  animation: marquee 26s linear infinite;
}
.marquee-track span { color: var(--paper); }
.marquee-track span:nth-child(even) { color: var(--red); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  font-family: var(--headline); font-weight: 800; text-transform: uppercase;
  letter-spacing: .2em; font-size: .74rem; color: var(--red); margin: 0 0 12px;
}
.section h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em; margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}
.section-lead { font-size: 1.05rem; color: #444; margin-top: 16px; }

/* ---------- Services ---------- */
.services { background: var(--paper-2); border-bottom: 3px solid var(--ink); }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; }
.service-card {
  position: relative; padding: 28px 24px 30px; background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.service-card:last-child { border-bottom: 0; }
.service-no {
  font-family: var(--display); color: var(--red); font-size: 1.4rem;
  display: block; margin-bottom: 8px;
}
.service-card h3 {
  font-family: var(--headline); font-weight: 900; text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: -.01em; margin: 0 0 8px; line-height: 1;
}
.service-card p { margin: 0; color: #3a3a3a; font-size: .98rem; }
.service-card.highlight { background: var(--ink); color: var(--paper); }
.service-card.highlight h3 { color: #fff; }
.service-card.highlight p { color: #ddd; }
.service-card.highlight .service-no { color: #fff; }

@media (min-width: 680px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { border-right: 3px solid var(--ink); }
  .service-card:nth-child(2n) { border-right: 0; }
}
@media (min-width: 980px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card:nth-child(2n) { border-right: 3px solid var(--ink); }
  .service-card:nth-child(3n) { border-right: 0; }
  .service-card:nth-last-child(-n+3) { border-bottom: 0; }
}

/* ---------- Heritage ---------- */
.heritage { background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--ink); overflow: hidden; }
.heritage-inner { display: grid; gap: 28px; align-items: center; }
.heritage-big { line-height: 1; }
.huge-year {
  font-family: var(--display);
  font-size: clamp(7rem, 34vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  text-stroke: 2px var(--red);
  display: block; line-height: .8; letter-spacing: -.02em;
}
.heritage-copy .eyebrow { color: var(--red); }
.heritage-copy h2 { color: var(--paper); }
.heritage-copy p { color: #d9d6cf; font-size: 1.05rem; }
.heritage-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 24px 0 0; padding: 0; }
.heritage-stats li { display: flex; flex-direction: column; }
.heritage-stats strong { font-family: var(--display); font-size: 2.4rem; color: var(--red); line-height: 1; }
.heritage-stats span { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #b8b5ae; margin-top: 6px; }
@media (min-width: 860px) {
  .heritage-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--paper); }
.port-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.port-item { margin: 0; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; }
.port-art {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
}
.port-art span {
  font-family: var(--display); text-transform: uppercase; text-align: center;
  font-size: clamp(2rem, 8vw, 3.4rem); line-height: .9; letter-spacing: .01em;
}
.port-red .port-art { background: var(--red); }
.port-red .port-art span { color: #fff; }
.port-dark .port-art { background: var(--ink); }
.port-dark .port-art span { color: var(--paper); }
.port-outline .port-art { background: var(--paper-2); }
.port-outline .port-art span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.port-item figcaption {
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .82rem; padding: 12px 14px;
  border-top: 3px solid var(--ink); background: var(--paper);
}
@media (min-width: 620px) { .port-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .port-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About ---------- */
.about { background: var(--paper-2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.about-inner { display: grid; gap: 28px; align-items: center; }
.about-copy p { font-size: 1.05rem; color: #3a3a3a; }
.about-card {
  border: 3px solid var(--ink); border-radius: 6px; background: var(--ink);
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
}
.about-card-type { display: flex; flex-direction: column; line-height: .82; text-align: center; }
.about-card-type span {
  font-family: var(--display); text-transform: uppercase; color: var(--paper);
  font-size: clamp(2.6rem, 12vw, 5.4rem);
}
.about-card-type .accent { color: var(--red); }
@media (min-width: 860px) { .about-inner { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--paper); }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.review-card {
  border: 3px solid var(--ink); border-radius: 6px; padding: 24px;
  background: var(--paper); display: flex; flex-direction: column; gap: 10px;
}
.review-card .stars { color: var(--red); font-size: 1.15rem; letter-spacing: 2px; }
.review-card p { margin: 0; color: #2c2c2c; }
.review-attr { font-family: var(--headline); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; color: var(--grey); }
@media (min-width: 760px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact-inner { display: grid; gap: 34px; }
.contact-copy .eyebrow { color: var(--red); }
.contact-copy h2 { color: var(--paper); }
.contact-copy p { color: #d3d0c9; font-size: 1.05rem; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.ci-label { font-family: var(--headline); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--red); }
.contact-list a { color: var(--paper); text-decoration: none; font-size: 1.25rem; font-family: var(--headline); font-weight: 800; }
.contact-list a:hover { color: var(--red); }
.contact-list span:not(.ci-label) { color: #e4e1da; font-size: 1.02rem; }

.quote-form {
  background: var(--paper); color: var(--ink);
  border-radius: 8px; padding: 26px; border: 3px solid var(--red);
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--headline); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 46px;
  border: 2px solid var(--ink); border-radius: 5px; background: #fff;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form-note { margin: 0 0 12px; font-weight: 700; color: var(--red-deep); min-height: 0; }
.form-note.show { padding: 12px 14px; background: rgba(214,40,40,.08); border-radius: 5px; }
.form-note.ok { color: #1c6b2e; background: rgba(28,107,46,.1); }
.form-fineprint { margin: 12px 0 0; font-size: .78rem; color: var(--grey); text-align: center; }
@media (min-width: 860px) { .contact-inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 3px solid var(--ink); padding: 36px 0 90px; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--headline); font-weight: 900; font-size: 1.2rem; margin: 0; text-transform: uppercase; }
.footer-tag { margin: 2px 0 0; color: #4a4a4a; font-size: .92rem; }
.footer-meta p { margin: 0 0 4px; color: #3a3a3a; font-size: .95rem; }
.footer-meta a { color: var(--red); font-weight: 700; text-decoration: none; }
.footer-copy { color: var(--grey) !important; font-size: .82rem !important; margin-top: 10px !important; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .site-footer { padding-bottom: 40px; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; background: var(--red); color: #fff;
  font-family: var(--headline); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; text-decoration: none; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(214,40,40,.4); border: 2px solid var(--red-deep);
}
.sticky-cta:hover { background: var(--red-deep); }
@media (min-width: 860px) { .sticky-cta { display: none; } }

/* ---------- Kinetic reveal (JS adds .reveal-on) ---------- */
.hero-type .line { opacity: 0; transform: translateY(40px) skewY(4deg); }
.hero.reveal-on .line { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.hero.reveal-on .line:nth-child(2) { transition-delay: .12s; }
.hero.reveal-on .line:nth-child(3) { transition-delay: .24s; }

[data-animate] { opacity: 0; transform: translateY(28px); }
[data-animate].in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .hero-type .line, [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
