/* Montachusett Vending — first-pass site
   Powder blue / medium blue / black / white.
   Copy lives in index.html (search data-copy). */

:root {
  --powder: #e6f0fa;
  --powder-deep: #d4e4f6;
  --accent: #3388ff;
  --accent-ink: #1557c0;
  --ink: #0a0a0a;
  --muted: #3d4650;
  --line: #c5d4e6;
  --white: #ffffff;
  --header-h: 72px;
  --max: 1080px;
  --radius: 4px;
  --font-serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 30px rgba(10, 10, 10, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(230, 240, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.35rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a:hover { color: var(--ink); }

.header-phone {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.header-phone:hover { background: var(--accent-ink); }

/* ——— Layout ——— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.25rem 0; }
.section-alt { background: var(--powder); }
.section-ink {
  background: var(--ink);
  color: var(--white);
}
.section-ink a { color: #9cc4ff; }
.section-ink a:hover { color: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.section-ink .eyebrow { color: #8eb8ff; }

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: inherit;
  margin: 0 0 0.85rem;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}
.section-ink .lead { color: #c9d4e0; }

.soft-note {
  max-width: 40rem;
  margin: -0.5rem 0 1.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--muted);
  background: var(--powder);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none !important;
  font-size: 1rem;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary {
  background: var(--ink);
  color: var(--white) !important;
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--white); }
.section-ink .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white) !important;
}
.section-ink .btn-primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.section-ink .btn-secondary {
  color: var(--white) !important;
  border-color: var(--white);
}
.section-ink .btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* ——— Hero ——— */
.hero {
  background: var(--powder);
  border-bottom: 2px solid var(--ink);
  padding: 3.25rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy .lead { margin-bottom: 1.6rem; }

.hero-stage {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.hero-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero-caption {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* ——— Product cards ——— */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-art {
  background: var(--powder);
  padding: 1.5rem 1.5rem 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  border-bottom: 1px solid var(--line);
}
.card-art img { max-height: 200px; width: auto; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; }
.card-body p { margin: 0; color: var(--muted); }

.card-photo {
  margin: 0 1.15rem 1.25rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--powder);
  aspect-ratio: 4 / 3;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ——— On location strip ——— */
.on-location {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.on-location-heading {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.on-location-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.strip-photo {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.strip-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
}
.strip-photo figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--powder);
}

/* ——— How it works ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.step {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1.35rem 1.3rem 1.45rem;
}
.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin-bottom: 0.5rem;
}
.step p { margin: 0; color: var(--muted); }

/* ——— Why us ——— */
.why-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}
.why-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: var(--powder);
  border-left: 3px solid var(--accent);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.1rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  transform: rotate(45deg);
}
.why-list li:last-child { grid-column: 1 / -1; }

/* ——— FAQ ——— */
.faq {
  margin-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 700;
  color: var(--accent-ink);
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin: 0.65rem 0 0.25rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.phone-block {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
}
.phone-block a {
  color: inherit;
  text-decoration: none;
}
.phone-block a:hover { color: #8eb8ff; }

.email-block {
  margin: -0.4rem 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.email-block a {
  color: #9cc4ff;
  text-decoration: none;
}
.email-block a:hover { color: #cfe0ff; text-decoration: underline; }

.contact-meta {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c9d4e0;
}
.contact-meta strong { color: var(--white); display: block; font-weight: 700; }
.contact-meta a { color: #9cc4ff; }

.owner {
  margin: 1.25rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--powder);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
}
.footer-brand img { width: 32px; height: 32px; }
.site-footer a { color: var(--ink); }

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .hero-grid,
  .grid-2,
  .steps,
  .contact-grid,
  .why-list {
    grid-template-columns: 1fr;
  }
  .why-list li:last-child { grid-column: auto; }
  .hero-stage { min-height: 0; }
  .hero-photo { height: 260px; }
  .photo-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .header-inner { flex-wrap: wrap; }
  .header-phone {
    width: 100%;
    justify-content: center;
    order: 3;
  }
  .hero { padding: 2.25rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .hero-photo { height: 220px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .strip-photo:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
