/* ==========================================================================
   Pool Girl — styles for the hand-authored pages that sit alongside the
   Webflow export (CPO opinion for buyers, agent partner page, careers).

   Kept in its own file so nothing here can be clobbered by a future Webflow
   re-export of pool-girl.webflow.css. Everything is namespaced `pg-`, the
   same convention already used by the .pg-bbb-* and .pg-warranty-* embeds.

   Palette is pulled straight from the Webflow variables:
     pacific blue          #00a7c4
     pacific blue dark     #00859c
     pacific blue darker   #00424e
     pacific blue lighter  #ccedf3
     pacific blue lightest #e5f6f9
   Headings are Afacad, body copy Arimo — both already loaded by the export.
   ========================================================================== */

:root {
  --pg-blue: #00a7c4;
  --pg-blue-dark: #00859c;
  --pg-blue-darker: #00424e;
  --pg-blue-lighter: #ccedf3;
  --pg-blue-lightest: #e5f6f9;
  --pg-ink: #101828;
  --pg-muted: #52606d;
  --pg-line: #dfe6ec;
  --pg-radius: 8px;
  --pg-radius-lg: 14px;
}

.pg-section { padding: 5rem 0; }
.pg-section.is-tint { background: var(--pg-blue-lightest); }
.pg-section.is-deep { background: var(--pg-blue-darker); color: #fff; }
.pg-section.is-deep p,
.pg-section.is-deep li { color: rgba(255, 255, 255, .82); }

.pg-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pg-blue-dark);
  margin-bottom: .6rem;
}
.pg-section.is-deep .pg-eyebrow { color: #7fd7e6; }

.pg-h2 {
  font-family: Afacad, sans-serif;
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -.03rem;
  font-weight: 400;
  margin: 0 0 1rem;
}
.pg-h3 {
  font-family: Afacad, sans-serif;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 .5rem;
}
.pg-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--pg-muted);
  max-width: 46rem;
}
.pg-section.is-deep .pg-lead { color: rgba(255, 255, 255, .8); }
.pg-center { text-align: center; }
.pg-center .pg-lead { margin-left: auto; margin-right: auto; }
.pg-measure { max-width: 48rem; }

/* --- the "nobody is inspecting this pool" callout ------------------------ */
.pg-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--pg-line);
  border-left: 5px solid var(--pg-blue);
  border-radius: var(--pg-radius-lg);
  padding: 1.75rem 1.9rem;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}
.pg-alert__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--pg-blue-lightest);
  color: var(--pg-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Afacad, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.pg-alert p { margin: 0 0 .65rem; color: var(--pg-muted); line-height: 1.65; }
.pg-alert p:last-child { margin-bottom: 0; }
.pg-alert strong { color: var(--pg-ink); }

/* --- card grid ---------------------------------------------------------- */
.pg-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2.5rem;
}
.pg-cards.is-2 { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.pg-card {
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pg-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pg-blue-dark);
  background: var(--pg-blue-lightest);
  border-radius: 999px;
  padding: .3rem .7rem;
  margin-bottom: .9rem;
}
.pg-card p { color: var(--pg-muted); line-height: 1.6; margin: 0; }
.pg-card ul { margin: .9rem 0 0; padding: 0; list-style: none; }
.pg-card li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .45rem;
  color: var(--pg-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.pg-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--pg-blue);
}

/* linked cards (homepage promo, cross-links) */
a.pg-card { text-decoration: none; color: inherit; }
a.pg-card:hover {
  transform: translateY(-3px);
  border-color: var(--pg-blue);
  box-shadow: 0 16px 34px rgba(0, 132, 156, .16);
}
.pg-card__media {
  margin: -1.75rem -1.75rem 1.4rem;
  border-radius: var(--pg-radius-lg) var(--pg-radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.pg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-card__more {
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--pg-blue-dark);
  font-size: .95rem;
}
.pg-card__more::after { content: " \2192"; }

/* --- who-checks-what comparison ----------------------------------------- */
.pg-compare {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  margin-top: 2.5rem;
}
.pg-compare__col {
  border-radius: var(--pg-radius-lg);
  padding: 1.9rem;
  border: 1px solid var(--pg-line);
  background: #fff;
}
.pg-compare__col.is-them { background: #f7f9fb; }
.pg-compare__col.is-us { border-color: var(--pg-blue); box-shadow: 0 14px 32px rgba(0, 132, 156, .14); }
.pg-compare__head {
  font-family: Afacad, sans-serif;
  font-size: 1.4rem;
  margin: 0 0 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--pg-line);
}
.pg-compare ul { margin: 0; padding: 0; list-style: none; }
.pg-compare li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .7rem;
  color: var(--pg-muted);
  line-height: 1.5;
}
.pg-compare li::before {
  position: absolute;
  left: 0;
  top: -.05em;
  font-size: 1.05rem;
  font-weight: 700;
}
.pg-compare .is-them li::before { content: "\2715"; color: #b0b8c1; }
.pg-compare .is-us li::before { content: "\2713"; color: var(--pg-blue-dark); }

/* --- numbered process --------------------------------------------------- */
.pg-steps {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.5rem;
  counter-reset: pg-step;
}
.pg-step { position: relative; padding-top: 3.4rem; }
.pg-step::before {
  counter-increment: pg-step;
  content: counter(pg-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--pg-blue);
  color: #fff;
  font-family: Afacad, sans-serif;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-step p { color: var(--pg-muted); line-height: 1.6; margin: 0; }

/* --- checklist ---------------------------------------------------------- */
.pg-checklist { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pg-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .85rem;
  line-height: 1.6;
  color: var(--pg-muted);
}
.pg-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--pg-blue-lightest);
  color: var(--pg-blue-dark);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-section.is-deep .pg-checklist li { color: rgba(255, 255, 255, .85); }
.pg-section.is-deep .pg-checklist li::before { background: rgba(255, 255, 255, .14); color: #7fd7e6; }

/* --- two-column text + image ------------------------------------------- */
.pg-split {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.pg-split__media img {
  width: 100%;
  border-radius: var(--pg-radius-lg);
  display: block;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
}

/* --- FAQ (no JS — native details/summary) ------------------------------- */
.pg-faq { margin-top: 2.5rem; max-width: 52rem; }
.pg-faq details {
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: #fff;
  margin-bottom: .85rem;
  overflow: hidden;
}
.pg-faq details[open] { border-color: var(--pg-blue); }
.pg-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-family: Afacad, sans-serif;
  font-size: 1.25rem;
  position: relative;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pg-blue-dark);
}
.pg-faq details[open] summary::after { content: "\2013"; }
.pg-faq__body { padding: 0 1.35rem 1.35rem; color: var(--pg-muted); line-height: 1.65; }
.pg-faq__body p { margin: 0 0 .8rem; }
.pg-faq__body p:last-child { margin-bottom: 0; }

/* --- job application form ---------------------------------------------- */
.pg-form-shell {
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 2.25rem;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .09);
  max-width: 52rem;
  margin: 2.5rem auto 0;
}
.pg-form-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr 1fr;
}
.pg-field { display: flex; flex-direction: column; }
.pg-field.is-full { grid-column: 1 / -1; }
.pg-field label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--pg-ink);
  margin-bottom: .4rem;
}
.pg-field .pg-hint { font-weight: 400; color: var(--pg-muted); }
.pg-field input[type="text"],
.pg-field input[type="tel"],
.pg-field input[type="email"],
.pg-field input[type="number"],
.pg-field input[type="file"],
.pg-field select,
.pg-field textarea {
  font-family: Arimo, sans-serif;
  font-size: 1rem;
  color: var(--pg-ink);
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  padding: .7rem .85rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.pg-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2352606d'%3E%3Cpath d='M2.6 5.9 8 11.3l5.4-5.4-1-1L8 9.3 3.6 4.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}
.pg-field input[type="file"] { padding: .55rem .6rem; font-size: .9rem; }
.pg-field textarea { min-height: 8rem; resize: vertical; }
.pg-field input:focus,
.pg-field select:focus,
.pg-field textarea:focus {
  outline: none;
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(0, 167, 196, .18);
}
.pg-required { color: #c02b2b; }

.pg-radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pg-field label.pg-radio,
.pg-radio {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  padding: .5rem .95rem;
  cursor: pointer;
  font-size: .95rem;
  color: var(--pg-muted);
}
.pg-radio input { accent-color: var(--pg-blue); margin: 0; }
.pg-radio:hover { border-color: var(--pg-blue); }

.pg-field label.pg-consent,
.pg-consent {
  font-weight: 400;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--pg-muted);
  line-height: 1.5;
  font-weight: 400;
}
.pg-consent input { accent-color: var(--pg-blue); margin-top: .2rem; flex: none; }

.pg-submit {
  align-self: flex-start;
  font-family: Arimo, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--pg-blue);
  border: 1px solid var(--pg-blue);
  border-radius: var(--pg-radius);
  padding: .95rem 2.2rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.pg-submit:hover { background: var(--pg-blue-dark); border-color: var(--pg-blue-dark); transform: translateY(-1px); }
.pg-form-note { font-size: .85rem; color: var(--pg-muted); margin: 1rem 0 0; line-height: 1.55; }

/* honeypot — must stay in the DOM for Netlify, must never be visible */
.pg-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* --- button row --------------------------------------------------------- */
.pg-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: var(--pg-radius);
  text-decoration: none;
  border: 1px solid var(--pg-blue);
  background: var(--pg-blue);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.pg-btn:hover { background: var(--pg-blue-dark); border-color: var(--pg-blue-dark); transform: translateY(-1px); }
.pg-btn.is-ghost { background: transparent; color: var(--pg-blue-dark); }
.pg-btn.is-ghost:hover { background: var(--pg-blue-lightest); }
.pg-section.is-deep .pg-btn.is-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.pg-section.is-deep .pg-btn.is-ghost:hover { background: rgba(255, 255, 255, .12); }
.pg-center .pg-btn-row { justify-content: center; }

/* --- responsive --------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .pg-section { padding: 3.5rem 0; }
  .pg-h2 { font-size: 2.25rem; }
  .pg-split { grid-template-columns: 1fr; gap: 2rem; }
  .pg-split.is-flip .pg-split__media { order: -1; }
}
@media screen and (max-width: 767px) {
  .pg-form-grid { grid-template-columns: 1fr; }
  .pg-submit { align-self: stretch; width: 100%; }
  .pg-form-shell { padding: 1.5rem; }
  .pg-alert { grid-template-columns: 1fr; gap: .9rem; padding: 1.4rem; }
  .pg-h2 { font-size: 2rem; }
  .pg-card__media { margin: -1.75rem -1.75rem 1.2rem; }
}
