/* ============================================================
   NUEVAL — supplemental stylesheet
   Loaded AFTER assets/style.css. assets/style.css is untouched.
   Contents:
     1. WhatsApp entry points (header chip, floating button, footer)
     2. Resources page components (.rx-*)
     3. Footer internal-link arrows
   ============================================================ */

/* ---------- 1. WhatsApp ---------- */
.wa-mini{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:50%;
  border:1px solid rgba(136,193,147,.45);background:rgba(136,193,147,.10);
  color:var(--green);
  transition:background .3s ease,border-color .3s ease,color .3s ease,transform .3s ease;
}
.wa-mini:hover{background:var(--green);border-color:var(--green);color:var(--black);transform:translateY(-2px)}
.wa-mini svg{width:20px;height:20px;display:block}

.wa-fab{
  position:fixed;right:1.6rem;bottom:1.6rem;z-index:240;
  display:inline-flex;align-items:center;gap:.7rem;
  padding:.85rem 1.35rem .85rem 1.15rem;border-radius:50px;
  background:#25d366;color:#07210f;
  font-weight:600;font-size:.92rem;line-height:1;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  transition:transform .3s ease,box-shadow .3s ease;
}
.wa-fab:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(37,211,102,.34)}
.wa-fab svg{width:21px;height:21px;display:block;flex:none}
.wa-fab span{white-space:nowrap}
/* the cookie bar owns the bottom of the screen — step aside while it is up */
body.cookie-open .wa-fab{display:none}

.side-card .wa-line{display:flex;flex-direction:column;gap:.35rem}
.side-card .wa-line a{display:inline-flex;align-items:center;gap:.5rem;color:var(--green);font-weight:500}
.side-card .wa-line a svg{width:16px;height:16px;flex:none}
.side-card .wa-line a:hover{color:var(--green-l)}

@media (max-width:900px){
  .wa-fab{right:1rem;bottom:1rem;padding:.8rem;gap:0}
  .wa-fab span{display:none}
  .wa-mini{width:38px;height:38px}
  .wa-mini svg{width:18px;height:18px}
}

/* ---------- 2. Resources page ---------- */
.rx-hero{padding:6rem 0 2.6rem;border-bottom:1px solid var(--line)}
.rx-hero .section-label{margin-bottom:.8rem}
.rx-hero h1{font-size:clamp(1.9rem,3.6vw,2.7rem);font-weight:800;letter-spacing:-.6px;margin-bottom:1rem;line-height:1.15}
.rx-hero .rx-lede{color:var(--gray);font-weight:300;font-size:1rem;line-height:1.85;max-width:60em}
.rx-hero .rx-meta{margin-top:1.5rem;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gray-2)}

.rx-jump{padding:1.5rem 0;border-bottom:1px solid var(--line-2)}
.rx-jump .wrap{display:flex;flex-wrap:wrap;gap:.6rem}
.rx-jump a{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.5rem 1.05rem;border-radius:50px;border:1px solid var(--line-3);
  font-size:.85rem;color:var(--gray);transition:all .25s ease;
}
.rx-jump a:hover{border-color:var(--green);color:var(--green);background:rgba(136,193,147,.08)}
.rx-jump a b{font-weight:700;color:var(--gray-2);font-size:.76rem;letter-spacing:.06em}
.rx-jump a:hover b{color:var(--green)}

.rx-group{padding:4.4rem 0;border-bottom:1px solid var(--line-2)}
.rx-group:last-of-type{border-bottom:none}
.rx-group-head{max-width:62em;margin-bottom:2.4rem}
.rx-group-head .section-label{margin-bottom:.75rem}
.rx-group-head h2{font-size:clamp(1.4rem,2.4vw,1.85rem);font-weight:800;letter-spacing:-.4px;margin-bottom:.8rem}
.rx-group-head p{color:var(--gray);font-weight:300;font-size:.96rem;line-height:1.8}

.rx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.rx-grid.two{grid-template-columns:repeat(2,1fr)}
.rx-grid.four{grid-template-columns:repeat(4,1fr);gap:18px}
.rx-card{
  display:flex;flex-direction:column;scroll-margin-top:110px;
  background:#181818;border:1px solid var(--line-2);border-radius:16px;
  padding:1.7rem 1.7rem 1.5rem;
  transition:border-color .3s ease,transform .3s ease;
}
.rx-card:hover{border-color:var(--green);transform:translateY(-4px)}
.rx-card:target{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.rx-card-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}
.rx-ico{
  width:38px;height:38px;border-radius:10px;flex:none;
  background:rgba(136,193,147,.12);border:1px solid rgba(136,193,147,.28);
  display:flex;align-items:center;justify-content:center;color:var(--green);
}
.rx-ico svg{width:19px;height:19px;display:block}
.rx-tag{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gray-2);white-space:nowrap}
.rx-card h3{font-size:1.02rem;font-weight:700;letter-spacing:-.2px;line-height:1.35;margin-bottom:.55rem}
.rx-card > p,.rx-card .rx-body > p{font-size:.86rem;font-weight:300;line-height:1.7;color:var(--gray);margin-bottom:1.2rem}
.rx-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;margin-top:auto}
.rx-link{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.84rem;font-weight:600;color:var(--green);
}
.rx-link svg{width:13px;height:13px}
.rx-link:hover{color:var(--green-l)}
.rx-add{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.55rem 1.05rem;border-radius:50px;
  border:1px solid var(--line-3);background:transparent;color:var(--white);
  font-size:.82rem;font-weight:500;cursor:pointer;
  transition:border-color .25s ease,color .25s ease,background .25s ease;
}
.rx-add:hover{border-color:var(--green);color:var(--green)}
.rx-add.is-on{border-color:var(--green);background:rgba(136,193,147,.12);color:var(--green)}

.rx-table-wrap{overflow-x:auto;border:1px solid var(--line-3);border-radius:14px;background:#181818}
.rx-table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:620px}
.rx-table th,.rx-table td{
  padding:.85rem 1.15rem;text-align:left;vertical-align:top;
  border-bottom:1px solid var(--line-2);color:var(--gray);font-weight:300;line-height:1.6;
}
.rx-table th{
  background:#202020;color:var(--white);font-weight:600;font-size:.72rem;
  letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;
}
.rx-table tr:last-child td{border-bottom:none}
.rx-table td:first-child{color:var(--white);font-weight:500}
.rx-table .rx-ok{color:var(--green);font-weight:500;white-space:nowrap}
.rx-table .rx-onreq{color:var(--gray-2);font-size:.82rem}

.rx-note{
  display:flex;gap:1rem;align-items:flex-start;
  background:rgba(136,193,147,.07);border:1px solid rgba(136,193,147,.22);
  border-radius:14px;padding:1.2rem 1.4rem;margin-top:2rem;
}
.rx-note svg{width:18px;height:18px;color:var(--green);flex:none;margin-top:3px}
.rx-note p{font-size:.88rem;font-weight:300;color:var(--gray);line-height:1.75;margin:0}
.rx-note strong{color:var(--white);font-weight:600}
.rx-note a{color:var(--green);text-decoration:underline}

.rx-picked{
  display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;
  min-height:52px;padding:.7rem .9rem;
  border:1px dashed var(--line-3);border-radius:12px;background:#161616;
}
.rx-picked[data-empty="true"]::before{
  content:'Nothing selected yet — add documents from the lists above.';
  font-size:.85rem;font-weight:300;color:var(--gray-2);
}
.rx-chip{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.35rem .7rem .35rem .85rem;border-radius:50px;
  background:rgba(136,193,147,.13);border:1px solid rgba(136,193,147,.3);
  color:var(--green);font-size:.8rem;font-weight:400;
}
.rx-chip button{
  background:none;border:none;padding:0;color:inherit;cursor:pointer;
  font-size:1rem;line-height:1;opacity:.65;
}
.rx-chip button:hover{opacity:1}

.rx-cta{
  display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;
  background:var(--black-2);border:1px solid var(--line-3);border-radius:var(--r);
  padding:2.6rem 2.4rem;margin:4.4rem 0 5rem;
}
.rx-cta h2{font-size:clamp(1.3rem,2.2vw,1.7rem);font-weight:800;letter-spacing:-.4px;margin-bottom:.6rem}
.rx-cta p{color:var(--gray);font-weight:300;font-size:.94rem;line-height:1.75;max-width:46em}
.rx-cta-btns{display:flex;gap:.8rem;flex-wrap:wrap;flex:none}

@media (max-width:1100px){
  .rx-grid{grid-template-columns:repeat(2,1fr)}
  .rx-grid.four{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .rx-hero{padding:4.4rem 0 2rem}
  .rx-group{padding:3.4rem 0}
  .rx-grid,.rx-grid.two{grid-template-columns:1fr}
  .rx-cta{padding:2rem 1.7rem;margin:3.4rem 0 4rem}
}
@media (max-width:560px){
  .rx-grid,.rx-grid.two{grid-template-columns:1fr}
}

/* ---------- 3. Footer internal-link arrows ---------- */
.foot-grid li a[href^="resources.html"]::after,
.foot-grid li a[href^="become-a-distributor"]::after{
  content:"\2192";margin-left:7px;color:var(--green);opacity:0;
  transition:opacity .2s ease,transform .2s ease;display:inline-block;
}
.foot-grid li a[href^="resources.html"]:hover::after,
.foot-grid li a[href^="become-a-distributor"]:hover::after{opacity:1;transform:translateX(3px)}

/* ---------- 4. Homepage Resources teaser ---------- */
.res-note a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.res-note a:hover{color:var(--green-l)}
.doc-card .doc-view::after{
  content:"\2192";margin-left:6px;display:inline-block;
  transition:transform .25s ease;
}
.doc-card:hover .doc-view::after{transform:translateX(3px)}

/* ---------- 5. Test-report register ---------- */
.rx-table-doc{min-width:900px}
.rx-table-doc td.rx-c-no{
  width:2.4rem;color:var(--gray-2);font-weight:400;
  font-variant-numeric:tabular-nums;
}
.rx-table-doc th.rx-c-no{width:2.4rem}
.rx-table-doc td:last-child{white-space:nowrap}
.rx-table-doc sub{font-size:.72em;line-height:0}

.rx-caveats{margin-top:1.9rem;padding-top:1.5rem;border-top:1px solid var(--line-2);max-width:66em}
.rx-caveats h3{
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gray-2);font-weight:600;margin-bottom:1rem;
}
.rx-caveats ul{list-style:none;display:grid;gap:.72rem}
.rx-caveats li{
  position:relative;padding-left:1.15rem;
  font-size:.82rem;font-weight:300;line-height:1.72;color:var(--gray-2);
}
.rx-caveats li::before{
  content:"";position:absolute;left:0;top:.66em;
  width:5px;height:5px;border-radius:50%;background:rgba(136,193,147,.5);
}
.rx-caveats em{font-style:normal;color:var(--gray)}
.rx-caveats strong{color:var(--gray);font-weight:600}

.rx-note > div{display:flex;flex-direction:column}
.rx-note .rx-add{margin-top:1.05rem;align-self:flex-start}

/* ---------- 6. Language skeleton (draft preview only) ---------- */
.lang-preview{
  position:relative;z-index:300;
  background:#3b2f10;border-bottom:1px solid #5c4a18;color:#ecd9a1;
  font-size:.78rem;line-height:1.6;text-align:center;padding:.6rem 1.2rem;
}
.lang-preview strong{color:#f6ecc6;font-weight:600}
.lang-switch{display:inline-flex;align-items:center;gap:.1rem;font-size:.8rem}
.lang-switch a{padding:.22rem .5rem;border-radius:5px;color:var(--gray);letter-spacing:.06em}
.lang-switch a:hover{color:var(--white)}
.lang-switch a.is-on{color:var(--white);background:rgba(136,193,147,.16)}
.lang-switch i{color:var(--line-3);font-style:normal}
@media (max-width:900px){.lang-switch{display:none}}

/* ---------- 7. Resources page: photo hero + image cards ---------- */
/* 7a. photo hero — the image is decorative, so it lives in CSS and never
   blocks first paint. Text sits on a graded scrim for contrast. */
.rx-hero-photo{position:relative;overflow:hidden;background:#141414}
.rx-hero-photo::before{
  content:"";position:absolute;inset:0;
  background:url("dz-hero-cnc-bright.webp") center 42%/cover no-repeat;
  opacity:.34;
}
.rx-hero-photo::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,18,18,.66) 0%,rgba(20,20,20,.78) 46%,rgba(26,26,26,.97) 100%);
}
.rx-hero-photo .wrap{position:relative;z-index:1}

/* 7b. cards get a 16:10 thumbnail; the tag becomes a chip on the image.
   Scoped to .rx-card-photo so the text-only cards on the /de/ skeleton
   keep their original padding. */
.rx-card-photo{padding:0;overflow:hidden}
.rx-thumb{
  position:relative;display:block;aspect-ratio:16/10;
  background:#101010;overflow:hidden;
}
.rx-thumb img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.rx-thumb::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,8,8,.06) 38%,rgba(8,8,8,.74) 100%);
}
.rx-card:hover .rx-thumb img{transform:scale(1.045)}
.rx-thumb .rx-tag{
  position:absolute;left:1rem;bottom:.85rem;z-index:1;
  color:#fff;font-weight:600;letter-spacing:.13em;
  padding:.34rem .72rem;border-radius:50px;
  background:rgba(8,8,8,.52);border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
}
.rx-body{display:flex;flex-direction:column;flex:1;padding:1.45rem 1.6rem 1.45rem}
@media (max-width:900px){.rx-body{padding:1.25rem 1.3rem 1.3rem}}

/* 7c. test-report register: mounting condition sits under the value */
.rx-table-doc .rx-ok{white-space:normal}
.rx-table-doc .rx-ok small{
  display:block;margin-top:.3rem;font-size:.73rem;font-weight:300;
  color:var(--gray-2);line-height:1.5;letter-spacing:.01em;
}

/* ---------- 8. hero stats: vertical column on the right (no CTA overlap) ---------- */
@media (min-width:901px) and (max-width:1360px){
  .hero-stats{flex-direction:column;align-items:flex-end;gap:1.15rem;bottom:3.2rem}
  .hero-stats div{border-right:none;padding-right:0;margin-right:0;text-align:right}
}
@media (min-width:901px) and (max-width:1250px){
  .hero-copy{max-width:min(600px,100%)}
}

/* ---------- 9. certification badges: one line on desktop ---------- */
.cert-strip{flex-wrap:nowrap}
@media (max-width:1100px){
  .cert-strip{gap:.5rem}
  .cert-strip .cert-badge,.cert-strip.sm .cert-badge{font-size:.68rem;padding:.38rem .55rem;letter-spacing:.02em}
}
@media (max-width:860px){
  .cert-strip{flex-wrap:wrap}
}

/* ---------- 10. header nav: keep every link on one line ---------- */
.nav a{white-space:nowrap}
@media (min-width:901px) and (max-width:1100px){
  .nav{gap:1.15rem}
  .nav a{font-size:.9rem}
  .header-cta .btn{padding:.6rem 1.05rem;font-size:.84rem}
  .header-cta{gap:8px}
}
