/*
  File role: page-level stylesheet for the Qlarivia Home template (page-home.php).
  Palette and components come from the QlariviaUS presentation page (vogo.me/qlariviaus);
  the tokens below are the single source of truth for this sub-brand.
  Loaded after the parent theme stylesheet by functions.php.
  @file_version 1.0.4
*/

:root {
  --ql-blue: #0077c8;
  --ql-blue-dark: #0058a8;
  --ql-aqua: #28aee4;
  --ql-purple: #8a3fa0;
  --ql-bg: #eef9ff;
  --ql-text: #17324d;
  --ql-muted: #5d6f82;
  --ql-white: #ffffff;
  --ql-shadow: 0 18px 45px rgba(0, 88, 168, .12);
  --ql-radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ql-text);
  background: #ffffff;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.ql-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ql-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ql-blue), var(--ql-aqua));
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 119, 200, .24);
}

.ql-btn-outline {
  background: #ffffff;
  color: var(--ql-blue-dark);
  border: 2px solid rgba(0, 119, 200, .35);
  box-shadow: none;
}

.ql-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 88, 168, .08);
}

.ql-header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ql-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ql-blue);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.03em;
}

.ql-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--ql-blue);
  position: relative;
}

.ql-logo-mark:after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ql-aqua), var(--ql-blue));
}

.ql-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563; /* dark gray, not black */
}

.ql-nav-icons {
  display: flex;
  gap: 14px;
  color: var(--ql-blue);
  font-size: 22px;
  align-items: center;
}

.ql-header-actions { display: flex; align-items: center; gap: 14px; }

/* Mobile hamburger button — hidden on desktop, shown <=900px via media query. */
.ql-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 0;
  cursor: pointer;
}
.ql-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ql-blue);
  transition: transform .25s ease, opacity .2s ease;
}
.ql-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ql-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.ql-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown — hidden until toggled (only <=900px). */
.ql-mobile-nav { display: none; background: #fff; border-bottom: 1px solid rgba(0, 88, 168, .08); }
.ql-mobile-nav .ql-container { display: flex; flex-direction: column; }
.ql-mobile-nav a {
  padding: 15px 2px;
  font-size: 16px;
  font-weight: 700;
  color: #4b5563;
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.ql-mobile-nav a:first-child { border-top: 0; }

.ql-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 70%, rgba(255,255,255,.22), transparent 22%),
    linear-gradient(145deg, #93479e 0%, #2156b8 45%, #0077c8 100%);
  color: #ffffff;
  min-height: 640px;
}

.ql-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 170px;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(255,255,255,.32), transparent 38%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.08));
  opacity: .9;
}

.ql-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 640px;
  gap: 40px;
  padding: 54px 0;
}

.ql-eyebrow {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ql-hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 112px);
  line-height: .85;
  letter-spacing: -.06em;
  font-weight: 950;
}

.ql-hero h2 {
  margin: 16px 0 30px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
}

.ql-hero-badges {
  display: flex;
  gap: 44px;
  margin-top: 58px;
  flex-wrap: wrap;
}

.ql-hero-badge {
  max-width: 120px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.ql-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.ql-hero-product {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ql-hero-product img {
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.22));
}

.ql-section {
  padding: 74px 0;
}

.ql-section-soft {
  background: linear-gradient(180deg, #ffffff 0%, var(--ql-bg) 100%);
}

.ql-title {
  text-align: center;
  margin: 0 0 34px;
  color: var(--ql-purple);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.ql-title:after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 99px;
  background: var(--ql-aqua);
  margin: 12px auto 0;
}

.ql-product-strip {
  padding: 56px 0;
  position: relative;
  overflow: hidden;
  /* Mockup look: large water splash on the right, bleeding to the edge, over a pale blue band */
  background:
    url("../img/water-splash-wide.webp") no-repeat right center / auto 102%,
    linear-gradient(90deg, #e9f3fc 0%, #f4f9fe 100%);
}

.ql-product-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 36px;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

.ql-product-card h3 {
  color: var(--ql-blue-dark);
  font-size: 30px;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.ql-label {
  color: var(--ql-blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ql-q18-bullets {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.ql-q18-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ql-text);
  font-size: 15px;
  font-weight: 600;
}

.ql-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.ql-card {
  background: #ffffff;
  border-radius: var(--ql-radius);
  padding: 38px 32px;
  box-shadow: var(--ql-shadow);
  border: 1px solid rgba(0, 88, 168, .08);
}

.ql-card h3 {
  color: var(--ql-blue-dark);
  font-size: 22px;
  line-height: 1.15;
  margin: 14px 0 14px;
  text-align: center;
}

.ql-card p {
  margin: 0;
  color: var(--ql-text);
  font-size: 15px;
}

.ql-card .ql-icon {
  color: var(--ql-blue);
}

.ql-center {
  text-align: center;
  margin-top: 28px;
}

.ql-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.ql-split h2 {
  color: var(--ql-purple);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.ql-split h3 {
  margin: 0 0 24px;
  color: var(--ql-blue);
  font-size: 20px;
  line-height: 1.25;
}

.ql-wellness {
  background: linear-gradient(90deg, #eaf8ff, #ffffff);
  overflow: hidden;
}

.ql-wellness-img {
  min-height: 340px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.7)),
    url("../img/optimize-health.webp") center / cover no-repeat;
  box-shadow: var(--ql-shadow);
}

.ql-light-visual {
  min-height: 360px;
  border-radius: 28px;
  /* Representative cool water image for Light Water */
  background: url("../img/light-water.webp") center / cover no-repeat;
  box-shadow: var(--ql-shadow);
}

.ql-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.ql-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: block;
}

.ql-mini .ql-card-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
}

.ql-social {
  display: flex;
  gap: 14px;
  margin: 18px 0 6px;
}

.ql-social svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: #ffffff;
  opacity: .92;
}

.ql-mini {
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  border: 1px solid rgba(0, 88, 168, .08);
  box-shadow: 0 10px 30px rgba(0, 88, 168, .08);
}

.ql-mini h3 {
  color: var(--ql-purple);
  margin: 12px 0 10px;
}

.ql-feature-band {
  padding: 64px 0;
  background: #ffffff;
}

.ql-product-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(40,174,228,.18), transparent 35%),
    linear-gradient(135deg, #ffffff, #eef9ff);
}

.ql-q18 {
  background: linear-gradient(90deg, #f4fcff, #e8f8ff);
}

.ql-faq {
  max-width: 980px;
  margin: 0 auto;
}

.ql-faq-item {
  border: 1px solid rgba(0, 88, 168, .15);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
}

.ql-faq-question {
  width: 100%;
  padding: 18px 22px;
  background: #ffffff;
  border: 0;
  text-align: left;
  color: var(--ql-text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ql-faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--ql-muted);
}

.ql-faq-item.is-open .ql-faq-answer {
  display: block;
}

.ql-contact {
  background:
    radial-gradient(circle at 10% 20%, rgba(40,174,228,.18), transparent 20%),
    radial-gradient(circle at 90% 70%, rgba(40,174,228,.15), transparent 22%),
    linear-gradient(90deg, #f7fdff, #eaf8ff);
}

.ql-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ql-form input,
.ql-form select,
.ql-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 88, 168, .16);
  border-radius: 8px;
  padding: 15px 16px;
  font: inherit;
  background: #ffffff;
}

.ql-form textarea {
  grid-row: span 2;
  min-height: 130px;
  resize: vertical;
}

.ql-footer {
  background: linear-gradient(135deg, #006ab8, #004b92);
  color: #ffffff;
  padding: 58px 0 28px;
}

.ql-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 38px;
}

.ql-footer h4 {
  margin: 0 0 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ql-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ql-footer li {
  margin-bottom: 8px;
  opacity: .92;
}

.ql-disclaimer {
  font-size: 14px;
  opacity: .92;
}

.ql-subscribe {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.ql-subscribe input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
}

.ql-subscribe button {
  width: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ql-blue);
  font-weight: 900;
}

.ql-copy {
  margin-top: 36px;
  font-size: 13px;
  opacity: .82;
}

@media (max-width: 900px) {
  .ql-nav { display: none; }
  .ql-nav-toggle { display: flex; }
  .ql-mobile-nav.is-open { display: block; }

  .ql-hero-inner,
  .ql-product-card,
  .ql-split,
  .ql-footer-grid {
    grid-template-columns: 1fr;
  }

  .ql-hero {
    min-height: auto;
  }

  .ql-hero-inner {
    padding: 52px 0 30px;
  }

  .ql-hero-product {
    min-height: 380px;
  }

  .ql-benefits,
  .ql-mini-grid {
    grid-template-columns: 1fr;
  }

  .ql-form {
    grid-template-columns: 1fr;
  }

  .ql-form textarea {
    grid-row: auto;
  }
}

/* ---- Sections added for the live site (quality, anti-aging, testimonials, contact) ---- */

/* WordPress admin bar: keep the sticky header below it when logged in. */
.admin-bar .ql-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ql-header { top: 46px; } }

/* Shop strip with two product cards (Q25 and Q18). */
.ql-product-strip .ql-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ql-product-card { grid-template-columns: 150px 1fr; }
.ql-product-card img { max-height: 320px; object-fit: contain; }

/* Intro paragraph under a section title, centred and narrower than the grid below it. */
.ql-intro {
  max-width: 860px;
  margin: -14px auto 34px;
  text-align: center;
  font-size: 17px;
  color: var(--ql-text);
}

/* Quality and certification: three short statements on a soft band. */
.ql-quality { background: linear-gradient(180deg, var(--ql-bg) 0%, #ffffff 100%); }
.ql-quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ql-quality-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 26px;
  border: 1px solid rgba(0, 88, 168, .08);
  box-shadow: 0 10px 30px rgba(0, 88, 168, .08);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ql-text);
}
.ql-quality-item .ql-card-icon { margin-bottom: 14px; }

/* Anti-aging: text on the left, video on the right; the video wrapper keeps a 16:9 box. */
.ql-aging { background: linear-gradient(90deg, #ffffff, #eef9ff); }
.ql-aging p { font-size: 16px; }
.ql-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ql-shadow);
  background: linear-gradient(135deg, #e8f8ff, #ffffff);
}
.ql-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonials: two quotes side by side. */
.ql-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.ql-quote {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 28px;
  border: 1px solid rgba(0, 88, 168, .08);
  box-shadow: 0 10px 30px rgba(0, 88, 168, .08);
  margin: 0;
}
.ql-quote p { margin: 0 0 14px; font-size: 16px; color: var(--ql-text); font-style: italic; }
.ql-quote footer { color: var(--ql-blue); font-weight: 800; font-size: 14px; }

/* Contact block: distributor details instead of a form. */
.ql-contact-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 28px;
  border: 1px solid rgba(0, 88, 168, .12);
  box-shadow: var(--ql-shadow);
  font-size: 16px;
}
.ql-contact-card strong { color: var(--ql-blue-dark); display: block; margin-bottom: 6px; }
.ql-contact-card a { color: var(--ql-blue); font-weight: 700; }
.ql-contact-card p { margin: 0 0 12px; }

/* Header cart and account icons are real links. */
.ql-nav-icons a { display: inline-flex; color: var(--ql-blue); }

/* The parent theme styles every <button> with a border; the hamburger must stay hidden on desktop. */
.ql-header .ql-nav-toggle { display: none; border: 0; background: none; }
@media (max-width: 900px) { .ql-header .ql-nav-toggle { display: flex; } }

@media (max-width: 900px) {
  .ql-product-strip .ql-container,
  .ql-quality-grid,
  .ql-quotes { grid-template-columns: 1fr; }
}
