/*
Theme Name: Blue Bit Link
Theme URI: https://bluebitlink.com/
Author: Blue Bit Link
Author URI: https://bluebitlink.com/
Description: Custom conversion-focused theme for Blue Bit Link MSP — sticky nav, animated hero, services, coverage plans, block-hour packs, software shop, FAQ, consultation and contact forms.
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blue-bit-link
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ Self-hosted fonts (zero third-party requests) ============ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

/* ============ Tokens & reset ============ */
:root {
  --violet-deep: #2d2a62;
  --violet: #49358f;
  --violet-light: #8b7cf6;
  --violet-pale: #b9adff;
  --brand-gradient: linear-gradient(135deg, #2d2a62 0%, #49358f 100%);
  --paper: #f8f9fd;
  --ink: #1d1c2e;
  --muted: #5c5b70;
  --white: #ffffff;
  --radius: 20px;
  --shadow-card: 0 18px 44px rgba(41, 38, 93, .12);
  --shadow-card-hover: 0 26px 60px rgba(41, 38, 93, .22);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .4em; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 3rem; font-size: 1.08rem; }
.mono { font-family: var(--font-mono); }

/* Skip link + focus visibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--violet-deep); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 3px; border-radius: 6px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px;
  background: var(--violet-deep); color: #fff;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45, 42, 98, .35); color: #fff; }
.btn-light { background: #fff; color: var(--violet-deep); }
.btn-light:hover, .btn-light:focus-visible { color: var(--violet-deep); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-outline:hover, .btn-outline:focus-visible { background: #fff; color: var(--violet-deep); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eceaf6;
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-brand img { width: 172px; height: auto; display: block; }
.site-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.menu > li > a:hover, .menu > li > a:focus-visible { background: var(--paper); }
/* Dropdown panels */
.menu .sub-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 1001;
  min-width: 260px; margin: 0; padding: 10px; list-style: none;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card);
  border: 1px solid #eceaf6;
}
.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu,
.menu .menu-item-has-children.open > .sub-menu { display: block; }
/* Transparent hover bridge over the 8px offset: the panel stays open while
   the mouse travels from the parent item down to the links. */
.menu .sub-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.menu .sub-menu a { padding: 10px 14px; font-size: .95rem; border-radius: 10px; }
.menu .sub-menu a:hover, .menu .sub-menu a:focus-visible { background: var(--paper); }
.submenu-toggle {
  display: none; border: 0; background: none; cursor: pointer;
  padding: 10px; color: var(--ink); line-height: 1;
}
.submenu-toggle svg { width: 14px; height: 14px; display: block; transition: transform .2s ease; }
.menu-item-has-children.open > a .submenu-toggle svg,
.menu-item-has-children.open > .submenu-toggle svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.header-cta { white-space: nowrap; }
.cart-link { position: relative; display: inline-flex; padding: 10px; color: var(--ink); border-radius: 12px; }
.cart-link:hover { background: var(--paper); }
.cart-link svg { width: 24px; height: 24px; display: block; }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px;
  background: var(--violet); color: #fff; font-size: .72rem; font-weight: 700;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-gradient); color: #fff;
  min-height: 92vh; display: flex; align-items: center;
  padding: 110px 0 120px;
}
.hero-pattern { position: absolute; inset: 0; z-index: 0; opacity: .16; pointer-events: none; }
.hero-pattern svg { width: 100%; height: 100%; display: block; }
.bbl-link-stage {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.bbl-link-stage svg { width: min(560px, 80vw); height: auto; overflow: visible; }
.bbl-link-mark { animation: bbl-glow 10s ease-in-out infinite; }
.piece-left { animation: bbl-piece-left 10s ease-in-out infinite; }
.piece-right { animation: bbl-piece-right 10s ease-in-out infinite; }
@keyframes bbl-piece-left {
  0%   { transform: translateX(-58vw); opacity: 0; }
  6%   { opacity: 1; }
  28%  { transform: translateX(0); opacity: 1; }
  58%  { transform: translateX(0); opacity: 1; }
  82%  { transform: translateX(-58vw); opacity: 0; }
  100% { transform: translateX(-58vw); opacity: 0; }
}
@keyframes bbl-piece-right {
  0%   { transform: translateX(58vw); opacity: 0; }
  6%   { opacity: 1; }
  28%  { transform: translateX(0); opacity: 1; }
  58%  { transform: translateX(0); opacity: 1; }
  82%  { transform: translateX(58vw); opacity: 0; }
  100% { transform: translateX(58vw); opacity: 0; }
}
@keyframes bbl-glow {
  0%, 30%  { filter: none; }
  36%, 56% { filter: drop-shadow(0 0 26px rgba(185, 173, 255, .85)); }
  64%, 100% { filter: none; }
}
/* Lightning flash behind the mark when the pieces join. */
.bbl-lightning { opacity: 0; transform-box: fill-box; transform-origin: center; animation: bbl-lightning 10s ease-out infinite; }
@keyframes bbl-lightning {
  0%, 26% { opacity: 0; transform: scale(.9); }
  28% { opacity: .95; transform: scale(1); }
  30% { opacity: .3; transform: scale(1); }
  32% { opacity: .85; transform: scale(1.03); }
  37% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(.9); }
}
.hero.is-paused .bbl-link-stage *,
.hero.is-paused .bbl-link-mark { animation-play-state: paused; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-content h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: .5em; letter-spacing: -0.01em; }
.hero-content .lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #dcd9f7; max-width: 640px; margin: 0 auto 2.2rem; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ Dark bands ============ */
.band-dark { background: var(--brand-gradient); color: #fff; }
.band-dark .section-sub { color: #d5d1f2; }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 34px 30px; color: #fff;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.service-card:hover, .service-card:focus-within { transform: translateY(-6px); background: rgba(255,255,255,.1); box-shadow: var(--shadow-card-hover); }
.service-card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); margin-bottom: 20px;
}
.service-card .icon svg { width: 26px; height: 26px; stroke: var(--violet-pale); }
.service-card h3 { font-size: 1.25rem; margin-bottom: .5em; }
.service-card p { color: #d5d1f2; font-size: .98rem; margin: 0; }

/* ============ Plans ============ */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  border: 1px solid #e7e4f5; box-shadow: var(--shadow-card);
  padding: 38px 32px; display: flex; flex-direction: column; position: relative;
  transition: background .28s ease, color .28s ease, transform .28s ease, box-shadow .28s ease;
}
.plan h3 { font-size: 1.45rem; margin-bottom: .3em; }
.plan .plan-tag { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: 1.2em; transition: color .28s ease; }
.plan ul { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 12px; font-size: .97rem; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--violet); transition: stroke .28s ease; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--violet-deep); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 6px 18px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
  transition: background .28s ease, color .28s ease;
}
.plan:hover, .plan:focus-within {
  background: var(--brand-gradient); color: #fff; transform: translateY(-7px); box-shadow: var(--shadow-card-hover);
}
.plan:hover .plan-tag, .plan:focus-within .plan-tag { color: #cfcaF5; }
.plan:hover ul li svg, .plan:focus-within ul li svg { stroke: var(--violet-pale); }
.plan:hover .btn, .plan:focus-within .btn { background: #fff; color: var(--violet-deep); }
.plan:hover .plan-badge, .plan:focus-within .plan-badge { background: #fff; color: var(--violet-deep); }
.plan-note { text-align: center; margin-top: 2.2rem; color: var(--muted); font-size: 1.02rem; }
/* Plan selector */
.plan-selector {
  margin: 3rem auto 0; max-width: 720px; background: var(--paper);
  border: 1px solid #e7e4f5; border-radius: var(--radius); padding: 30px;
  display: grid; gap: 16px;
}
.plan-selector .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============ Block hours ============ */
.packs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pack {
  background: #fff; border: 1px solid #e7e4f5; border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 38px 32px;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.pack:hover, .pack:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.pack h3 { font-size: 1.4rem; margin-bottom: .2em; }
.pack .pack-hours { font-family: var(--font-mono); font-weight: 600; color: var(--violet); font-size: 1rem; margin-bottom: .6em; }
.pack .pack-price { font-size: 2.2rem; font-weight: 700; margin-bottom: .4em; }
.pack ul { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .96rem; }
.pack ul li { display: flex; gap: 10px; align-items: flex-start; }
.pack ul li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; stroke: var(--violet); }
.pack .btn { margin-top: auto; align-self: flex-start; }
.packs-note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: .98rem; }

/* ============ Software shop ============ */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 2.6rem; }
.product-card {
  background: #fff; border: 1px solid #e7e4f5; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease; text-decoration: none; color: var(--ink);
}
.product-card:hover, .product-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.product-card .thumb { aspect-ratio: 1; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pbody { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 1.02rem; margin: 0; }
.product-card .price { font-weight: 700; color: var(--violet-deep); }
.shop-cta { text-align: center; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid #e7e4f5; border-radius: 16px; overflow: hidden; }
.faq-q {
  width: 100%; border: 0; background: none; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ============ Consultation band ============ */
.consult-band { background: var(--brand-gradient); color: #fff; }
.consult-band .section-sub { color: #d5d1f2; }
.consult-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.consult-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.consult-copy p { color: #d5d1f2; }
.consult-points { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 12px; }
.consult-points li { display: flex; gap: 12px; align-items: flex-start; color: #ece9fb; }
.consult-points svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--violet-pale); }

/* ============ Forms ============ */
.bbl-form {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-card-hover); display: grid; gap: 16px;
}
.bbl-form h3 { margin: 0; font-size: 1.3rem; }
.bbl-form .field { display: grid; gap: 6px; }
.bbl-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bbl-form label { font-weight: 600; font-size: .92rem; }
.bbl-form input[type="text"], .bbl-form input[type="email"], .bbl-form input[type="number"],
.bbl-form select, .bbl-form textarea {
  font-family: var(--font-sans); font-size: 1rem; padding: 12px 16px;
  border: 1.5px solid #d9d6ec; border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.bbl-form textarea { min-height: 120px; resize: vertical; }
.bbl-form input:focus, .bbl-form select:focus, .bbl-form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 124, 246, .25);
}
.form-notice {
  border-radius: 12px; padding: 14px 18px; font-weight: 500; font-size: .97rem;
}
.form-notice.success { background: #e6f7ee; color: #14532d; border: 1px solid #b7e4c7; }
.form-hint { font-size: .88rem; color: var(--muted); margin: 0; }

/* ============ Contact ============ */
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--paper); border: 1px solid #e7e4f5;
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 22px; height: 22px; stroke: var(--violet); }
.contact-item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { color: var(--violet-deep); font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ============ Footer ============ */
.site-footer { background: var(--brand-gradient); color: #d5d1f2; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 52px; }
.footer-brand img { width: 185px; height: auto; margin: 0 0 18px; display: block; }
.footer-brand p { font-size: .95rem; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1.1em; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu a { color: #d5d1f2; text-decoration: none; font-size: .95rem; }
.footer-menu a:hover, .footer-menu a:focus-visible { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 22px 0; font-size: .88rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #d5d1f2; text-decoration: none; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: #fff; text-decoration: underline; }

/* Deep-link card targets: clear the sticky header on plain anchor jumps. */
.plan, .pack, .service-card { scroll-margin-top: 96px; }
/* "Selected" card state, applied when a card is chosen from a nav dropdown. */
.plan.is-selected, .pack.is-selected, .service-card.is-selected {
  outline: 3px solid var(--violet); outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .15), var(--shadow-card);
}

/* ============ Blog ============ */
.single-post .entry-content { font-size: 1.05rem; line-height: 1.75; }
.single-post .entry-content h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.single-post .entry-content p, .single-post .entry-content ul { margin-bottom: 1.2em; }
.single-post .entry-content ul { padding-left: 1.4em; }
.single-post .entry-content li { margin-bottom: .5em; }
.post-cta { margin-top: 56px; padding: 44px 32px; border-radius: var(--radius); background: var(--brand-gradient); text-align: center; }
.post-cta h2 { color: #fff; margin-bottom: .5em; }
.post-cta p { color: #e6e2f7; }
.post-cta .btn { margin-top: 12px; }

/* ============ Generic content templates ============ */
.content-area { padding: 72px 0; }
.content-area .wrap { max-width: 820px; }
.post-card { background: var(--paper); border: 1px solid #e7e4f5; border-radius: var(--radius); padding: 32px; margin-bottom: 26px; }
.post-card h2 { font-size: 1.5rem; margin-bottom: .4em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--violet); }
.post-meta { font-size: .88rem; color: var(--muted); margin-bottom: 1em; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid, .packs-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .consult-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #eceaf6; box-shadow: var(--shadow-card);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav .menu { flex-direction: column; align-items: stretch; padding: 12px 4%; gap: 2px; }
  .menu .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 18px; }
  .menu .sub-menu::before { display: none; }
  .menu .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
  .submenu-toggle { display: inline-flex; }
  .header-actions .header-cta { display: none; }
  .header-actions { margin-left: 0; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid, .shop-grid, .footer-grid { grid-template-columns: 1fr; }
  .bbl-form .field-row, .plan-selector .row { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; padding: 80px 0; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece-left, .piece-right, .bbl-link-mark, .bbl-lightning { animation: none; }
  .piece-left, .piece-right { transform: none; opacity: 1; }
  .bbl-lightning { opacity: 0; }
  .bbl-link-mark { filter: drop-shadow(0 0 18px rgba(185, 173, 255, .5)); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Plan selector fields (outside .bbl-form) */
.plan-selector .field { display: grid; gap: 6px; align-content: start; }
.plan-selector label { font-weight: 600; font-size: .92rem; }
.plan-selector input[type="number"], .plan-selector select {
  font-family: var(--font-sans); font-size: 1rem; padding: 12px 16px;
  border: 1.5px solid #d9d6ec; border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.plan-selector input:focus, .plan-selector select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 124, 246, .25);
}

/* ============ WooCommerce compatibility ============ */
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; margin-bottom: 28px; background: #fff; border: 1px solid #e7e4f5; border-radius: var(--radius); overflow: hidden; }
.woocommerce table.shop_table thead { display: table-header-group; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 16px; text-align: left; vertical-align: middle; border-top: 1px solid #eceaf6; }
.woocommerce table.shop_table thead th { border-top: 0; background: var(--paper); font-weight: 600; color: var(--ink); white-space: nowrap; }
.woocommerce table.shop_table .product-thumbnail img { width: 64px; height: auto; display: block; border-radius: 8px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { background: var(--paper); border: 1px solid #e7e4f5; border-radius: var(--radius); padding: 24px; }
.woocommerce div.product { background: #fff; }
.woocommerce ul.products li.product { background: #fff; border: 1px solid #e7e4f5; border-radius: var(--radius); padding: 20px; }
