/* =========================================================
   PLYM — Painting · Cleaning · Repairs · Landscaping · Maintenance
   Brand tokens come straight from the van magnet artwork.
   ========================================================= */

:root {
  --ink: #121618;
  --paper: #ffffff;
  --chalk: #f3f4f6;
  --mist: #dfe3e8;
  --magenta: #eb178a;
  --blue: #0c9eda;
  --orange: #f4752c;
  --lime: #9ecc3b;
  --text: #1b1f22;
  --muted: #4a5159;

  --accent: var(--magenta);

  --font: "Dosis", "Segoe UI", system-ui, sans-serif;
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.2rem + 4vw, 3.9rem);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 4px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Inline SVG sprite (icons + brand shapes); a class instead of a style attribute so the CSP can stay strict. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 700;
  border-radius: var(--radius); transition: top .15s;
}
.skip:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}
.section-lead {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  max-width: 60ch;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  font-size: 1.1875rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.25rem; }
.btn--primary { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.btn--primary:hover { background: #d10f78; border-color: #d10f78; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: #000; }

/* ---------- Brand bar + header ---------- */
.brandbar { display: flex; height: 6px; }
.brandbar i { flex: 1; }
.brandbar i:nth-child(1) { background: var(--magenta); }
.brandbar i:nth-child(2) { background: var(--orange); }
.brandbar i:nth-child(3) { background: var(--lime); }
.brandbar i:nth-child(4) { background: var(--blue); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header__row {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { width: 128px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav__toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .45rem .8rem; font-weight: 700; font-size: 1rem;
}
.site-nav__bars {
  width: 18px; height: 2px; background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}
.site-nav__list {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  padding: .5rem var(--gutter) 1rem;
}
.site-nav__list.is-open { display: block; }
.site-nav__list a {
  display: block; padding: .75rem 0;
  font-weight: 700; font-size: 1.125rem; text-decoration: none;
  text-transform: uppercase; letter-spacing: .14em;
  border-bottom: 1px solid var(--mist);
}
.site-nav__list a:hover { color: var(--magenta); }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.site-header__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; text-decoration: none; font-size: 1.125rem;
  padding: .5rem; margin-right: -.5rem;
}
.site-header__phone span { display: none; }
.site-header__cta { display: none; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: 0 0 auto; }

/* Language switcher (EN / ES): inside the mobile menu below 960px, next to the phone above */
.lang {
  display: inline-flex; flex: 0 0 auto;
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.lang__btn {
  background: none; border: 0; padding: .4rem .45rem;
  font-weight: 700; font-size: .8125rem; line-height: 1; letter-spacing: .06em;
  color: var(--ink);
}
.lang__btn + .lang__btn { border-left: 2px solid var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: #fff; cursor: default; }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--magenta); }
.lang__btn:focus-visible { outline-offset: -3px; }
.site-header__actions .lang { display: none; }
.site-nav__lang { display: flex; align-items: center; gap: .75rem; padding: 1rem 0 .25rem; }
.site-nav__lang-label {
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
}

/* The header is tight between 960 and 1200px: compact nav, phone icon only, short CTA.
   The phone number appears at 1200px and the roomier sizes at 1280px, where the
   container is already at its 1200px maximum. Both languages fit at every step. */
@media (min-width: 960px) {
  .site-header__logo img { width: 140px; }
  .site-nav { margin-left: .5rem; }
  .site-nav__toggle { display: none; }
  .site-nav__list {
    display: flex; gap: 1rem; position: static;
    background: none; border: 0; padding: 0;
  }
  .site-nav__list a { padding: .25rem 0; border: 0; font-size: .8rem; letter-spacing: .1em; white-space: nowrap; }
  .site-nav__mobile-only { display: none; }
  .site-header__actions { margin-left: auto; gap: .75rem; }
  .site-header__actions .lang { display: inline-flex; }
  .site-header__phone { white-space: nowrap; }
  .site-header__cta { display: inline-flex; padding: .7rem 1.1rem; font-size: 1.0625rem; }
}
@media (min-width: 1200px) {
  .site-header__phone span { display: inline; }
}
@media (min-width: 1280px) {
  .site-header__logo img { width: 160px; }
  .site-nav { margin-left: 2rem; }
  .site-nav__list { gap: 1.5rem; }
  .site-nav__list a { font-size: .9rem; letter-spacing: .14em; }
  .site-header__actions { gap: 1.25rem; }
  .site-header__cta { padding: .8rem 1.4rem; font-size: 1.1875rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__title {
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.015em; color: var(--ink);
  max-width: 17ch; text-wrap: pretty;
}
.hero__title-break { display: block; color: var(--accent); transition: color .5s; }
.nw { white-space: nowrap; }
.hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.4rem);
  max-width: 48ch; color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.5rem; font-weight: 600; color: var(--ink); }
.facts li { display: flex; align-items: center; gap: .55rem; }
.facts li::before { content: ""; width: 12px; height: 12px; background: var(--magenta); flex: 0 0 auto; }
.facts li:nth-child(2)::before { background: var(--blue); }
.facts li:nth-child(3)::before { background: var(--orange); }

/* The "paint chip": photo in a thick painted frame, with the magnet shapes */
.hero__art { position: relative; padding: 6% 10% 5% 7%; }
.chip { position: relative; }
.chip__frame {
  border: clamp(14px, 2.2vw, 24px) solid var(--accent);
  background: var(--accent);
  transition: border-color .5s, background-color .5s;
}
.chip__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.chip__shape { position: absolute; }
.chip__shape--roller { width: 44%; top: -6%; left: 5%; fill: var(--ink); }
.chip__shape--square { width: 12%; top: -8%; right: -6%; fill: var(--orange); }
.chip__shape--brush { width: 7%; top: 16%; right: -8%; fill: var(--blue); }
.chip__shape--lime { width: 22%; bottom: -5%; left: -7%; fill: var(--lime); }
.chip__shape--roller { transform-origin: 20% 60%; }
.chip.is-painting .chip__shape--roller { animation: roll .9s cubic-bezier(.4, 0, .2, 1); }
@keyframes roll {
  0% { transform: translateX(0) rotate(0); }
  55% { transform: translateX(110%) rotate(2deg); }
  100% { transform: translateX(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chip.is-painting .chip__shape--roller { animation: none; }
  .chip__frame, .hero__title-break { transition: none; }
}
.swatches {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.25rem; padding-left: 6%;
}
.swatches__label { font-weight: 600; margin-right: .25rem; color: var(--muted); }
@media (max-width: 480px) { .swatches__label { flex-basis: 100%; } }
.swatch {
  width: 30px; height: 30px; border: 3px solid transparent; border-radius: 2px;
  padding: 0; background-clip: padding-box; transition: transform .15s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.swatch--magenta { background-color: var(--magenta); }
.swatch--blue { background-color: var(--blue); }
.swatch--orange { background-color: var(--orange); }
.swatch--lime { background-color: var(--lime); }
.swatch--ink { background-color: var(--ink); }

.hero[data-accent="blue"] { --accent: var(--blue); }
.hero[data-accent="orange"] { --accent: var(--orange); }
.hero[data-accent="lime"] { --accent: var(--lime); }
.hero[data-accent="ink"] { --accent: var(--ink); }
.hero[data-accent="ink"] .chip__shape--roller { fill: var(--magenta); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .hero__art { padding: 5% 9% 4% 6%; }
}

/* ---------- Services (color bands) ---------- */
.services__intro { padding: var(--section) 0 clamp(2rem, 5vw, 3.5rem); }
.band { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.band__grid { display: grid; gap: 2rem; align-items: center; }
.band__kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: .95rem;
  color: var(--band-fg);
}
.band__title {
  margin-top: .5rem;
  font-size: var(--fs-h3); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em;
  color: var(--band-fg); max-width: 20ch;
}
.band__panel {
  margin-top: 1.25rem;
  background: var(--paper); color: var(--text);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.band__panel > p { max-width: 52ch; }
.band__list { margin: 1.1rem 0 1.5rem; display: grid; gap: .45rem; }
.band__list li { display: flex; gap: .65rem; align-items: baseline; }
.band__list li::before {
  content: ""; width: 10px; height: 10px; flex: 0 0 auto;
  background: var(--band-bg); transform: translateY(-1px);
}
.band--ink .band__list li::before { background: var(--magenta); }
.band__media img { width: 100%; border: 12px solid var(--paper); aspect-ratio: 4 / 3; object-fit: cover; }

.band--magenta { --band-bg: var(--magenta); --band-fg: #fff; background: var(--band-bg); }
.band--blue    { --band-bg: var(--blue);    --band-fg: #fff; background: var(--band-bg); }
.band--orange  { --band-bg: var(--orange);  --band-fg: var(--ink); background: var(--band-bg); }
.band--lime    { --band-bg: var(--lime);    --band-fg: var(--ink); background: var(--band-bg); }
.band--ink     { --band-bg: var(--ink);     --band-fg: #fff; background: var(--band-bg); }

@media (min-width: 960px) {
  .band__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .band--reverse .band__text { order: 2; }
  .band--reverse .band__media { order: 1; }
}

/* ---------- Property managers ---------- */
.managers { background: var(--chalk); padding: var(--section) 0; }
.managers__grid { display: grid; gap: 2.5rem; align-items: center; }
.checklist { margin: 1.5rem 0 2rem; display: grid; gap: .6rem; font-weight: 600; color: var(--ink); }
.checklist li { display: flex; gap: .7rem; align-items: baseline; }
.checklist li::before { content: ""; width: 12px; height: 12px; background: var(--blue); flex: 0 0 auto; transform: translateY(-1px); }
.checklist li:nth-child(2)::before { background: var(--magenta); }
.checklist li:nth-child(3)::before { background: var(--orange); }
.checklist li:nth-child(4)::before { background: var(--lime); }
.managers__media img { width: 100%; border: 12px solid var(--ink); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) {
  .managers__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- How it works ---------- */
.how { padding: var(--section) 0; }
.steps { margin-top: 2.5rem; display: grid; gap: 2rem; counter-reset: step; }
.step { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step__num {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; font-weight: 800; font-size: 1.4rem; color: #fff;
}
.step__num--magenta { background: var(--magenta); }
.step__num--blue { background: var(--blue); }
.step__num--orange { background: var(--orange); color: var(--ink); }
.step__title { margin-top: 1rem; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--ink); }
.step p { margin-top: .5rem; color: var(--muted); max-width: 36ch; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- Why PLYM ---------- */
.why { background: var(--ink); color: #fff; padding: var(--section) 0; }
.why .section-title { color: #fff; }
.why .section-lead { color: #d6dadf; }
.why__grid { display: grid; gap: 3rem; align-items: center; }
.why__points { margin-top: 2rem; display: grid; gap: 1.25rem; }
.why__points li { display: grid; gap: .2rem; padding-left: 1.1rem; border-left: 4px solid var(--magenta); }
.why__points li:nth-child(2) { border-color: var(--blue); }
.why__points li:nth-child(3) { border-color: var(--orange); }
.why__points li:nth-child(4) { border-color: var(--lime); }
.why__points strong { font-size: 1.25rem; font-weight: 800; }
.why__points span { color: #d6dadf; max-width: 48ch; }
.why__art img { width: 100%; }
.why__art figcaption { margin-top: .75rem; color: #9aa3ad; font-size: var(--fs-small); }
@media (min-width: 960px) {
  .why__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

/* ---------- Service area ---------- */
.areas { padding: var(--section) 0; }
.areas__list { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.areas__list li {
  padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius);
  font-weight: 700; font-size: 1.0625rem;
}
.areas__list li:nth-child(5n+1) { border-color: var(--magenta); }
.areas__list li:nth-child(5n+2) { border-color: var(--blue); }
.areas__list li:nth-child(5n+3) { border-color: var(--orange); }
.areas__list li:nth-child(5n+4) { border-color: var(--lime); }
.areas__note { margin-top: 1.25rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews { background: var(--chalk); padding: var(--section) 0; }
.reviews__grid { margin-top: 2rem; display: grid; gap: 1.5rem; }
.review { background: var(--paper); padding: 1.5rem; border-top: 6px solid var(--magenta); }
.review:nth-child(3n+2) { border-color: var(--blue); }
.review:nth-child(3n+3) { border-color: var(--orange); }
.review__quote { font-size: 1.1875rem; }
.review__who { margin-top: 1rem; font-weight: 700; color: var(--ink); }
.review__where { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 720px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Estimate form ---------- */
.estimate { background: var(--chalk); padding: var(--section) 0; border-top: 6px solid var(--magenta); }
.estimate__grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-card { margin-top: 2rem; display: grid; gap: .75rem; font-weight: 600; color: var(--ink); }
.contact-card__row { display: flex; align-items: center; gap: .7rem; }
.contact-card__row .icon { color: var(--magenta); width: 1.4em; height: 1.4em; }
.contact-card a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.form { background: var(--paper); padding: clamp(1.25rem, 3vw, 2.25rem); border: 2px solid var(--ink); }
.form__row { display: grid; gap: 1rem; }
.form__row + .form__row, .form__row + .field, .field + .field, .field + .form__row { margin-top: 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field__label { font-weight: 700; color: var(--ink); }
.field__optional { font-weight: 500; color: var(--muted); }
.field__input {
  width: 100%; min-height: 3.1rem; padding: .6rem .85rem;
  border: 2px solid var(--ink); border-radius: var(--radius); background: #fff;
}
.field__input--area { min-height: 7rem; resize: vertical; }
.field__input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.field.is-invalid .field__input { border-color: var(--magenta); }
.field__error { display: none; color: #b8086b; font-weight: 600; font-size: var(--fs-small); }
.field.is-invalid .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.chipcheck { position: relative; }
.chipcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chipcheck span {
  display: inline-block; padding: .5rem .9rem;
  border: 2px solid var(--ink); border-radius: var(--radius);
  font-weight: 700; background: #fff; cursor: pointer;
  transition: background-color .12s, color .12s;
}
.chipcheck input:checked + span { background: var(--ink); color: #fff; }
.chipcheck input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 1rem; font-weight: 700; min-height: 1.5em; }
.form__status.is-error { color: #b8086b; }
.form__status.is-ok { color: #1f7a1f; }
.form__submit { width: 100%; margin-top: .5rem; }
.form__fine { margin-top: 1rem; text-align: center; color: var(--muted); font-size: var(--fs-small); }
.form__done { display: grid; gap: .75rem; padding: 1rem 0; }
.form__done h3 { font-size: 1.75rem; font-weight: 800; color: var(--ink); }
@media (min-width: 960px) {
  .estimate__grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6dadf; padding: var(--section) 0 calc(var(--section) * .6); }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand img { width: 200px; }
.site-footer__brand p { margin-top: 1.25rem; max-width: 40ch; }
.site-footer__col { display: grid; gap: .5rem; align-content: start; }
.site-footer__col a { text-decoration: none; font-weight: 600; color: #fff; }
.site-footer__col a:hover { color: var(--lime); }
.site-footer__heading { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: #9aa3ad; margin-bottom: .4rem; }
.site-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #2a3035;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-small);
}
.site-footer__squares { display: flex; gap: 8px; }
.site-footer__squares i { width: 14px; height: 14px; }
.site-footer__squares i:nth-child(1) { background: var(--magenta); }
.site-footer__squares i:nth-child(2) { background: var(--orange); }
.site-footer__squares i:nth-child(3) { background: var(--lime); }
.site-footer__squares i:nth-child(4) { background: var(--blue); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Sticky mobile bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--ink); border-top: 2px solid #2a3035;
  padding-bottom: env(safe-area-inset-bottom);
}
.stickybar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .95rem .5rem; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.0625rem;
}
.stickybar__btn + .stickybar__btn { border-left: 1px solid #2a3035; }
.stickybar__btn--primary { background: var(--magenta); }
body { padding-bottom: 64px; }
@media (min-width: 960px) {
  .stickybar { display: none; }
  body { padding-bottom: 0; }
}
