/**
 * Homepage sections — reproduced 1:1 from design/domov.html.
 * Colors reference tokens.css; one-off px/gradients kept literal for fidelity.
 */

/* ---- Section headings / shared ---- */
.hp-h2 { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.hp-h2.center { text-align: center; }
.hp-sub { text-align: center; color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 11px 22px; font-size: 14px; font-weight: 700; color: var(--teal); background: var(--bg);
}
.ghost-btn:hover { border-color: var(--teal); background: var(--teal-50); text-decoration: none; }

/* ---- Hero ---- */
.hp-hero { display: grid; grid-template-columns: 1.62fr 1fr; gap: 18px; margin-top: 22px; }
.hero-main {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 340px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 58%, var(--dark-3) 100%);
}
.hero-main::after { content: ""; position: absolute; inset: 0; background: var(--leaf-green) repeat; background-size: 64px 64px; opacity: .05; pointer-events: none; z-index: 0; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1/1; position: relative; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hero-slide.has-bg { background: var(--slide-bg) center/cover no-repeat; }
.hero-copy { position: relative; z-index: 2; max-width: 62%; }
.hero-eye {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #bfe3c4; background: rgba(255,255,255,.1); border-radius: var(--radius-pill); padding: 5px 13px; margin-bottom: 16px;
}
.hero-main h1 { margin: 0 0 12px; color: #fff; font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero-copy p { margin: 0 0 22px; color: #d6e6e3; font-size: 15px; line-height: 1.55; max-width: 34ch; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 9px; background: var(--green); color: #fff;
  font-size: 15px; font-weight: 700; padding: 13px 22px; border-radius: 11px;
}
.hero-cta:hover { background: var(--green-600); text-decoration: none; }
.hero-arrows { position: absolute; top: 14px; right: 14px; z-index: 4; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.hero-arrow {
  pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.hero-arrow:hover { background: rgba(255,255,255,.34); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; min-height: 155px; transition: transform .15s;
}
.hero-tile .ht-ico { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; opacity: .55; }
.hero-tile .ht-ico svg { width: 100%; height: 100%; }
.hero-tile .ht-txt b { display: block; font-size: 18px; font-weight: 800; }
.hero-tile .ht-txt span { font-size: 13px; opacity: .9; }
.hero-tile:hover { text-decoration: none; transform: translateY(-2px); }
.hero-tile.has-bg { background: var(--tile-bg) center/cover no-repeat; }
.t-gastro { background: linear-gradient(150deg, #1f7a5a, var(--teal)); }
.t-hygiene { background: linear-gradient(150deg, #7bbf54, #4f9a3c); }

/* ---- USP row ---- */
.hp-usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp { display: flex; align-items: center; gap: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.usp-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--teal-50); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.usp-ico svg { width: 23px; height: 23px; }
.usp-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.usp-p { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ---- Category tiles ---- */
.hp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ctile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; transition: transform .15s;
}
.ctile:hover { text-decoration: none; transform: translateY(-3px); }
.ctile .ct-ico { position: absolute; top: -5px; left: 18px; width: 30px; height: 30px; opacity: .85; }
.ctile .ct-ico svg { width: 100%; height: 100%; }
.ctile .ct-label { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.ctile.has-bg { background: var(--tile-bg) center/cover no-repeat; }
.ctile.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,32,30,.1), rgba(10,32,30,.55)); z-index: 0; }
.ctile.has-bg .ct-ico, .ctile.has-bg .ct-label { position: relative; z-index: 1; }
.c-dona { background: linear-gradient(145deg, #127a73, var(--teal-600)); }
.c-street { background: linear-gradient(145deg, #e0a93c, #c8851f); }
.c-cafe { background: linear-gradient(145deg, #b07a4e, #8a5a34); }
.c-party { background: linear-gradient(145deg, #79bf3f, #56992f); }

/* ---- Product rows ---- */
.hp-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.row-nav { display: flex; gap: 8px; }
.row-nav button {
  width: 38px; height: 38px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--bg); color: var(--teal);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.row-nav button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.row-nav button svg { width: 18px; height: 18px; }
.row-nav button:disabled { opacity: .35; cursor: default; }
.row-nav button:disabled:hover { background: var(--bg); color: var(--teal); border-color: var(--line); }

/* Horizontal product track: the scrollbar is hidden — the arrows and
   drag-to-scroll (home.js) are the affordance, as on the rest of the shop. */
.hp-scroller {
  overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hp-scroller::-webkit-scrollbar { display: none; }
/* While dragging with the mouse, snap and smooth would fight the pointer. */
.hp-scroller.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
/* The WooCommerce loop prints <ul class="products"> — make it the horizontal track. */
.hp-scroller ul.products {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.hp-scroller ul.products::before, .hp-scroller ul.products::after { content: none; }
.hp-scroller ul.products > li.pcard { scroll-snap-align: start; width: auto; margin: 0; float: none; }

/* ---- About band ---- */
.about-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  background: #f4f8f4; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px 38px; overflow: hidden;
}
.about-copy h2 { margin: 0 0 14px; font-size: 23px; font-weight: 800; color: var(--teal); line-height: 1.2; }
.about-copy p { margin: 0 0 12px; font-size: 14px; color: #46544f; line-height: 1.6; }
.about-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--teal); color: #fff;
  font-size: 14px; font-weight: 700; padding: 11px 22px; border-radius: var(--radius-md);
}
.about-cta:hover { background: var(--teal-600); text-decoration: none; }
.about-art { display: flex; align-items: center; justify-content: center; }
/* height:auto is load-bearing, not decoration: the <img> carries width/height
   attributes (wp_get_attachment_image emits them so the box can be reserved
   before load), and with only a width constrained in CSS the attribute height
   becomes the used height — the photo rendered 280×682 instead of 280×186. */
.about-art svg, .about-art img { width: 100%; height: auto; max-width: 280px; border-radius: var(--radius-lg); }

/* ---- Brands / partners logo walls ---- */
.hp-brands { position: relative; overflow: hidden; background: #f4f8f4; padding: 50px 0; margin-top: 46px; }
.hp-brands::before { content: ""; position: absolute; inset: 0; background: var(--leaf-green) repeat; background-size: 62px 62px; opacity: .05; pointer-events: none; }
.hp-brands .wrap { position: relative; z-index: 1; }
.hp-brands .center { margin-top: 22px; }
.hp-partners { margin-top: 46px; }
.hp-partners .center { margin-top: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 840px; margin: 30px auto 0; }
.logo-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 210px; min-height: 84px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.logo-item:hover { box-shadow: 0 14px 30px -20px rgba(14,85,81,.55); transform: translateY(-2px); text-decoration: none; }
.lg-img { max-width: 150px; max-height: 50px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .2s, opacity .2s; }
.logo-item:hover .lg-img { filter: none; opacity: 1; }
.lg-fb { display: none; flex-direction: column; align-items: center; font-size: 20px; font-weight: 800; letter-spacing: .01em; color: #8a9794; transition: color .15s; }
.logo-item:hover .lg-fb { color: var(--teal); }
.logo-item.noimg .lg-img { display: none; }
.logo-item.noimg .lg-fb { display: flex; }
.logo-item .lg-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: #aeb9b6; text-transform: uppercase; margin-top: 3px; }
.brands-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: #46544f; font-size: 14px; line-height: 1.6; }

/* ---- Branding band ---- */
.hp-branding { margin-top: 46px; }
.branding-card {
  display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px 38px; overflow: hidden;
}
/* Photo leads (mirrors the About band, flipped) — only when there is one. */
.branding-card.has-media { grid-template-columns: 1fr 1.3fr; }
.branding-copy h2 { margin: 0 0 14px; font-size: 23px; font-weight: 800; color: var(--teal); line-height: 1.2; }
.branding-copy p { margin: 0 0 12px; font-size: 14px; color: #46544f; line-height: 1.6; }
.branding-art { display: flex; align-items: center; justify-content: center; }
.branding-art img { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius-lg); }
.branding-methods { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.branding-methods a {
  display: inline-flex; align-items: center; padding: 7px 14px; background: #f4f8f4; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--teal); transition: background .15s, border-color .15s;
}
.branding-methods a:hover { background: #e8f1e8; border-color: var(--teal); text-decoration: none; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.hp-blog .center:last-child { margin-top: 28px; }
.blog-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.blog-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(14,85,81,.45); }
.bc-img { height: 130px; display: block; overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-img.g1 { background: linear-gradient(135deg, #cfe0a6, #9bc06a); }
.bc-img.g2 { background: linear-gradient(135deg, #e7d6b8, #c9a86f); }
.bc-img.g3 { background: linear-gradient(135deg, #bfe0dc, #6fb3ab); }
.bc-img.g4 { background: linear-gradient(135deg, #d7e7c5, #a7cf8a); }
.bc-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.bc-tag { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); background: var(--teal-50); border-radius: 6px; padding: 3px 8px; }
.bc-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
/* Teaser is capped at three lines so a long post can never push the card taller
   than its neighbours and break the grid's baseline. */
.bc-exc {
  font-size: 13px; line-height: 1.55; color: var(--ink-soft-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-date { font-size: 12px; color: var(--muted); }

/* ---- Reviews ---- */
.rev-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.rev-summary { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.rev-score { font-size: 46px; font-weight: 800; color: var(--ink); line-height: 1; }
.rev-stars { color: var(--accent); font-size: 20px; letter-spacing: 2px; margin-top: 4px; }
.rev-count { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.rev-bars { display: flex; flex-direction: column; gap: 6px; }
.rev-bar { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.rev-bar i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rev-bar b { display: block; height: 100%; background: var(--accent); }
.rev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rev-card { background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.rc-top { display: flex; align-items: center; justify-content: space-between; }
.rc-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.rc-stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.rc-date { font-size: 12px; color: var(--muted); margin: 3px 0 9px; }
.rev-card p { margin: 0; font-size: 13.5px; color: #46544f; line-height: 1.55; }

/* ---- FAQ ---- */
.faq-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.faq-tabs { display: flex; flex-direction: column; gap: 4px; }
.faq-tab { text-align: left; border: none; background: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 650; color: var(--ink); padding: 12px 16px; border-radius: var(--radius-md); }
.faq-tab:hover { background: var(--teal-50); }
.faq-tab.active { background: var(--teal); color: #fff; }
.faq-panel { display: none; }
.faq-panel.active { display: block; }
.faq-item { border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; background: var(--bg); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; font-size: 14px; font-weight: 650; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s; margin-top: -3px; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item[open] summary { color: var(--teal); }
.faq-item div { padding: 0 18px 16px; font-size: 13.5px; color: #46544f; line-height: 1.6; }
.faq-item div p { margin: 0 0 10px; }

/* ---- Feature strip ---- */
.feature-strip { background: var(--dark-2); color: var(--dark-text); margin-top: 52px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding: 46px 0; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature .f-ico { width: 40px; height: 40px; color: var(--green); }
.feature h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dark-text-soft); max-width: 330px; }
.feature .more { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.feature .more:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hp-hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-copy { max-width: 100%; }
  .hp-usp { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .about-card { grid-template-columns: 1fr; gap: 18px; }
  .about-art { order: -1; }
  .branding-card, .branding-card.has-media { grid-template-columns: 1fr; gap: 18px; }
  .rev-wrap { grid-template-columns: 1fr; }
  .rev-cards { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-tabs { flex-direction: row; flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; gap: 30px; padding: 38px 0; }
}
@media (max-width: 600px) {
  .hp-tiles { grid-template-columns: 1fr 1fr; }
  .hp-usp { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .rev-cards { grid-template-columns: 1fr; }
  .hero-main h1 { font-size: 30px; }
  .hero-copy { max-width: 100%; }
  .logo-item { width: calc(50% - 8px); font-size: 17px; }
  /* The global .wrap padding is 5px — too tight for the strip's bare text. */
  .feature-strip .wrap { padding: 0 16px; }
  .feature-grid { gap: 26px; padding: 32px 0; }
  .feature h3 { font-size: 16px; }
  .feature p { max-width: none; }
}
