/* =========================================================
   FONT FACE
========================================================= */

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Black.woff2") format("woff2"),
    url("../fonts/Roboto-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-ExtraBold.woff2") format("woff2"),
    url("../fonts/Roboto-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Bold.woff2") format("woff2"),
    url("../fonts/Roboto-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-SemiBold.woff2") format("woff2"),
    url("../fonts/Roboto-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Medium.woff2") format("woff2"),
    url("../fonts/Roboto-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Regular.woff2") format("woff2"),
    url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Light.woff2") format("woff2"),
    url("../fonts/Roboto-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-ExtraLight.woff2") format("woff2"),
    url("../fonts/Roboto-ExtraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
  --primary-color: #4f46e5;
  --text-color: #111827;
  --body-bg: #fafafa;
  --border-color: #d8e3ff;
  --color-secondary: #c026d3;
}

/* =========================================================
   GLOBAL RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--body-bg);
  color: var(--text-color);
}

/* =========================================================
   MEDIA ELEMENTS
========================================================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* =========================================================
   LIST
========================================================= */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   TEXT SELECTION
========================================================= */

::selection {
  background: var(--primary-color);
  color: #ffffff;
}

/* =========================================================
   COMMON UTILITIES
========================================================= */

.container,
.container-fluid {
  width: 100%;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* =========================================================
   HERO FLOAT ANIMATION
========================================================= */

@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-float-card {
  animation: hero-float 6s ease-in-out infinite;
  will-change: transform;
}

.hero-delay-1 {
  animation-delay: -2s;
}

.hero-delay-2 {
  animation-delay: -4s;
}

/* =========================================================
   HERO TECH MARQUEE
========================================================= */

@keyframes hero-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-tech-track {
  width: max-content;
  animation: hero-marquee 16s linear infinite;
  will-change: transform;
}

.hero-tech-marquee:hover .hero-tech-track {
  animation-play-state: paused;
}

/* =========================================================
   HERO TECH MASK
========================================================= */

.hero-tech-mask {
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      #000 18%,
      #000 82%,
      transparent 100%);

  mask-image: linear-gradient(to right,
      transparent 0,
      #000 18%,
      #000 82%,
      transparent 100%);
}

/* =========================================================
   HORIZONTAL SCROLLBAR HIDE
========================================================= */

.hero-cat-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-cat-scroll::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   SMOOTH TRANSITIONS
========================================================= */

a,
button,
input,
textarea,
select,
svg,
img {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   HEADER
========================================================= */

/* NOTE: Do not add `will-change: transform` (or `transform`) to
   #site-header — it makes the header a containing block for its
   `position: fixed` children, which collapses the mobile menu
   (#mobile-menu uses top/bottom against the viewport). */

#header-bar {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* =========================================================
 * MEGA MENU (Desktop)
 * =======================================================*/
.mega-root .mega-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s ease-out,
    visibility 0.25s ease-out,
    transform 0.25s ease-out;
}

.mega-root:hover .mega-panel,
.mega-root:focus-within .mega-panel,
.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-notch {
  position: absolute;
  top: 10px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
  box-shadow: -1px -1px 0 rgba(0, 0, 0, 0.04);
  z-index: 1;
}

/* Chevron rotation on hover */
.mega-chev {
  transition: transform 0.25s ease-out;
}

.mega-root:hover .mega-chev,
.mega-root:focus-within .mega-chev {
  transform: rotate(180deg);
}

/* Mega shadow fallback (if Tailwind doesn't have shadow-mega) */
.shadow-mega {
  box-shadow:
    0 20px 50px -12px rgba(0, 0, 0, 0.15),
    0 8px 20px -8px rgba(0, 0, 0, 0.08);
}

/* =========================================================
 * MOBILE MENU
 * =======================================================*/
.mobile-menu {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out,
    visibility 0.3s ease-out;
}

.mobile-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-backdrop {
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-out,
    visibility 0.3s ease-out;
}

.mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Hide mobile UI on desktop unconditionally */
@media (min-width: 1024px) {

  .mobile-menu,
  .mobile-backdrop {
    display: none !important;
  }
}

/* =========================================================
 * MOBILE ACCORDION
 * =======================================================*/
.mobile-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.mobile-acc.is-open .mobile-acc__panel {
  max-height: 1200px;
}

.mobile-acc__chev {
  transition: transform 0.3s ease-out;
}

.mobile-acc.is-open .mobile-acc__chev {
  transform: rotate(180deg);
}

/* Card grid inside mobile accordion */
.sub-card-grid-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 4px 0 12px;
}

@media (min-width: 480px) {
  .sub-card-grid-mobile {
    grid-template-columns: 1fr 1fr;
  }
}


@media screen {
  .admin-bar #site-header {
    margin-top: 32px !important;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    margin-top: 46px !important;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar #site-header:has(.shadow-nav-float) {
    margin-top: 0 !important;
  }
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.newsletter-shortcode-wrap .wpcf7 input[type="email"] {
  border: 0;
  font-size: 14px;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 9999px;
  flex: 1 1 0%;
  height: 3rem;
  width: 100%;
}

.newsletter-shortcode-wrap .wpcf7 input[type="submit"] {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: #4f46e5;
  border-radius: 9999px;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  height: 3rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .newsletter-shortcode-wrap .wpcf7 input[type="email"] {
    border: 1px solid #4f46e5;
  }
}

.newsletter-shortcode-wrap .wpcf7-spinner {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
  word-break: normal !important;
}


.woocommerce button.single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  background: #c026d3;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-shortcode-wrap .wpcf7 input[type="submit"]:hover,
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover,
.wpcf7-form input[type="submit"]:hover {
  background-color: #4338ca;
  color: #fff;
  text-decoration: none;
}

.custom_color {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7479%) hue-rotate(70deg) brightness(99%) contrast(107%);
}

.woocommerce-tabs {
  margin-top: 0rem;
}

/* =========================================================
   WOOCOMMERCE — Cart & Checkout buttons
   Match the theme's button styling (pill shape, brand
   indigo -> purple gradient for primary actions, outline
   pill for secondary actions). Scoped to the cart/checkout
   body classes so the product-page add-to-cart button and
   other WooCommerce buttons elsewhere are left untouched.
========================================================= */

/* Shared pill shape for every cart/checkout button */
.woocommerce-cart .woocommerce a.button,
.woocommerce-cart .woocommerce button.button,
.woocommerce-cart .woocommerce input.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .woocommerce a.button,
.woocommerce-checkout .woocommerce button.button,
.woocommerce-checkout .woocommerce input.button,
.woocommerce-checkout #place_order {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Primary actions — Proceed to checkout, Place order, any .alt button */
.woocommerce-cart .woocommerce a.button.alt,
.woocommerce-cart .woocommerce button.button.alt,
.woocommerce-cart .woocommerce input.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .woocommerce a.button.alt,
.woocommerce-checkout .woocommerce button.button.alt,
.woocommerce-checkout .woocommerce input.button.alt,
.woocommerce-checkout #place_order {
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.5);
}

.woocommerce-cart .woocommerce a.button.alt:hover,
.woocommerce-cart .woocommerce button.button.alt:hover,
.woocommerce-cart .woocommerce input.button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout .woocommerce a.button.alt:hover,
.woocommerce-checkout .woocommerce button.button.alt:hover,
.woocommerce-checkout .woocommerce input.button.alt:hover,
.woocommerce-checkout #place_order:hover {
  background: linear-gradient(to right, #4338ca, #6d28d9);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -10px rgba(79, 70, 229, 0.55);
}

/* Secondary actions — Update cart, Apply coupon, etc. (outline pill).
   Primary .alt / #place_order rules above win via higher specificity. */
.woocommerce-cart .woocommerce a.button,
.woocommerce-cart .woocommerce button.button,
.woocommerce-cart .woocommerce input.button,
.woocommerce-checkout .woocommerce a.button,
.woocommerce-checkout .woocommerce button.button,
.woocommerce-checkout .woocommerce input.button {
  background: #fff;
  color: #374151;
  border-color: #e5e7eb;
}

.woocommerce-cart .woocommerce a.button:hover,
.woocommerce-cart .woocommerce button.button:hover,
.woocommerce-cart .woocommerce input.button:hover,
.woocommerce-checkout .woocommerce a.button:hover,
.woocommerce-checkout .woocommerce button.button:hover,
.woocommerce-checkout .woocommerce input.button:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #f9fafb;
}

/* Disabled / processing state stays on-brand but muted */
.woocommerce-cart .woocommerce button.button:disabled,
.woocommerce-cart .woocommerce button.button[disabled],
.woocommerce-checkout .woocommerce button.button:disabled,
.woocommerce-checkout #place_order:disabled,
.woocommerce-checkout #place_order[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
}