/**
 * Pool Ready Home - Home page template
 * Hero, appointment card, about, services, why-choose-us, testimonials, blog.
 */

/* ==========================================================================
   1. Hero
   ========================================================================== */

.prh-hero {
  position: relative;
  overflow: hidden;
  background: var(--prh-gradient-hero);
  color: var(--prh-white);
}

.prh-header--overlay + .prh-site-content .prh-hero {
  padding-top: calc(var(--prh-header-height) + var(--prh-space-10));
}

.prh-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.prh-hero__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.prh-hero__bubble--1 {
  width: 220px;
  height: 220px;
  top: -60px;
  left: 6%;
}
.prh-hero__bubble--2 {
  width: 90px;
  height: 90px;
  top: 30%;
  left: 20%;
  background: rgba(255, 255, 255, 0.18);
}
.prh-hero__bubble--3 {
  width: 140px;
  height: 140px;
  bottom: 10%;
  left: 42%;
}
.prh-hero__bubble--4 {
  width: 60px;
  height: 60px;
  top: 18%;
  right: 38%;
  background: rgba(255, 255, 255, 0.2);
}

.prh-hero__content {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
}

.prh-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--prh-space-10);
}

.prh-hero__eyebrow {
  margin: 0 0 var(--prh-space-4);
  color: var(--prh-white);
  font-size: var(--prh-fs-sm);
  font-weight: var(--prh-fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.prh-hero__title {
  max-width: 14ch;
  margin-bottom: var(--prh-space-5);
  color: var(--prh-white);
  font-size: var(--prh-fs-display);
}

.prh-hero__text {
  max-width: 34rem;
  margin-bottom: var(--prh-space-8);
  color: var(--prh-on-dark-70);
  font-size: var(--prh-fs-lead);
}

.prh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prh-space-4);
}

.prh-hero__media {
  position: relative;
  max-height: 400px;
  overflow: hidden;
}

.prh-hero__media img {
  width: 100%;
  border-radius: var(--prh-radius-xl);
  object-fit: cover;
  object-position: top;
  aspect-ratio: 4 / 7;
}

@media (max-width: 900px) {
  .prh-hero__inner {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .prh-hero__content {
    min-height: auto;
    padding: 50px 0px;
  }

  .prh-hero__title {
    max-width: none;
  }

  .prh-hero__media {
    max-width: 22rem;
    margin-inline: auto;
  }
}

/* ==========================================================================
   2. Appointment / booking card
   ========================================================================== */

.prh-appointment {
  position: relative;
  z-index: 2;
  margin-top: clamp(-7rem, -4rem - 3vw, -5rem);
}

.prh-appointment__card {
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-radius: var(--prh-radius-xl);
  background: var(--prh-white);
  box-shadow: var(--prh-shadow-lg);
}

.prh-appointment__title {
  margin-bottom: var(--prh-space-6);
  font-size: var(--prh-fs-h4);
}

.prh-appointment__notice {
  margin-bottom: var(--prh-space-5);
  padding: var(--prh-space-3) var(--prh-space-4);
  border-radius: var(--prh-radius-md);
  font-size: var(--prh-fs-sm);
}

.prh-appointment__notice--success {
  background: rgba(20, 145, 155, 0.12);
  color: var(--prh-teal-dark);
}

.prh-appointment__notice--error {
  background: rgba(200, 60, 60, 0.1);
  color: #b3261e;
}

.prh-appointment__form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prh-space-4);
}

.prh-appointment__field--full,
.prh-appointment__actions {
  grid-column: 1 / -1;
}

.prh-appointment__actions {
  display: flex;
  justify-content: flex-end;
}

.prh-appointment__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 780px) {
  .prh-appointment__form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .prh-appointment__form {
    grid-template-columns: 1fr;
  }

  .prh-appointment__actions {
    justify-content: stretch;
  }

  .prh-appointment__actions .prh-btn {
    width: 100%;
  }
}

/* ==========================================================================
   3. About
   ========================================================================== */

.prh-about {
  padding-top: clamp(9rem, 5rem + 6vw, 12rem);
}

.prh-about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  margin-bottom: var(--prh-space-16);
}

.prh-about__media {
  position: relative;
  padding: var(--prh-space-6) var(--prh-space-8) var(--prh-space-10)
    var(--prh-space-8);
}

.prh-about__media-back {
  width: 100%;
  border-radius: var(--prh-radius-lg);
  height: 500px;
  object-fit: cover;
}

.prh-about__media-front {
  position: absolute;
  right: -50px;
  bottom: 80px;
  width: 250px;
  border: 6px solid var(--prh-white);
  border-radius: var(--prh-radius-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--prh-shadow-md);
}

.prh-about__badge {
  position: absolute;
  top: 60px;
  left: 0;
  max-width: 11rem;
  padding: var(--prh-space-5);
  border-radius: var(--prh-radius-lg);
  background: var(--prh-teal);
  color: var(--prh-white);
  box-shadow: var(--prh-shadow-lg);
}

.prh-about__badge-value {
  display: block;
  font-size: var(--prh-fs-h2);
  font-weight: var(--prh-fw-bold);
  line-height: 1;
}

.prh-about__badge-label {
  display: block;
  margin-top: var(--prh-space-2);
  font-size: var(--prh-fs-xs);
  line-height: var(--prh-lh-snug);
}

.prh-about__copy {
  margin-bottom: var(--prh-space-6);
}

@media (max-width: 900px) {
  .prh-about__grid {
    grid-template-columns: 1fr;
  }
  .prh-service-card .prh-service-card__media {
    width: 100%;
  }
  .prh-about__media {
    max-width: 24rem;
    order: 2;
    margin-inline: auto;
  }
}

.prh-about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prh-space-6);
}

.prh-feature-card {
  padding: var(--prh-space-6);
  border: var(--prh-border);
  border-radius: var(--prh-radius-lg);
  transition:
    box-shadow var(--prh-transition),
    transform var(--prh-transition);
  display: flex;
  gap: var(--prh-space-4);
  position: relative;
}
.prh-feature-card:nth-child(2)::after {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  right: 0;
  bottom: 0;
  background: #55c7d3;

  clip-path: polygon(
    0 100%,
    20% 80%,
    72% 80%,
    76% 76%,
    76% 35%,
    100% 0,
    100% 100%
  );
  border-radius: 7px;
}
.prh-feature-card:nth-child(2)::before {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  left: 0;
  top: 0;
  background: #0e8698;

  clip-path: polygon(
    0 0,
    100% 0,
    75% 15%,
    25% 15%,
    20% 20%,
    20% 55%,
    15% 75%,
    0 100%
  );
  border-radius: 7px;
}
.prh-feature-card:hover {
  box-shadow: var(--prh-shadow-md);
  transform: translateY(-2px);
}

.prh-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--prh-space-4);
  border-radius: var(--prh-radius-circle);
  background: var(--prh-teal-10);
  color: var(--prh-teal);
}
.prh-feature-card__icons_wrapper {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  color: var(--prh-teal);
}

.prh-feature-card__icons_wrapper img {
  width: 50px;
  min-width: 50px;
}
.prh-feature-card__title {
  margin-bottom: var(--prh-space-2);
  font-size: var(--prh-fs-h5);
}

.prh-feature-card__text {
  margin: 0;
  font-size: var(--prh-fs-sm);
}

@media (max-width: 780px) {
  .prh-about__features {
    grid-template-columns: 1fr;
  }
  .prh-header__actions .prh-btn--navy {
    display: none;
  }
  .prh-nav__cta.is-mobile .prh-btn--navy {
    color: var(--prh-white);
  }
  .prh-about__media-front {
    width: 150px;
    right: -20px;
  }
  .prh-service-card .prh-service-card__body {
    gap: 15px;
  }
  .prh-subscribe-band::before {
    clip-path: unset;
  }
  .prh-testimonials__content .prh-quote {
    padding-right: 0px;
  }
}

/* ==========================================================================
   4. Shared section head
   ========================================================================== */

.prh-section-head {
  max-width: 40rem;
  margin: 0 auto var(--prh-space-12);
  text-align: center;
}

.prh-section-head .prh-eyebrow {
  justify-content: center;
}

.prh-section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--prh-space-6);
  max-width: none;
  margin-bottom: var(--prh-space-10);
  text-align: left;
}

.prh-section-head--split .prh-eyebrow {
  justify-content: flex-start;
}

.prh-heading__accent {
  color: var(--prh-teal);
}

/* ==========================================================================
   5. Services
   ========================================================================== */

.prh-services__panel {
  border-radius: var(--prh-radius-xl);
  background: var(--prh-grey-50);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.prh-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--prh-space-6);
}

.prh-service-card {
  display: flex;
  gap: var(--prh-space-5);
  align-items: center;
  max-width: 548px;
  overflow: hidden;
  padding: var(--prh-space-5);
  border-radius: var(--prh-radius-lg);
  background: var(--prh-white);
  box-shadow: var(--prh-shadow-sm);
  transition:
    box-shadow var(--prh-transition),
    transform var(--prh-transition);
}

.prh-service-card:hover {
  box-shadow: var(--prh-shadow-md);
  transform: translateY(-4px);
}

.prh-service-card__media {
  min-width: 40%;
  width: 40%;
}

.prh-service-card__image {
  width: 100%;
  border-radius: var(--prh-radius-md);
  object-fit: cover;
  height: 300px;
}

.prh-service-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 30px;
}

.prh-service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--prh-teal);
  margin-bottom: 0px;
}

.prh-service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prh-service-card__title {
  font-size: 24px;
  margin-bottom: 0px;
}

.prh-service-card__title a {
  color: inherit;
}

.prh-service-card__title a:hover {
  color: var(--prh-teal);
}

.prh-service-card__text {
  font-size: var(--prh-fs-sm);
  margin-bottom: 0px;
}

.prh-service-card__cta,
.prh-blog-card__cta {
  display: inline-block;
  margin-top: auto;
  padding: var(--prh-space-2) var(--prh-space-5);
  border: 1px solid var(--prh-grey-100);
  border-radius: var(--prh-radius-sm);
  color: var(--prh-ink);
  font-size: var(--prh-fs-xs);
  font-weight: var(--prh-fw-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--prh-transition),
    border-color var(--prh-transition);
}

.prh-service-card__cta:hover,
.prh-blog-card__cta:hover {
  border-color: var(--prh-teal);
  background: var(--prh-teal-10);
}

@media (max-width: 780px) {
  .prh-services__grid {
    grid-template-columns: 1fr;
  }

  .prh-service-card {
    flex-direction: column;
  }

  .prh-service-card__image {
    width: 100%;
    height: 180px;
  }
}

/* ==========================================================================
   6. Why choose us
   ========================================================================== */

.prh-why {
  position: relative;
  overflow: hidden;
  background: var(--prh-gradient-navy);
  color: var(--prh-on-dark-70);
}

.prh-why__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.prh-why .prh-heading {
  color: var(--prh-white);
}

.prh-why__text {
  max-width: 32rem;
  margin-bottom: var(--prh-space-8);
}

.prh-why__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--prh-space-4);
}

.prh-why__item {
  display: flex;
  align-items: center;
  gap: var(--prh-space-3);
  padding: var(--prh-space-4);
  border-radius: var(--prh-radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--prh-white);
  font-weight: var(--prh-fw-medium);
}

.prh-why__item-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--prh-radius-circle);
  background: var(--prh-teal);
  color: var(--prh-white);
}

.prh-why__media img {
  width: 100%;
  border-radius: var(--prh-radius-xl);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 900px) {
  .prh-why__inner {
    grid-template-columns: 1fr;
  }

  .prh-why__media {
    order: -1;
    max-width: 22rem;
    margin-inline: auto;
  }

  .prh-why__list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   7. Testimonials
   ========================================================================== */

.prh-testimonials__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.prh-testimonials__media {
  position: relative;
}

.prh-testimonials__media img {
  width: 100%;
  border-radius: var(--prh-radius-xl);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.prh-testimonials__thumbs {
  position: absolute;
  left: -1.25rem;
  bottom: -3rem;
  display: flex;
  gap: var(--prh-space-2);
  padding: var(--prh-space-2);
  border-radius: var(--prh-radius-lg);
  justify-content: center;
  width: 100%;
}

.prh-testimonials__thumbs img {
  width: 92px;
  height: 92px;
  border-radius: var(--prh-radius-sm);
  object-fit: cover;
  aspect-ratio: auto;
}

.prh-quote {
  position: relative;
  padding-right: clamp(5rem, 4rem + 8vw, 10.5rem);
}

.prh-quote__text {
  margin-bottom: var(--prh-space-5);
  padding-left: 0;
  border-left: none;
  color: var(--prh-ink);
  font-size: var(--prh-fs-lead);
  font-style: italic;
  line-height: var(--prh-lh-loose);
}

.prh-quote__person {
  display: block;
}

.prh-quote__name {
  display: block;
  color: var(--prh-ink);
  font-weight: var(--prh-fw-semibold);
}

.prh-quote__role {
  display: block;
  font-size: var(--prh-fs-sm);
}

.prh-quote__stars {
  display: inline-block;
  margin-top: var(--prh-space-2);
}

.prh-quote__icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(90px, 8vw + 60px, 150px);
  height: auto;
}

.prh-quote__icon svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .prh-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .prh-testimonials__media {
    margin-inline: auto;
  }
}

/* ==========================================================================
   8. Star rating
   ========================================================================== */

.prh-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--prh-grey-100);
}

.prh-stars__star.is-on {
  color: var(--prh-gold);
}

/* ==========================================================================
   9. Blog
   ========================================================================== */

.prh-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--prh-radius-lg);
  background: var(--prh-white);
  box-shadow: var(--prh-shadow-sm);
  transition:
    box-shadow var(--prh-transition),
    transform var(--prh-transition);
}

.prh-blog-card:hover {
  box-shadow: var(--prh-shadow-md);
  transform: translateY(-4px);
}

.prh-blog-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.prh-blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--prh-space-6);
}

.prh-blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--prh-space-3);
  margin-bottom: var(--prh-space-3);
  color: var(--prh-grey-500);
  font-size: var(--prh-fs-xs);
}

.prh-blog-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--prh-space-1);
}

.prh-blog-card__meta-item svg {
  width: 16px;
  height: 16px;
  color: #6ad1dd;
}
.prh-blog-card__meta-item + .prh-blog-card__meta-item::before {
  content: "";
  margin-right: var(--prh-space-3);
  border-left: 1px solid var(--prh-grey-100);
  align-self: stretch;
}

.prh-blog-card__title {
  margin-bottom: var(--prh-space-5);
  font-size: var(--prh-fs-h5);
  line-height: var(--prh-lh-snug);
}

.prh-blog-card__title a {
  color: inherit;
}

.prh-blog-card__title a:hover {
  color: var(--prh-teal);
}

.prh-blog-card__cta {
  margin-top: auto;
}
