/* Premium visual system for Patiolume's supporting editorial pages. */
.secondary-page {
  background: #f2f0ef;
}

.secondary-page .page-hero {
  --page-image: url("hero.avif");
  position: relative;
  isolation: isolate;
  min-height: clamp(470px, 62vh, 620px);
  padding: 168px 0 76px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #153f4c;
}

.why-page .page-hero { --page-image: url("hero.avif"); }
.faq-page .page-hero { --page-image: url("staircase_light.jpg"); }
.testimonials-page .page-hero { --page-image: url("wall_light.webp"); }
.terms-page .page-hero { --page-image: url("bollard_light.avif"); }
.contact-page .page-hero { --page-image: url("doorstep_light.avif"); }

.secondary-page .page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--page-image) center 56% / cover no-repeat;
  filter: saturate(.68) contrast(1.04);
  transform: scale(1.015);
}

.secondary-page .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 28, 34, .92) 0%, rgba(8, 28, 34, .72) 48%, rgba(8, 28, 34, .22) 100%),
    linear-gradient(0deg, rgba(8, 28, 34, .68), transparent 58%);
}

.secondary-page .page-hero .container {
  position: relative;
}

.secondary-page .page-hero .container::before {
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 64px;
  height: 2px;
  background: #d7a477;
}

.secondary-page .page-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #f4e5d8;
  backdrop-filter: blur(10px);
}

.secondary-page .page-hero h1 {
  max-width: 820px;
  margin-top: 17px;
  color: #fff;
  font-size: clamp(3rem, 6.4vw, 6.25rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.secondary-page .page-hero p {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.secondary-page main > .section {
  position: relative;
  padding: 96px 0 116px;
  background:
    radial-gradient(circle at 88% 8%, rgba(36, 95, 115, .09), transparent 27%),
    linear-gradient(180deg, #f7f5f2, #f2f0ef);
}

.secondary-page .content-card,
.secondary-page .faq-page-item,
.secondary-page .inspiration-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 95, 115, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 58px rgba(36, 95, 115, .07);
}

.secondary-page .content-card {
  margin: 0;
  padding: clamp(27px, 3vw, 42px);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.secondary-page .content-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(36, 95, 115, .1);
  border-radius: 50%;
}

.secondary-page .content-card:hover,
.secondary-page .faq-page-item:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 95, 115, .27);
  box-shadow: 0 30px 72px rgba(36, 95, 115, .12);
}

.secondary-page .content-card h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.secondary-page .content-card p {
  max-width: 62ch;
  color: #667174;
  line-height: 1.72;
}

.why-page main > .section > .container,
.terms-page main > .section > .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.terms-page main > .section > .container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terms-page .policy-card {
  scroll-margin-top: 112px;
}

.terms-page .policy-card > p,
.terms-page .policy-copy p {
  margin-top: 18px;
}

.terms-page .policy-card strong {
  color: #263f47;
}

.terms-page .policy-list {
  margin: 22px 0 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.terms-page .policy-list li {
  position: relative;
  padding-left: 23px;
  color: #667174;
  line-height: 1.7;
}

.terms-page .policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #733e24;
  box-shadow: 0 0 0 5px rgba(115, 62, 36, .09);
}

.terms-page .policy-link {
  color: #245f73;
  text-decoration: underline;
  text-decoration-color: rgba(36, 95, 115, .35);
  text-underline-offset: 3px;
}

.why-page .content-card:nth-child(2) {
  transform: translateY(30px);
  background: #245f73;
  color: #fff;
}

.why-page .content-card:nth-child(2) .eyebrow,
.why-page .content-card:nth-child(2) p {
  color: rgba(255, 255, 255, .78);
}

.why-page .content-card:nth-child(2):hover {
  transform: translateY(24px);
}

.faq-page .faq-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-page .faq-page-item {
  margin: 0;
  padding: 28px 30px 30px 78px;
  counter-increment: faq;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.faq-page .faq-page-list {
  counter-reset: faq;
}

.faq-page .faq-page-item::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute;
  left: 28px;
  top: 29px;
  color: #733e24;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.faq-page .faq-page-item h3 {
  margin: 0;
  font-size: 1.18rem;
}

.faq-page .faq-page-item p {
  margin-top: 10px;
  color: #667174;
  line-height: 1.65;
}

.contact-page .contact-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: 24px;
}

.contact-page .contact-grid .content-card:first-child {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(13, 46, 56, .86), rgba(13, 46, 56, .96)),
    url("LW_02.avif") center / cover;
}

.contact-page .contact-grid .content-card:first-child .eyebrow,
.contact-page .contact-grid .content-card:first-child p {
  color: rgba(255, 255, 255, .8);
}

.contact-page .contact-link {
  color: #fff;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .38);
  text-underline-offset: 4px;
}

.contact-page .contact-link:hover {
  text-decoration-color: #fff;
}

.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea {
  border-color: rgba(36, 95, 115, .16);
  background: #f8f7f4;
}

.contact-page .field input:focus,
.contact-page .field select:focus,
.contact-page .field textarea:focus {
  border-color: #245f73;
  box-shadow: 0 0 0 4px rgba(36, 95, 115, .1);
}

.testimonials-page .reviews-intro {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.testimonials-page .reviews-intro h2 {
  margin-top: 12px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.testimonials-page .reviews-intro > p {
  max-width: 460px;
  color: #667174;
  line-height: 1.65;
}

.testimonials-page .trustpilot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonials-page .review-card {
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-color: rgba(36, 95, 115, .14);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(36, 95, 115, .07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.testimonials-page .review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 95, 115, .28);
  box-shadow: 0 28px 66px rgba(36, 95, 115, .12);
}

.testimonials-page .score-line {
  margin-bottom: 19px;
  align-items: center;
}

.testimonials-page .score {
  color: #202426;
  font-size: 1.1rem;
}

.trust-stars {
  display: inline-flex;
  gap: 3px;
}

.trust-stars span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #00b67a;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.trust-stars span.half {
  background: linear-gradient(90deg, #00b67a 50%, #d5d9d8 50%);
}

.testimonials-page .review-card blockquote {
  flex: 1;
  color: #394245;
  font-size: .96rem;
  line-height: 1.68;
}

.testimonials-page .review-meta {
  margin-top: 24px;
  padding-top: 18px;
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(36, 95, 115, .12);
}

.testimonials-page .review-meta strong {
  color: #202426;
  font-size: .94rem;
}

.testimonials-page .review-meta span {
  color: #737b7d;
  font-size: .82rem;
}

.inspiration-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(36, 95, 115, .14);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(36, 95, 115, .1);
}

.inspiration-media {
  min-height: 420px;
  background:
    linear-gradient(0deg, rgba(9, 30, 36, .18), rgba(9, 30, 36, .02)),
    url("LW_01.avif") center / cover;
}

.secondary-page .inspiration-copy {
  border: 0;
  border-radius: 0;
  padding: clamp(34px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
}

.secondary-page .inspiration-copy h2 {
  margin-top: 15px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.secondary-page .inspiration-copy p {
  margin: 20px 0 28px;
  color: #667174;
  line-height: 1.7;
}

.inspiration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .why-page main > .section > .container,
  .terms-page main > .section > .container,
  .faq-page .faq-page-list,
  .contact-page .contact-grid,
  .inspiration-panel {
    grid-template-columns: 1fr;
  }

  .testimonials-page .trustpilot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-page .content-card:nth-child(2),
  .why-page .content-card:nth-child(2):hover {
    transform: none;
  }

  .inspiration-media {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .secondary-page .page-hero {
    min-height: 450px;
    padding: 136px 0 54px;
  }

  .secondary-page .page-hero::after {
    background: linear-gradient(0deg, rgba(8, 28, 34, .92), rgba(8, 28, 34, .4));
  }

  .secondary-page .page-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .secondary-page main > .section {
    padding: 68px 0 82px;
  }

  .testimonials-page .reviews-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonials-page .trustpilot-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-page .review-card {
    padding: 22px;
  }

  .faq-page .faq-page-item {
    padding: 24px 22px 25px 64px;
  }

  .faq-page .faq-page-item::before {
    left: 22px;
    top: 25px;
  }

  .inspiration-panel {
    min-height: 0;
    border-radius: 20px;
  }

  .inspiration-media {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-page .content-card,
  .secondary-page .faq-page-item {
    transition: none;
  }
}
