/* ============================================================
   H2O Life — wholesale page
   Builds on the tokens and components in site.css
   ============================================================ */

/* --- Page ground ---------------------------------------------
   site.css paints a fixed full-page ocean gradient on <body> for
   the consumer site. On a business page that puts dark copy on a
   progressively darker blue as you scroll, so this page opts out
   and controls its own section backgrounds.
   ------------------------------------------------------------ */
body.wholesale-page {
  background: var(--white);
  background-attachment: scroll;
}
body.wholesale-page::before { content: none; }
.wholesale-page .wh-section,
.wholesale-page .wh-proof { background: var(--white); position: relative; z-index: 1; }
.wholesale-page .wh-section-alt { background: var(--aqua-pale); }

/* --- Unfilled figures. Deliberately loud: these must never ship. --- */
.tbd {
  background: #FFE066;
  color: #7A4B00;
  border: 2px dashed #E09F00;
  border-radius: 6px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 0.9em;
  white-space: nowrap;
  display: inline-block;
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* --- Hero --- */
.wh-hero {
  background: linear-gradient(160deg, var(--aqua-pale) 0%, #fff 55%, var(--aqua-light) 100%);
  padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.wh-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.wh-hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.wh-hero-text h1 .highlight {
  background: linear-gradient(120deg, var(--aqua-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wh-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--gray);
  line-height: 1.65;
  max-width: 34em;
}
.wh-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.wh-hero-note { font-size: 0.9rem; color: var(--gray); line-height: 1.7; max-width: 34em; }

.wh-hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wh-hero-visual img {
  width: 100%;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(2, 62, 138, 0.13);
}
.wh-hero-visual img:nth-child(1) { transform: rotate(-3deg); }
.wh-hero-visual img:nth-child(2) { transform: rotate(2deg) translateY(12px); }
.wh-hero-visual img:nth-child(3) { transform: rotate(2deg); }
.wh-hero-visual img:nth-child(4) { transform: rotate(-2deg) translateY(12px); }

/* --- Proof --- */
.wh-proof { padding: clamp(40px, 5vw, 64px) 0; background: #fff; border-bottom: 1px solid var(--light-gray); }
.wh-proof-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}
.wh-logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
  align-items: center;
}
.wh-logo-wall img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  padding: 10px 14px;
  background: var(--light-gray);
  border-radius: 12px;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter .25s ease, opacity .25s ease;
}
.wh-logo-wall img:hover { filter: grayscale(0); opacity: 1; }

.wh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}
.wh-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--aqua-dark);
  line-height: 1.1;
}
.wh-stats span { font-size: 0.85rem; color: var(--gray); }

/* --- Sections --- */
.wh-section { padding: var(--section-padding) 0; }
.wh-section-alt { background: var(--aqua-pale); }

/* --- Numbers --- */
.wh-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.wh-number-card {
  background: #fff;
  border: 1px solid rgba(0, 180, 216, 0.18);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(2, 62, 138, 0.05);
}
.wh-number-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  margin-bottom: 12px;
}
.wh-number-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.wh-number-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.55; }

.wh-checklist { list-style: none; display: grid; gap: 12px; max-width: 46em; }
.wh-checklist li { position: relative; padding-left: 32px; color: var(--dark); line-height: 1.6; }
.wh-checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: -1px;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  border-radius: 50%; font-size: 0.72rem; font-weight: 800;
}
.wh-fineprint { margin-top: 26px; font-size: 0.88rem; color: var(--gray); font-style: italic; }

/* --- Steps --- */
.wh-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.wh-steps li {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(2, 62, 138, 0.06);
}
.wh-step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua-dark), var(--aqua));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 16px;
}
.wh-steps h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.wh-steps p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* --- Range --- */
.wh-range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.wh-range-grid figure {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 62, 138, 0.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wh-range-grid figure:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(2, 62, 138, 0.13); }
.wh-range-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wh-range-grid figcaption {
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  text-align: center;
}

/* --- Segments --- */
.wh-segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.wh-segment { background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 4px 18px rgba(2, 62, 138, 0.06); }
.wh-segment h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 11px; color: var(--aqua-deep); }
.wh-segment p { color: var(--gray); line-height: 1.65; font-size: 0.93rem; }

/* --- FAQ --- */
.wh-faq-container { max-width: 820px; }
.wh-faq details {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  margin-bottom: 11px;
  overflow: hidden;
}
.wh-faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.wh-faq summary::-webkit-details-marker { display: none; }
.wh-faq summary::after {
  content: '+';
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--aqua-dark); font-weight: 400;
}
.wh-faq details[open] summary::after { content: '−'; }
.wh-faq details p { padding: 0 22px 20px; color: var(--gray); line-height: 1.7; font-size: 0.94rem; }

/* --- Application --- */
.wh-apply {
  padding: var(--section-padding) 0;
  background: linear-gradient(140deg, var(--aqua-deep), var(--aqua-dark) 60%, #0192b8);
  color: #fff;
}
.wh-apply-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.wh-apply-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 14px 0 16px;
}
.wh-apply-text > p { color: rgba(255,255,255,0.86); line-height: 1.7; }
.wh-apply-benefits { list-style: none; margin: 24px 0; display: grid; gap: 11px; }
.wh-apply-benefits li { position: relative; padding-left: 28px; color: rgba(255,255,255,0.93); font-size: 0.94rem; }
.wh-apply-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--aqua-light); font-weight: 800; }
.wh-apply-contact { font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.8; }
.wh-apply-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.wh-apply-form-card {
  background: #fff;
  border-radius: 26px;
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  color: var(--dark);
}
.wh-field { margin-bottom: 17px; }
.wh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wh-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--dark);
}
.wh-field label span { color: var(--pink); }
.wh-field input, .wh-field select, .wh-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E3E8EF;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wh-field textarea { resize: vertical; }
.wh-field input:focus, .wh-field select:focus, .wh-field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}
.wh-field input.error, .wh-field select.error { border-color: var(--pink); background: #FFF5F9; }
.wh-field-error { color: var(--pink); font-size: 0.78rem; margin-top: 5px; font-weight: 600; }

/* honeypot — hidden from people, visible to bots */
.wh-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.wh-submit { width: 100%; justify-content: center; padding: 15px; font-size: 0.98rem; margin-top: 6px; }
.wh-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.wh-form-fine { font-size: 0.78rem; color: var(--gray); line-height: 1.6; margin-top: 14px; text-align: center; }
.wh-form-fine a { color: var(--aqua-dark); text-decoration: underline; }

.wh-success { text-align: center; padding: 26px 10px; }
.wh-success-icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--aqua));
  color: #fff; font-size: 1.7rem;
}
.wh-success h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; margin-bottom: 11px; }
.wh-success p { color: var(--gray); line-height: 1.65; }
.wh-success-meta { font-size: 0.86rem; margin-top: 10px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .wh-hero-inner, .wh-apply-inner { grid-template-columns: 1fr; }
  .wh-hero-visual { max-width: 420px; }
}
@media (max-width: 560px) {
  .wh-field-row { grid-template-columns: 1fr; gap: 0; }
  .wh-hero-ctas .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-range-grid figure, .wh-logo-wall img { transition: none; }
}

/* --- Hub -> segment page cards --- */
.wh-segment-link { display: block; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.wh-segment-link:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(2, 62, 138, 0.13); }
.wh-segment-more { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 700; color: var(--aqua-dark); }
@media (prefers-reduced-motion: reduce) { .wh-segment-link { transition: none; } }
