/* ========================================
   CROCHET CALCULATOR HUB — DESIGN SYSTEM
   ======================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #C4654A;
  --primary-dark: #A34E37;
  --primary-light: #E8956F;
  --cream-bg: #FDF6EE;
  --sage: #7A9E7E;
  --sage-light: #a8c5ab;
  --dusty-rose: #D4919B;
  --gold: #D4A853;
  --charcoal: #2C2C2C;
  --warm-gray: #6B635B;
  --white: #FFFFFF;
  --card-border: rgba(196, 101, 74, 0.08);
  --card-shadow: 0 2px 12px rgba(44, 44, 44, 0.06);
  --card-shadow-hover: 0 8px 32px rgba(196, 101, 74, 0.13);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --max-width: 1280px;
  --article-width: 820px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 0.5rem;
}

h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

/* --- Warm Radial Background Blobs (4% opacity) --- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 600px;
  height: 600px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(196, 101, 74, 0.04) 0%, transparent 70%);
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(122, 158, 126, 0.04) 0%, transparent 70%);
}

.blob-rose {
  position: fixed;
  width: 450px;
  height: 450px;
  top: 50%;
  left: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 145, 155, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Floating Yarn Emojis --- */
.floating-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-emojis span {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.06;
  animation: floatDrift 15s ease-in-out infinite;
}

.floating-emojis span:nth-child(1) {
  left: 8%;
  top: 20%;
  animation-delay: 0s;
}

.floating-emojis span:nth-child(2) {
  left: 85%;
  top: 55%;
  animation-delay: -5s;
}

.floating-emojis span:nth-child(3) {
  left: 50%;
  top: 80%;
  animation-delay: -10s;
}

@keyframes floatDrift {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

/* --- Stitch Pattern Border (top of header) --- */
.stitch-border {
  height: 4px;
  background: repeating-linear-gradient(90deg,
      var(--primary) 0px, var(--primary) 6px,
      transparent 6px, transparent 10px,
      var(--sage) 10px, var(--sage) 18px,
      transparent 18px, transparent 22px);
  width: 100%;
}

/* --- Glassmorphism Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.3s var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8a0bf, #c084a0, #a3c4a8);
  box-shadow: 0 2px 8px rgba(232, 160, 191, 0.35);
  position: relative;
  overflow: hidden;
  font-size: 0;
  animation: none;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 40%, transparent 30%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 32%, transparent 32%),
    radial-gradient(circle at 55% 55%, transparent 35%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0.12) 37%, transparent 37%),
    radial-gradient(circle at 45% 30%, transparent 20%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 22%, transparent 22%);
}

.logo-icon::after {
  content: '🧶';
  font-size: 1.35rem;
  filter: brightness(1.1) saturate(0.9);
  position: relative;
  z-index: 1;
}

@keyframes spinLogo {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.logo-text::after {
  content: '';
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--transition), color 0.25s var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(196, 101, 74, 0.08);
  color: var(--primary);
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a::after {
  content: ' ▾';
  font-size: 0.7em;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(44, 44, 44, 0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--charcoal);
}

.dropdown-menu a:hover {
  background: rgba(196, 101, 74, 0.06);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Spacing --- */
.section {
  padding: 4rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* --- Stitch Divider --- */
.stitch-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem auto;
  max-width: 400px;
}

.stitch-divider::before,
.stitch-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.stitch-divider span {
  color: var(--primary);
  font-size: 0.9rem;
  white-space: nowrap;
  letter-spacing: 4px;
}

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(196, 101, 74, 0.1);
  border: 1px solid rgba(196, 101, 74, 0.15);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--warm-gray);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
}

.hero-stat .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-icon.peach {
  background: rgba(232, 149, 111, 0.15);
}

.stat-icon.green {
  background: rgba(122, 158, 126, 0.15);
}

.stat-icon.gold {
  background: rgba(212, 168, 83, 0.15);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* --- Calculator Cards --- */
.calc-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition);
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--dusty-rose), var(--sage), var(--gold));
}

.calc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--dusty-rose), var(--sage), var(--gold), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--transition);
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.calc-card:hover::after {
  transform: scaleX(1);
}

.calc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.bg-peach {
  background: rgba(232, 149, 111, 0.13);
}

.bg-green {
  background: rgba(122, 158, 126, 0.13);
}

.bg-lavender {
  background: rgba(180, 160, 210, 0.13);
}

.bg-amber {
  background: rgba(212, 168, 83, 0.13);
}

.bg-blue {
  background: rgba(140, 170, 210, 0.13);
}

.calc-card h3 a {
  color: var(--charcoal);
}

.calc-card h3 a:hover {
  color: var(--primary);
}

.calc-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.calc-card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(212, 168, 83, 0.12);
  color: var(--primary-dark);
}

/* --- Article Cards --- */
.article-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.article-card-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.grad-peach {
  background: linear-gradient(135deg, rgba(232, 149, 111, 0.2), rgba(196, 101, 74, 0.1));
}

.grad-green {
  background: linear-gradient(135deg, rgba(122, 158, 126, 0.2), rgba(122, 158, 126, 0.08));
}

.grad-rose {
  background: linear-gradient(135deg, rgba(212, 145, 155, 0.2), rgba(212, 145, 155, 0.08));
}

.grad-gold {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(212, 168, 83, 0.08));
}

.grad-blue {
  background: linear-gradient(135deg, rgba(140, 170, 210, 0.2), rgba(140, 170, 210, 0.08));
}

.article-card-body {
  padding: 1.3rem 1.5rem 1.5rem;
}

.article-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.article-card-body h3 a {
  color: var(--charcoal);
}

.article-card-body h3 a:hover {
  color: var(--primary);
}

.article-card-body p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 0.8rem;
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--warm-gray);
}

/* --- Step Cards (How It Works) --- */
.step-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  text-align: left;
}

/* --- Calculator Container (on calc pages) --- */
.calculator-container {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.calculator-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--dusty-rose), var(--sage), var(--gold));
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(196, 101, 74, 0.18);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream-bg);
  transition: border-color 0.25s var(--transition), box-shadow 0.25s var(--transition);
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 101, 74, 0.1);
}

.calc-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--transition);
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196, 101, 74, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(196, 101, 74, 0.06);
}

/* Calculator Results */
.calc-results {
  display: none;
  animation: fadeInUp 0.4s var(--transition);
}

.calc-results.visible {
  display: block;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-card {
  background: var(--cream-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}

.result-card .result-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.result-card .result-label {
  font-size: 0.82rem;
  color: var(--warm-gray);
  font-weight: 500;
}

.result-tip {
  background: rgba(122, 158, 126, 0.08);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--charcoal);
}

.result-tip strong {
  color: var(--sage);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--warm-gray);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* --- Table of Contents --- */
.toc {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.toc h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.toc ol {
  list-style: decimal;
  padding-left: 1.2rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  font-size: 0.92rem;
  color: var(--charcoal);
}

.toc a:hover {
  color: var(--primary);
}

/* --- Info Boxes --- */
.info-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.info-box.tip {
  background: rgba(122, 158, 126, 0.1);
  border-left: 4px solid var(--sage);
}

.info-box.warning {
  background: rgba(212, 168, 83, 0.1);
  border-left: 4px solid var(--gold);
}

.info-box.note {
  background: rgba(196, 101, 74, 0.07);
  border-left: 4px solid var(--primary-light);
}

.info-box strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* --- Data Tables --- */
.data-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
}

.data-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.data-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(196, 101, 74, 0.08);
  color: var(--charcoal);
}

.data-table tr:nth-child(even) td {
  background: rgba(253, 246, 238, 0.5);
}

.data-table tr:hover td {
  background: rgba(196, 101, 74, 0.04);
}

.data-table .highlight td {
  background: rgba(122, 158, 126, 0.1);
  font-weight: 600;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  transition: color 0.25s var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  font-size: 0.85rem;
  transition: transform 0.3s var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
  color: var(--primary);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--transition), padding 0.3s var(--transition);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* --- Why Us / Content Section --- */
.content-section h3 {
  margin-top: 2rem;
  color: var(--primary-dark);
}

.content-section p {
  color: var(--warm-gray);
  line-height: 1.8;
}

.content-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section ul li {
  margin-bottom: 0.4rem;
  color: var(--warm-gray);
}

/* --- Article Content --- */
.article-content {
  max-width: var(--article-width);
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 2.5rem;
  color: var(--primary-dark);
}

.article-content h3 {
  margin-top: 1.5rem;
}

.article-content p {
  line-height: 1.8;
  color: var(--warm-gray);
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.4rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.article-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(196, 101, 74, 0.3);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

/* --- Related Section --- */
.related-section {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
}

.related-section h3 {
  margin-bottom: 1rem;
}

.related-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--cream-bg);
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: all 0.25s var(--transition);
}

.related-link:hover {
  background: rgba(196, 101, 74, 0.06);
  color: var(--primary);
  border-color: rgba(196, 101, 74, 0.2);
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  margin-top: 4rem;
  position: relative;
}

.footer-gradient-border {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--dusty-rose), var(--sage), var(--gold), var(--primary));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0;
  transition: color 0.25s var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(196, 101, 74, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(196, 101, 74, 0.4);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Skeleton Shimmer --- */
.skeleton {
  background: linear-gradient(90deg, #f0ebe4 25%, #f7f2eb 50%, #f0ebe4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hook Size Converter Result Table --- */
.hook-result-table {
  margin-top: 1rem;
}

.hook-result-table .data-table .match td {
  background: rgba(122, 158, 126, 0.15);
  font-weight: 700;
  color: var(--primary-dark);
}

/* --- EEAT: Author Box --- */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dusty-rose), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.author-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--warm-gray);
}

.author-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- EEAT: Trust Bar --- */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: rgba(122, 158, 126, 0.08);
  border-top: 1px solid rgba(122, 158, 126, 0.15);
  border-bottom: 1px solid rgba(122, 158, 126, 0.15);
  margin: 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
}

.trust-item .trust-check {
  color: var(--sage);
  font-weight: 700;
}

/* --- EEAT: Last Updated Badge --- */
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--warm-gray);
  padding: 0.3rem 0.8rem;
  background: rgba(196, 101, 74, 0.06);
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* --- EEAT: Sources / References --- */
.sources-section {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.sources-section h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.sources-list {
  list-style: decimal;
  padding-left: 1.3rem;
}

.sources-list li {
  font-size: 0.88rem;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.sources-list a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(196, 101, 74, 0.3);
  text-underline-offset: 2px;
}

/* --- EEAT: Legal / Policy Page Content --- */
.legal-content {
  max-width: var(--article-width);
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  color: var(--primary-dark);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.legal-content h3 {
  margin-top: 1.5rem;
  color: var(--charcoal);
}

.legal-content p {
  line-height: 1.8;
  color: var(--warm-gray);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.4rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.legal-effective {
  font-size: 0.88rem;
  color: var(--warm-gray);
  margin-bottom: 2rem;
}

/* --- EEAT: About Page Team Card --- */
.team-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dusty-rose), var(--sage), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
}

.team-info {
  flex: 1;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.team-title {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(196, 101, 74, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

/* --- EEAT: Contact Form Styling --- */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 0;
}

.contact-card a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-bar {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .trust-item {
    font-size: 0.78rem;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }
}

/* --- Print Stylesheet --- */
@media print {

  .site-header,
  .site-footer,
  .floating-emojis,
  .blob-rose,
  .back-to-top,
  .stitch-border,
  .hamburger,
  .calc-buttons,
  .stitch-divider {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after {
    display: none;
  }

  .calculator-container {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .calc-results {
    display: block !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    padding: 5rem 1.5rem 2rem;
    transition: right 0.35s var(--transition);
    z-index: 1050;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.8rem 0;
    font-size: 1.05rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--transition);
    padding: 0;
    background: transparent;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 0.25rem 0;
  }

  .dropdown-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition);
    z-index: 1040;
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .card-grid,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .calc-form {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 2.5rem 0;
  }

  .calculator-container {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .related-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
}