/* ------------------------------------------------------------
   HEXSPUR DESIGNS – small additions on top of styles.css
   (kept separate so the template stylesheet stays untouched)
------------------------------------------------------------ */

/* Enquiry form */
.hx-form select.hx-select {
  width: 100%;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--neutral-200, #e4e4e7);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 4px top 8px;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.hx-form select.hx-select:focus { outline: none; border-bottom-color: var(--primary, #fd3a25); }
.hx-form .nice-select { display: none !important; }
.hx-form .hx-form-status { min-height: 1.4em; margin: -18px 0 18px; }
.hx-form .hx-form-status.is-error { color: #dc2626; }
.hx-form .hx-form-status.is-ok { color: #15803d; }

/* Mobile menu logo */
.hx-mb-logo { height: 44px; width: auto; }

/* Product logo panel on software pages */
.hx-product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 48px;
  border-radius: 32px;
  background-color: var(--white, #fff);
  box-shadow: 0px 7.77px 16px 0px rgba(0, 0, 0, 0.06), 0px 3px 3px 0px rgba(0, 0, 0, 0.1),
    0px -8px 0px 0px rgba(0, 0, 0, 0.05) inset, 0px 4px 0px 0px rgba(255, 255, 255, 0.6) inset;
}
.hx-product-logo img { max-height: 180px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 767px) {
  .hx-product-logo { min-height: 220px; padding: 32px; }
}

/* Rounded images used in content rows */
.hx-img { border-radius: 32px; overflow: hidden; height: 100%; }
.hx-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-img.ratio-wide { aspect-ratio: 16 / 10; }

/* Key-value spec rows */
.hx-spec { display: grid; gap: 0; }
.hx-spec .row-item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--neutral-200, #e4e4e7);
}
.hx-spec .row-item span:first-child { color: var(--neutral-500, #71717a); }
.hx-spec .row-item span:last-child { font-weight: 600; text-align: right; }

/* Section intro paragraph */
.hx-lead { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Portfolio "add your project" hint (visible only while content is pending) */
.hx-pending {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(253, 58, 37, 0.08); color: #b42318;
  font-size: 13px; font-weight: 600;
}

/* Portfolio gallery tiles */
.hx-tile {
  position: relative; border-radius: 32px; overflow: hidden; height: 100%;
  background: var(--neutral-100, #f4f4f5);
}
.hx-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.hx-tile:hover img { transform: scale(1.04); }
.hx-tile .hx-tile-body { padding: 24px 28px 28px; }
.hx-tile .hx-tile-body .cat { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--neutral-500, #71717a); margin-bottom: 6px; }

/* Buttons row */
.hx-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Software comparison table */
.hx-table-wrap { overflow-x: auto; border-radius: 32px; background: var(--white, #fff); padding: 8px 24px; }
.hx-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.hx-table th, .hx-table td { padding: 16px 12px; border-bottom: 1px solid var(--neutral-200, #e4e4e7); text-align: left; vertical-align: top; }
.hx-table tr:last-child td { border-bottom: 0; }
.hx-table th { font-weight: 600; }

/* Draft-only helpers: visible while <body> has class "hx-draft" */
.hx-draft-only { display: none !important; }
body.hx-draft .hx-draft-only { display: inline-flex !important; }

/* Tag pills rendered as <span> (non-clickable) – same look as the template's link tags */
.list-tags span.tags-item {
  display: flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 99px;
  color: var(--neutral-300);
  background: var(--neutral-700);
  border: 1px solid var(--neutral-600);
  font-size: 14px;
}

/* Portfolio category cards */
.hx-cat { display: flex; flex-direction: column; }
.hx-cat .hx-projects { display: grid; gap: 8px; margin-bottom: 20px; }
.hx-cat .hx-projects li { font-size: 15px; line-height: 1.45; }
.hx-cat .hx-count { margin-top: auto; color: var(--brand, #fd3a25); }

/* Stat boxes */
.hx-stat { padding: 32px; }
.hx-stat .hx-stat-num { font-size: 44px; line-height: 1.1; margin-bottom: 6px; }
@media (max-width: 767px) { .hx-stat .hx-stat-num { font-size: 34px; } }

/* Full-height video hero on inner pages: service detail block must not overlap it */
.section-hero + #main-content + .section-services-single { margin-top: 0 !important; padding-top: 80px !important; }

/* Project gallery with filters */
.hx-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.hx-filter {
  border: 1px solid var(--neutral-200, #e4e4e7); background: var(--white, #fff); color: var(--neutral-700, #3f3f46);
  border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.hx-filter span { opacity: .55; font-weight: 500; margin-left: 2px; }
.hx-filter:hover { border-color: var(--brand); color: var(--brand); }
.hx-filter.active { background: var(--neutral-900, #18181b); border-color: var(--neutral-900, #18181b); color: #fff; }
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hx-gitem { margin: 0; background: var(--white, #fff); border-radius: 24px; overflow: hidden;
  box-shadow: 0px 7.77px 16px 0px rgba(0,0,0,.06), 0px 3px 3px 0px rgba(0,0,0,.08); transition: transform .3s ease, box-shadow .3s ease; }
.hx-gitem:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.hx-gitem[hidden] { display: none !important; }
.hx-glink { display: block; background: #fff; cursor: zoom-in; }
.hx-glink img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; display: block; }
.hx-gitem figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; border-top: 1px solid var(--neutral-100, #f4f4f5); }
.hx-gitem figcaption .cat { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 575px) { .hx-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .hx-gitem figcaption { padding: 10px 12px 14px; font-size: 14px; } }

/* Lightbox */
.hx-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(9,9,11,.92); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.hx-lightbox[hidden] { display: none !important; }
.hx-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.hx-lightbox .hx-lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-weight: 600; padding: 0 16px; }
.hx-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.hx-lightbox button:hover { background: rgba(255,255,255,.25); }
.hx-lb-close { top: 16px; right: 16px; }
.hx-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.hx-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) { .hx-lightbox { padding: 70px 12px; } .hx-lb-prev, .hx-lb-next { top: auto; bottom: 50px; transform: none; } }
.hx-lightbox button { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; font-family: Arial, sans-serif; }

/* Native dropdown list: readable in Windows light & dark modes */
.hx-form select.hx-select option { color: #18181b; background-color: #ffffff; }

/* Footer logo tile – same size/shape as the template's 80px rounded logo */
footer .footer-content .hx-footer-logo {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; padding: 8px;
  border-radius: 20px; background: #ffffff;
  box-shadow: 0px 7.77px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 3px 0px rgba(0, 0, 0, 0.1),
    0px -6px 0px 0px rgba(0, 0, 0, 0.05) inset, 0px 4px 0px 0px rgba(255, 255, 255, 0.6) inset;
}
footer .footer-content .hx-footer-logo img { width: 100%; height: 100%; object-fit: contain; }
footer .footer-image { pointer-events: none; }

/* Contact / enquiry section: plain off-white panel (#FAFAFA) instead of a photo */
.section-contact .contact-image.hx-contact-plain { background-color: #FAFAFA; }

/* Home "Featured Works": project renders sit on white, shown whole */
.featured-works-item .image.hx-fw-image { background: #ffffff; aspect-ratio: 16 / 9; }
.featured-works-item .image.hx-fw-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
@media (max-width: 767px) { .featured-works-item .image.hx-fw-image { aspect-ratio: 4 / 3; } }

/* Coming-soon pages */
.hx-soon-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.hx-soon-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hx-soon-img { background: #ffffff; }
.hx-soon-img img { object-fit: contain !important; padding: 16px; }

/* Capabilities menu: keep items on one line + "Soon" tag */
.tf-header .sub-menu { min-width: max-content; }
.tf-header .sub-menu .item-link { white-space: nowrap; }
.hx-menu-soon {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: middle;
  color: #fff; background: var(--brand);
}

/* About: testimonial panel shows the client's logo */
.testimonial-image.hx-tes-logo { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.testimonial-image.hx-tes-logo img {
  aspect-ratio: auto; height: auto; max-height: 45%; width: 100%; object-fit: contain;
  background: #ffffff; padding: 40px 32px; border-radius: 24px;
}
.testimonial-image.hx-tes-logo .hx-tes-name {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; padding: 56px 24px; border-radius: 24px; background: #ffffff;
  color: #18181b; font-size: 26px; font-weight: 700; line-height: 1.25;
}
/* Testimonial slider no longer carries .tf-swiper (it caused a duplicate Swiper) – keep its slide sizing */
.swiper-testimonial .swiper-slide { height: auto; }
.swiper-testimonial .swiper-slide > * { height: 100%; }
@media (max-width: 767px) { .testimonial-image.hx-tes-logo .hx-tes-name { font-size: 22px; padding: 40px 20px; } }

/* Home FAQ: inline links to product/service pages */
.accordion-body a.hx-faq-link { color: var(--brand, #fd3a25); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.accordion-body a.hx-faq-link:hover { opacity: .8; }

/* Enquiry form: custom "I'm interested in" dropdown */
.hx-dd { position: relative; }
.hx-form select.hx-select.hx-dd-native {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; padding: 0; border: 0;
}
.hx-dd-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--neutral-200, #e4e4e7);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease;
}
.hx-dd-btn:focus-visible, .hx-dd.is-open .hx-dd-btn { outline: none; border-bottom-color: var(--brand, #fd3a25); }
.hx-dd-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-dd-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; font-size: 15px;
  color: var(--brand, #fd3a25); background: color-mix(in srgb, var(--brand, #fd3a25) 10%, transparent);
}
.hx-dd-arrow { flex: none; font-size: 14px; color: var(--neutral-500, #71717a); transition: transform .25s ease; }
.hx-dd.is-open .hx-dd-arrow { transform: rotate(180deg); color: var(--brand, #fd3a25); }

.hx-dd-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 50;
  max-height: min(520px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 20px; background: #ffffff;
  border: 1px solid var(--neutral-100, #f4f4f5);
  box-shadow: 0 24px 48px -12px rgba(24, 24, 27, .22), 0 4px 10px rgba(24, 24, 27, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.hx-dd.is-open .hx-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.hx-dd-group {
  padding: 10px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--neutral-400, #a1a1aa);
}
.hx-dd-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--neutral-100, #f4f4f5); padding-top: 12px; }
.hx-dd-opt {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px;
  color: #18181b; font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.hx-dd-opt .hx-dd-ic { width: 30px; height: 30px; font-size: 14px; color: var(--neutral-500, #71717a); background: var(--neutral-100, #f4f4f5); transition: all .15s ease; }
.hx-dd-opt .hx-dd-txt { flex: 1; }
.hx-dd-opt .hx-dd-tick { font-size: 13px; color: var(--brand, #fd3a25); opacity: 0; transform: scale(.6); transition: all .15s ease; }
.hx-dd-opt.is-active { background: var(--neutral-50, #fafafa); background: #f4f4f5; }
.hx-dd-opt.is-active .hx-dd-ic { color: var(--brand, #fd3a25); background: #ffffff; }
.hx-dd-opt.is-selected { color: var(--brand, #fd3a25); font-weight: 600; background: color-mix(in srgb, var(--brand, #fd3a25) 7%, #ffffff); }
.hx-dd-opt.is-selected .hx-dd-ic { color: #ffffff; background: var(--brand, #fd3a25); }
.hx-dd-opt.is-selected .hx-dd-tick { opacity: 1; transform: none; }
.hx-dd-panel::-webkit-scrollbar { width: 6px; }
.hx-dd-panel::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 6px; }
@media (max-width: 575px) { .hx-dd-opt { font-size: 14px; } }

/* Capability / feature card rows: every card the same height */
.row.hx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.row.hx-cards > [class*="col-"] { display: flex; flex: none; width: 100%; max-width: 100%; }
.row.hx-cards > [class*="col-"] > * { display: flex; width: 100%; }
.row.hx-cards .features-item { width: 100%; height: 100%; }
@media (max-width: 991px) { .row.hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .row.hx-cards { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } }


/* ==========================================================================
   PHONE-ONLY FIXES (Oct 2026) - applies only below 768px screen width.
   Computer / laptop / tablet-landscape layouts are not affected.
   ========================================================================== */
@media (max-width: 767px) {
  /* Hero label wraps inside the screen instead of pushing the page sideways */
  .section-hero .content-wrap .sub { width: auto; max-width: 100%; text-align: center; }

  /* Check-list lines that contain bold words wrap like normal text */
  .list-text.type-check li:has(> strong) { display: block; position: relative; padding-left: 30px; }
  .list-text.type-check li:has(> strong) > .icon { position: absolute; left: 0; top: 2px; }

  /* Tables turn into stacked rows that fit the screen (no sideways swipe) */
  .hx-table-wrap { overflow-x: visible; padding: 4px 18px; border-radius: 24px; }
  .hx-table { min-width: 0; }
  .hx-table thead { display: none; }
  .hx-table, .hx-table tbody, .hx-table tr, .hx-table td { display: block; width: 100%; }
  .hx-table tr { padding: 14px 0; border-bottom: 1px solid var(--neutral-200, #e4e4e7); }
  .hx-table tr:last-child { border-bottom: 0; }
  .hx-table td { padding: 2px 0; border-bottom: 0; }
  .hx-table td:first-child { font-weight: 600; padding-bottom: 4px; }
  .hx-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--black, #111); }
}


/* FLOATING CALL / WHATSAPP BUTTONS (Oct 2026) - bottom-left, clear of #goTop on the right. */
.hx-float { position: fixed; left: 20px; bottom: 40px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.hx-float-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .25s ease, box-shadow .25s ease; }
.hx-float-btn svg { width: 23px; height: 23px; fill: currentColor; }
.hx-float-btn:hover, .hx-float-btn:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.hx-float-call, .hx-float-wa { background: var(--brand, #FD3A25); }
.hx-float-tip { position: absolute; left: 64px; white-space: nowrap; background: #111; color: #fff; font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.hx-float-btn:hover .hx-float-tip, .hx-float-btn:focus-visible .hx-float-tip { opacity: 1; }
@media (max-width: 767px) {
  .hx-float { left: 14px; bottom: 20px; gap: 10px; }
  .hx-float-btn { width: 48px; height: 48px; }
  .hx-float-btn svg { width: 21px; height: 21px; }
  .hx-float-tip { display: none; }
}
