/* =========================================================
   Berry Bear — WordPress additions
   (single-post typography + Contact Form 7 shim + admin bar fix)
   The original style.css is kept untouched.
   ========================================================= */

/* Keep the sticky header below the WP admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 900px) {
  .admin-bar .nav-menu { top: calc(var(--nav-h) + 46px); }
}

/* ---------- Single post ---------- */
.post-single { padding: 70px 0 96px; }
.post-cover {
  max-width: 980px; margin: 0 auto 40px; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.post-cover img { width: 100%; height: auto; display: block; }
.post-body {
  max-width: 780px; margin: 0 auto; background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 46px 48px; box-shadow: var(--shadow-sm);
}
.post-body > * { margin-bottom: 22px; }
.post-body h2 { font-size: 1.7rem; margin: 34px 0 14px; }
.post-body h3 { font-size: 1.35rem; margin: 28px 0 12px; }
.post-body p,
.post-body li { color: var(--ink); font-size: 1.08rem; line-height: 1.9; }
.post-body ul, .post-body ol { padding-inline-start: 24px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--pink); text-decoration: underline; }
.post-body img { border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.post-body blockquote {
  border-inline-start: 5px solid var(--pink); background: var(--bg-2);
  padding: 18px 24px; border-radius: var(--r-sm); font-weight: 600; color: var(--navy);
}
.post-tags { max-width: 780px; margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 10px; }
.post-tags a {
  background: #fff; border: 2px solid var(--line); color: var(--ink-soft);
  padding: 6px 14px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 600;
}
.post-tags a:hover { color: var(--pink); border-color: var(--pink); }
.post-nav {
  max-width: 780px; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 16px;
}
.post-nav a { font-family: var(--font-display); font-weight: 700; color: var(--pink); }

/* Pagination (blog index) */
.berry-pagination { margin-top: 54px; text-align: center; }
.berry-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
  margin: 0 4px; border-radius: var(--r-pill); background: #fff; border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}
.berry-pagination .page-numbers.current,
.berry-pagination .page-numbers:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Empty-state */
.berry-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; font-weight: 600; }

/* ---------- Trust badges strip ---------- */
.trust-strip { background: var(--surface); border-block: 2px solid var(--line); position: relative; z-index: 1; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: center; align-items: center; padding-block: 22px; }
.trust-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1rem; }
.trust-badge .tb-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }

/* ---------- Slogan band ---------- */
.slogan-band { background: linear-gradient(130deg, var(--purple), var(--pink)); color: #fff; text-align: center; overflow: hidden; }
.slogan-band .container { padding-block: 56px; position: relative; z-index: 1; }
.slogan-band .slogan-main { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); color: #fff; line-height: 1.3; }
.slogan-band .slogan-list { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 22px; }
.slogan-band .slogan-list span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.32); padding: 8px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: .96rem; }

/* ---------- Trust reasons (why customers trust us) ---------- */
.trust-reasons { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; list-style: none; padding: 0; }
.trust-reasons li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--navy); font-size: 1.05rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.trust-reasons li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-reasons .ck { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: 2px; }
@media (max-width: 620px) { .trust-reasons { grid-template-columns: 1fr; } }

/* ---------- Manager's word ---------- */
.manager-word { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 58px 50px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); text-align: center; }
.manager-word::before { content: "\201D"; position: absolute; top: -10px; inset-inline-start: 30px; font-size: 8rem; color: rgba(255,255,255,.12); font-family: var(--font-display); line-height: 1; }
.manager-word .eyebrow { background: rgba(255,255,255,.1); color: var(--yellow); border-color: rgba(255,255,255,.15); box-shadow: none; margin-bottom: 20px; }
.manager-word .mw-text { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; max-width: 840px; margin: 0 auto 26px; line-height: 1.9; position: relative; }
.manager-word .mw-who b { display: block; font-family: var(--font-display); color: #fff; font-size: 1.15rem; }
.manager-word .mw-who span { color: #C9C3E6; font-size: .9rem; }

/* ---------- Display-only shop links ---------- */
.shop-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- Footer thanks line ---------- */
.footer-thanks { text-align: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 30px 0 2px; }
.footer-thanks span { color: var(--pink-soft); }

/* ---------- Scroll-driven preloader (perf hint only; behavior is JS-driven) ---------- */
#preloader { will-change: transform; }

/* ---------- Preloader custom media (image / GIF / video) ---------- */
#preloader .pre-media {
  max-width: min(320px, 74vw); max-height: 320px; width: auto; height: auto;
  margin: 0 auto 26px; display: block; border-radius: 22px;
  box-shadow: 0 18px 40px rgba(28,21,82,.18);
}
#preloader video.pre-media { object-fit: contain; background: transparent; }

/* Video loader: fill the whole screen (cover) */
#preloader.preloader--video { padding: 0; align-items: end; }
#preloader.preloader--video video.pre-media {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; border-radius: 0;
  object-fit: contain; box-shadow: none; background: #fff;
}
/* white letterbox background around the contained video */
#preloader.preloader--video { background: #fff; }
/* loading bar/text near the bottom, legible on the white background */
#preloader.preloader--video .pre-inner { position: relative; z-index: 2; margin-bottom: 7vh; }
#preloader.preloader--video .pre-text { color: var(--pink); text-shadow: none; }

/* ---------- Gallery: larger, clearer tiles ---------- */
.gallery-grid { grid-auto-rows: 300px; gap: 20px; }
.gitem.photo img { object-fit: cover; object-position: center; }
/* Softer hover dim so the photo stays clear on hover too */
.gitem::after { background: rgba(28,21,82,.35); }
@media (max-width: 1024px) { .gallery-grid { grid-auto-rows: 260px; } }
@media (max-width: 620px)  { .gallery-grid { grid-auto-rows: 210px; } }

/* ---------- Social brand icons (footer + contact) ---------- */
.footer-social a,
.contact-social a { color: #fff; }
.footer-social a svg,
.contact-social a svg { width: 20px; height: 20px; display: block; }
.footer-social a svg path,
.contact-social a svg path { fill: currentColor; }

/* ---------- Contact Form 7 → match the site form ---------- */
.contact-form .wpcf7 { margin: 0; }
.contact-form .wpcf7-form p { margin: 0; }
.contact-form .wpcf7-form .field { margin-bottom: 18px; }
/* CF7 wraps inputs in <span class="wpcf7-form-control-wrap"> — keep them full width */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid-tip {
  color: var(--pink-deep); font-size: .85rem; font-weight: 600; margin-top: 6px; display: block;
}
.contact-form .wpcf7-not-valid { border-color: var(--pink-deep) !important; }
.contact-form .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0; padding: 14px 18px; border-radius: var(--r-sm);
  border: 0; text-align: center; font-weight: 700;
}
.contact-form .wpcf7 form.sent .wpcf7-response-output {
  background: #DFF5E6; color: var(--green-deep);
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output {
  background: #FFE3EF; color: var(--pink-deep);
}
.contact-form .wpcf7-spinner { margin: 14px auto 0; display: block; }
.contact-form .berry-submit,
.contact-form .wpcf7 input[type="submit"] { width: 100%; }
/* Honeypot / hidden helper never shows */
.contact-form .berry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
