/* HealthGadgetReview Canada Editorial Guide — Google Ads Compliant Stylesheet */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --ink-heading: #1a1414;
  --ink-body: #2a2222;
  --ink-muted: #526378;
  --brand-teal: #0f7a6e;
  --brand-crimson: #c8102e;
  --link-blue: #b3122f;
  --link-blue-hover: #8a0d24;
  --cta-green: #0a9e52;
  --cta-green-hover: #078343;
  --callout-bg: #f7f3ee;
  --callout-border: #e6d9c8;
  --guarantee-bg: #fdfaf0;
  --guarantee-border: #e6b347;
  --offer-bg: #f2f7f5;
  --offer-border: #cfe3dc;
  --footer-bg: #efe8df;
  --footer-link: #8a0d24;
  --border-subtle: #e5eaef;
  --card-surface: #fbf8f4;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  font-family: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 26px;
  color: var(--ink-heading);
  -webkit-font-smoothing: antialiased;
}

.int-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Affiliate Disclosure Strip */
.affiliate-top-bar {
  background-color: #faf6f1;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 16px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  line-height: 17px;
  color: var(--ink-muted);
}

/* Top Navbar */
.adv-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.adv-logo-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}

.adv-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink-heading);
}

.adv-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.adv-brand-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-heading);
}

.adv-brand-name span {
  font-weight: 600;
  color: var(--brand-teal);
}

.adv-logo-caption {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Main 2-Column Section */
.adv-section-old {
  padding: 40px 32px 80px;
}

.adv-container-old {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: stretch;
  justify-content: space-between;
}

.adv-left-column {
  max-width: 752px;
  width: 100%;
}

.adv-right-column {
  max-width: 340px;
  width: 100%;
  flex-shrink: 0;
}

.adv-wrapper-24 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Typography & Editorial Content */
.adv-heading-1 {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 46px;
  letter-spacing: -0.015em;
  color: var(--ink-heading);
  text-wrap: balance;
}

.adv-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-top: -8px;
}

.adv-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--callout-bg);
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.adv-rte {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 27px;
  color: var(--ink-body);
}

.adv-rte p {
  margin: 0 0 18px;
  text-wrap: pretty;
}

.adv-rte p:last-child {
  margin-bottom: 0;
}

.adv-rte strong {
  font-weight: 700;
  color: var(--ink-heading);
}

.adv-rte a:not(.responsive-video-link):not(.figure-link) {
  color: var(--link-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.adv-rte a:not(.responsive-video-link):not(.figure-link):hover {
  color: var(--link-blue-hover);
}

.adv-rte h2 {
  margin: 34px 0 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 38px;
  color: var(--ink-heading);
  text-wrap: balance;
}

.adv-rte h2:first-child {
  margin-top: 0;
}

.adv-rte h4 {
  margin: 32px 0 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 31px;
  color: var(--ink-heading);
  text-wrap: balance;
}

/* Bullet Callout Box */
.adv-rte ul.callout-list {
  background-color: var(--callout-bg);
  border-left: 3px solid var(--brand-teal);
  border-radius: 6px;
  padding: 18px 20px 18px 42px;
  margin: 4px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-rte ul.callout-list li {
  font-family: 'Open Sans', sans-serif;
  font-size: 16.5px;
  line-height: 23px;
  color: var(--ink-body);
}

/* Media: Videos & Figures */
.responsive-video-link {
  display: block;
  width: 100%;
  height: 400px;
  margin: 0 0 22px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f4f7;
  position: relative;
}

.responsive-video-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adv-rte figure {
  margin: 0 0 20px;
  width: 100%;
}

.figure-link {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.adv-rte figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  pointer-events: none;
}

/* Mid-Article CTA Wrapper */
.cta-wrapper {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Primary Buttons */
.button-cta {
  display: inline-block;
  width: 100%;
  background-color: var(--cta-green);
  color: #ffffff !important;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(10, 158, 82, 0.22);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.button-cta:hover {
  background-color: var(--cta-green-hover);
  box-shadow: 0 5px 14px rgba(10, 158, 82, 0.28);
}

.button-cta--pulse:hover {
  transform: translateY(-1px);
}

/* 30-Day Money-Back Guarantee Box */
.adv-money-back-block {
  background-color: var(--guarantee-bg);
  border: 1px solid var(--guarantee-border);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.adv-money-back-seal {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: contain;
}

.adv-money-back-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 18.5px;
  line-height: 27px;
  color: var(--ink-body);
}

.adv-money-back-text strong {
  color: var(--ink-heading);
  font-weight: 800;
}

/* Product Offer Block */
.adv-product-block {
  background-color: var(--offer-bg);
  border: 1px solid var(--offer-border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.adv-heading-3-centered {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 33px;
  color: var(--ink-heading);
  text-align: center;
  text-wrap: balance;
}

.product-block-link {
  display: block;
  max-width: 380px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(11, 28, 44, 0.09);
  transition: transform 0.2s ease;
}

.product-block-link:hover {
  transform: scale(1.02);
}

.product-block-image-2 {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.adv-product-cta-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.shipping-note {
  font-family: 'Open Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 21px;
  color: var(--ink-body);
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shipping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cta-green);
  display: inline-block;
}

/* Right Sidebar Column (Product At-a-Glance + Sticky Offer) */
.adv-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.adv-heading-5 {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 25px;
  color: var(--ink-heading);
}

.separator-2 {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
}

.sidebar-specs-card {
  background-color: var(--card-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-body);
}

.sidebar-spec-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(29, 107, 135, 0.12);
  color: var(--brand-teal);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Sticky Sidebar Card */
.adv-sticky-banner-wrapper-2 {
  position: sticky;
  top: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  background-color: #ffffff;
  box-shadow: 0 4px 18px rgba(11, 28, 44, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sticky-image-link {
  position: relative;
  display: block;
  width: 100%;
  max-width: 246px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}

.sticky-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sticky-headline-link {
  font-family: 'Open Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 25px;
  color: var(--link-blue);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sticky-headline-link:hover {
  color: var(--link-blue-hover);
}

.sticky-subtext {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15.5px;
  line-height: 22px;
  color: var(--ink-body);
  text-align: center;
}

/* Footer */
.adv-section-old.footer {
  margin-top: auto;
  background-color: var(--footer-bg);
  padding: 42px 32px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13.5px;
  line-height: 21px;
}

.footer-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.adv-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-heading);
}

.adv-footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.adv-footer-brand span {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.adv-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.adv-footer-link {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--footer-link);
  text-decoration: none;
}

.adv-footer-link:hover {
  text-decoration: underline;
}

.adv-affiliate-box {
  background-color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(29, 107, 135, 0.2);
  border-radius: 8px;
  padding: 14px 20px;
  max-width: 920px;
  color: var(--ink-body);
  text-align: center;
  font-size: 13px;
  line-height: 20px;
}

.adv-footer-disclaimer {
  color: rgba(11, 28, 44, 0.65);
  text-align: center;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-footer-disclaimer p {
  margin: 0;
}

.sticky-image-link--blurred {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.sticky-image-link--blurred img {
  filter: blur(8px);
  transform: scale(1.06);
  transition: filter 0.3s ease;
}

.sticky-blur-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Always-Visible Sticky Bottom Order Bar (Desktop & Mobile) */
.mobile-sticky-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.16);
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-family: 'Open Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
}

.sticky-bar-badge {
  background-color: #0d9488;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.mobile-sticky-button .button-cta {
  width: auto;
  min-width: 220px;
  padding: 11px 22px;
  font-size: 15px;
  margin: 0;
}

.adv-section-old.footer {
  padding-bottom: 88px;
}

/* Legal Subpages Styling */
.legal-page-wrapper {
  max-width: 860px;
  margin: 36px auto 64px;
  padding: 0 24px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 36px 40px;
  font-family: 'Open Sans', sans-serif;
  color: var(--ink-body);
  font-size: 15.5px;
  line-height: 25px;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 36px;
  color: var(--ink-heading);
}

.legal-updated {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-card h2 {
  font-size: 19px;
  line-height: 26px;
  color: var(--ink-heading);
  margin: 26px 0 10px;
}

.legal-card p, .legal-card ul {
  margin: 0 0 14px;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-teal);
  text-decoration: none;
}

.legal-back-link:hover {
  text-decoration: underline;
}

/* Contact Form on Legal/Editorial Page */
.editorial-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-top: 12px;
}

.editorial-contact-form input,
.editorial-contact-form textarea {
  font-family: 'Open Sans', sans-serif;
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--callout-border);
  border-radius: 6px;
  color: var(--ink-heading);
  background: #ffffff;
}

.editorial-contact-form button {
  align-self: flex-start;
  background-color: var(--brand-teal);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.form-success-msg {
  display: none;
  padding: 10px 14px;
  background-color: var(--callout-bg);
  border-left: 3px solid var(--cta-green);
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-heading);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .adv-container-old {
    flex-direction: column;
  }

  .adv-left-column,
  .adv-right-column {
    max-width: none;
  }

  .adv-sticky-banner-wrapper-2 {
    position: static;
  }

  .mobile-sticky-button {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-bar-info {
    display: none;
  }

  .mobile-sticky-button .button-cta {
    width: 100%;
  }

  .adv-section-old.footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 768px) {
  .responsive-video-link {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .adv-navbar {
    padding: 9px 16px;
  }

  .adv-logo {
    width: 28px;
    height: 28px;
  }

  .adv-brand-name {
    font-size: 19px;
  }

  .adv-section-old {
    padding: 24px 20px 44px;
  }

  .adv-heading-1 {
    font-size: 26px;
    line-height: 34px;
  }

  .adv-rte {
    font-size: 16.5px;
    line-height: 25px;
  }

  .adv-rte h2 {
    font-size: 24px;
    line-height: 31px;
  }

  .adv-rte h4 {
    font-size: 21px;
    line-height: 28px;
  }

  .adv-heading-3-centered {
    font-size: 21px;
    line-height: 28px;
  }

  .adv-money-back-text {
    font-size: 16.5px;
    line-height: 24px;
  }

  .adv-section-old.footer {
    padding: 28px 16px 92px;
  }

  .legal-card {
    padding: 24px 20px;
  }
}

@media (max-width: 479px) {
  .adv-section-old {
    padding: 18px 16px 40px;
  }

  .adv-money-back-block {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }

  .adv-product-block {
    padding: 24px 16px;
  }

  .button-cta {
    font-size: 16px;
    padding: 15px 14px;
  }
}

/* Canada edition refinements */
h1, h2 { letter-spacing: -0.01em; }
h2 { border-left: 4px solid var(--brand-crimson); padding-left: 12px; }
.button-cta { border-radius: 10px !important; box-shadow: 0 6px 16px rgba(10,158,82,.25); }
img { border-radius: 8px; }
.affiliate-top-bar { border-bottom: 3px solid var(--brand-crimson); }
