/* ═══════════════════════════════════════════════════════════════════════════
   mobile.css — MyADHDTips Mobile-Specific Styles
   Loaded via: <link rel="stylesheet" href="mobile.css" media="(max-width: 768px)">

   ADHD content is consumed primarily on phones.
   This stylesheet covers every breakpoint, touch target, and layout shift
   so the experience is flawless at 375px–768px.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   GENERAL / GLOBAL
   ───────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  /* Prevent overscroll / horizontal blowout */
  box-sizing: border-box;
}

html {
  /* Smooth scrolling for in-page anchors */
  scroll-behavior: smooth;
  /* Safe-area inset support for notched iPhones */
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

body {
  /* 16px minimum prevents iOS from auto-zooming inputs */
  font-size: 16px;
  /* No horizontal scroll */
  overflow-x: hidden;
  /* Better text rendering on mobile */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Container padding tighter on small screens */
.container {
  padding: 0 1rem;
}

/* Kill hover effects — they get stuck on tap on mobile */
*:hover {
  /* Reset via :active below for visual feedback */
  transition: none !important;
}

/* Active-state tap feedback instead */
a:active,
button:active,
.btn-grad:active,
.btn-outline:active,
.topic-card:active,
.post-row:active,
.trending-item:active,
.related-card:active,
.topic-article-card:active,
.nav-quiz-btn:active {
  opacity: 0.75;
  transform: scale(0.98);
}

/* Minimum tap target (Apple HIG: 44px, Google: 48px) */
a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Restore natural display for text links inside paragraphs */
.article-content a,
.toc a,
.footer-col a,
.nav-dropdown-link,
p a {
  display: inline;
  min-height: unset;
}


/* ─────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────── */

/* Hero headline */
.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
}

/* Article hero headline */
.article-hero h1,
.article-hero-gradient h1 {
  font-size: 1.75rem;
  line-height: 1.18;
}

/* Article content headline */
.article-content h1 {
  font-size: 1.75rem;
}

.article-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
}

/* Topic hub hero */
.topic-hero h1 {
  font-size: 1.7rem;
}

/* Featured hero title */
.fh-title {
  font-size: 1.5rem;
}

/* Body and supporting text stay 16px — don't let them shrink below */
.article-content p,
.article-content li,
.post-row p,
.sidebar-card li a {
  font-size: 1rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
   ───────────────────────────────────────────────────────────────────────── */

.ann-bar {
  font-size: 0.8rem;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  /* Safe area for notched phones */
  padding-left: max(1rem, env(safe-area-inset-left));
}

.ann-text {
  /* Hide long text to keep bar single-line */
  display: none;
}

.ann-inner {
  justify-content: flex-start;
  gap: 0.5rem;
}

.ann-badge {
  flex-shrink: 0;
}

.ann-link {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  /* Ensure tappable */
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}


/* ─────────────────────────────────────────────────────────────────────────
   NAVIGATION — Hamburger Full-Screen Overlay
   ───────────────────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  height: 56px;
  padding: 0 1rem;
  /* Safe area for notched phones */
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Hide desktop CTA in nav */
.nav-quiz-btn {
  display: none !important;
}

/* Show hamburger */
.nav-hamburger,
.hamburger {
  display: flex !important;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  /* 48px tap target */
  min-height: 48px;
  min-width: 48px;
  padding: 8px;
  border-radius: 8px;
}

/* Mobile nav overlay — full screen */
.nav-links,
#navLinks {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important; /* dynamic viewport height */
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 80px 1.5rem 2rem !important;
  /* Safe area bottom inset */
  padding-bottom: max(2rem, env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  z-index: 999 !important;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-height: unset !important;
  box-shadow: none !important;
  border: none !important;
  gap: 0 !important;
}

.nav-links.open,
#navLinks.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Nav link items — big tap targets */
.nav-item {
  width: 100%;
  border-bottom: 1px solid var(--border-light, #F0ECFF);
}

.nav-link {
  padding: 0.875rem 0.75rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
}

.nav-caret {
  display: inline-block !important;
  font-size: 0.75rem;
}

/* Mobile dropdowns */
.nav-dropdown {
  position: static !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  border-top: 1px solid var(--border-light, #F0ECFF) !important;
  border-radius: 0 !important;
  padding: 0.25rem 0 0.5rem 1rem !important;
  min-width: 0 !important;
  width: 100%;
  background: #f8f6ff !important;
}

.nav-dropdown-link {
  padding: 0.625rem 0.75rem !important;
  border-radius: 8px !important;
  min-height: 48px;
  font-size: 0.95rem !important;
}

/* "Take the Quiz" link inside mobile overlay */
.nav-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  background: rgba(248, 246, 255, 0.97);
  border-bottom: 1px solid var(--border-light, #F0ECFF);
  pointer-events: none; /* handled by site-nav */
}

/* Logo stays visible */
.nav-logo {
  font-size: 1.3rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — HERO
   ───────────────────────────────────────────────────────────────────────── */

.hero {
  padding: 2rem 1rem 1.5rem;
}

/* Pills wrap and center */
.hero-pills {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* CTA buttons stack on mobile */
.hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-actions .btn-grad,
.hero-actions .btn-outline {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  min-height: 48px;
}

.hero-proof {
  font-size: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — SOCIAL PROOF STRIP
   ───────────────────────────────────────────────────────────────────────── */

.proof-strip {
  padding: 0 1rem 1.5rem;
}

.proof-strip-inner {
  grid-template-columns: repeat(2, 1fr);
  padding: 1.25rem 1rem;
  gap: 0.75rem;
}

.proof-stat-num {
  font-size: 1.6rem;
}

.proof-stat-label {
  font-size: 0.75rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — FEATURED HERO
   ───────────────────────────────────────────────────────────────────────── */

.featured-hero {
  padding: 0.5rem 1rem 1.5rem;
}

.featured-hero-inner {
  grid-template-columns: 1fr;
  padding: 1.75rem 1.5rem;
  gap: 1rem;
}

.fh-visual {
  display: none;
}

.fh-title {
  font-size: 1.5rem;
  max-width: 100%;
}

.fh-desc {
  font-size: 0.92rem;
  max-width: 100%;
}

.fh-meta {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fh-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — TRENDING STRIP
   ───────────────────────────────────────────────────────────────────────── */

.trending-strip {
  padding: 0 1rem 1.5rem;
}

.trending-item {
  min-height: 44px;
  font-size: 0.82rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — HOW IT WORKS (4-col → 1-col)
   ───────────────────────────────────────────────────────────────────────── */

.how-section {
  padding: 2rem 1rem;
}

.how-path {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.how-step {
  padding: 1.5rem 1.25rem;
  /* No hover transform on mobile */
  transform: none !important;
}

.how-step:active {
  border-color: var(--purple, #7C5CFC);
}

.how-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.how-header h2 {
  font-size: 1.6rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — TOPIC CARDS (3-col → 1-col)
   ───────────────────────────────────────────────────────────────────────── */

.topics {
  padding: 1.5rem 1rem;
}

.topic-grid {
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.topic-card {
  padding: 1.5rem;
  /* No hover lift on mobile */
  transform: none !important;
  box-shadow: none !important;
}

.topic-card:active {
  opacity: 0.85;
  transform: scale(0.99) !important;
}

/* Always show count badge on mobile (no hover needed) */
.topic-count,
.topic-card-preview {
  opacity: 0.85 !important;
}

.topic-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.topic-card h3 {
  font-size: 1.1rem;
}

.topics-header h2 {
  font-size: 1.6rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — LATEST POSTS (stack)
   ───────────────────────────────────────────────────────────────────────── */

.latest {
  padding: 1.5rem 1rem;
}

.latest-header h2 {
  font-size: 1.6rem;
}

.post-list {
  gap: 0.75rem;
}

.post-row {
  flex-direction: column;
  padding: 1.25rem;
  gap: 0.75rem;
  text-align: left;
  /* No hover slide on mobile */
  transform: none !important;
}

.post-row:active {
  border-color: var(--purple, #7C5CFC);
}

.post-emoji {
  font-size: 2rem;
  width: auto;
  text-align: left;
}

.post-tags {
  flex-wrap: wrap;
}

.post-meta {
  text-align: left;
  display: flex;
  gap: 1rem;
}

.post-row h3 {
  font-size: 1rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — TESTIMONIALS (3-col → 1-col)
   ───────────────────────────────────────────────────────────────────────── */

.community {
  padding: 1rem;
}

.comm-box {
  padding: 1.75rem 1.25rem;
}

.testimonials-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.testimonial-enhanced {
  /* No hover on mobile */
  transform: none !important;
  box-shadow: none !important;
}

.testimonial-enhanced:active {
  border-color: var(--purple, #7C5CFC);
}

.comm-header h2 {
  font-size: 1.6rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — LEAD MAGNET / CTA (full-width stacked input/button)
   ───────────────────────────────────────────────────────────────────────── */

.lead {
  padding: 1rem 1rem 2rem;
}

.lead-box {
  grid-template-columns: 1fr;
  padding: 2rem 1.25rem;
  gap: 1.5rem;
}

.lead-box h2 {
  font-size: 1.6rem;
}

.lead-box p {
  font-size: 0.95rem;
}

.lead-form input[type="email"] {
  width: 100%;
  font-size: 16px; /* prevent iOS zoom */
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
}

.lead-form button {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  min-height: 48px;
  border-radius: 12px;
}

.lead-visual {
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
}

.tp-row {
  font-size: 0.9rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE — ABOUT
   ───────────────────────────────────────────────────────────────────────── */

.about-section {
  padding: 1rem 1rem 2rem;
}

.about-box {
  padding: 2rem 1.25rem;
}

.about-box h2 {
  font-size: 1.6rem;
}

.about-values {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.about-value {
  min-width: 80px;
}


/* ─────────────────────────────────────────────────────────────────────────
   FAQ ACCORDION
   ───────────────────────────────────────────────────────────────────────── */

.faq-section {
  padding: 2rem 1rem;
}

.faq-header h2 {
  font-size: 1.6rem;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  min-height: 56px;
}

.faq-answer {
  font-size: 0.93rem;
}

.faq-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — HERO
   ───────────────────────────────────────────────────────────────────────── */

.article-hero-wrap {
  padding: 0 1rem;
  margin: 0.75rem auto 0;
}

.article-hero-gradient {
  padding: 1.75rem 1.25rem;
  border-radius: 16px;
}

.article-hero-gradient h1 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.article-hero-gradient .subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}

.article-hero-gradient .article-meta {
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Classic article hero */
.article-hero {
  padding: 1.5rem 1rem 1.25rem;
}

.article-hero h1 {
  font-size: 1.75rem;
}

.article-meta {
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  justify-content: flex-start;
}

/* Header image reduced */
.article-header-img {
  height: 180px;
  font-size: 3.5rem;
  border-radius: 16px;
  margin: 1rem 0 1.5rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — LAYOUT (sidebar goes below content)
   ───────────────────────────────────────────────────────────────────────── */

.article-layout {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 1rem;
}

.sidebar {
  position: static;
  margin-top: 2rem;
}

.sidebar-card {
  margin-bottom: 1rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — TABLE OF CONTENTS (collapsible via mobile-enhancements.js)
   ───────────────────────────────────────────────────────────────────────── */

.toc {
  margin: 1.25rem 1rem;
  padding: 1.25rem 1.25rem;
  border-radius: 12px;
}

.toc h4 {
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  margin-bottom: 0.75rem;
}

.toc h4::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

/* When collapsed, hide the list */
.toc.collapsed ol {
  display: none;
}

.toc.collapsed h4::after {
  transform: rotate(-90deg);
}

.toc ol {
  padding-left: 1.1rem;
}

.toc li {
  padding: 0.4rem 0;
}

.toc a {
  font-size: 0.9rem;
  /* Bigger tap targets for TOC links */
  display: block;
  min-height: 36px;
  line-height: 36px;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — CONTENT BODY
   ───────────────────────────────────────────────────────────────────────── */

.article-content {
  padding: 0 1rem;
  max-width: 100%;
}

/* Callouts full-width */
.article-content .callout {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  width: 100%;
}

.article-content blockquote {
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

/* Inline CTA box — full width stacked */
.cta-box {
  padding: 2rem 1.25rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.cta-box h3 {
  font-size: 1.25rem;
}

.cta-box input {
  width: 100%;
  margin: 0 0 0.75rem 0;
  font-size: 16px; /* prevent iOS zoom */
  padding: 0.875rem 1rem;
  border-radius: 10px;
  display: block;
}

.cta-box button {
  width: 100%;
  padding: 0.875rem;
  border-radius: 10px;
  font-size: 1rem;
  min-height: 48px;
  display: block;
}

/* Product cards — stack vertically */
.product-card {
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  align-items: flex-start;
}

.product-emoji {
  font-size: 2.5rem;
}

.product-info h4 {
  font-size: 1rem;
}

.product-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — SHARE BAR
   ───────────────────────────────────────────────────────────────────────── */

.share-bar {
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}

.share-btn {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — AUTHOR BIO
   ───────────────────────────────────────────────────────────────────────── */

.author-bio {
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  gap: 1rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.author-name {
  font-size: 1rem;
}

.author-desc {
  font-size: 0.88rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   ARTICLES — RELATED ARTICLES (3-col → 1-col)
   ───────────────────────────────────────────────────────────────────────── */

.related-articles {
  margin: 2rem 0;
  padding: 0 0;
}

.related-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.related-card {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-height: 64px;
  /* No hover transform */
  transform: none !important;
}

.related-card:active {
  border-color: var(--purple, #7C5CFC);
}

.rc-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rc-title {
  font-size: 0.92rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   QUIZ PAGE
   ───────────────────────────────────────────────────────────────────────── */

/* Quiz container */
.quiz-wrap,
[class*="quiz-container"],
.quiz-inner {
  padding: 1rem;
  margin: 0;
  max-width: 100%;
  border-radius: 16px;
}

/* Quiz hero */
.quiz-hero,
[class*="quiz-hero"] {
  padding: 2rem 1rem 1.5rem;
}

/* Progress bar — thicker on mobile for easier tapping */
.quiz-progress,
[class*="quiz-progress"],
progress {
  height: 12px !important;
  border-radius: 6px;
}

/* Quiz options — full width, large touch targets */
.quiz-option,
[class*="quiz-option"],
.option-btn {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 1rem !important;
  text-align: left !important;
  border-radius: 12px !important;
  margin-bottom: 0.625rem !important;
  display: flex !important;
  align-items: center !important;
}

/* Quiz navigation buttons */
.quiz-nav,
[class*="quiz-nav"],
.quiz-btn {
  min-height: 52px;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  width: 100%;
}

/* Quiz question text */
.quiz-question,
[class*="quiz-question"] h2,
[class*="quiz-question"] p {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Result page CTA buttons */
.result-ctas {
  flex-direction: column;
  gap: 0.75rem;
}

.result-ctas a,
.result-ctas button {
  width: 100%;
  justify-content: center;
  min-height: 52px;
}


/* ─────────────────────────────────────────────────────────────────────────
   TOPIC HUB PAGES
   ───────────────────────────────────────────────────────────────────────── */

.topic-hero-inner {
  padding: 2rem 1rem 1.75rem;
}

.topic-hero p {
  font-size: 0.92rem;
}

.topic-hero-meta {
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.topic-section {
  padding: 1.5rem 0 2rem;
}

.topic-section-intro {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.topic-section-intro h2 {
  font-size: 1.4rem;
}

/* Topic article grid — single column */
.topic-grid-full {
  grid-template-columns: 1fr;
  gap: 0.875rem;
  padding: 0 1rem;
}

/* Featured card — single column */
.topic-article-card.featured {
  grid-template-columns: 1fr;
  grid-column: 1;
}

.topic-article-card.featured .tac-header {
  grid-row: auto;
}

.topic-article-card {
  padding: 1.25rem;
  /* No hover transform */
  transform: none !important;
}

.topic-article-card:active {
  border-color: var(--purple, #7C5CFC);
}

.tac-emoji {
  font-size: 2rem;
}

.topic-article-card h3 {
  font-size: 0.98rem;
}

.topic-article-card.featured h3 {
  font-size: 1.1rem;
}

.tac-subtitle {
  font-size: 0.85rem;
}

/* Topic subsection labels */
.topic-subsection-label {
  padding: 0 1rem;
}

.topic-subsection-desc {
  padding: 0 1rem;
}

/* Topic disclosure */
.topic-disclosure {
  margin: 1rem 1rem;
}

/* Topic bottom CTA */
.topic-bottom-cta {
  padding: 0 1rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   READING PROGRESS BAR — Tap-to-top via mobile-enhancements.js
   ───────────────────────────────────────────────────────────────────────── */

.reading-progress {
  height: 6px; /* thicker on mobile — easier tap target */
  cursor: pointer;
  /* Slightly taller hit area */
  padding-bottom: 6px;
  top: 0;
}


/* ─────────────────────────────────────────────────────────────────────────
   BACK TO TOP BUTTON
   ───────────────────────────────────────────────────────────────────────── */

.back-to-top {
  bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
  right: 1rem;
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  /* Finger-friendly size */
  min-width: 52px;
  min-height: 52px;
}


/* ─────────────────────────────────────────────────────────────────────────
   FOOTER — Single column, larger tap targets
   ───────────────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 2.5rem;
}

.site-footer .footer-inner,
.footer-inner {
  flex-direction: column;
  padding: 2rem 1rem 1.5rem;
  gap: 1.5rem;
}

.footer-brand {
  max-width: 100%;
}

.footer-cols {
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.footer-col-title {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
}

/* Bigger tap targets for footer links */
.footer-col a {
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light, #F0ECFF);
}

.footer-col a:last-child {
  border-bottom: none;
}

.footer-bottom {
  padding: 1rem;
  /* Safe area bottom inset */
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.footer-bottom p {
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-tagline {
  font-size: 0.88rem;
}

.footer-copy {
  font-size: 0.78rem;
}


/* ─────────────────────────────────────────────────────────────────────────
   CARDS — DISABLE HOVER TRANSFORMS GLOBALLY ON MOBILE
   ───────────────────────────────────────────────────────────────────────── */

.card:hover,
.post-row:hover,
.how-step:hover,
.topic-card:hover,
.testimonial-enhanced:hover,
.topic-article-card:hover,
.related-card:hover,
.trending-item:hover,
.product-card:hover,
.faq-item:hover {
  transform: none !important;
  box-shadow: none !important;
}


/* ─────────────────────────────────────────────────────────────────────────
   SAFE AREA INSETS — Notched iPhones (iPhone X+)
   ───────────────────────────────────────────────────────────────────────── */

.site-nav {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.ann-bar {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}


/* ─────────────────────────────────────────────────────────────────────────
   SMALL PHONES (max-width: 375px)
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .article-hero-gradient h1 {
    font-size: 1.5rem;
  }

  .fh-title {
    font-size: 1.3rem;
  }

  .lead-box h2 {
    font-size: 1.4rem;
  }

  .how-header h2,
  .topics-header h2,
  .latest-header h2,
  .comm-header h2 {
    font-size: 1.45rem;
  }

  .proof-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .proof-stat-num {
    font-size: 1.35rem;
  }

  .nav-inner {
    height: 52px;
  }
}
