/* ===================================================
   article.css – AcreRanch blog article styles
   =================================================== */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width .1s linear;
}

/* ---- FancyGuitar-compatible article layout (text hero) ---- */
.article-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.article-hero .article-hero-inner {
  position: static;
  max-width: 800px;
  width: auto;
  margin: 0 auto;
  padding: 0 20px;
  transform: none;
  left: auto;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
}

.article-hero .article-hero-inner h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
}

.article-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}

.breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb span { color: rgba(255,255,255,.7); }

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 12px;
}

.article-content h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: 8px;
  font-size: 15.5px;
  line-height: 1.7;
}

.article-content img {
  border-radius: 10px;
  margin: 24px 0;
}

.article-callout {
  background: var(--accent-lt);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

.article-callout a { color: var(--accent); font-weight: 600; }
.article-callout a:hover { color: var(--accent-mid); }

/* ---- Article hero ---- */
.article-hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy2);
}

.article-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  opacity: .68;
}

@media (max-width: 640px) {
  .article-hero-img { height: 280px; }
}

/* Overlay hero: only inside .article-hero-wrap (image + text on top) */
.article-hero-wrap .article-hero-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 36px;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 860px) {
  .article-hero-wrap .article-hero-inner {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 100%;
    padding: 0 0 40px;
  }
}

.article-hero-cat {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-family: 'Raleway', sans-serif;
}

.article-hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

/* ---- Article body wrapper ---- */
.article-body-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  box-sizing: border-box;
}

@media (min-width: 868px) {
  .article-body-wrap { padding: 48px 0 24px; }
}

.article-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 32px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

/* ---- Article content ---- */
.article-body {
  font-size: .98rem;
  line-height: 1.8;
  color: var(--body);
}

.article-body h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--stone);
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: none;
}

.article-body p { margin: 0 0 18px; }

.article-body strong { color: var(--navy); }

.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--accent); }

/* Lists */
.article-list {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-list li {
  margin-bottom: 12px;
  line-height: 1.72;
}

.article-list--numbered {
  counter-reset: artlist;
  list-style: none;
  padding-left: 0;
}

.article-list--numbered li {
  counter-increment: artlist;
  padding-left: 38px;
  position: relative;
}

.article-list--numbered li::before {
  content: counter(artlist);
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table */
.article-table-wrap {
  overflow-x: auto;
  margin: 0 0 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.article-table th {
  background: var(--navy);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 16px;
  text-align: left;
}

.article-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--stone);
  color: var(--body);
}

.article-table tr:last-child td { border-bottom: none; }

.article-table tr:nth-child(even) td { background: var(--off); }

/* Article footer note */
.article-footer {
  margin: 40px 0 24px;
  padding: 14px 18px;
  background: var(--stone);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
}

.article-footer p { margin: 0; }

/* ---- Inline product card ---- */
.product-card-inline {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin: 32px 0;
  align-items: flex-start;
}

@media (max-width: 580px) {
  .product-card-inline { flex-direction: column; }
}

.product-card-inline-img-link { flex-shrink: 0; }

.product-card-inline-img-link img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

@media (max-width: 580px) {
  .product-card-inline-img-link img {
    width: 100%;
    height: 200px;
  }
}

.product-card-inline-body { flex: 1; }

.product-card-inline-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: 'Raleway', sans-serif;
}

.product-card-inline-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.35;
}

.product-card-inline-name a {
  color: var(--navy);
  text-decoration: none;
}

.product-card-inline-name a:hover { color: var(--accent); }

.product-card-inline-desc {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.product-card-inline-price {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
}

.product-card-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Product pick grid (article) ---- */
.article-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 32px;
}

@media (max-width: 820px) {
  .article-product-grid { grid-template-columns: 1fr; }
}

.article-product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}

.article-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.article-product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: var(--stone);
}

.article-product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-product-card-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 6px;
}

.article-product-card-body h3 {
  font-family: 'Raleway', sans-serif;
  font-size: .98rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.35;
}

.article-product-card-body p {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.article-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.article-product-card-price {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
}

.article-product-card-cta {
  font-size: .86rem;
  font-weight: 700;
  color: var(--green);
}

.product-card-inline-actions .btn-add-cart {
  background: var(--accent);
  color: var(--navy);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s;
}

.product-card-inline-actions .btn-add-cart:hover { opacity: .88; }

.btn-outline-product {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-outline-product:hover {
  background: var(--navy);
  color: #fff;
}

/* ---- Related articles section ---- */
.related-section {
  background: var(--off);
  border-top: 1px solid var(--border);
  padding: 52px 24px;
}

.related-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 26px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-section { padding: 40px 20px; }
}

.related-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.related-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}

.related-card-body { padding: 16px; }

.related-card-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 6px;
}

.related-card-body h3 {
  font-family: 'Raleway', sans-serif;
  font-size: .93rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}
