/* =========================================================
   Bengal Tech Solution — additions for the Laravel site
   (style.css is the static design, unchanged; this file adds what the
   dynamic pages need: form errors, order form, blog, CMS blocks.)
   ========================================================= */

/* ---------- Spacing helpers (page-builder "Space around the block") ---------- */
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Visually hidden, still read by search engines and screen readers. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Forms ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field-error { font-size: 13px; color: var(--coral); font-weight: 500; }
.field.error textarea { border-color: var(--coral); }
.form-msg-error { background: #fde9e5; color: #a8321f; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Hero variants ---------- */
.hero-light { background: var(--bg); color: var(--ink); }
.hero-light::before { opacity: .25; }
.hero-light .hero-title h1, .hero-light .hero-text p { color: var(--ink); }
.hero-light .hero-text p { color: var(--muted); }
.hero-light .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.hero-light .hero-assure li { color: var(--ink-2); }
.hero-brand { background: linear-gradient(120deg, var(--brand-2), var(--brand) 70%, #19b98a); }
.hero-photo { display: grid; place-items: center; }
.hero-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- CTA band variant ---------- */
.cta-gold { background: linear-gradient(110deg, #d98a10, var(--gold) 60%, #f7c063); color: var(--ink); }
.cta-gold h2 { color: var(--ink); }
.cta-gold .btn-gold { background: var(--ink); color: #fff; }
.cta-gold .btn-ghost { color: var(--ink); border-color: rgba(8, 32, 26, .25); }

/* ---------- Cards ---------- */
a.mini-svc { color: inherit; transition: transform .2s, box-shadow .2s; }
a.mini-svc:hover { transform: translateY(-3px); }
.prod-meta small { color: var(--brand-2); font-weight: 600; font-size: 13px; }
img.avatar { object-fit: cover; padding: 0; }

/* ---------- Product order form ---------- */
.pd-order { margin: 40px 0 10px; }
.pd-order .contact-form { margin: 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 860px; }
#plans .pd-order .contact-form { margin: 40px auto 0; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-opts label { cursor: pointer; position: relative; }
.variant-opts input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.variant-opts b { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; transition: all .2s; }
.variant-opts b small { font-weight: 500; color: var(--muted); }
.variant-opts input:checked + b { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); }
.variant-opts input:focus-visible + b, .budget-opts input:focus-visible + b { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Thank-you page ---------- */
.thanks-wrap { max-width: 760px; }
.thanks-box { display: flex; flex-direction: column; gap: 24px; }
.thanks-head { display: flex; align-items: center; gap: 16px; }
.thanks-head small { display: block; color: var(--muted); font-size: 14px; }
.thanks-head strong { font-family: var(--font-en); font-size: 26px; color: var(--ink); letter-spacing: .02em; }
.thanks-table tr.total th, .thanks-table tr.total td { font-weight: 700; color: var(--ink); font-size: 18px; }
.thanks-table td { text-align: right; white-space: nowrap; }

/* ---------- Rich text (CMS pages, posts, product descriptions) ---------- */
.rich-wrap { max-width: 820px; }
.rich-title { margin-bottom: 24px; }
.rich-title h2 { font-family: var(--font-bn); font-size: clamp(26px, 3.2vw, 36px); }
.rich-title h2 em { font-style: normal; color: var(--brand); }
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-bn); margin-top: 1.6em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ---------- Image & spacer blocks ---------- */
.section-image { padding: 40px 0; }
.block-image { margin: 0; }
.block-image img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.image-contained .block-image { max-width: 900px; margin: 0 auto; }
.image-full .block-image img { border-radius: 0; }
.block-image figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.block-spacer.spacer-sm { height: 24px; }
.block-spacer.spacer-md { height: 56px; }
.block-spacer.spacer-lg { height: 100px; }

/* ---------- Blog ---------- */
.blog-cats a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; transition: all .2s; }
.blog-cats a:hover { border-color: var(--brand); color: var(--brand-2); }
.blog-cats a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.post-meta span { color: var(--brand-2); font-weight: 600; }
.post-title h3 { font-family: var(--font-bn); font-size: 20px; line-height: 1.4; }
.post-title a:hover { color: var(--brand-2); }
.post-excerpt p { color: var(--muted); font-size: 15px; }
.post-body .svc-link { margin-top: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; color: var(--muted); }
.post-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.post-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-cover { margin-top: -50px; position: relative; z-index: 2; }
.post-cover img { width: 100%; max-width: 980px; margin: 0 auto; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post-content .section { padding: 50px 0; }
.post-content .section-rich .rich-wrap { margin: 0 auto; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .pd-order { margin-top: 28px; }
  .thanks-head strong { font-size: 21px; }
}

/* ---------- Staff toolbar (logged-in staff only, resources/views/site/partials/staff-bar.blade.php) ---------- */
.staff-bar { position: relative; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 12px 0 0; background: #08201a; color: #dfe9e4; font: 600 13px/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.staff-bar-l, .staff-bar-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
.staff-logo { width: 40px; height: 40px; display: grid; place-items: center; background: #0f3329; }
.staff-logo svg { width: 24px; height: 24px; }
.staff-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; color: #dfe9e4; white-space: nowrap; transition: background .15s, color .15s; }
.staff-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.staff-link b { font-weight: 600; }
.staff-edit { background: #0e9f6e; color: #fff; }
.staff-edit:hover { background: #0a7c55; }
.staff-note { padding: 4px 9px; border-radius: 99px; background: rgba(244, 166, 42, .18); color: #f8c46b; font-size: 11.5px; }
.staff-user { color: #a9bdb4; white-space: nowrap; }
.staff-user b { color: #fff; }
.staff-logout button { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #dfe9e4; font: inherit; cursor: pointer; }
.staff-logout button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 640px) {
  .staff-hide-sm { display: none; }
}
