/* ==========================================================================
   MERCY REYES PAINT LLC — coastal-light
   Sand ground, lagoon / coral / gold strokes, rounded frames, airy type.
   ========================================================================== */

:root {
  --bg: #f4f0e6;
  --bg-alt: #e3f3f0;
  --paper: #fffdf8;
  --bg-deep: #123f3c;
  --ink: #1c2b2a;
  --ink-soft: #4e625f;
  --ink-invert: #f6f3ec;
  --on-accent: #ffffff;
  --accent: #0d6f68;
  --lagoon: #14a396;
  --coral: #e15d3e;
  --gold: #e3a31a;
  --accent-soft: #d5f1ed;
  --line: #e0d8cc;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.03em;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 28px rgba(18, 63, 60, 0.08);
  --container: 1120px;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--lagoon) 0 34%,
    var(--coral) 34% 67%,
    var(--gold) 67% 100%
  );
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.mark { flex: none; display: block; }
.mark__plate { fill: var(--accent); }
.mark__roller { fill: var(--ink-invert); }
.mark__handle { fill: var(--gold); }
.mark__drop { fill: var(--coral); }

.brand-lock {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.brand-lock__mono {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
}

.brand-lock__name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.nav a {
  letter-spacing: 0.04em;
  font-weight: 600;
}

.section--paper { background: var(--paper); }
.section--wash { background: var(--bg-alt); }

.section-head { max-width: 40rem; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.section-head .lede { margin-top: 0.7rem; }

.strokes {
  display: flex;
  gap: 0.35rem;
  width: 5.5rem;
  height: 0.45rem;
  margin-bottom: 1rem;
}

.strokes span {
  flex: 1;
  border-radius: 99px;
  background: var(--lagoon);
}

.strokes span:nth-child(2) { background: var(--coral); }
.strokes span:nth-child(3) { background: var(--gold); }

.hero { padding-top: clamp(1.5rem, 3vw, 3.2rem); overflow: hidden; }

.hero__grid,
.climate__grid,
.counter,
.route,
.desk {
  display: grid;
  gap: var(--gap);
}

.hero__copy h1 { margin: 0.45rem 0 0.9rem; }

.hero__copy .lede { color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1.6rem;
}

.hero__facts {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.hero__facts div { min-width: 0; }
.hero__facts dt {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__facts dd { margin: 0.15rem 0 0; }

.hero__figure {
  margin: 0;
  position: relative;
}

.hero__figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 42%;
  height: 38%;
  right: -4%;
  bottom: -6%;
  border-radius: 40% 60% 50% 50%;
  background: var(--coral);
  opacity: 0.9;
}

.hero__figure::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 28%;
  height: 22%;
  left: -5%;
  top: -5%;
  border-radius: 50% 40% 55% 45%;
  background: var(--gold);
}

.hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.shelf__pick {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shelf { position: relative; }

.shelf__switch {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  margin: 0 0 1.2rem;
  scroll-snap-type: x proximity;
}

.shelf__switch label {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

#fin-interior:checked ~ .shelf__switch label[for="fin-interior"],
#fin-facade:checked ~ .shelf__switch label[for="fin-facade"],
#fin-wallpaper:checked ~ .shelf__switch label[for="fin-wallpaper"],
#fin-coverings:checked ~ .shelf__switch label[for="fin-coverings"],
#fin-glass:checked ~ .shelf__switch label[for="fin-glass"],
#fin-tools:checked ~ .shelf__switch label[for="fin-tools"],
#fin-materials:checked ~ .shelf__switch label[for="fin-materials"],
#fin-garden:checked ~ .shelf__switch label[for="fin-garden"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

#fin-interior:focus-visible ~ .shelf__switch label[for="fin-interior"],
#fin-facade:focus-visible ~ .shelf__switch label[for="fin-facade"],
#fin-wallpaper:focus-visible ~ .shelf__switch label[for="fin-wallpaper"],
#fin-coverings:focus-visible ~ .shelf__switch label[for="fin-coverings"],
#fin-glass:focus-visible ~ .shelf__switch label[for="fin-glass"],
#fin-tools:focus-visible ~ .shelf__switch label[for="fin-tools"],
#fin-materials:focus-visible ~ .shelf__switch label[for="fin-materials"],
#fin-garden:focus-visible ~ .shelf__switch label[for="fin-garden"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shelf__panel { display: none; gap: var(--gap); align-items: center; }

#fin-interior:checked ~ .shelf__panels .shelf__panel--interior,
#fin-facade:checked ~ .shelf__panels .shelf__panel--facade,
#fin-wallpaper:checked ~ .shelf__panels .shelf__panel--wallpaper,
#fin-coverings:checked ~ .shelf__panels .shelf__panel--coverings,
#fin-glass:checked ~ .shelf__panels .shelf__panel--glass,
#fin-tools:checked ~ .shelf__panels .shelf__panel--tools,
#fin-materials:checked ~ .shelf__panels .shelf__panel--materials,
#fin-garden:checked ~ .shelf__panels .shelf__panel--garden {
  display: grid;
}

.shelf__frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
}

.shelf__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shelf__photo--top { object-position: center top; }
.shelf__photo--bottom { object-position: center bottom; }
.shelf__photo--left { object-position: left center; }
.shelf__photo--right { object-position: right center; }
.shelf__photo--garden { object-position: center 82%; }

.shelf__copy .eyebrow { color: var(--coral); }
.shelf__copy h3 { margin: 0.25rem 0 0.7rem; }

.climate__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.climate__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

.climate__specs {
  display: grid;
  gap: 0.9rem;
}

.climate__specs article {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem 1.15rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--lagoon);
}

.climate__specs article:nth-child(2) { border-left-color: var(--coral); }
.climate__specs article:nth-child(3) { border-left-color: var(--gold); }
.climate__specs h3 { margin-bottom: 0.35rem; }

.ledger {
  list-style: none;
  counter-reset: job;
  padding: 0;
}

.ledger li {
  counter-increment: job;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.35rem 0.8rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.ledger li:last-child { border-bottom: 1px solid var(--line); }

.ledger li::before {
  content: counter(job, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.ledger h3 { margin-bottom: 0.35rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
  border-left: 3px solid var(--lagoon);
}

.steps li {
  position: relative;
  padding: 0 0 1.45rem 1.25rem;
}

.steps li::before {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--lagoon);
  left: -0.5rem;
  top: 0.28rem;
  box-shadow: 0 0 0 4px var(--paper);
}

.steps li:nth-child(3n+2)::before { background: var(--coral); }
.steps li:nth-child(3n)::before { background: var(--gold); }
.steps h3 { margin-bottom: 0.3rem; }
.steps li:last-child { padding-bottom: 0; }

.counter__card,
.route__card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.counter__year {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.counter__role {
  margin: 0.45rem 0 0.8rem;
  font-weight: 700;
}

.counter__card a,
.route a,
.desk a,
.site-footer a {
  overflow-wrap: anywhere;
}

.route__card h3 { margin-bottom: 0.6rem; }

.route__card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.spread__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--gap);
}

.spread__grid li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--lagoon);
}

.spread__grid li:nth-child(2) { border-top-color: var(--coral); }
.spread__grid li:nth-child(3) { border-top-color: var(--gold); }
.spread__grid li:nth-child(4) { border-top-color: var(--accent); }

.spread__num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.spread__note {
  margin-top: 1.3rem;
  max-width: 44rem;
  color: var(--ink-soft);
}

.desk__form {
  display: grid;
  gap: 0.9rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border-radius: 12px;
}

.field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
}

.field textarea { resize: vertical; min-height: 6.5rem; }

.desk__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.desk__submit .btn { min-height: 48px; }

.site-footer {
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-top: 0;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.2rem 0 0.4rem;
}

.site-footer address { font-style: normal; }

.site-footer nav {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.site-footer nav a { text-decoration: none; }

.site-footer .site-footer__bottom {
  color: color-mix(in srgb, var(--ink-invert) 74%, transparent);
  border-top-color: color-mix(in srgb, var(--ink-invert) 22%, transparent);
}

.strokes--invert span:nth-child(1) { background: var(--lagoon); }

@media (min-width: 700px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .spread__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .desk__form { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .hero__grid,
  .counter,
  .route,
  .desk {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .desk { align-items: start; }
}

@media (min-width: 860px) {
  .shelf__panel { grid-template-columns: 1.12fr 0.88fr; }
}

@media (min-width: 980px) {
  .climate__grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: stretch;
  }

  .climate__figure img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .footer__grid { grid-template-columns: 1.3fr 1fr 0.8fr; }
}

