
/* ==========================================================
   Aafiyora v4.2 Product Content + Brand Assets Edition
   ========================================================== */

:root{
  --a42-forest:#263728;
  --a42-text:#52604F;
  --a42-muted:#6F7A69;
  --a42-cream:#FFF8EC;
  --a42-white:#FFFFFF;
  --a42-sage:#EAF1E6;
  --a42-gold:#C9A45C;
  --a42-line:rgba(38,55,40,.12);
  --a42-shadow:0 24px 70px rgba(38,55,40,.12);
  --a42-shadow-strong:0 38px 110px rgba(38,55,40,.18);
}

/* Brand story */
.aafi-v42-brand-story,
.aafi-v42-product-content,
.aafi-v42-content-hub,
.aafi-v42-ingredient-story,
.aafi-v42-review-proof{
  padding:78px 0;
  background:
    radial-gradient(circle at 86% 10%,rgba(127,148,116,.14),transparent 24rem),
    linear-gradient(180deg,#FFF8EC,#F8EEDC);
  border-top:1px solid var(--a42-line);
}

.aafi-v42-brand-grid{
  display:grid;
  grid-template-columns:1.06fr .94fr;
  gap:30px;
  align-items:center;
}

.aafi-v42-brand-copy,
.aafi-v42-brand-visuals figure,
.aafi-v42-product-content .aafi-v42-tab-panel,
.aafi-v42-content-grid article,
.aafi-v42-ingredient-story-grid,
.aafi-v42-review-grid article{
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,248,236,.78));
  border:1px solid var(--a42-line);
  border-radius:30px;
  box-shadow:var(--a42-shadow);
}

.aafi-v42-brand-copy{
  padding:clamp(24px,4vw,42px);
}

.aafi-v42-brand-copy h2,
.aafi-v42-content-hub h2,
.aafi-v42-ingredient-story h2,
.aafi-v42-review-proof h2,
.aafi-v42-product-content h2{
  color:var(--a42-forest);
  font-family:var(--font-heading, Georgia, serif);
  font-size:clamp(2.45rem,4.8vw,4.3rem);
  line-height:1.04;
  letter-spacing:-.045em;
  margin:.5rem 0 1rem;
}

.aafi-v42-brand-values{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:24px;
}

.aafi-v42-brand-values article{
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--a42-line);
}

.aafi-v42-brand-values strong{
  display:block;
  color:var(--a42-forest);
  font-weight:950;
  margin-bottom:7px;
}

.aafi-v42-brand-values span{
  color:var(--a42-text);
  line-height:1.55;
  font-size:.93rem;
}

.aafi-v42-brand-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.aafi-v42-brand-visuals{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.aafi-v42-brand-visuals figure{
  overflow:hidden;
  margin:0;
}

.aafi-v42-brand-visuals img{
  width:100%;
  aspect-ratio:1.45/1;
  object-fit:cover;
  display:block;
  background:var(--a42-sage);
}

.aafi-v42-brand-visuals figcaption{
  padding:12px 16px;
  color:var(--a42-muted);
  font-size:.88rem;
  font-weight:800;
}

/* Product tabs */
.aafi-v42-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:26px 0 16px;
}

.aafi-v42-tabs button{
  border:1px solid var(--a42-line);
  border-radius:999px;
  background:#fff;
  color:var(--a42-forest);
  padding:.78rem 1rem;
  font-weight:950;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.aafi-v42-tabs button:hover,
.aafi-v42-tabs button.is-active{
  background:var(--a42-forest);
  color:var(--a42-cream);
  transform:translateY(-2px);
}

.aafi-v42-tab-panel{
  display:none;
  padding:clamp(20px,3vw,30px);
}

.aafi-v42-tab-panel.is-active{
  display:block;
}

.aafi-v42-info-grid,
.aafi-v42-content-grid,
.aafi-v42-review-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.aafi-v42-info-grid article,
.aafi-v42-steps article,
.aafi-v42-safety-grid article{
  padding:20px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--a42-line);
}

.aafi-v42-info-grid span,
.aafi-v42-content-grid span,
.aafi-v42-review-grid span,
.aafi-v42-steps span{
  display:inline-flex;
  width:max-content;
  padding:.42rem .62rem;
  border-radius:999px;
  background:rgba(201,164,92,.15);
  color:var(--a42-forest);
  font-size:.72rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.aafi-v42-info-grid h3,
.aafi-v42-content-grid h3,
.aafi-v42-review-grid h3{
  color:var(--a42-forest);
  font-size:1.18rem;
  font-weight:950;
  line-height:1.22;
  margin:12px 0 8px;
}

.aafi-v42-ingredient-panel{
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:24px;
  align-items:center;
}

.aafi-v42-ingredient-panel img{
  width:100%;
  aspect-ratio:1.1/1;
  object-fit:cover;
  border-radius:24px;
  background:var(--a42-sage);
}

.aafi-v42-ingredient-panel h3{
  color:var(--a42-forest);
  font-size:1.7rem;
  font-weight:950;
}

.aafi-v42-safe-note{
  margin-top:14px;
  padding:14px;
  border-radius:18px;
  background:var(--a42-sage);
  color:var(--a42-forest)!important;
  font-weight:800;
}

.aafi-v42-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.aafi-v42-steps article{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.aafi-v42-steps p{
  margin:0;
  color:var(--a42-text)!important;
  font-weight:800;
}

.aafi-v42-safety-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.aafi-v42-safety-grid h3{
  color:var(--a42-forest);
  font-weight:950;
}

.aafi-v42-faq{
  display:grid;
  gap:10px;
}

.aafi-v42-faq details{
  padding:16px 18px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--a42-line);
}

.aafi-v42-faq summary{
  color:var(--a42-forest);
  font-weight:950;
  cursor:pointer;
}

.aafi-v42-faq p{
  margin:.75rem 0 0;
}

/* Content hub */
.aafi-v42-content-grid article{
  padding:22px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.aafi-v42-content-grid article:hover,
.aafi-v42-review-grid article:hover{
  transform:translateY(-6px);
  box-shadow:var(--a42-shadow-strong);
}

.aafi-v42-content-grid a{
  color:var(--a42-forest);
  font-weight:950;
  border-bottom:1px solid var(--a42-gold);
}

/* Ingredient story */
.aafi-v42-ingredient-story-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:28px;
  padding:clamp(20px,3vw,32px);
  align-items:center;
}

.aafi-v42-ingredient-story-grid img{
  width:100%;
  aspect-ratio:1.18/1;
  object-fit:cover;
  border-radius:26px;
  background:var(--a42-sage);
}

.aafi-v42-ingredient-story-grid ul{
  display:grid;
  gap:8px;
  padding-left:1.2rem;
}

/* Review proof */
.aafi-v42-review-grid article{
  overflow:hidden;
  padding:0;
}

.aafi-v42-review-grid img{
  width:100%;
  aspect-ratio:1.12/1;
  object-fit:cover;
  background:var(--a42-sage);
}

.aafi-v42-review-grid span,
.aafi-v42-review-grid h3,
.aafi-v42-review-grid p{
  margin-left:18px;
  margin-right:18px;
}

.aafi-v42-review-grid span{
  margin-top:16px;
}

.aafi-v42-review-grid p{
  margin-bottom:20px;
}

/* Admin style helper is injected inline, frontend only here */

@media(max-width:980px){
  .aafi-v42-brand-grid,
  .aafi-v42-ingredient-panel,
  .aafi-v42-ingredient-story-grid{
    grid-template-columns:1fr;
  }

  .aafi-v42-brand-values,
  .aafi-v42-info-grid,
  .aafi-v42-content-grid,
  .aafi-v42-review-grid,
  .aafi-v42-steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .aafi-v42-brand-story,
  .aafi-v42-product-content,
  .aafi-v42-content-hub,
  .aafi-v42-ingredient-story,
  .aafi-v42-review-proof{
    padding:54px 0;
  }

  .aafi-v42-brand-values,
  .aafi-v42-info-grid,
  .aafi-v42-content-grid,
  .aafi-v42-review-grid,
  .aafi-v42-steps,
  .aafi-v42-safety-grid{
    grid-template-columns:1fr;
  }

  .aafi-v42-tabs{
    overflow:auto;
    flex-wrap:nowrap;
    padding-bottom:8px;
  }

  .aafi-v42-tabs button{
    white-space:nowrap;
  }
}
