/* M&A Liquidation and Auction LTD — site styles (mobile-first)
   Brand colours sampled from the logo: navy #021639, lime green #9EBE3C. */
:root {
  --navy: #021639;
  --navy-2: #0c2a5e;      /* lighter navy for hovers / panels */
  --green: #9ebe3c;       /* logo green: use on navy or as a fill, not for small text on white */
  --green-dark: #86a52a;
  --green-text: #557210;  /* accessible green for text on white */
  --green-tint: #eef5dc;
  --ink: #0f1a2e;
  --muted: #4f5b70;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #dfe5ee;
  --alt: #eaeff6;
  --radius: 8px;
  --shadow: none;
  --max: 1100px;
  --font-head: "Montserrat", "Arial Black", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 820px) { html { scroll-padding-bottom: 0; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2rem, 6.5vw, 3.2rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.accent { color: var(--green); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.section { padding: 48px 0; }
.section--alt { background: var(--alt); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Green rule under section headings, echoing the line under the logo */
.rule::after { content: ""; display: block; width: 64px; height: 5px; background: var(--green); border-radius: 3px; margin-top: 12px; }
.center .rule::after { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 4px solid var(--green);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 6px 0; }
.brand img { height: 48px; width: auto; }
@media (min-width: 820px) { .brand img { height: 56px; } }

.nav-toggle {
  border: 2px solid var(--green); background: transparent; border-radius: 8px;
  padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; color: #fff;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy); border-bottom: 4px solid var(--green); box-shadow: var(--shadow);
  /* On short (landscape) phones, scroll inside the space between the sticky header (68px) and the call bar (~64px) */
  max-height: calc(100vh - 68px - 64px);
  max-height: calc(100dvh - 68px - 64px - env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.site-nav ul { list-style: none; margin: 0; padding: 4px 16px 16px; }
.site-nav a {
  display: block; padding: 13px 4px; text-decoration: none; color: #fff;
  font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-nav a[aria-current="page"] { color: var(--green); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; background: none; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 8px; }
  .site-nav a:hover { background: var(--navy-2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--green); background: var(--green); color: var(--navy);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 44px; }
.tag {
  display: inline-block; background: var(--green); color: var(--navy);
  font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 14px;
}
.hero p { font-size: 1.12rem; color: #d7deea; }
.hero-logo { border-radius: var(--radius); }
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; }
  .hero-media { order: 2; }
}

.page-head { background: var(--navy); color: #fff; padding: 36px 0 32px; border-bottom: 5px solid var(--green); }
.page-head p { color: #d7deea; margin: 0; font-size: 1.08rem; }
.page-head a { color: var(--green); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 20px; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }


/* ---------- Store info ---------- */
.info { list-style: none; padding: 0; margin: 0 0 16px; }
.info li { display: flex; gap: 10px; padding: 6px 0; }
.info .k { flex: none; width: 22px; text-align: center; }
.info a { font-weight: 700; }

.hours { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .97rem; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; }
.hours tr.closed td { color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--green-text); font-weight: 800; }

.open-status { display: inline-block; font-weight: 700; font-size: .9rem; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.open-status.is-open { background: var(--green-tint); color: var(--green-text); }
.open-status.is-closed { background: var(--alt); color: var(--muted); }

.rating { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.rating strong { color: var(--ink); }

.store { scroll-margin-top: 90px; border-top: 5px solid var(--green); }
.store + .store { margin-top: 32px; }
.store .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store .photos img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.store-layout { display: grid; gap: 20px; }
@media (min-width: 860px) { .store-layout { grid-template-columns: 1fr 1fr; } }
.map {
  width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius);
  background: var(--alt); display: block;
}

/* ---------- Homepage: compact hero, store blocks, lists ---------- */
.eyebrow { font-weight: 700; color: var(--green); letter-spacing: .02em; margin-bottom: 10px; }
.hero--compact .wrap { grid-template-columns: 1fr; }
.hero--compact h1 { max-width: 14em; }
.hero--compact p { max-width: 36em; }
@media (min-width: 820px) { .hero--compact .wrap { padding-top: 48px; padding-bottom: 52px; } }

.section--tight { padding: 32px 0; }
.section + .section--line { border-top: 1px solid var(--line); }
.stores { display: grid; gap: 0; }
@media (min-width: 760px) { .stores { grid-template-columns: 1fr 1fr; gap: 40px; } }
.store-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.store-block:last-child { border-bottom: 0; }
@media (min-width: 760px) { .store-block { border-bottom: 0; padding: 0; } }
.store-block h2 { font-size: 1.5rem; margin-bottom: .35em; }
.store-block address { font-style: normal; margin-bottom: 6px; }
.today-hours { font-weight: 700; margin-bottom: 14px; }
.today-hours .now-open { color: var(--green-text); }
.today-hours .now-closed { color: var(--muted); }
.text-links { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.text-links a { font-weight: 600; }

.sell-list { list-style: none; padding: 0; margin: 12px 0 0; }
.sell-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.sell-list li:last-child { border-bottom: 0; }
@media (min-width: 760px) { .sell-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } .sell-list li:nth-last-child(2) { border-bottom: 0; } }

.deal-links { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 600px) { .deal-links { grid-template-columns: auto auto; justify-content: start; } }

/* ---------- Store photos ---------- */
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 6px; }
@media (min-width: 760px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--alt); }
.photo-caption { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.store-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 8px; background: var(--alt); }

/* ---------- Deals banner ---------- */
.deals { background: var(--green); color: var(--navy); }
.deals .wrap { display: grid; gap: 16px; }
.deals h2 { margin-bottom: .25em; }
.deals p { margin: 0; }
@media (min-width: 820px) { .deals .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Signup ---------- */
.signup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-width: 520px; }
.signup label { flex-basis: 100%; font-weight: 600; font-size: .95rem; }
.signup input[type=email] {
  flex: 1 1 220px; min-height: 48px; padding: 10px 16px; font: inherit;
  border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.signup input[type=email]:focus { outline: none; border-color: var(--green-dark); }
.signup input[type=email]:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.signup .btn { flex: 0 0 auto; }
.signup-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.center .signup { margin-left: auto; margin-right: auto; }
.signup .mc-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.signup-note.signup-error { color: #c0392b; }
.site-footer .signup-note.signup-error { color: #ff9b8f; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; position: relative; list-style: none; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.faq details[open] { border-left: 5px solid var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 16px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
.faq .answer .policy { margin: 0 0 1em; padding-left: 1.2em; }
.faq .answer .policy li { margin-bottom: 4px; }

/* Visible marker for text the owner still needs to confirm. Remove the class once confirmed. */
.todo { background: #fff3c4; outline: 1px dashed #c9a100; border-radius: 4px; padding: 0 3px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d2e1; padding: 40px 0 24px; font-size: .95rem; border-top: 5px solid var(--green); }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1.05rem; color: var(--green); }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 28px; }
@media (min-width: 820px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .signup label { color: #fff; }
.site-footer .signup input[type=email] { border-color: var(--navy-2); }
.site-footer .signup-note { color: #9fabc0; }
.hiring { margin-top: 28px; padding: 14px 16px; border-radius: 8px; background: var(--navy-2); border-left: 5px solid var(--green); }
.legal { border-top: 1px solid var(--navy-2); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #9fabc0; }
.footer-logo { width: 200px; margin-bottom: 16px; }
.site-footer h2 { font-size: 1.35rem; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--navy);
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
.callbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; /* each half is at least a 48px tap target */
  background: var(--green); color: var(--navy); text-decoration: none; text-align: center;
  font-weight: 800; padding: 10px 8px; font-size: 1rem; line-height: 1.2;
}
.callbar a small { display: block; font-weight: 600; font-size: .78rem; }
/* Room for the fixed bar (48px + shadow) plus the iPhone home-indicator area, so it never covers the last link */
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 820px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Phones only (below the site's 820px breakpoint): homepage store picker ---------- */
.hero-actions--mobile { display: none; }
@media (max-width: 819.98px) {
  .hero-actions--desktop { display: none; }
  .hero-actions--mobile { display: block; }
  .town-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .town-links .btn { min-height: 52px; padding: 12px 10px; font-size: 1.05rem; }
  .hero-deals-link { display: inline-block; margin-top: 14px; padding: 10px 0; color: #fff; font-weight: 600; text-underline-offset: 3px; }
  .hero-deals-link:hover { color: var(--green); }

  /* Store blocks: clear the sticky header (68px) when jumped to, with the town name fully visible */
  .section--stores .store-block { scroll-margin-top: 84px; }
  /* ~24px total above the first store instead of 48 + 20 */
  .section--stores { padding-top: 16px; }
}
@media (max-width: 759.98px) {
  .section--stores .store-block:first-child { padding-top: 8px; }
}
@media (min-width: 760px) and (max-width: 819.98px) {
  /* Stores sit side by side here and blocks have no top padding */
  .section--stores { padding-top: 24px; }
}

