/* Cecchetti Brothers Vending — "Indicator Red"
   Thesis: the vending machine's own red indicator light is the only color
   in an otherwise gray hallway. That glow is the site's one accent red,
   set against a warm-gray ground the color of a break-room wall. */

@font-face {
  font-family: 'Fraunces';
  src: local('Fraunces');
}

:root {
  --ground: #efece6;
  --ground-deep: #221f1c;
  --ink: #221f1c;
  --ink-soft: #57524b;
  --paper: #f7f5f0;
  --line: #d8d3c8;
  --red: #c23b2b;
  --red-deep: #9c2c1f;
  --amber: #d98a3d;
  --focus: #1c6dd0;

  --measure: 58ch;
  --gutter-l: 7vw;
  --gutter-r: 4.5vw;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.measure { max-width: var(--measure); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.8em 1.2em;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* Layout primitives */
.wrap {
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.section {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.section--flush-top { padding-top: 0; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 236, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__since {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

nav.primary-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.3em;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--red);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--ink-soft);
}

.nav-cta { white-space: nowrap; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5em 0.7em;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 78vh;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero__kicker {
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.9em;
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.4rem;
  background: linear-gradient(to top, rgba(20,18,16,0.72), transparent);
  color: #f3ede4;
  font-size: 0.85rem;
}

/* Photo-strip: full-bleed, outside container */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.photo-strip figure {
  margin: 0;
  position: relative;
}
.photo-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(20,18,16,0.75), transparent);
  color: #f3ede4;
  font-size: 0.82rem;
}

/* Full-bleed single photo band */
.photo-band {
  position: relative;
}
.photo-band img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.photo-band--tall img { max-height: 74vh; }
.photo-band figcaption {
  padding: 0.8rem var(--gutter-l) 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: var(--measure);
}

/* Two-up media/copy row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media { position: relative; align-self: stretch; min-height: 320px; }
.split__media figcaption {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  background: rgba(20,18,16,0.72);
  color: #f3ede4;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  border-radius: var(--radius);
}

/* Service list — no icon-cards, plain rows with real detail */
.service-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row h3 { margin-bottom: 0.4em; }
.service-row__num {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.6em;
}

/* Invert block — the one background break per page */
.invert {
  background: var(--ground-deep);
  color: #f2ede3;
}
.invert h2, .invert h3 { color: #f7f3ea; }
.invert .ink-soft { color: #c7c0b3; }
.invert .line { border-color: rgba(255,255,255,0.15); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
}
.fact-list li:last-child { border-bottom: 1px solid var(--line); }
.fact-list dt, .fact-list .k {
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.fact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.fact-list a:hover { border-color: var(--red); }

/* Dark-ground variant, used inside .invert */
.invert .fact-list li { border-top-color: rgba(255,255,255,0.15); }
.invert .fact-list li:last-child { border-bottom-color: rgba(255,255,255,0.15); }
.invert .fact-list dt, .invert .fact-list .k { color: #c7c0b3; }
.invert .fact-list a { color: #f7f3ea; border-bottom-color: rgba(247,243,234,0.35); }

/* Areas served — sentence based, no chips */
.areas p { max-width: 70ch; }

/* Form */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.field label { font-size: 0.9rem; color: var(--ink-soft); }
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red);
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: #f6e2de; color: #7c2416; border: 1px solid #dba99e; }
.form-status.is-success { background: #e3ede1; color: #274a25; border: 1px solid #aecaa8; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* Sticky call bar (mobile only) */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: none;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 0.9rem 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

/* Reveal-on-scroll, gated behind .js so no-JS shows content immediately */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { order: -1; aspect-ratio: 4/3; }
  .split, .split--reverse { grid-template-columns: 1fr; direction: ltr; }
  .split__media { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  :root { --gutter-l: 5.5vw; --gutter-r: 5.5vw; }
  nav.primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .call-bar { display: block; }
  body { padding-bottom: 3.4rem; }
  .fact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

nav.primary-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem var(--gutter-l) 1.5rem;
  gap: 1rem;
}
