/*
 * Standard card fixes (card-fixes.js is the behaviour):
 *  About text justified · Business Hours panel · Blog cards + reader popup · WhatsApp glyph · popup Terms · Enquire popup.
 * Selectors are boosted with `html body` so they win over the Pro / High-Profile skins. Industry templates are not touched.
 */

/* ── About: justified, hyphenated, never overflowing ─────────────────────────────────────────── */
html body .about-lead,
html body .about-lead p,
html body .about-lead li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; word-break: normal; }
html body .about-lead { line-height: 1.75; }
html body .about-lead ul, html body .about-lead ol { padding-left: 1.2em; }
html body .about-lead h1, html body .about-lead h2, html body .about-lead h3, html body .about-lead h4 { text-align: left; }

/* ── WhatsApp: the official filled glyph everywhere (the old outline bubble looked broken) ───── */
html body svg.wa-glyph { fill: currentColor !important; stroke: none !important; flex: none; }
html body .sg-act i svg.wa-glyph { width: 22px; height: 22px; }
html body .sg-act i:has(.wa-glyph) { color: #1fa855; background: color-mix(in srgb, #25d366 14%, transparent); }
html body .sg-act:hover i:has(.wa-glyph) { background: #25d366; color: #fff; }
html body .socials a:has(.wa-glyph) { color: #1fa855; }
html body .socials a:has(.wa-glyph):hover { background: #25d366; border-color: #25d366; color: #fff; }
html body .fixed-cta-wa { background: #1fa855; }
html body .fixed-cta-wa .wa-glyph { width: 20px; height: 20px; }
html body .fixed-cta-btn { gap: 9px; }

/* ── Business Hours ───────────────────────────────────────────────────────────────────────────── */
html body .hours-card { margin-top: 18px; padding: 16px 16px 8px; border-radius: 16px; border: 1px solid var(--line, #e0dbd3); background: var(--surface, #faf9f7); }
html body .hours-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e0dbd3); }
html body .hours-head strong { flex: 1; min-width: 0; font-size: .95rem; font-weight: 700; letter-spacing: .01em; color: var(--ink, #1a1814); }
html body .hours-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; color: var(--accent, #3d5a45); background: color-mix(in srgb, var(--accent, #3d5a45) 12%, transparent); }
html body .hours-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
html body .hours-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html body .hours-pill.is-open { color: #12803f; background: rgba(34, 197, 94, .14); }
html body .hours-pill.is-open i { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); animation: vp-hours-pulse 1.8s infinite; }
html body .hours-pill.is-closed { color: #b4432f; background: rgba(220, 80, 60, .12); }
html body .hours-list { list-style: none; margin: 0; padding: 0; }
html body .hours-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 10px; margin: 0 -10px; border-radius: 10px; font-size: .88rem; }
html body .hours-row + .hours-row { box-shadow: 0 -1px 0 var(--line, #e0dbd3); }
html body .hours-day { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink, #1a1814); }
html body .hours-day em { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; color: #fff; background: var(--accent, #3d5a45); }
html body .hours-time { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft, #4a463f); }
html body .hours-row.is-closed .hours-time { color: var(--muted, #8a8478); }
html body .hours-row.is-today { background: color-mix(in srgb, var(--accent, #3d5a45) 9%, transparent); box-shadow: none; }
html body .hours-row.is-today + .hours-row { box-shadow: none; }
html body .hours-row.is-today .hours-time { font-weight: 700; color: var(--ink, #1a1814); }
@keyframes vp-hours-pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { html body .hours-pill.is-open i { animation: none; } }

/* ── Blog cards ───────────────────────────────────────────────────────────────────────────────── */
html body .blog-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
html body .blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--line, #e0dbd3); background: var(--surface, #faf9f7); cursor: pointer; text-align: left; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
html body .blog-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent, #3d5a45) 40%, var(--line, #e0dbd3)); box-shadow: 0 14px 28px -18px rgba(20, 20, 30, .35); }
html body .blog-card:focus-visible { outline: 2px solid var(--accent, #3d5a45); outline-offset: 2px; }
html body .blog-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eceae6; }
html body .blog-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body .blog-card-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; font-weight: 700; color: var(--ink, #1a1814); overflow-wrap: anywhere; }
html body .blog-card-date { display: block; font-size: .74rem; font-weight: 400; letter-spacing: .02em; color: var(--muted, #8a8478); }
html body .blog-card-excerpt { margin: 6px 0 0; font-size: .86rem; line-height: 1.6; color: var(--ink-soft, #4a463f); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html body .blog-card-more { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--accent, #3d5a45); }

/* Blog cards use the same swipeable carousel treatment as Products and Services. */
html body .content-section .blog-list { display: flex; gap: 14px; overflow-x: auto; padding: 2px 4px 12px; margin-inline: -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
html body .content-section .blog-list .blog-card { flex: 0 0 min(78%, 360px); scroll-snap-align: center; }
html body .content-section .blog-list::-webkit-scrollbar { height: 5px; }
html body .content-section .blog-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent, #3d5a45) 45%, transparent); border-radius: 99px; }
@media (min-width: 560px) {
  html body .blog-card.has-img { flex-direction: row; }
  html body .blog-card.has-img .blog-card-img { width: 38%; aspect-ratio: auto; min-height: 100%; flex: none; }
}

/* ── Blog reader popup ─────────────────────────────────────────────────────────────────────────── */
.vp-modal.vp-blog { z-index: 100001; }
.vp-modal.vp-blog .vp-modal-box { max-width: 600px; max-height: min(90vh, 820px); }
.vp-blog .vp-blog-date { display: block; margin: 0 0 14px; font-size: .78rem; font-weight: 400; color: #8a8478; }
.vp-blog .vp-blog-content { font-size: .94rem; line-height: 1.8; color: #3b3832; overflow-wrap: anywhere; }
.vp-blog .vp-blog-content p { margin: 0 0 1em; }
.vp-blog .vp-blog-content h2, .vp-blog .vp-blog-content h3, .vp-blog .vp-blog-content h4 { margin: 1.2em 0 .5em; line-height: 1.3; color: #1a1814; }
.vp-blog .vp-blog-content img { max-width: 100%; height: auto; border-radius: 10px; }
.vp-blog .vp-blog-content a { color: var(--accent, #6d28d9); }
.vp-blog .vp-blog-content ul, .vp-blog .vp-blog-content ol { padding-left: 1.3em; }
.vp-blog .vp-blog-content blockquote { margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent, #6d28d9); color: #5a564e; }

/* ── Terms & Conditions inside the product / service popup ───────────────────────────────────── */
.vp-modal-terms { margin-top: 16px; border-top: 1px solid #ece9f2; padding-top: 12px; }
.vp-modal-terms summary { cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6b665d; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.vp-modal-terms summary::-webkit-details-marker { display: none; }
.vp-modal-terms summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-right: 3px; }
.vp-modal-terms[open] summary::after { transform: rotate(-135deg); }
.vp-terms-body { margin-top: 10px; max-height: 170px; overflow: auto; padding-right: 4px; font-size: .8rem; line-height: 1.65; color: #5a564e; overflow-wrap: anywhere; }
.vp-terms-body p, .vp-terms-body li { margin: 0 0 .6em; font-size: inherit; text-align: left; }
.vp-terms-body ul, .vp-terms-body ol { padding-left: 1.2em; margin: 0 0 .6em; }
.vp-terms-body h2, .vp-terms-body h3, .vp-terms-body h4 { margin: .8em 0 .3em; font-size: .85rem; color: #1a1814; }

/* ── Enquire popup (name + phone with country code) ──────────────────────────────────────────── */
.vp-modal.vp-enq { z-index: 100002; }
.vp-enq .vp-modal-box { max-width: 420px; padding: 0; }
.vp-enq-head { display: flex; gap: 14px; align-items: center; padding: 22px 52px 16px 22px; }
.vp-enq-badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: #25d366; box-shadow: 0 10px 20px -10px rgba(37, 211, 102, .8); }
.vp-enq-badge svg { width: 24px; height: 24px; }
.vp-enq-head h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; font-weight: 700; color: #1a1814; }
.vp-enq-head p { margin: 3px 0 0; font-size: .8rem; line-height: 1.45; color: #6b665d; }
.vp-enq-item { margin: 0 22px; padding: 9px 12px; border-radius: 10px; background: #f6f5fa; font-size: .82rem; color: #3b3832; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.vp-enq-item span { flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8478; }
.vp-enq-item b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-enq-form { padding: 16px 22px 22px; display: grid; gap: 14px; }
.vp-enq-field { display: grid; gap: 6px; min-width: 0; }
.vp-enq-field > label { font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: #3b3832; }
.vp-enq-field > label i { font-style: normal; color: #d04b3a; }
.vp-enq-input { width: 100%; height: 46px; padding: 0 14px; font: 500 .95rem var(--font, system-ui, sans-serif); color: #1a1814; background: #fff; border: 1px solid #d9d6e2; border-radius: 12px; outline: 0; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.vp-enq-input::placeholder { color: #a7a3b3; font-weight: 400; }
.vp-enq-input:focus { border-color: var(--accent, #6d28d9); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #6d28d9) 16%, transparent); }
.vp-enq-phone { display: flex; gap: 8px; align-items: stretch; }
.vp-enq-phone .vp-enq-input { flex: 1; min-width: 0; }
.vp-enq-cc { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 10px 0 12px; font: 600 .92rem var(--font, system-ui, sans-serif); color: #1a1814; background: #fff; border: 1px solid #d9d6e2; border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vp-enq-cc:hover { border-color: #b9b7c0; }
.vp-enq-cc:focus-visible, .vp-enq-cc[aria-expanded="true"] { outline: 0; border-color: var(--accent, #6d28d9); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #6d28d9) 16%, transparent); }
.vp-enq-cc svg { width: 14px; height: 14px; color: #7d7a8a; transition: transform .15s; }
.vp-enq-cc[aria-expanded="true"] svg { transform: rotate(180deg); }
.vp-enq-flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(46, 38, 61, .15); background: #f1f0f2; }
.vp-enq-field.has-error .vp-enq-input, .vp-enq-field.has-error .vp-enq-cc { border-color: #d04b3a; }
.vp-enq-err { min-height: 0; margin: 0; font-size: .75rem; color: #c13a28; }
.vp-enq-err:empty { display: none; }
.vp-enq-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 2px; border: 0; border-radius: 14px; font: 700 .95rem var(--font, system-ui, sans-serif); color: #fff; background: #1fa855; cursor: pointer; box-shadow: 0 14px 24px -14px rgba(31, 168, 85, .9); transition: filter .15s, transform .15s; }
.vp-enq-submit svg { width: 21px; height: 21px; }
.vp-enq-submit:hover { filter: brightness(1.06); }
.vp-enq-submit:active { transform: scale(.98); }
.vp-enq-submit[disabled] { opacity: .7; cursor: progress; }
.vp-enq-note { margin: 0; text-align: center; font-size: .72rem; color: #8a8478; }
.vp-enq-done { padding: 28px 24px 26px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.vp-enq-done .vp-enq-badge { width: 54px; height: 54px; }
.vp-enq-done h3 { margin: 6px 0 0; font-size: 1.1rem; color: #1a1814; }
.vp-enq-done p { margin: 0; font-size: .86rem; line-height: 1.55; color: #5a564e; }
.vp-enq-done a { margin-top: 6px; font-size: .86rem; font-weight: 700; color: #1fa855; }

/* country picker panel (lives on the popup root, outside the scrolling box) */
.vp-cc-panel { position: fixed; z-index: 100003; display: none; flex-direction: column; width: min(320px, calc(100vw - 24px)); background: #fff; border: 1px solid #dbdade; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(30, 24, 50, .35); overflow: hidden; font-family: var(--font, system-ui, sans-serif); }
.vp-cc-panel.is-open { display: flex; }
.vp-cc-search { padding: 8px; border-bottom: 1px solid #eceaee; }
.vp-cc-search input { width: 100%; height: 38px; padding: 0 12px; font: 500 .9rem var(--font, system-ui, sans-serif); color: #1a1814; background: #f8f7fa; border: 1px solid #e3e1e8; border-radius: 9px; outline: 0; }
.vp-cc-search input:focus { border-color: var(--accent, #6d28d9); background: #fff; }
.vp-cc-list { list-style: none; margin: 0; padding: 5px; max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.vp-cc-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; color: #2d2a36; }
.vp-cc-opt .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vp-cc-opt .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-cc-opt .dl { flex: none; font-size: .82rem; color: #8a8797; }
.vp-cc-opt.is-active { background: color-mix(in srgb, var(--accent, #6d28d9) 10%, #fff); }
.vp-cc-opt.is-selected { font-weight: 700; }
.vp-cc-none { padding: 14px; text-align: center; color: #8a8797; font-size: .86rem; }
@media (max-width: 480px) {
  .vp-modal.vp-enq { align-items: flex-end; padding: 0; }
  .vp-enq .vp-modal-box { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
}

/* A long paragraph (About) must never make its section wider than the card: let grid items shrink to the column. */
html body .page-sections { grid-template-columns: minmax(0, 1fr); }
html body .page-sections > *, html body .content-section, html body .section-body, html body .about-card, html body .about-lead { min-width: 0; max-width: 100%; }

/* Profile photo fills its frame (no letterboxing / white padding) */
html body img.profile, html body video.profile { object-fit: cover !important; object-position: center top; padding: 0 !important; }

/* Blog tables written in the editor: visible borders, scroll sideways instead of being squashed or clipped */
[class*="blog"] table, .vp-modal-box table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; font-size: .92em; }
[class*="blog"] th, [class*="blog"] td, .vp-modal-box th, .vp-modal-box td { border: 1px solid rgba(0,0,0,.14); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 80px; word-break: normal; overflow-wrap: normal; }
[class*="blog"] th, .vp-modal-box th { background: rgba(0,0,0,.05); font-weight: 700; }
