/* ==========================================================================
   MAC'S Lift Gate Inc. — shared stylesheet
   Static rebuild of the former MODX site.
   All brand colors are variables below — change these six values to reskin.
   ========================================================================== */

:root {
  --red:       #22b14c;   /* MAC'S brand green, sampled from the logo */
  --red-dk:    #1a8c3c;
  --red-wash:  #eaf8ee;
  --char:      #1b1f24;
  --char-mid:  #2b323b;
  --char-lt:   #3d4653;
  --steel:     #5a6675;
  --ink:       #15191e;
  --body:      #4a5560;
  --muted:     #7c8794;
  --line:      #dde2e8;
  --wash:      #f5f7f9;
  --white:     #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 16px/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6rem; font-weight: 700; }
a { color: var(--red); }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top contact bar ---------- */
.topbar {
  background: var(--char);
  color: #9aa6b4;
  font-size: .83rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a { color: #c3cedb; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .grp { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* ---------- Header ---------- */
header.site {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(21,25,30,.10);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand .wm { line-height: 1.1; }
.brand .wm b { display: block; color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.brand .wm span { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-top: .18rem; }

nav.main { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
nav.main a {
  color: var(--char-mid); text-decoration: none; font-size: .91rem; font-weight: 600;
  padding: .5rem .72rem; border-radius: 5px; transition: background .15s, color .15s;
}
nav.main a:hover { background: var(--wash); color: var(--red); }
nav.main a.active { color: var(--red); background: var(--red-wash); }
nav.main a.cta {
  background: var(--red); color: #fff; border-radius: 999px; padding: .52rem 1.05rem; margin-left: .35rem;
}
nav.main a.cta:hover { background: var(--red-dk); color: #fff; }
@media (max-width: 60rem) {
  header.site .bar { flex-direction: column; align-items: stretch; }
  nav.main { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--char) 0%, var(--char-mid) 55%, var(--char-lt) 100%);
  color: #cdd6e0; padding: 3.6rem 0 3.8rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 15%, rgba(34,177,76,.30) 0 20%, transparent 55%),
    radial-gradient(circle at 4% 92%, rgba(90,102,117,.35) 0 26%, transparent 62%);
}
.hero .diag {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 16px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero.small { padding: 2.4rem 0 2.6rem; }
.eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: #7ee6a0; border: 1px solid rgba(34,177,76,.6); border-radius: 999px;
  padding: .28rem .85rem; margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 2.9rem); max-width: 24ch; margin-bottom: .8rem; }
.hero.small h1 { margin-bottom: .3rem; font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.hero .lede { font-size: 1.08rem; max-width: 46rem; color: #b6c2d0; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .72rem 1.4rem; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: .95rem; transition: transform .15s, background .15s;
}
.btn-p { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(34,177,76,.38); }
.btn-p:hover { background: var(--red-dk); transform: translateY(-1px); color: #fff; }
.btn-s { border: 1.5px solid rgba(255,255,255,.42); color: #fff; }
.btn-s:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); color: #fff; }
.btn-o { border: 1.5px solid var(--red); color: var(--red); }
.btn-o:hover { background: var(--red); color: #fff; transform: translateY(-1px); }

/* ---------- Sections ---------- */
section.band { padding: 3.4rem 0; }
section.band.alt { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 46rem; margin-bottom: 2rem; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: .5rem; }
.head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.head p:last-child { margin-bottom: 0; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 62rem) { .cards, .cards.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .cards, .cards.c3, .cards.c2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: 0 10px 30px rgba(21,25,30,.12); transform: translateY(-3px); border-color: #c8d1db; }
.card .shot {
  background: var(--wash); border-bottom: 1px solid var(--line);
  display: grid; place-items: center; padding: 1.2rem; min-height: 9.5rem;
}
.card .shot img { max-height: 9rem; width: auto; }
.card .inner { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.card p { font-size: .93rem; margin-bottom: .8rem; }
.card .spec {
  font-size: .82rem; color: var(--steel); font-weight: 600;
  background: var(--wash); border-left: 3px solid var(--red);
  padding: .5rem .7rem; border-radius: 0 5px 5px 0; margin-bottom: .9rem;
}
.card .more { margin-top: auto; font-size: .9rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card .more:hover { text-decoration: underline; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 54rem) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.lead { font-size: 1.1rem; color: var(--char-lt); }

/* ---------- Callout ---------- */
.callout {
  background: var(--red-wash); border: 1px solid #bfe6cb; border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0; padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout b { color: var(--ink); }

.quote {
  border-left: 4px solid var(--red); background: var(--wash);
  padding: 1.1rem 1.4rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0;
  font-size: 1.05rem; font-style: italic; color: var(--char-lt);
}
.quote cite { display: block; font-style: normal; font-size: .86rem; color: var(--muted); margin-top: .5rem; }

/* ---------- News list ---------- */
.news { display: grid; gap: 1.1rem; }
.news article {
  display: grid; grid-template-columns: 12rem 1fr; gap: 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.3rem; transition: box-shadow .18s, border-color .18s;
}
.news article:hover { box-shadow: 0 8px 24px rgba(21,25,30,.10); border-color: #c8d1db; }
.news .thumb { background: var(--wash); border-radius: 8px; display: grid; place-items: center; padding: .8rem; min-height: 7.5rem; }
.news h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.news .src { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: .4rem; }
.news p { font-size: .93rem; margin-bottom: .7rem; }
.news a.read { font-weight: 700; font-size: .89rem; text-decoration: none; }
.news a.read:hover { text-decoration: underline; }
@media (max-width: 46rem) { .news article { grid-template-columns: 1fr; } .news .thumb { min-height: 0; } }

/* ---------- Distributor map / list ---------- */
.map-shell { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 58rem) { .map-shell { grid-template-columns: 1fr; } }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: .4rem; }
.state-grid a, .state-grid span {
  display: grid; place-items: center; padding: .5rem .2rem; border-radius: 6px;
  font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--char-mid);
  transition: background .13s, color .13s, border-color .13s;
}
.state-grid a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.state-grid a.sel { background: var(--char); color: #fff; border-color: var(--char); }
.state-grid a.off { color: #b9c2cc; background: var(--wash); cursor: default; border-color: #e8edf2; }
.state-grid a.off:hover { background: var(--wash); color: #b9c2cc; border-color: #e8edf2; }
.state-grid span { color: #b9c2cc; background: var(--wash); cursor: default; }

/* Network picker */
.netpick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.netpick button {
  font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
  padding: .55rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--char-mid);
  transition: background .15s, color .15s, border-color .15s;
}
.netpick button:hover { border-color: var(--red); color: var(--red); }
.netpick button.on { background: var(--red); border-color: var(--red); color: #fff; }
.dist-panel { background: var(--char); color: #c2ccd8; border-radius: 12px; padding: 1.5rem; }
.dist-panel h3 { color: #fff; font-size: 1.05rem; }
.dist-panel .empty { color: #8c99a8; font-size: .93rem; }
.dist-card { background: rgba(255,255,255,.06); border-radius: 8px; padding: .9rem 1rem; margin-bottom: .7rem; }
.dist-card b { display: block; color: #fff; margin-bottom: .2rem; }
.dist-card a { color: #7ee6a0; text-decoration: none; }
.dist-card a:hover { text-decoration: underline; }

/* ---------- Contact grid ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 58rem) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .contact-grid { grid-template-columns: 1fr; } }
.cbox { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; text-align: center; }
.cbox .ic { width: 42px; height: 42px; margin: 0 auto .75rem; border-radius: 50%; background: var(--red-wash); display: grid; place-items: center; }
.cbox b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .2rem; }
.cbox a { text-decoration: none; font-weight: 650; }
.cbox a:hover { text-decoration: underline; }
.cbox small { color: var(--muted); font-size: .85rem; display: block; }

/* ---------- Affiliations ---------- */
.affil { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.affil a { display: block; opacity: .78; transition: opacity .15s, transform .15s; }
.affil a:hover { opacity: 1; transform: translateY(-2px); }
.affil img { max-height: 68px; width: auto; }

/* ---------- Footer ---------- */
footer.site { background: var(--char); color: #93a1b1; padding: 2.6rem 0 1.6rem; font-size: .89rem; }
footer.site .frow {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 52rem) { footer.site .frow { grid-template-columns: 1fr; gap: 1.5rem; } }
footer.site h4 { color: #fff; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .7rem; }
footer.site a { color: #b3c3d3; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: .3rem; }
footer.site .fbrand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .5rem; }
footer.site address { font-style: normal; line-height: 1.7; }
footer.site .social { display: flex; gap: .7rem; margin-top: .9rem; }
footer.site .social img { height: 30px; width: auto; }
footer.site .fbot {
  padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  justify-content: space-between; font-size: .82rem; color: #748394;
}
footer.site .fbot p { margin: 0; }

/* ---------- Print ---------- */
@media print {
  header.site, .topbar, nav.main, .hero-cta, footer.site .social { display: none; }
  body { color: #000; }
  .card, .news article { break-inside: avoid; }
}
