/* ── POLISH PASS (Nov 2026) ───────────────────────────────────────────────
   Detail-level refinements on top of the existing template. Loaded last on
   every page. Layout, sections, copy and colours are unchanged: this file
   only quiets the generic "template" tells (pill eyebrows, icon bubbles,
   glow halos, hover lifts) and themes the browser surfaces.
   Remove the <link> to roll the whole pass back. */

/* 1. Browser surfaces ─────────────────────────────────────────────────── */
::selection { background: rgba(214, 45, 47, 0.16); color: var(--color-dark); }
html { scrollbar-width: thin; scrollbar-color: #b8c2d2 transparent; }
input, textarea { caret-color: var(--color-primary); }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* 2. Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3, .section-heading { text-wrap: balance; }
p, .section-desc, .testi-quote, .service-desc, .feature-desc { text-wrap: pretty; }
.section-heading { letter-spacing: -0.01em; }
.section-header { margin-bottom: 52px; }
.testi-rating-score, .product-card-model, .cert-badge-name { font-variant-numeric: tabular-nums; }

/* Section eyebrow pills: the heading already names the section. Heroes keep
   theirs (approved designs). */
.section-badge { display: none; }
.video-hero .section-badge,
.page-hero .section-badge,
.hs-hero .section-badge { display: inline-flex; }

/* 3. Buttons: no hover lift, no coloured glow; a quiet press instead ─── */
.btn {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 34px; font-size: 16px; }
.btn.btn-primary, .btn.btn-blue { box-shadow: none; }
.btn:hover,
.btn-primary:hover, .btn-secondary:hover, .btn-white:hover, .btn-outline-white:hover { transform: none; box-shadow: none; }
.btn-primary:active, .btn-secondary:active, .btn-white:active, .btn-outline-white:active, .btn:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
  transition: transform 0.08s ease !important;
}
.btn-secondary { border-width: 1.5px; }
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(2px); }

/* Product cards: four solid pills in a row read heavy; outline them. */
.product-card .btn.btn-primary {
  background: transparent;
  color: var(--color-blue);
  border: 1.5px solid rgba(26, 58, 143, 0.35);
}
.product-card .btn.btn-primary:hover { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }

/* 4. Cards ────────────────────────────────────────────────────────────── */
.product-card { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.product-card:hover { transform: none; box-shadow: 0 12px 32px -14px rgba(2, 22, 53, 0.22); border-color: var(--color-border); }
.product-card-model { color: #6b7280; }

/* Service cards: neutral 1px frame instead of the pink gradient ring,
   left-aligned copy, icon without its bubble, no red flood on hover. */
.service-card-frame { padding: 1px; background: var(--color-border); border-radius: calc(var(--radius-xl) + 1px); }
.service-card-frame:hover { background: rgba(26, 58, 143, 0.35); }
.service-card { background: #fff; text-align: left; padding: 32px 28px; }
.service-card:hover { background: #fff; transform: none; box-shadow: none; }
.service-icon-wrapper,
.service-card:hover .service-icon-wrapper { width: auto; height: auto; background: none; margin: 0 0 20px; justify-content: flex-start; color: var(--color-primary); }
.service-icon-wrapper svg { width: 26px; height: 26px; }
.service-card:hover .service-title { color: var(--color-text-primary); }
.service-card:hover .service-desc { color: var(--color-text-secondary); }

/* Feature list (Why DEPLUS): plain line icons aligned to the title. */
.feature-icon-wrapper { width: 28px; height: 28px; background: none; border-radius: 0; justify-content: flex-start; margin-top: 2px; }
.feature-item { gap: 16px; }

/* Certification row: outlined marks instead of pastel bubbles. */
.cert-badge-icon { width: 48px; height: 48px; background: none; border: 1px solid var(--color-border); }

/* Testimonials: initials in brand navy tint, not alarm red. */
.testi-avatar { background: var(--color-blue-light); color: var(--color-blue); }

/* 5. Floating controls: one loud button (WhatsApp) is enough. ─────────── */
#back-to-top {
  width: 42px; height: 42px;
  background: #fff; color: var(--color-dark);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px -8px rgba(2, 22, 53, 0.3);
}
#back-to-top:hover { background: var(--color-bg-light); transform: none; }


/* 6. Contrast: muted greys that failed WCAG AA (2.5:1 on white, 2.7:1 on navy). */
:root { --color-text-muted: #6b7280; }
.footer-newsletter-disclaimer,
.footer-copyright,
.footer-bottom-link { color: rgba(255, 255, 255, 0.6); }
.footer-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.55); }
/* The footer sits on navy: keep its muted text light (the token above is for white). */
.footer-component { --color-text-muted: #b9c7de; }
.footer-about-text, .footer-link { color: #b9c7de; }
.category-tile { color: #5f6673; }
.footer-link:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .product-card { transition: none; }
}

/* ── Phone fixes (Samuel 2026-11-16) ── */
@media (max-width: 1024px) {
  /* 2-column category grid: an odd last tile fills the whole row */
  .category-bar-inner > .category-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  /* stacked newsletter form: the inline flex-basis (200px) turned into height */
  .newsletter-form input[type="email"] { flex: 0 0 auto !important; width: 100%; height: 52px !important; }
  .newsletter-form .btn { width: 100%; }
}

/* ═══ Card reveal on scroll (Samuel 2026-11-16) ═══════════════════════════════
   Every product card + home category tiles/mosaic: blur + rise + slight scale,
   staggered only among cards entering together (js/animations.js → .reveal-card).
   The old .animate-on-scroll fade was cancelled by the .product-card transition
   above, so cards just popped in. */
.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
}
.reveal-card.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal-card.rc-anim {
  transition:
    opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) var(--rc-delay, 0ms),
    transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) var(--rc-delay, 0ms),
    filter 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) var(--rc-delay, 0ms),
    box-shadow 0.25s ease, border-color 0.25s ease;
}
/* the product photo settles inside its card */
.reveal-card .product-card-img,
.reveal-card .mosaic-img { transform: scale(1.12); }
.reveal-card.rc-anim .product-card-img,
.reveal-card.rc-anim .mosaic-img {
  transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) calc(var(--rc-delay, 0ms) + 80ms);
}
.reveal-card.is-revealed .product-card-img,
.reveal-card.is-revealed .mosaic-img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-card, .reveal-card .product-card-img, .reveal-card .mosaic-img {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
}

/* ── Phone fixes for longer (Spanish) text, also safe for English ── */
@media (max-width: 1024px) {
  .blog-post-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-post-layout > * { min-width: 0; }
}
@media (max-width: 768px) {
  /* forms: a long <select> option must not widen the field */
  .form-group { min-width: 0; }
  select.form-input { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
  /* product breadcrumb: drop "Home ›" (the logo links home) so long category names fit */
  .ph-breadcrumb > a:first-child,
  .ph-breadcrumb > a:first-child + .breadcrumb-sep { display: none; }
  .ph-breadcrumb > a { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
  /* header: EN/ES pill compact so logo + language + search + menu fit on 360px phones */
  .navbar-tools { gap: 6px; }
  .lang-switch { height: 36px; min-width: 36px; padding: 0 8px; font-size: 12px; }
}
@media (max-width: 768px) {
  .ph-breadcrumb { width: 100%; max-width: 100%; overflow: hidden; }
}
@media (max-width: 380px) {
  /* 360px phones: smaller logo so EN/ES + search + menu fit */
  .navbar-logo-img { max-width: 140px; height: auto; }
}
@media (max-width: 768px) {
  /* phones: breadcrumb becomes one back link to the category (name is the H1 + size pills) */
  .ph-breadcrumb > a:nth-of-type(1), .ph-breadcrumb > a:nth-of-type(2),
  .ph-breadcrumb > .breadcrumb-sep, .ph-breadcrumb > [aria-current] { display: none; }
  .ph-breadcrumb > a:nth-of-type(3) { color: var(--color-text-primary); font-weight: 600; font-size: 13px; }
  .ph-breadcrumb > a:nth-of-type(3)::before { content: '‹'; margin-right: 6px; font-size: 16px; line-height: 1; }
  .ph-strip .ph-switch-label { display: none; } /* the back link already names the category */
}
@media (min-width: 769px) {
  /* Spanish size labels are long: breadcrumb on its own line, pills wrap below */
  html[lang="es"] .ph-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  html[lang="es"] .ph-pills { flex-wrap: wrap; overflow: visible; }
}

/* FAQ answers from the official warranty terms (2026-11-17): longer answers + bullet lists */
.accordion-item.open .accordion-body { max-height: 2400px; }
.accordion-body p + p, .accordion-body ul + p { margin-top: 12px; }
.accordion-body .faq-list { list-style: disc; margin: 10px 0 0 1.25em; padding: 0; color: inherit; }
.accordion-body .faq-list li { margin: 6px 0; line-height: 1.6; }
