/* ============================================================
   ROYAL FLAME FIREWOOD — HOMEPAGE STYLESHEET
   Hero, trust strip, featured grid, species, why, reviews, order band
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO
   ------------------------------------------------------------ */
.hero {
  padding: 0;
  background: var(--cream);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-10) var(--s-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  margin-bottom: var(--s-3);
  color: var(--black);
  line-height: 1.05;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: var(--s-5);
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero:hover .hero__image img {
  transform: scale(1.03);
}

/* Gold accent bar above the hero image */
.hero__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--gold);
  z-index: 2;
}

/* ------------------------------------------------------------
   2. TRUST STRIP (3 columns under hero)
   ------------------------------------------------------------ */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s-8) 0;
}

.trust-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.trust-strip__item {
  text-align: center;
  padding: 0 var(--s-2);
}

.trust-strip__item svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin: 0 auto var(--s-3);
}

.trust-strip__item h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-1);
  color: var(--black);
}

.trust-strip__item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   3. FEATURED FIREWOOD GRID
   ------------------------------------------------------------ */
.featured {
  padding: var(--s-12) 0;
  background: var(--cream);
}

.featured .section-head {
  margin-bottom: var(--s-8);
}

.product-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

/* Loading state */
.product-grid .loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: var(--s-10) 0;
  font-size: 15px;
}

/* ------------------------------------------------------------
   4. PRODUCT CARD
   ------------------------------------------------------------ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), transform var(--t);
  position: relative;
}

.product-card:hover {
  border-color: var(--gold);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

/* Savings badge — top right corner */
.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

/* Card body */
.product-card__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  flex: 1;
}

.product-card__species {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 4px;
}

.product-card__moisture {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.product-card__price {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-1);
}

.product-card__price .from {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card__price .amount {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--black);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* Details toggle button (bottom of card) */
.product-card__toggle {
  margin-top: var(--s-2);
  padding: var(--s-2) 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  cursor: pointer;
  transition: color var(--t-fast);
}

.product-card__toggle:hover { color: var(--gold); }

.product-card__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t);
}

.product-card.is-expanded .product-card__toggle svg {
  transform: rotate(180deg);
}

/* Expandable detail panel */
.product-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
  border-top: 1px solid transparent;
}

.product-card.is-expanded .product-card__details {
  max-height: 600px;
  border-top-color: var(--border);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
}

.product-card__details-inner {
  padding: var(--s-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

/* Cord tier list inside expanded panel */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.tier-row:last-child { border-bottom: none; }

.tier-row .tier-label {
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.tier-row .tier-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 6px;
}

.tier-row .tier-price {
  font-weight: 600;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.tier-row .tier-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-left: var(--s-1);
}

/* Expanded panel CTA row */
.product-card__actions {
  display: flex;
  gap: var(--s-1);
  margin-top: var(--s-1);
}

.product-card__actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.product-card__actions .btn--gold {
  background: var(--gold);
  color: var(--black);
}

.product-card__actions .btn--outline {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}

.product-card__actions .btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

/* ------------------------------------------------------------
   5. SPECIES STRIP
   ------------------------------------------------------------ */
.species {
  padding: var(--s-12) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.species-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2);
}

.species-card {
  border: 1px solid var(--border);
  padding: var(--s-4) var(--s-2);
  text-align: center;
  transition: border-color var(--t), background-color var(--t);
  background: var(--white);
}

.species-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.species-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: var(--s-1);
}

.species-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   6. WHY ROYAL FLAME
   ------------------------------------------------------------ */
.why {
  padding: var(--s-12) 0;
  background: var(--cream);
}

.why__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

.why__content .section-title {
  text-align: left;
  margin-bottom: var(--s-3);
}

.why__content > p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--s-4);
  max-width: 520px;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.why__list li {
  position: relative;
  padding-left: var(--s-4);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--gold);
}

.why__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
}

.why__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   7. REVIEWS CAROUSEL
   ------------------------------------------------------------ */
.reviews {
  padding: var(--s-12) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.reviews-carousel {
  max-width: var(--container);
  margin: 0 auto var(--s-6);
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  overflow: hidden;
  transition: transform var(--t-slow);
}

.review-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-height: 260px;
}

.review-card__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
  font-style: normal;
}

.review-card__author {
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.review-card__location {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.review-card__verified {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}

/* Carousel navigation dots */
.reviews-dots {
  max-width: var(--container);
  margin: 0 auto var(--s-4);
  padding: 0 var(--s-3);
  display: flex;
  justify-content: center;
  gap: var(--s-1);
}

.reviews-dots button {
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: 50%;
  transition: background-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  padding: 0;
}

.reviews-dots button.is-active {
  background: var(--gold);
  transform: scale(1.3);
}

.reviews-footer {
  text-align: center;
}

/* ------------------------------------------------------------
   8. ORDER BAND (gold CTA strip)
   ------------------------------------------------------------ */
.order-band {
  background: var(--gold);
  color: var(--black);
  padding: var(--s-10) var(--s-3);
  text-align: center;
}

.order-band__inner {
  max-width: 720px;
  margin: 0 auto;
}

.order-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--black);
  margin-bottom: var(--s-2);
  letter-spacing: 0.02em;
}

.order-band p {
  font-size: 1.0625rem;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: var(--s-4);
}

.order-band .btn {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.order-band .btn:hover {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

/* ------------------------------------------------------------
   9. RESPONSIVE — HOMEPAGE
   ------------------------------------------------------------ */

/* Tablet — 1024px and below */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .species-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small tablet — 900px and below */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding: var(--s-8) var(--s-3);
    text-align: center;
  }

  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }

  .trust-strip__inner {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .why__inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .why__image { order: -1; }
}

/* Mobile — 768px and below */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-2);
  }

  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-carousel {
    grid-template-columns: 1fr;
  }

  .review-card { min-height: auto; }
}

/* Small mobile — 640px and below */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card__body { padding: var(--s-2); }

  .product-card__name { font-size: 1.0625rem; }

  .product-card__price .amount { font-size: 1.125rem; }

  .hero__title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero__sub { font-size: 1rem; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
}

/* Extra small — 480px and below */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  .species-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-1);
  }

  .species-card {
    padding: var(--s-3) var(--s-1);
  }

  .species-card h3 { font-size: 1rem; }
  .species-card p { font-size: 12px; }

  .trust-strip { padding: var(--s-6) 0; }
  .trust-strip__item svg { width: 32px; height: 32px; }

  .hero__inner { padding: var(--s-6) var(--s-2); }

  .section-head { margin-bottom: var(--s-6); }

  .order-band { padding: var(--s-8) var(--s-2); }
}

/* Very small — 360px and below */
@media (max-width: 360px) {
  .product-card__actions {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------
   10. TOUCH DEVICE TWEAKS
   ------------------------------------------------------------ */
@media (hover: none) {
  .product-card:hover {
    border-color: var(--border);
  }
  .product-card:hover .product-card__media img {
    transform: none;
  }
  .hero:hover .hero__image img {
    transform: none;
  }
}