/* Valor Metal 1.1.0 — shade-focused content components, footer and consent bar.
   Loaded after the theme and Valor Smooth Motion styles. */

/* Footer: four columns now that Shade Solutions has its own list */
.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr
}

@media (max-width:980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* Comparison tables (membranes, shade types) — scroll sideways on phones instead of squashing */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0 10px;
  border: 1px solid #dfe6e0;
  border-radius: 14px;
  background: #fff
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.55
}

.compare-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--gray)
}

.compare-table th, .compare-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6ece7
}

.compare-table thead th {
  background: var(--teal-900);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em
}

.compare-table tbody th {
  color: var(--teal-900);
  font-weight: 700;
  white-space: nowrap
}

.compare-table tbody tr:nth-child(even) {
  background: #f4f7f4
}

.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td {
  border-bottom: 0
}

.table-note {
  font-size: .85rem;
  color: var(--gray);
  margin-top: 8px
}

/* Areas served chips */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none
}

.area-list li {
  padding: 8px 14px;
  border: 1px solid #cfdad3;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-900);
  font-weight: 600;
  font-size: .88rem
}

/* Shade-type cards (reuse .application-grid, add a small label) */
.application-grid .type-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: .02em
}

.application-grid h3 a {
  color: inherit;
  text-decoration: none
}

.application-grid h3 a:hover {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 4px
}

/* Process: six numbered steps, 3 per row on desktop, 1 per row on phones */
.process-flow.steps-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.process-flow.steps-6 .process-step {
  min-width: 0
}

@media (max-width:900px) {
  .process-flow.steps-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:560px) {
  .process-flow.steps-6 {
    grid-template-columns: 1fr
  }
}

/* Service page body: content that used to be hidden in a collapsed box is now visible */
.detail-copy h2 {
  margin-top: 34px
}

.detail-copy h2:first-child {
  margin-top: 0
}

.detail-copy h3 {
  font-size: 1.05rem;
  color: var(--teal-900);
  margin: 22px 0 8px
}

.detail-copy .faq-list summary {
  font-size: 1rem
}

.detail-copy ul.detail-list li {
  margin-bottom: 6px
}

/* Home: shade solutions grid — 3 across, keeps the existing offer-card look */
.home-shades .offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media (max-width:1120px) {
  .home-shades .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:700px) {
  .home-shades .offer-grid {
    grid-template-columns: 1fr
  }
}

.steel-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none
}

.steel-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #dfe6e0;
  color: var(--teal-900);
  font-weight: 600;
  text-decoration: none
}

.steel-links a:hover {
  color: var(--teal-700)
}

.steel-links a::after {
  content: " →";
  color: var(--gold)
}

@media (max-width:900px) {
  .steel-links {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:560px) {
  .steel-links {
    grid-template-columns: 1fr
  }
}

/* Analytics consent: compact bar, smaller on phones so it never covers the page */
.analytics-choice {
  width: min(560px, calc(100vw - 24px));
  left: 12px;
  bottom: 12px;
  padding: 14px 16px;
  font-size: 13.5px
}

.analytics-choice p {
  margin: 0 0 10px;
  line-height: 1.5
}

.analytics-choice button {
  padding: 8px 14px
}

@media (max-width:600px) {
  .analytics-choice {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    border-radius: 10px
  }

  .analytics-choice p {
    margin-bottom: 8px
  }

  .analytics-choice div {
    flex-wrap: nowrap
  }

  .analytics-choice button {
    flex: 1;
    padding: 9px 10px
  }
}

/* Grid items may shrink below their content width, so wide tables scroll inside .table-scroll
   instead of pushing the whole column past the phone screen (html has overflow-x:clip). */
.detail-layout>*, .detail-copy, .detail-copy .table-scroll {
  min-width: 0
}

.detail-copy .service-facts {
  table-layout: fixed
}

.detail-copy .service-facts td {
  overflow-wrap: anywhere
}

.process-flow.steps-6 .process-step::after {
  display: none !important;
  content: none !important
}

/* =====================================================================
   Valor Metal 1.2.0 — hero framing, scroll motion, in-page navigation
   ===================================================================== */

/* ---------- Hero framing ----------
   The sub-page hero used to take its height from the text inside it: about 320px
   tall across a ~1900px screen, a 6:1 letterbox. A 3:2 photo dropped into that lost
   roughly three quarters of its height to the cover crop, which is why the subject
   kept getting cut off. Giving the band a real height takes it to about 4:1, and the
   per-page focal points set in upgrade.js keep the right slice of each photo. */
/* A fixed height, not min-height: with min-height the band grew with the amount of text,
   so a page with a two-line lead ended up taller than one with a single line and the
   banners looked inconsistent from page to page. */
.page-hero {
  height: 460px;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.page-hero.vm-hero-mapped {
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.page-hero>.container {
  width: 100%
}

/* Keep the text readable over a photo without burying the photo: a left-weighted
   scrim rather than a flat wash over the whole band. */
.page-hero.vm-hero-mapped::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 38, 33, .91) 0%, rgba(12, 38, 33, .80) 44%, rgba(12, 38, 33, .48) 72%, rgba(12, 38, 33, .18) 100%);
}

/* A soft foot so the band meets the page below it instead of stopping dead. */
.page-hero.vm-hero-mapped::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: 120px !important;
  border-radius: 0 !important;
  transform: none !important;
  animation: none !important;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 38, 33, 0) 0%, rgba(12, 38, 33, .55) 100%);
}

.page-hero.vm-hero-mapped h1,
.page-hero.vm-hero-mapped p,
.page-hero.vm-hero-mapped .breadcrumb,
.page-hero.vm-hero-mapped .breadcrumbs,
.page-hero.vm-hero-mapped .eyebrow {
  text-shadow: 0 2px 18px rgba(6, 20, 17, .6)
}

.page-hero.vm-hero-mapped h1 {
  max-width: 17ch
}

/* Body copy is small, so it needs a tighter shadow than the headline and has to stay
   inside the darker part of the scrim rather than running out over the bright areas. */
.page-hero.vm-hero-mapped p {
  max-width: 46ch;
  color: #eef5f2;
  text-shadow: 0 1px 6px rgba(6, 20, 17, .85)
}

.page-hero.vm-hero-mapped .breadcrumb,
.page-hero.vm-hero-mapped .breadcrumbs {
  text-shadow: 0 1px 6px rgba(6, 20, 17, .85)
}

@media (max-width:900px) {
  .page-hero {
    height: 400px;
    min-height: 400px;
    padding-top: 40px;
    padding-bottom: 40px
  }
}

@media (max-width:700px) {
  .page-hero {
    height: auto;
    min-height: 360px;
    padding-top: 40px;
    padding-bottom: 40px
  }

  /* Portrait screens crop the other way, so the scrim runs top-to-bottom instead. */
  .page-hero.vm-hero-mapped::before {
    background: linear-gradient(180deg, rgba(12, 38, 33, .48) 0%, rgba(12, 38, 33, .62) 52%, rgba(12, 38, 33, .80) 100%)
  }

  .page-hero.vm-hero-mapped h1 {
    max-width: none
  }
}

/* Valor Motion Plus sets `html,body{overflow-x:clip}` to stop sideways overflow on phones.
   With `clip` on the root element the document stops being a scroll container, so
   window.scrollTo() silently does nothing and the jump links below would go nowhere.
   Keeping the clip on body alone prevents the overflow and leaves the root scrollable. */
html {
  overflow-x: visible !important
}

body {
  overflow-x: clip
}

/* ---------- Scroll reveal ---------- */
.vm-rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform
}

.vm-rv-in {
  opacity: 1 !important;
  transform: none !important
}

@media (prefers-reduced-motion:reduce) {
  .vm-rv {
    opacity: 1;
    transform: none;
    transition: none
  }
}

/* ---------- Reading progress ---------- */
.vm-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3000;
  pointer-events: none;
  background: transparent
}

.vm-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold, #e0d142), #f2e98a);
  transition: transform .08s linear
}

/* ---------- Sticky section nav ---------- */
.vm-jump {
  position: sticky;
  top: var(--vm-chrome, 64px);
  z-index: 120;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dfe6e0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s
}

.vm-jump.is-stuck {
  opacity: 1;
  visibility: visible;
  transform: none
}

.vm-jump ul {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1280px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch
}

.vm-jump ul::-webkit-scrollbar {
  display: none
}

.vm-jump li {
  flex: 0 0 auto
}

.vm-jump a {
  display: block;
  padding: 14px 14px 11px;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 600;
  color: #4a5f58;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease
}

.vm-jump a:hover {
  color: var(--teal-900, #102d28)
}

.vm-jump a.is-current {
  color: var(--teal-900, #102d28);
  border-bottom-color: var(--gold, #e0d142)
}

/* Anchor targets clear the two sticky bars when jumped to. */
.vm-anchor {
  scroll-margin-top: calc(var(--vm-chrome, 64px) + 70px)
}

@media (max-width:700px) {
  .vm-jump ul {
    padding: 0 14px
  }

  .vm-jump a {
    padding: 12px 11px 9px;
    font-size: .8rem
  }
}

@media (prefers-reduced-motion:reduce) {
  .vm-jump {
    transition: none
  }
}

/* ---------- Section seams ----------
   The colour bands used to butt straight up against each other, so every change of
   background read as a hard horizontal line across the page. These feather each band into
   the one above and below it. The gradients sit *outside* the section on negative offsets,
   so no text ever lands on a half-faded backdrop. Page background is #f6f5ef, the pale
   band #e4ecea and the dark band #122c29. */
.materials-preview, .instagram-section {
  position: relative
}

.materials-preview::before, .materials-preview::after,
.instagram-section::before, .instagram-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  pointer-events: none;
  border-radius: 0;
  animation: none;
  transform: none;
}

/* Dark band: fade its teal up into the pale band and down into the page background. */
.materials-preview::before {
  top: -72px;
  background: linear-gradient(180deg, rgba(18, 44, 41, 0) 0%, rgba(18, 44, 41, .45) 52%, rgba(18, 44, 41, 1) 100%)
}

.materials-preview::after {
  bottom: -72px;
  background: linear-gradient(0deg, rgba(18, 44, 41, 0) 0%, rgba(18, 44, 41, .45) 52%, rgba(18, 44, 41, 1) 100%)
}

/* Pale Instagram band: same idea, blending with the page background. */
.instagram-section::before {
  top: -56px;
  height: 56px;
  background: linear-gradient(180deg, rgba(230, 238, 232, 0) 0%, rgba(230, 238, 232, 1) 100%)
}

.instagram-section::after {
  display: none
}

/* The home hero sits straight on top of the first content section — soften that too. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, rgba(246, 245, 239, 0) 0%, rgba(246, 245, 239, .55) 100%)
}

@media (max-width:700px) {
  .materials-preview::before, .materials-preview::after {
    height: 48px
  }

  .materials-preview::before {
    top: -48px
  }

  .materials-preview::after {
    bottom: -48px
  }

  .hero::after {
    height: 60px
  }
}

/* ---------- Card polish ---------- */
.offer-card, .service-card, .s-card, .p-card, .value-card, .mv-card {
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease
}

.offer-card:hover, .service-card:hover, .s-card:hover, .p-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 45, 40, .14)
}

@media (prefers-reduced-motion:reduce) {
  .offer-card, .service-card, .s-card, .p-card, .value-card, .mv-card {
    transition: none
  }

  .offer-card:hover, .service-card:hover, .s-card:hover, .p-card:hover {
    transform: none
  }
}

.page-hero.detail-hero {
  background-color: #102d28 !important;
  background-blend-mode: normal !important;
}

.page-hero.detail-hero::before {
  background: linear-gradient(90deg,
      rgba(9, 39, 34, 0.90) 0%,
      rgba(9, 39, 34, 0.75) 45%,
      rgba(9, 39, 34, 0.30) 100%) !important;
}

.page-hero.detail-hero>.container {
  position: relative;
  z-index: 2;
}