/*
 * Nicotinos homepage sections (front page only).
 * Presentation only. Original styles written for the Nicotinos theme.
 */

.nh { padding-bottom: 24px; }
.nh-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nh-section { padding: 40px 0; }
.nh-section.section { padding: 40px 0; }
.nh-narrow { max-width: 920px; }
.nh .section-header { margin-bottom: 20px; }

/* ── Hero banner (staged creative, shown at its natural aspect ratio) ───── */
.nh-hero.carousel-section { padding: 24px 0 8px; }
.nh-hero .carousel.nh-hero__carousel { aspect-ratio: auto; background: #f3f3f4; }
.nh-hero .carousel-track { height: auto; }
.nh-hero .carousel-slide { height: auto; background: #f3f3f4; }
.nh-hero__link { display: block; }
.nh-hero .carousel-slide__img.nh-hero__img {
  position: static;
  width: 100%;
  height: auto;
  min-height: 150px;
  object-fit: cover;
  object-position: 28% center;
}
.nh-hero .hero-infobar { padding: 14px 22px; }
.nh-hero .hero-cta,
.nh-mid .hero-cta,
.nh-hero-panel .hero-cta { background: var(--nic-ink); }
.nh-hero .hero-cta:hover,
.nh-mid .hero-cta:hover,
.nh-hero-panel .hero-cta:hover { background: var(--nic-ink-soft); }

/* Product-backed fallback hero (used only when no hero creative is staged) */
.nh-hero--fallback { padding: 24px 0 8px; }
.nh-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.nh-hero-panel__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 12px; }
.nh-hero-panel__text { color: var(--color-text-light); margin-bottom: 20px; max-width: 460px; }
.nh-hero-panel__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nh-hero-panel__products a { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: .8125rem; font-weight: 600; }
.nh-hero-panel__products img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f6f7; border-radius: var(--radius); }

/* ── Collection / brand tiles ───────────────────────────────────────────── */
.nh-tiles { display: grid; gap: 16px; }
.nh-tiles--collections { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nh-tiles--brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nh-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.nh-tile:hover,
.nh-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
  border-color: var(--nic-ink);
}
.nh-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  padding: 12px;
  overflow: hidden;
}
.nh-tile__media img.nh-tile__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.nh-tile:hover .nh-tile__img { transform: scale(1.05); }
.nh-tile__media--text { background: var(--nic-ink); }
.nh-tile__monogram {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -.03em;
  text-align: center;
  line-height: 1.1;
}
.nh-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; border-top: 1px solid var(--color-border); }
.nh-tile__title { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.nh-tile__sub { font-size: .8125rem; color: var(--color-text-light); }

/* ── Mid banner (staged portrait creative + copy) ───────────────────────── */
.mid-banner.nh-mid { height: auto; background: transparent; overflow: visible; padding: 24px 0 8px; }
.nh-mid__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.nh-mid__inner--has-img { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); }
.nh-mid__media { display: block; border-radius: var(--radius); overflow: hidden; }
.nh-mid__img { width: 100%; height: auto; display: block; }
.nh-mid__content { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nh-mid__title { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--nic-ink); margin: 0; }
.nh-mid__text { color: var(--color-text-light); max-width: 520px; margin: 0 0 8px; }

/* ── Brand rails: slightly tighter spacing ──────────────────────────────── */
.nh .brand-section { padding-top: 24px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.nh-faq__list { display: flex; flex-direction: column; gap: 10px; }
.nh-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.nh-faq__item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.nh-faq__item summary::-webkit-details-marker { display: none; }
.nh-faq__item summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--color-text-light); }
.nh-faq__item[open] summary::after { content: "\2212"; }
.nh-faq__answer { padding: 0 20px 18px; color: var(--color-text-light); font-size: .9375rem; }
.nh-faq__answer p + p { margin-top: 10px; }

/* ── Pouch Talk (blog teasers) ──────────────────────────────────────────── */
.nh-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nh-post {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.nh-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.nh-post__link { display: flex; flex-direction: column; height: 100%; }
.nh-post__media { aspect-ratio: 16 / 9; overflow: hidden; background: #f6f6f7; }
.nh-post__media img { width: 100%; height: 100%; object-fit: cover; }
.nh-post__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; border-top: 3px solid var(--nic-accent); }
.nh-post__date { font-size: .8125rem; color: var(--color-text-light); }
.nh-post__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.35; color: var(--color-text); }
.nh-post__excerpt { font-size: .875rem; color: var(--color-text-light); line-height: 1.6; }
.nh-post__more { margin-top: auto; padding-top: 6px; font-size: .875rem; font-weight: 600; color: var(--nic-ink); }
.nh-post:hover .nh-post__more { text-decoration: underline; }

/* ── Customs & taxes notice ─────────────────────────────────────────────── */
.nh-customs__box {
  padding: 24px 28px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--nic-ink);
  border-radius: var(--radius-lg);
  background: #fafafa;
}
.nh-customs__box h2 { font-size: 1.25rem; margin-bottom: 10px; }
.nh-customs__box p { color: var(--color-text-light); font-size: .9375rem; margin: 0 0 12px; }
.nh-customs__link { font-weight: 600; font-size: .9375rem; }
.nh-customs__link:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nh-tiles--collections,
  .nh-tiles--brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-blog__grid { grid-template-columns: 1fr 1fr; }
  .nh-mid__inner--has-img { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); }
  .nh-hero-panel { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 640px) {
  .nh-hero .carousel-slide__img.nh-hero__img { min-height: 0; object-fit: contain; }
  .nh-section,
  .nh-section.section { padding: 28px 0; }
  .nh-tiles { gap: 10px; }
  .nh-tile__body { padding: 10px 12px 12px; }
  .nh-blog__grid { grid-template-columns: 1fr; }
  .nh-mid__inner,
  .nh-mid__inner--has-img { grid-template-columns: 1fr; padding: 20px; }
  .nh-mid__media { max-width: 320px; margin: 0 auto; }
  .nh-hero .hero-infobar { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .nh-hero .hero-infobar__right { width: 100%; }
  .nh-hero .hero-cta { width: 100%; justify-content: center; }
  .nh-hero .hero-product { font-size: 1.0625rem; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .nh-tile, .nh-post, .nh-tile__img { transition: none; }
}
