/* ==========================================================================
   Quality Pro Painting — review page
   Brand tokens sampled from qualitypropaintingnwa.com:
     royal blue #19298E · plum/ink #281A39 · section gray #F6F6F6
     type: Open Sans (display + text), matching the parent site
   ========================================================================== */

:root {
  --plum: #281a39;
  --plum-soft: #3a2851;
  --ink: #241a30;
  --blue: #19298e;
  --blue-deep: #101c66;
  --shell: #f6f6f6;
  --paper: #ffffff;
  --rule: #d8d6dd;
  --muted: #55525e;
  --icon: #6f6a78;
  --star-off: #c9c9c9;

  --display: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shell-width: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* Plum, so any overscroll past the footer reads as footer, not as a
     stray strip of section gray. Sections set their own backgrounds. */
  background: var(--plum);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared: eyebrow — a short blue rule, then tracked-out caps.
   The only structural marker used on the page. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
  flex: none;
}

.eyebrow--light { color: var(--paper); }
.eyebrow--light::before { background: var(--paper); }

/* --------------------------------------------------------------------------
   Utility bar + masthead (mirrors the structure of qualitypropaintingnwa.com)
   -------------------------------------------------------------------------- */

/* Light contact strip, then a white masthead — the same two-tier header the
   parent site uses. */
.utility {
  background: var(--shell);
  color: var(--plum);
  font-size: 0.875rem;
}

.utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 2.25rem;
  padding-block: 0.6rem;
}

.utility a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.utility a:hover { color: var(--blue); }
.utility .icon { width: 15px; height: 15px; flex: none; }

/* Socials sit hard right, so the contact links stay grouped on the left. */
.utility__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.utility__social a { color: var(--icon); }
.utility__social a:hover { color: var(--blue); }
.utility__social .icon { width: 19px; height: 19px; }

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: 0.9rem;
}

.masthead__logo { display: block; flex: none; }
.masthead__logo img { width: 168px; }

/* auto margins centre the nav in whatever space the logo leaves, which is how
   the parent site's header sits. */
.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2.5rem;
  margin-inline: auto;
}

.masthead__link {
  color: var(--plum);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.masthead__link:hover { color: var(--blue); }

/* The page you're on. Underlined rather than recolored, so it reads as
   position and not as a second accent. */
.masthead__link[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--blue);
}

@media (max-width: 61.99rem) {
  .masthead__nav { gap: 0.5rem 1.5rem; }
}

/* Square buttons, matching the brand's CTA treatment */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: var(--blue);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background-color 0.2s ease;
}

.btn:hover { background: var(--blue-deep); }

.btn .icon {
  width: 24px;
  height: 12px;
  transition: transform 0.2s ease;
}

.btn:hover .icon { transform: translateX(3px); }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { background: var(--paper); }

.hero__inner {
  max-width: 46rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--plum);
  text-wrap: balance;
}

.hero__rule {
  width: 100%;
  max-width: 32rem;
  height: 1px;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0;
  border: 0;
  background: var(--rule);
}

.hero p:not(.eyebrow) {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Trust band — the aggregate, on brand blue
   -------------------------------------------------------------------------- */

.band {
  background: var(--blue);
  color: var(--paper);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.5rem;
}

.band__item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
}

.band__figure {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1;
}

.band__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.band .stars {
  --star-fill: #ffffff;
  --star-empty: rgba(255, 255, 255, 0.4);
  align-self: center;
}

.band .stars .star { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */

.stars {
  --star-fill: var(--blue);
  --star-empty: var(--star-off);
  display: flex;
  gap: 3px;
  flex: none;
}

.star {
  width: 15px;
  height: 15px;
  fill: var(--star-fill);
}

.star--off { fill: var(--star-empty); }

/* A single element that draws all five stars — used on the review cards so
   each card carries one tag instead of five. The 132x24 viewBox fixes the
   aspect ratio, so width and height stay in proportion. */
.stars5 {
  display: block;
  width: 82.5px;
  height: 15px;
  fill: var(--blue);
  flex: none;
}

/* --------------------------------------------------------------------------
   The wall
   -------------------------------------------------------------------------- */

.wall {
  background: var(--shell);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.wall__head { margin-bottom: clamp(2rem, 5vw, 3rem); }

.wall__head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--plum);
  text-wrap: balance;
}

/* Pure-CSS masonry. Cards keep their natural height and never split. */
.wall__grid {
  columns: 1;
  column-gap: 1.5rem;
}

@media (min-width: 40rem) { .wall__grid { columns: 2; } }
@media (min-width: 62rem) { .wall__grid { columns: 3; } }

.card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 1.75rem 1.6rem 1.4rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 24px -16px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Signature detail: a blue stub at the top-left of every card that draws
   itself across the full width when the card is engaged. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 40px;
  background: var(--blue);
  transition: width 0.28s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07), 0 18px 34px -18px rgba(0, 0, 0, 0.4);
}

.card:hover::before,
.card:focus-within::before { width: 100%; }

.card .stars,
.card .stars5 { margin-bottom: 1.1rem; }

/* Positioned so it paints above the stretched card link — keeps the review
   text selectable and copyable while the rest of the card stays clickable. */
.card__quote { position: relative; margin: 0; quotes: none; }

/* The lead line — each review opens in its own voice, set larger and lighter.
   This is the page's signature typographic move. */
.card__lead {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--plum);
  text-wrap: pretty;
}

.card__rest {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.card__quote > :first-child { margin-top: 0; }

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.card__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.card__link .icon { width: 13px; height: 13px; }

/* Stretch the one real link over the whole card, so the card is clickable
   without nesting interactive elements. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__link:hover { color: var(--blue-deep); text-decoration: underline; }

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

/* --------------------------------------------------------------------------
   Closing call to action + footer
   -------------------------------------------------------------------------- */

.closer {
  background: var(--plum);
  color: var(--paper);
}

.closer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.closer__copy { max-width: 34rem; }

.closer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.closer p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-foot {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: 2.25rem;
}

.site-foot p { margin: 0 0 0.35rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.site-foot__col { min-width: 12rem; }

.site-foot__name {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Quality floor
   -------------------------------------------------------------------------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.masthead a:focus-visible,
.utility a:focus-visible,
.closer a:focus-visible,
.site-foot a:focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .card:hover,
  .card:focus-within { transform: none; }
}
