/*
Theme Name: Astra Child
Template: astra
Version: 1.2
*/

/* =========================================
   DESIGN TOKENS
========================================= */

:root {
  /* Base palette */
  --bg: #07111f;
  --bg-2: #0a1020;
  --bg-3: #0f1b33;

  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --surface-alt: rgba(255, 255, 255, 0.05);

  --text: #e5eefc;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);

  --primary: #e5eefc;
  --primary-2: #cbd5e1;
  --accent: #60a5fa;
  --accent-2: #8b5cf6;
  --success: #22c55e;
  --danger: #f87171;
  --warning: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.42);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1180px;
  --container-narrow: 980px;
  --section-y: 92px;
  --section-y-mobile: 68px;
  --page-x: 20px;
  --page-x-mobile: 16px;

  /* Spacing */
  --space-2xs: 6px;
  --space-xs: 10px;
  --space-sm: 14px;
  --space-md: 20px;
  --space-lg: 28px;
  --space-xl: 40px;
  --space-2xl: 56px;

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --trans-fast: 140ms ease;
  --trans-base: 220ms ease;
  --trans-slow: 320ms ease;

  /* Background helpers */
  --bg-page:
    radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.12), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.12), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(34, 197, 94, 0.06), transparent 20%),
    linear-gradient(180deg, #050810 0%, #070b14 50%, #0a1020 100%);

  --bg-page-overlay:
    radial-gradient(circle at 12% 10%, rgba(96, 165, 250, 0.08), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.06), transparent 16%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.03), transparent 22%);

  --bg-section:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.00));

  --bg-card:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(15, 23, 42, 0.74);

  --bg-card-hover:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
    rgba(15, 23, 42, 0.82);

  --bg-hero:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.20), transparent 30%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.18), transparent 28%),
    linear-gradient(135deg, #0b1220, #111a2e 45%, #0f172a);

  --bg-hero-overlay:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.05), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);

  --bg-cta:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 26%),
    linear-gradient(135deg, #0b1220, #10192d);

  --bg-footer:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.08), transparent 22%),
    linear-gradient(180deg, #050810 0%, #070b14 60%, #050810 100%);

  --bg-footer-overlay:
    radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.08), transparent 18%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 16%);
}

/* =========================================
   BASE
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

html[dir="rtl"] body,
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body,
body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-base), opacity var(--trans-base);
}

a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.02em;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(96, 165, 250, 0.25);
  color: #fff;
}

:focus {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 3px;
}

/* =========================================
   SHARED PAGE WRAPPERS
========================================= */

.home-page,
.services-page,
.about-page,
.contact-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.60), rgba(10, 16, 32, 0.80));
}

.home-page,
.services-page,
.about-page,
.contact-page,
.section,
.hero,
.page-hero,
.service-hero,
.shop-hero,
.cta-section,
.alt-section,
.site-footer,
.footer {
  position: relative;
}

.home-page::before,
.services-page::before,
.about-page::before,
.contact-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--bg-page-overlay);
  z-index: -1;
}

.home-page::after,
.services-page::after,
.about-page::after,
.contact-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.10), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.10), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(34, 197, 94, 0.05), transparent 18%);
  z-index: -1;
}

.section,
.hero,
.page-hero,
.service-hero,
.shop-hero,
.cta-section,
.alt-section {
  width: 100%;
  overflow: visible;
}

.container,
.site-container,
.content-container {
  width: min(var(--container), calc(100% - 2 * var(--page-x)));
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* =========================================
   SECTION BACKGROUNDS
========================================= */

.section {
  padding: var(--section-y) 0;
  background: var(--bg-section);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(109, 124, 255, 0.08), transparent 34%);
  opacity: 0.85;
}

.section.alt-1 {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.00), rgba(9, 18, 33, 0.30)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.section.alt-2 {
  background:
    linear-gradient(180deg, rgba(11, 23, 40, 0.10), rgba(15, 27, 51, 0.30)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.00));
}

.section.alt-3 {
  background:
    linear-gradient(180deg, rgba(15, 27, 51, 0.12), rgba(7, 17, 31, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
}

.section.soft-divider {
  padding-top: 0;
}

/* =========================================
   HERO / LANDING SECTIONS
========================================= */

.hero,
.page-hero,
.service-hero,
.shop-hero {
  padding: 126px 0 90px;
  color: #fff;
  background: var(--bg-hero);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.hero::before,
.page-hero::before,
.service-hero::before,
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-hero-overlay);
  pointer-events: none;
}

.hero .container,
.page-hero .container,
.service-hero .container,
.shop-hero .container {
  position: relative;
  z-index: 1;
  max-width: var(--container-narrow);
  text-align: center;
}

.hero h1,
.page-hero h1,
.service-hero h1,
.shop-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero p,
.page-hero p,
.service-hero p,
.shop-hero p {
  max-width: 760px;
  margin-inline: auto;
  font-size: 18px;
  color: rgba(226, 232, 240, 0.86);
}

.hero .btn,
.page-hero .btn,
.service-hero .btn,
.shop-hero .btn {
  margin-top: 24px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.22), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.18), transparent 34%);
  opacity: 0.85;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =========================================
   LAYOUT HELPERS
========================================= */

.section-title {
  font-size: clamp(28px, 3vw, 46px);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.section-subtitle {
  max-width: 760px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 28px;
  text-align: center;
}

.center {
  text-align: center;
}

.stack {
  display: grid;
  gap: 18px;
}

.grid-2,
.grid-3,
.grid-4,
.services-grid,
.stats,
.footer-grid,
.grid.products,
.grid.cards,
.grid.services,
.grid.posts,
.testimonials .grid,
.services-page .services-grid,
.services-page .stats {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.grid.products,
.grid.cards,
.grid.services,
.grid.posts,
.testimonials .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.stats,
.services-grid,
.services-page .services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================
   BUTTONS
========================================= */

.btn,
.button,
button,
input[type="submit"],
input[type="button"],
.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--trans-base),
    box-shadow var(--trans-base),
    opacity var(--trans-base),
    border-color var(--trans-base),
    background var(--trans-base),
    color var(--trans-base);
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn:active,
.button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active,
.elementor-button:active {
  transform: translateY(0);
}

.btn.secondary,
.button.secondary,
.elementor-button.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover,
.button.secondary:hover,
.elementor-button.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn.light {
  background: rgba(255, 255, 255, 0.95);
  color: #0b1220;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn.light:hover {
  color: #0b1220;
}

.btn.full {
  width: 100%;
}

/* =========================================
   INPUTS / FORMS
========================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  box-shadow: none;
  transition: border-color var(--trans-base), box-shadow var(--trans-base), background var(--trans-base), transform var(--trans-base);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(148, 163, 184, 0.24);
}

input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* =========================================
   CARDS
========================================= */

.card,
.service-card,
.info-card,
.feature-card,
.post-card,
.product-card,
.pricing-card,
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--trans-base),
    box-shadow var(--trans-base),
    border-color var(--trans-base),
    background var(--trans-base);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.card:hover,
.service-card:hover,
.info-card:hover,
.feature-card:hover,
.post-card:hover,
.product-card:hover,
.pricing-card:hover,
.testimonial-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: rgba(96, 165, 250, 0.28);
  background: var(--bg-card-hover);
}

.card-inner {
  padding: 22px;
}

.card img,
.service-card img,
.info-card img,
.feature-card img,
.post-card img,
.product-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.glass {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
}

/* =========================================
   BADGES / TAGS / CHIPS
========================================= */

.badge,
.tag,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  border: 1px solid var(--border);
}

.badge.primary {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.22);
}

.badge.success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.22);
}

.badge.danger {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.22);
}

/* =========================================
   CTA BLOCKS
========================================= */

.cta,
.cta-section {
  text-align: center;
  background: var(--bg-cta);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 76px 24px;
  margin: 0 var(--page-x);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.cta::before,
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.06), transparent 16%);
  pointer-events: none;
}

.cta > *,
.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta h2,
.cta-section h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 12px;
}

.cta p,
.cta-section p {
  max-width: 700px;
  margin-inline: auto;
  color: rgba(226, 232, 240, 0.82);
}

/* =========================================
   SERVICES PAGE
========================================= */

.services-page {
  width: 100%;
  isolation: isolate;
}

.services-page .hero,
.services-page .page-hero,
.services-page .service-hero,
.services-page .shop-hero {
  padding-top: 126px;
  padding-bottom: 126px;
}

.services-page .section,
.services-page .services,
.services-page .features,
.services-page .contact,
.services-page .about,
.services-page .cta-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.services-page .card,
.services-page .service-card,
.services-page .info-card,
.services-page .feature-card {
  height: 100%;
}

.services-page .grid-2,
.services-page .grid-3,
.services-page .services-grid,
.services-page .stats {
  gap: 24px;
}

/* =========================================
   TOP BAR / ASTRA HEADER / HTML BLOCKS
========================================= */

.ast-above-header,
.ast-above-header-wrap,
.ast-builder-header-actual-row-1 {
  background: rgba(8, 12, 22, 0.80);
  color: var(--text-strong);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
}

.ast-above-header .ast-builder-html-element,
.ast-above-header .ast-builder-text-element,
.ast-above-header .ast-header-social-wrap,
.ast-above-header .ast-header-contact-info-wrap {
  color: var(--text-strong);
}

.ast-above-header a,
.ast-above-header a:visited {
  color: #fff;
  transition: color var(--trans-base), opacity var(--trans-base);
}

.ast-above-header a:hover {
  color: var(--accent);
}

.topbar-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 6px 0;
  font-size: 14px;
}

.topbar-custom .topbar-left,
.topbar-custom .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-custom .topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 232, 240, 0.90);
}

.topbar-custom .topbar-right a {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.topbar-custom .topbar-right a:hover {
  color: var(--accent);
  opacity: 1;
}

.ast-primary-header-bar {
  background: rgba(10, 16, 32, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  backdrop-filter: blur(14px);
}

.ast-primary-header-bar a {
  color: #fff;
}

.ast-primary-header-bar a:hover {
  color: var(--accent);
}

/* Custom navbar classes from functions.php */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(6, 10, 18, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-sm);
}

.site-brand-text {
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: rgba(226, 232, 240, 0.92);
  font-weight: 700;
  transition: background var(--trans-base), color var(--trans-base), transform var(--trans-base);
}

.topbar-link:hover,
.topbar-link:focus-visible {
  background: rgba(96, 165, 250, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  color: #0b1220;
  background: linear-gradient(135deg, #ffffff, #d9e7ff);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.topbar-cta:hover {
  color: #0b1220;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.topbar-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 0;
}

.topbar-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  margin: 4px auto;
}

/* =========================================
   MARKETPLACE LAYOUT
========================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.search {
  flex: 1;
  max-width: 520px;
}

.search input {
  width: 100%;
  border-radius: var(--radius-pill);
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.cart {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.layout {
  display: flex;
  gap: 22px;
  padding: 24px 20px;
  align-items: flex-start;
}

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  height: fit-content;
  backdrop-filter: blur(14px);
}

.sidebar h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #fff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.sidebar li {
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  cursor: pointer;
}

.sidebar li:last-child {
  border-bottom: 0;
}

.main {
  flex: 1;
  min-width: 0;
}

.filter-bar,
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar button,
.shop-filters button {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--trans-base), color var(--trans-base), border-color var(--trans-base), transform var(--trans-base);
}

.filter-bar button:hover,
.shop-filters button:hover,
.filter-bar button:focus-visible,
.shop-filters button:focus-visible {
  background: rgba(96, 165, 250, 0.18);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-1px);
}

/* =========================================
   PRODUCT / POST / SERVICES GRIDS
========================================= */

.product-card,
.post-card {
  display: flex;
  flex-direction: column;
}

.product-card .content,
.post-card .content {
  padding: 18px;
}

.price {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.price .old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-inline-start: 8px;
  font-size: 14px;
}

.add,
.buy,
.cta-button {
  width: 100%;
  margin-top: 14px;
}

/* =========================================
   STATISTICS / TRUST BARS
========================================= */

.stats {
  gap: 20px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  backdrop-filter: blur(14px);
}

.stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
}

/* =========================================
   TESTIMONIALS
========================================= */

.testimonials {
  padding: var(--section-y) 20px;
}

.testimonial-card {
  padding: 24px;
}

.testimonial-card .quote {
  font-size: 18px;
  color: #fff;
  margin-bottom: 18px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================
   FAQ
========================================= */

.faq {
  padding: var(--section-y) 20px;
}

.faq-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

/* =========================================
   TABLES
========================================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--text);
}

th {
  text-align: right;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

tr:last-child td {
  border-bottom: 0;
}

/* =========================================
   WORDPRESS / ASTRA / ELEMENTOR OVERRIDES
========================================= */

.site-content,
.ast-container,
.entry-content {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.elementor-widget-html,
.elementor-widget-text-editor {
  color: inherit;
  width: 100%;
}

.elementor-widget-html p,
.elementor-widget-text-editor p {
  color: inherit;
}

.elementor-section {
  background-size: cover;
  background-position: center;
}

.elementor-button {
  border-radius: 12px !important;
  padding: 12px 20px !important;
}

.elementor-widget-html .home-page,
.elementor-widget-html .services-page,
.elementor-widget-html .about-page,
.elementor-widget-html .contact-page,
.elementor-widget-html .home-page .hero,
.elementor-widget-html .services-page .hero,
.elementor-widget-html .about-page .hero,
.elementor-widget-html .contact-page .hero {
  width: 100%;
}

/* =========================================
   FOOTER
========================================= */

.site-footer,
.footer {
  padding: 56px 20px 0;
  background: var(--bg-footer);
  color: rgba(226, 232, 240, 0.84);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  overflow: hidden;
}

.site-footer::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-footer-overlay);
  pointer-events: none;
}

.site-footer a,
.footer a {
  color: #fff;
}

.footer-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-bottom: 28px;
}

.footer-col {
  min-width: 0;
}

.footer h3,
.footer h4,
.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.footer p,
.site-footer p {
  color: rgba(226, 232, 240, 0.72);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(226, 232, 240, 0.84);
  transition: color var(--trans-base), transform var(--trans-base), opacity var(--trans-base);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  transform: translateX(-2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  font-size: 14px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(226, 232, 240, 0.82);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* =========================================
   UTILITIES
========================================= */

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.muted { color: var(--muted) !important; }
.primary { color: var(--accent) !important; }

.hidden { display: none !important; }
.inline-block { display: inline-block !important; }
.w-full { width: 100% !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--text);
}

.clean-list li:last-child {
  border-bottom: 0;
}

/* =========================================
   PAGE POLISH
========================================= */

.alt-section {
  padding: var(--section-y) 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

.services,
.features,
.about,
.contact,
.faq,
.testimonials {
  padding-left: 20px;
  padding-right: 20px;
}

.stats-section {
  padding-top: 0;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {
  .grid.products,
  .grid.cards,
  .grid.services,
  .grid.posts,
  .testimonials .grid,
  .services-page .services-grid,
  .grid-4,
  .stats,
  .footer-grid,
  .services-grid,
  .services-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-brand {
    width: 100%;
    justify-content: center;
  }

  .topbar-cta {
    margin-inline-start: auto;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-basis: auto;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    max-width: none;
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .services-page .grid-2,
  .services-page .grid-3,
  .grid.products,
  .grid.cards,
  .grid.services,
  .grid.posts,
  .testimonials .grid,
  .services-grid,
  .services-page .services-grid,
  .stats,
  .services-page .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar-custom {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
  }

  .topbar-cta {
    width: 100%;
    order: 4;
    justify-content: center;
  }

  .topbar-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: var(--section-y-mobile);
  }

  body {
    background-attachment: scroll;
  }

  .container,
  .site-container,
  .content-container {
    width: min(var(--container), calc(100% - 2 * var(--page-x-mobile)));
  }

  .hero,
  .page-hero,
  .service-hero,
  .shop-hero {
    padding: 88px 0 72px;
  }

  .hero h1,
  .page-hero h1,
  .service-hero h1,
  .shop-hero h1 {
    font-size: 30px;
  }

  .section-title {
    font-size: 26px;
  }

  .grid.products,
  .grid.cards,
  .grid.services,
  .grid.posts,
  .services .grid,
  .features .grid,
  .testimonials .grid,
  .grid-4,
  .stats,
  .footer-grid,
  .services-page .services-grid,
  .services-grid,
  .services-page .stats {
    grid-template-columns: 1fr;
  }

  .cta,
  .cta-section {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .topbar {
    padding: 14px 16px;
  }

  .layout {
    padding: 18px 14px;
  }

  .services,
  .features,
  .about,
  .contact,
  .faq,
  .testimonials,
  .alt-section {
    padding-left: 0;
    padding-right: 0;
  }

  .services-page .section,
  .services-page .services,
  .services-page .features,
  .services-page .contact,
  .services-page .about,
  .services-page .cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  .topbar-custom .topbar-left,
  .topbar-custom .topbar-right {
    gap: 8px;
  }

  .topbar-nav {
    flex-direction: column;
    width: 100%;
    border-radius: 22px;
    padding: 10px;
  }

  .topbar-nav a,
  .topbar-link {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .button:hover,
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover,
  .elementor-button:hover,
  .card:hover,
  .service-card:hover,
  .info-card:hover,
  .feature-card:hover,
  .post-card:hover,
  .product-card:hover,
  .pricing-card:hover,
  .testimonial-card:hover,
  .topbar-link:hover,
  .topbar-cta:hover,
  .footer-links a:hover,
  .filter-bar button:hover,
  .shop-filters button:hover {
    transform: none !important;
  }
}