/* ============================================================
   RUFFWELL — MAIN STYLESHEET
   Design: Minimal Edge
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-dark: #111111;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #999999;
  --text-inverse: #FFFFFF;
  --accent: #E05A3A;
  --accent-hover: #C94B2E;
  --border: #E8E8E8;
  --border-dark: #333333;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-fast: 0.15s ease;

  /* Spacing */
  --space-section: 120px;
  --container-max: 1120px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Hide old paw dividers */
.paw-divider {
  display: none;
}

/* ============================================================
   5. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 0;
  transition: none;
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo,
.site-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  border-radius: 1px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(224, 90, 58, 0.3);
}

.btn-outline,
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
}

.btn-outline:hover,
.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

/* Filter pills (blog page) */
.btn-filter {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.btn-filter:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-filter.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

/* Share buttons (article pages) */
.btn-share {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.btn-share:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Remove old btn-lg sizing */
.btn-lg {
  /* Override: use same size as base .btn */
  padding: 14px 28px;
  font-size: 15px;
}

/* ============================================================
   8. CARDS (shared)
   ============================================================ */
.feature-card,
.product-card,
.testimonial-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.feature-card:hover,
.product-card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ============================================================
   9. BADGES & LABELS
   ============================================================ */
.adventure-badge,
.feature-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* Remove old badge color classes */
.badge-green,
.badge-red,
.badge-yellow,
.badge-blue,
.badge-purple,
.pokemon-badge {
  /* Reset overrides from old theme */
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coming-soon-label {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.coming-soon-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

/* Override old colored tag classes */
.tag-orange,
.tag-green,
.tag-yellow,
.tag-blue,
.tag-red,
.tag-purple {
  border-color: var(--border);
  color: var(--text-secondary);
  background: none;
}

/* ============================================================
   10. HERO SECTION
   ============================================================ */
.hero-section {
  padding: 160px 0 var(--space-section);
  position: relative;
  overflow: hidden;
}

/* Hide old decorative elements */
.hero-bg-pattern,
.hero-particles,
.hero-sparkle,
.hero-badge,
.paw-trail {
  display: none !important;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-img {
  max-width: 400px;
  width: 100%;
}

/* ============================================================
   11. FEATURES SECTION
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-title {
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-badge {
  margin-top: auto;
}

/* Feature card stagger */
.features-grid .feature-card:nth-child(2) {
  transition-delay: 80ms;
}

.features-grid .feature-card:nth-child(3) {
  transition-delay: 160ms;
}

/* ============================================================
   12. BLOG GRID & BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-primary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.blog-card-author,
.blog-card-date {
  color: var(--text-muted);
}

/* Blog card stagger */
.blog-grid .blog-card:nth-child(2) {
  transition-delay: 80ms;
}

.blog-grid .blog-card:nth-child(3) {
  transition-delay: 160ms;
}

/* Skeleton loader */
.blog-card-skeleton {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.skeleton-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, var(--bg-primary) 25%, #f0f0f0 50%, var(--bg-primary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 24px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-primary) 25%, #f0f0f0 50%, var(--bg-primary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 12px;
}

.skeleton-line:nth-child(1) {
  width: 40%;
  height: 10px;
}

.skeleton-line:nth-child(2) {
  width: 80%;
  height: 18px;
}

.skeleton-line:nth-child(3) {
  width: 100%;
}

.skeleton-line:nth-child(4) {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   13. PRODUCTS SECTION
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.product-card {
  text-align: center;
  position: relative;
}

/* Hide old overlay wrapper */
.product-coming-soon-overlay {
  position: static;
  background: none;
  padding: 0;
  display: contents;
}

.product-image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 24px;
}

.product-image img {
  max-height: 100%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}

.product-body {
  text-align: center;
}

.product-name {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Product card stagger */
.products-grid .product-card:nth-child(2) {
  transition-delay: 80ms;
}

.products-grid .product-card:nth-child(3) {
  transition-delay: 160ms;
}

.products-grid .product-card:nth-child(4) {
  transition-delay: 240ms;
}

/* ============================================================
   14. ABOUT SECTION
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

/* Hide speech bubble */
.speech-bubble,
.about-bubble,
.testimonial-bubble {
  display: none;
}

.about-mascot {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content .btn {
  margin-top: 16px;
}

/* ============================================================
   15. TESTIMONIALS SECTION
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  border: none;
  padding: 0;
  margin: 0;
}

/* Hide old elements */
.testimonial-avatar,
.adventure-level-badge {
  display: none;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-owner {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-dog {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-card .adventure-badge {
  align-self: flex-start;
}

/* Testimonial stagger */
.testimonials-grid .testimonial-card:nth-child(2) {
  transition-delay: 80ms;
}

.testimonials-grid .testimonial-card:nth-child(3) {
  transition-delay: 160ms;
}

/* ============================================================
   16. NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Hide old decoration */
.newsletter-decoration {
  display: none;
}

.newsletter-title {
  color: var(--text-inverse);
  margin-bottom: 12px;
}

.newsletter-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.newsletter-form {
  margin-bottom: 24px;
}

.newsletter-input-group {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  font-size: 15px;
  transition: border-color var(--transition-fast);
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-fine-print {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Newsletter perks (replaces old badges) */
.newsletter-perks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.newsletter-perks li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-inverse);
}

.newsletter-perks li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

/* Hide old newsletter badges */
.newsletter-badges {
  display: none;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding-top: 64px;
}

/* Hide footer wave */
.footer-wave {
  display: none;
}

.footer-inner {
  padding-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
  /* Invert for dark background if needed */
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-heart {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-inverse);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-inverse);
}

/* ============================================================
   18. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-fast);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   19. BLOG HERO PAGE (blog/index.html)
   ============================================================ */
.blog-hero-section {
  padding: 160px 0 64px;
  position: relative;
  overflow: hidden;
}

.blog-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.blog-hero-content {
  max-width: 600px;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.1;
}

.blog-hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-hero-mascot-img {
  max-width: 200px;
  width: 100%;
}

/* Filter bar */
.filter-section {
  padding: 24px 0 0;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-btn {
  min-width: 44px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.pagination-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   20. ARTICLE / POST PAGES
   ============================================================ */

/* Breadcrumb */
.breadcrumb-nav {
  padding-top: 96px;
  padding-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-muted);
  user-select: none;
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}

/* Post hero */
.post-hero {
  text-align: center;
  padding: 32px 24px 48px;
  max-width: 800px;
  margin: 0 auto;
}

.post-meta-top {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-hero-title {
  margin-bottom: 12px;
}

.post-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.post-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.meta-dot {
  color: var(--text-muted);
}

.post-hero-illustration {
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.post-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Article body */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-section);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 1.5em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-body h2,
.article-body h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

/* Blockquote with coral left border */
.article-body blockquote,
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  background: none;
}

/* Story illustration */
.story-illustration {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.story-img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Byline */
.byline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

/* Tip box */
.tip-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
}

.tip-box h3 {
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.tip-box ul {
  list-style: disc;
  padding-left: 20px;
}

.tip-box li {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Social share */
.social-share {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* More adventures (related posts) */
.more-adventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.related-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-primary);
}

.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.related-card:hover .related-card-img {
  transform: scale(1.03);
}

.related-card-body {
  padding: 24px;
}

.related-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.related-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.related-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================================
   21. LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* ============================================================
   22. TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  max-width: 400px;
  width: max-content;
  z-index: 500;
  text-align: center;
  transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-elevated);
}

.toast-notification.show {
  top: 80px;
  opacity: 1;
  pointer-events: auto;
}

.toast-notification .toast-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.toast-notification .toast-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   23. LINK HOVER UNDERLINES
   ============================================================ */
.about-content a,
.footer-links a,
.article-body a {
  position: relative;
}

.about-content a::after,
.footer-links a::after,
.article-body a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.about-content a:hover::after,
.footer-links a:hover::after,
.article-body a:hover::after {
  transform: scaleX(1);
}

/* Article body links get accent color */
.article-body a {
  color: var(--accent);
}

.article-body a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   24. RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
  }

  .container {
    padding: 0 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero-inner {
    gap: 40px;
  }

  .about-inner {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   25. RESPONSIVE — 768px (Mobile)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-section: 64px;
  }

  .container {
    padding: 0 24px;
  }

  /* Mobile navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 8px;
    z-index: 100;
    box-shadow: var(--shadow-elevated);
    transition: right var(--transition-base);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.125rem;
  }

  .nav-overlay {
    display: block;
  }

  /* Hero */
  .hero-section {
    padding: 120px 0 var(--space-section);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-mascot {
    order: 1;
  }

  .mascot-img {
    max-width: 280px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Blog grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
    text-align: center;
  }

  .about-mascot {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Newsletter */
  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-perks {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Blog hero page */
  .blog-hero-section {
    padding: 120px 0 48px;
  }

  .blog-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .blog-hero-mascot {
    display: none;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }

  .filter-bar .btn-filter {
    flex-shrink: 0;
  }

  /* Article pages */
  .post-hero {
    padding: 24px 0 32px;
  }

  .more-adventures-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-body p {
    font-size: 1rem;
  }

  /* Section header */
  .section-header {
    margin-bottom: 40px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Breadcrumb */
  .breadcrumb-nav {
    padding-top: 84px;
  }
}

/* ============================================================
   26. UTILITY — print & reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .back-to-top,
  .newsletter-section,
  .filter-section {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}
