/* ClearHome Neighbor – Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,300&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
    --sage: #8B9D83;
    --sage-dark: #6B7D63;
    --sage-light: #C8D4C3;
    --cream: #F7F4EF;
    --charcoal: #2C3531;
    --terracotta: #D4704B;
    --sky: #A7C4D3;
    --border: rgba(139, 157, 131, 0.2);
    --shadow: rgba(44, 53, 49, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Work Sans', -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: 2rem 0 0.75rem; }
h4 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
p, li { font-size: clamp(1rem, 2vw, 1.1rem); line-height: 1.85; }
p { margin-bottom: 1.25rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

/* Disclosure Banner */
.disclosure-banner {
    background: var(--sky);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--charcoal);
    border-bottom: 1px solid var(--border);
}
.disclosure-banner a { color: var(--sage-dark); text-decoration: underline; }
.disclosure-banner strong { font-weight: 600; }

/* Nav */
nav {
    position: sticky;
    top: 0;
    background: rgba(247, 244, 239, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; color: var(--sage-dark); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--sage);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--sage);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--sage-dark) !important; color: white !important; }

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--sage);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--sage-dark);
    font-size: 1.25rem;
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 1rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem; }
    .mobile-menu-btn { display: block; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
}
.btn-primary { background: var(--sage); color: white; box-shadow: 0 4px 15px rgba(139,157,131,0.3); }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,157,131,0.4); }
.btn-secondary { background: transparent; color: var(--sage-dark); border: 2px solid var(--sage); }
.btn-secondary:hover { background: var(--sage); color: white; transform: translateY(-2px); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px var(--shadow); border-color: var(--sage); }

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #FFF9E6, #FFE9CC);
    border-left: 4px solid var(--terracotta);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}
.warning-box strong { color: var(--terracotta); display: block; margin-bottom: 0.5rem; font-size: 1rem; }

/* Info Box */
.info-box {
    background: rgba(167, 196, 211, 0.2);
    border-left: 4px solid var(--sky);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Tag / Badge */
.tag {
    display: inline-block;
    background: var(--sage-light);
    color: var(--sage-dark);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Page Hero (articles and inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--sage-light) 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
}
.page-hero .tag { margin-bottom: 1.25rem; }
.page-hero h1 { max-width: 780px; }
.page-hero .subtitle { font-size: 1.25rem; color: var(--sage-dark); max-width: 700px; font-weight: 300; margin-top: 0.75rem; }

/* Article body */
.article-body { padding: 4rem 0; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.75rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.article-body th { background: var(--sage-light); color: var(--charcoal); padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.article-body td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.article-body tr:hover td { background: rgba(200,212,195,0.15); }
.article-body a { color: var(--sage-dark); text-decoration: underline; }
.article-body strong { font-weight: 600; }

/* Affiliate disclosure in articles */
.article-disclosure {
    background: rgba(167,196,211,0.15);
    border: 1px solid rgba(167,196,211,0.4);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 3rem;
}
.article-disclosure a { color: var(--sage-dark); }

/* Sidebar nav for articles */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.article-sidebar { position: sticky; top: 100px; }
.toc { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.toc h4 { font-family: 'Work Sans', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage-dark); margin: 0 0 1rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.5rem; }
.toc a { color: var(--charcoal); text-decoration: none; font-size: 0.9rem; opacity: 0.7; transition: opacity 0.2s, color 0.2s; display: block; padding: 0.2rem 0; border-left: 2px solid transparent; padding-left: 0.75rem; }
.toc a:hover { opacity: 1; color: var(--sage-dark); border-left-color: var(--sage); }

.related-articles { margin-top: 2rem; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.related-articles h4 { font-family: 'Work Sans', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage-dark); margin: 0 0 1rem; }
.related-link { display: block; color: var(--charcoal); text-decoration: none; font-size: 0.9rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); transition: color 0.2s; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--sage-dark); }

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
}

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: white;
    text-align: center;
    border-radius: 16px;
    padding: 4rem 2rem;
    margin: 4rem 0;
}
.cta-banner h2 { color: white; margin-top: 0; }
.cta-banner p { opacity: 0.9; font-size: 1.125rem; margin-bottom: 2rem; }
.cta-banner .btn-primary { background: white; color: var(--sage-dark); }
.cta-banner .btn-primary:hover { background: var(--cream); }

/* Footer */
footer { background: var(--charcoal); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-section h4 { color: var(--sage-light); margin-bottom: 1rem; font-size: 1rem; margin-top: 0; }
.footer-section ul { list-style: none; }
.footer-section a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; margin-bottom: 0.5rem; font-size: 0.9rem; transition: color 0.2s; }
.footer-section a:hover { color: var(--sage-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-bottom p + p { margin-top: 0.4rem; }

/* Sections */
section { padding: 5rem 0; }
.section-alt { background: white; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.section-intro { font-size: 1.15rem; color: var(--sage-dark); max-width: 680px; margin-bottom: 3rem; font-weight: 300; line-height: 1.7; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--sage-dark); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--sage-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* Feature icon */
.icon-wrap { width: 56px; height: 56px; background: var(--sage-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 1.25rem; }

/* Checklist items */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist li:last-child { border-bottom: none; }
.checklist .check { color: var(--sage); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.checklist .cross { color: var(--terracotta); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* Form */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    background: white;
    color: var(--charcoal);
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sage); }
.form-group textarea { resize: vertical; min-height: 150px; }

/* ============================================================
   PRODUCT CARDS – Affiliate Link Components
   ============================================================ */

/* Inline text link badge */
.affiliate-link {
    color: var(--sage-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--sage-light);
    transition: border-color 0.2s, color 0.2s;
}
.affiliate-link:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* Product card – standard */
.product-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.product-card:hover { box-shadow: 0 8px 28px var(--shadow); border-color: var(--sage); }
.product-card-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f5;
    padding: 8px;
}
.product-card-img-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cream), var(--sage-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.product-card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.product-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-dark);
}
.product-card-name {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.3;
    margin: 0;
}
.product-card-desc {
    font-size: 0.9rem;
    color: #6b7a75;
    line-height: 1.6;
    margin: 0;
}
.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.product-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--cream);
    border: 1px solid var(--border);
    color: var(--charcoal);
}
.product-badge.green { background: #EFF5EC; border-color: var(--sage-light); color: var(--sage-dark); }
.product-badge.orange { background: #FEF4EF; border-color: #F5C4AB; color: var(--terracotta); }
.product-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    background: var(--sage);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, transform 0.15s;
}
.product-card-cta:hover { background: var(--sage-dark); transform: translateY(-1px); color: white; }
.product-card-cta svg { width: 14px; height: 14px; }

/* Product comparison table */
.product-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.product-compare th {
    background: var(--charcoal);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: 'Fraunces', serif;
    font-weight: 500;
}
.product-compare td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.product-compare tr:nth-child(even) td { background: #faf9f6; }
.product-compare tr:last-child td { border-bottom: none; }
.product-compare a { color: var(--sage-dark); font-weight: 600; text-decoration: none; }
.product-compare a:hover { color: var(--terracotta); }
.product-compare .pick { color: var(--sage-dark); font-weight: 700; }

/* Product grid – 2-up */
.product-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}
/* Single-product highlight box */
.product-highlight {
    border: 2px solid var(--sage);
    border-radius: 14px;
    padding: 1.5rem;
    background: linear-gradient(135deg, white, #f5f9f3);
    margin: 2rem 0;
    position: relative;
}
.product-highlight-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--sage);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Affiliate notice inside article */
.article-affiliate-note {
    background: #f5f9f3;
    border: 1px solid var(--sage-light);
    border-radius: 8px;
    padding: 0.75rem 1.1rem;
    font-size: 0.82rem;
    color: #6b7a75;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.article-affiliate-note .icon { flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
    .product-card { grid-template-columns: 1fr; }
    .product-card-img, .product-card-img-placeholder { width: 100%; height: 160px; }
    .product-grid-2 { grid-template-columns: 1fr; }
}

/* ====================================================
   PRODUCT CARD STYLES
   ==================================================== */
.affiliate-link {
  color: var(--sage-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sage-light);
  text-underline-offset: 3px;
}
.affiliate-link:hover { color: var(--terracotta); }
.affiliate-badge {
  display: inline-block;
  background: #ff9900;
  color: #111;
  font-size: 0.6rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: super;
  margin-left: 3px;
  line-height: 1.6;
  text-decoration: none;
}
.price-note { font-size: 0.85em; color: #888; }

/* Product card grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px var(--shadow);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,53,49,.12);
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}
.product-card-inner { display: flex; flex-direction: column; }
.product-img-wrap {
  background: #f8f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  height: 180px;
  overflow: hidden;
}
.product-img-wrap img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-info { padding: 1rem 1.25rem 1.25rem; }
.product-name {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .5rem;
  color: var(--charcoal);
}
.product-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.product-price {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
}
.btn-buy {
  background: #ff9900;
  color: #111 !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: .45rem 1rem;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s;
}
.btn-buy:hover { background: #e68900; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--charcoal);
  color: #fff;
  padding: .65rem 1rem;
  text-align: left;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
}
.comparison-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.comparison-table tr:nth-child(even) td { background: rgba(139,157,131,.06); }
.comparison-table tr:hover td { background: rgba(139,157,131,.12); }

/* Quick-pick box */
.quick-pick {
  background: linear-gradient(135deg, #f0f4ee 0%, #e8f0e5 100%);
  border: 1px solid var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.quick-pick h4 {
  color: var(--sage-dark);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .4rem;
}
.quick-pick p { margin: 0; font-size: 0.95rem; }

/* Disclosure note at top of articles */
.article-disclosure {
  background: #fffbf2;
  border: 1px solid #f5e0b0;
  border-radius: 8px;
  padding: .75rem 1.1rem;
  font-size: 0.82rem;
  color: #7a6020;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Sitewide article disclaimer bar ── */
.article-disclaimer-bar {
    background: #fff8e6;
    border: 1px solid #f0d890;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    margin: 0 auto;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #7a6020;
    max-width: 860px;
    text-align: center;
}
.article-disclaimer-bar strong { color: #5a4010; }
.article-disclaimer-bar a { color: #7a5a10; font-weight: 600; margin-left: 0.25rem; }
.article-disclaimer-bar a:hover { text-decoration: underline; }
