/* Matt's Painting & Decorating Services
   Cream ground, charcoal ink, Syne + Manrope */

:root {
  --paper: #f3f0ea;
  --paper-2: #eae6de;
  --white: #fbfaf6;
  --ink: #1a1916;
  --ink-soft: #3a3834;
  --muted: #6a655d;
  --line: #d5d0c6;
  --line-2: #c4beb3;
  --black: #11110f;
  --max: 1200px;
  --gutter: clamp(1.2rem, 5vw, 5rem);
  --header: 6.75rem;
  --display: "Syne", "Gill Sans", "Trebuchet MS", sans-serif;
  --text: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.85rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

.eyebrow {
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #f6f3ed;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.header-rail-copy {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  flex-wrap: wrap;
}

.header-rail-copy span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 1.4rem;
  transform: translateY(-2px);
}

.header-rail-phone {
  text-decoration: none;
  white-space: nowrap;
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  background: var(--black);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.78rem, 1.5vw, 1.02rem);
  letter-spacing: -0.03em;
  max-width: 16rem;
  line-height: 1.15;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.55rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .header-bar {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.05rem;
  min-height: 44px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover,
.btn-ink:focus-visible {
  background: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.btn-lg {
  padding: 0.95rem 1.3rem;
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  background: var(--ink);
}

.hero-media {
  margin: 0;
  grid-area: 1 / 1;
}

.hero-media img {
  width: 100%;
  height: min(92vh, 860px);
  object-fit: cover;
  object-position: 50% 70%;
  filter: grayscale(0.18) contrast(1.05);
}

.hero-card {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - var(--gutter) * 2));
  margin: 0 0 -2.4rem var(--gutter);
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 18px 18px 0 var(--ink);
}

.hero-card h1 span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0 0.8rem;
}

.hero-actions .btn {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.hero-pref {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* Service strip */
.strip {
  padding: clamp(4.4rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.strip-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.strip-head h2 { margin: 0; }

.strip-head p:last-child {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0.7rem 0 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.strip-grid li:nth-child(even) { margin-top: 1.8rem; }

.strip-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.strip-grid img,
.work-gallery img,
.about-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.strip-grid a,
.work-gallery li,
.about-media {
  overflow: hidden;
  background: var(--paper-2);
}

.strip-grid a:hover img,
.work-gallery li:hover img,
.about-media:hover img {
  transform: scale(1.03);
}

.strip-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.8rem 0.7rem 0.7rem;
  background: linear-gradient(to top, rgba(17, 17, 15, 0.82), transparent);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.strip-grid img {
  aspect-ratio: 3 / 4;
  height: auto;
}

/* Trust */
.trust {
  border-block: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.trust-line {
  margin: 0;
  padding: 0.95rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.7vw, 1.2rem);
  letter-spacing: -0.02em;
  text-align: center;
}

.trust-line span {
  opacity: 0.45;
  margin: 0 0.7rem;
  font-weight: 500;
}

/* About */
.about {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.about-media {
  margin: 0;
  margin-top: 3.4rem;
  margin-right: -1.2rem;
}

.about-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-copy {
  padding-top: 0.2rem;
}

.about-copy p {
  max-width: 38rem;
}

.about-area {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.section-head {
  max-width: 40rem;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.section-head p:last-child {
  color: var(--ink-soft);
}

/* Portfolio */
.portfolio {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--white);
}

.work-slider {
  position: relative;
}

.work-viewport {
  overflow: visible;
}

.work-slider.is-ready .work-viewport {
  overflow: hidden;
}

.work-gallery {
  --work-cols: 3;
  --work-gap: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--work-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-slider.is-ready .work-gallery {
  flex-wrap: nowrap;
  transition: transform 0.9s cubic-bezier(0.22, 0.7, 0.28, 1);
  will-change: transform;
}

.work-gallery li {
  position: relative;
  flex: 0 0 calc((100% - (var(--work-cols) - 1) * var(--work-gap)) / var(--work-cols));
}

.work-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.work-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 2.6rem 0.8rem 0.75rem 1.5rem;
  background: linear-gradient(to top, rgba(17, 17, 15, 0.88) 0%, rgba(17, 17, 15, 0.35) 48%, transparent 100%);
  text-align: right;
  color: var(--paper);
  pointer-events: none;
}

.work-overlay p {
  margin: 0;
  padding: 0;
  max-width: 15rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: inherit;
}

.work-fb {
  pointer-events: auto;
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0 0.1rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-nav {
  display: none;
}

.work-slider.is-ready .work-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.work-slider.is-ready .work-nav:hover,
.work-slider.is-ready .work-nav:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.work-slider.is-ready .work-nav:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.work-nav-prev { left: 0.65rem; }
.work-nav-next { right: 0.65rem; }

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
}

.work-filters button {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  cursor: pointer;
}

.work-filters button.is-on,
.work-filters button:hover,
.work-filters button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.work-gallery li.is-off { display: none; }

.work-more {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.work-more p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.work-more ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.work-more a {
  font-weight: 600;
  text-underline-offset: 3px;
}

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.4rem, 6vw, 4.2rem) 0;
}

.cta-inner { max-width: 42rem; }
.cta-band h2 { color: inherit; }

.cta-band .btn-ghost {
  border-color: var(--paper);
  color: var(--paper);
}

.cta-band .btn-ghost:hover,
.cta-band .btn-ghost:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.map-note {
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.dock {
  display: none;
}

.svc-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.svc-groups h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.svc-groups ul {
  display: grid;
  gap: 0.4rem;
}

.svc-groups li {
  padding-left: 0.9rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.svc-groups li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--ink);
}

/* Reviews */
.reviews {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.rating-kicker {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}

.reviews h2 .star {
  color: var(--ink);
  font-size: 0.85em;
}

.reviews blockquote {
  margin: 1.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.reviews blockquote p {
  font-size: 1.12rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.reviews blockquote footer {
  font-size: 0.85rem;
  color: var(--muted);
}

.reviews-shot {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.7rem;
}

.reviews-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.review-card {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card p { font-size: 1.15rem; }
.review-meta {
  font-size: 0.85rem !important;
  color: #c9c3b8;
  margin: 0;
}

.text-link {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-underline-offset: 4px;
}

/* Contact */
.contact {
  padding: 0 0 clamp(3.5rem, 7vw, 5.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-copy {
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 1.6rem;
}

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.reviews-copy .text-link {
  display: inline-block;
  margin-top: 1.2rem;
}

.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { text-underline-offset: 3px; }

.contact-map {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}

.contact-map iframe {
  width: 100%;
  flex: 1;
  min-height: 24rem;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(2.4rem, 5vw, 3.8rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  margin-bottom: 0.8rem;
}

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.footer-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b7b1a6;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer ul { display: grid; gap: 0.35rem; }
.footer-note { color: #b7b1a6; font-size: 0.9rem; }

.footer-base {
  border-top: 1px solid #3a3834;
  padding: 0.9rem 0;
  font-size: 0.85rem;
}

.footer-base-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-base p { margin: 0; }

/* Privacy */
.legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-wrap {
  max-width: 44rem;
}

.legal h1 { margin-bottom: 0.3rem; }
.updated { color: var(--muted); font-size: 0.9rem; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 1em;
}
.legal li { margin: 0.25rem 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

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

/* Mobile */
@media (max-width: 980px) {
  :root { --header: 5.6rem; }

  .header-rail-copy span:nth-child(2) { display: none; }

  .header-bar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 0.6rem var(--gutter) 1rem;
    gap: 0;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle { display: inline-block; }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-grid li:nth-child(even) { margin-top: 1.2rem; }

  .trust-line {
    text-align: left;
    line-height: 1.85;
    font-size: 1rem;
  }

  .about-media { margin-right: 0; margin-top: 0; }

  .about-grid,
  .reviews-grid,
  .contact-grid,
  .footer-grid,
  .svc-groups {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    --work-cols: 2;
  }



  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 640px) {
  .header-rail { display: none; }
  :root { --header: 4.6rem; }

  .brand-name {
    font-size: 0.72rem;
    max-width: 9.8rem;
  }
  .brand img { width: 44px; height: 44px; }

  .dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

  .dock .btn {
    width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  body { padding-bottom: 4.6rem; }

  .hero-card {
    box-shadow: 10px 10px 0 var(--ink);
    margin-bottom: -1.2rem;
  }

  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip-grid li:nth-child(even) { margin-top: 1.2rem; }

  .work-gallery {
    --work-cols: 1;
  }

  .work-overlay {
    padding: 2.2rem 0.85rem 0.85rem 1.1rem;
  }

  .trust-line { font-size: 0.95rem; }

  .hero-media img {
    height: 70vh;
  }

  .hero { min-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
