/* global.css — tokens, base, layout, components (Inter via Google Fonts in head.php) */

/**
 * Design tokens
 * Spacing follows 8px grid (0.5rem base)
 */
:root {
  color-scheme: light;
  /* —— Color primitives —— */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f8f8f8;
  --color-neutral-100: #f0f0f0;
  --color-neutral-200: #e2e2e2;
  --color-neutral-400: #9c9c9c;
  --color-neutral-500: #868686;
  --color-neutral-700: #4c4c4c;
  --color-neutral-800: #383838;
  --color-neutral-900: #262626;
  --color-neutral-950: #1f1f1f;
  --color-neutral-1000: #0d0d0d;

  --color-brand-400: #3086f3;
  --color-brand-500: #2563c7;
  --color-brand-900: #0f0c16;
  --color-accent-300: #f1caff;
  --color-star: #f3b000;
  --color-border-soft: #ccd6eb;

  --color-neutral-0-rgb: 255, 255, 255;
  --color-neutral-950-rgb: 31, 31, 31;
  --color-brand-400-rgb: 48, 134, 243;

  /* —— Semantic colors —— */
  --color-bg: var(--color-neutral-0);
  --color-bg-muted: var(--color-neutral-50);
  --color-bg-inverse: var(--color-neutral-1000);
  --color-bg-elevated: var(--color-neutral-0);

  --color-text: var(--color-neutral-900);
  --color-text-secondary: var(--color-neutral-500);
  --color-text-muted: #5b5b5b;
  --color-text-inverse: var(--color-neutral-0);

  --color-border: var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-700);
  --color-focus: var(--color-brand-400);

  --color-link: var(--color-brand-400);
  --color-link-hover: var(--color-brand-900);

  --color-btn-primary-bg: var(--color-neutral-950);
  --color-btn-primary-fg: var(--color-neutral-0);
  --color-btn-primary-hover-bg: var(--color-neutral-1000);

  /* Gradients */
  --gradient-hero: linear-gradient(
    110deg,
    var(--color-brand-900) 2%,
    #24183f 12%,
    var(--color-brand-400) 49%,
    var(--color-accent-300) 100%
  );
  --gradient-hero-radial: radial-gradient(
    circle at 31% 50%,
    rgba(170, 60, 156, 0.35) 0%,
    transparent 70%
  );

  /* —— Typography —— */
  --font-family-display: "Inter", system-ui, sans-serif;
  --font-family-body: "Inter", system-ui, sans-serif;

  --font-size-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  --font-size-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --font-size-base: 1rem;
  --font-size-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --font-size-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --font-size-xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --font-size-2xl: clamp(2rem, 1.6rem + 1.5vw, 3rem);

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.15;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-wide: 0.08em;

  /* —— Spacing (8px grid) —— */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* —— Layout —— */
  --container-max: 90rem; /* 1440px */
  --container-padding: clamp(var(--space-4), 4vw, var(--space-10));
  --header-height: 5.0625rem;
  --section-padding-y: clamp(var(--space-10), 6vw, var(--space-20));
  --content-max-prose: 31.8125rem;

  /* —— Radius —— */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1.75rem;
	--radius-xl: 2.5rem;
  --radius-pill: 999px;
  --radius-full: 50%;

  /* —— Shadows —— */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 4px 5px rgba(0, 0, 0, 0.1);
  --shadow-btn-rest: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-btn-hover: 0 14px 32px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.1);
  --shadow-btn-white-rest: 0 4px 16px rgba(0, 0, 0, 0.14);
  --shadow-btn-white-hover: 0 16px 36px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.12);

  /* —— Z-index —— */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;

  /* —— Motion —— */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-button: cubic-bezier(0.22, 1, 0.36, 1);

  /* —— Breakpoints (reference) —— */
  --bp-sm: 30rem;
  --bp-md: 48rem;
  --bp-lg: 64rem;
  --bp-xl: 80rem;
  --bp-2xl: 90rem;

  /* Legacy aliases (deprecate gradually) */
  --color-white: var(--color-neutral-0);
  --color-white-rgb: var(--color-neutral-0-rgb);
  --color-black: #000000;
  --color-main: var(--color-neutral-950);
  --color-text-main: var(--color-neutral-900);
  --color-text-body: var(--color-neutral-500);
  --color-primary: var(--color-brand-400);
  --color-primary-rgb: var(--color-brand-400-rgb);
  --color-primary-light: var(--color-neutral-50);
  --color-hero-overlay: var(--gradient-hero);
  --color-primary-gradient: var(--gradient-hero);
  --color-hero-radial: var(--gradient-hero-radial);
  --shadow-soft: var(--shadow-lg);
  --font-display: var(--font-family-display);
  --font-body: var(--font-family-body);
}

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

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@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;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  overflow-x: clip;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

p {
  margin-block-end: var(--space-4);
  text-wrap: balance;
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

/* Text links only — not buttons or nav */
a:where(:not(.btn):not(.btn-default):not(.btn--primary):not(.btn--white):not(.btn--ghost):not(.btn-outline-link):not(.product-card-link):not(.nav__link):not(.nav .dropdown > a):not(.nav .dropdown ul a):not(.header__phone):not(.header__logo):not(.site-footer__cta)):hover,
a:where(:not(.btn):not(.btn-default):not(.btn--primary):not(.btn--white):not(.btn--ghost):not(.btn-outline-link):not(.product-card-link):not(.nav__link):not(.nav .dropdown > a):not(.nav .dropdown ul a):not(.header__phone):not(.header__logo):not(.site-footer__cta)):focus {
  color: var(--color-link-hover);
}

.lead {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  max-width: var(--content-max-prose);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__main {
  flex: 1;
}

.page__main--offset {
  padding: calc(var(--header-height) + 120px) 0 80px;
}

/* Site buttons (extends Bootstrap .btn) */
a.btn,
a.btn-default,
a.btn--primary,
a.btn--white,
a.btn--ghost,
a.btn-outline-link,
a.product-card-link {
  text-decoration: none;
}

a.btn:hover,
a.btn:focus,
a.btn-default:hover,
a.btn-default:focus,
a.btn--primary:hover,
a.btn--primary:focus,
a.btn-outline-link:hover,
a.btn-outline-link:focus {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 2.625rem;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition:
    background-color var(--duration-base) var(--ease-button),
    border-color var(--duration-base) var(--ease-button),
    color var(--duration-base) var(--ease-button),
    box-shadow var(--duration-base) var(--ease-button),
    transform var(--duration-base) var(--ease-button);
}

.btn--primary {
  background-color: var(--color-btn-primary-bg);
  border-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-fg);
  box-shadow: var(--shadow-btn-rest);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-neutral-800);
  border-color: var(--color-neutral-800);
  color: var(--color-btn-primary-fg);
  transform: translate3d(0, -3px, 0);
  box-shadow: var(--shadow-btn-hover);
}

.btn--primary:active {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.btn--white {
  background-color: var(--color-neutral-0);
  border-color: var(--color-neutral-0);
  color: var(--color-neutral-950);
  box-shadow: var(--shadow-btn-white-rest);
}

.btn--white:hover,
.btn--white:focus-visible {
  background-color: var(--color-neutral-0);
  border-color: var(--color-neutral-0);
  color: var(--color-neutral-950);
  transform: translate3d(0, -3px, 0);
  box-shadow: var(--shadow-btn-white-hover);
}

.btn--white:active {
  transform: translate3d(0, -1px, 0);
  box-shadow: var(--shadow-btn-white-rest);
}

.btn--ghost {
  padding: var(--space-3) var(--space-4);
  border-color: var(--color-border);
  color: var(--color-neutral-950);
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-neutral-950);
  color: var(--color-neutral-950);
  background: var(--color-neutral-50);
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:active {
  transform: translate3d(0, 0, 0);
}

/* Legacy aliases */
.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 2.625rem;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transform: translate3d(0, 0, 0);
  transition:
    background-color var(--duration-base) var(--ease-button),
    border-color var(--duration-base) var(--ease-button),
    color var(--duration-base) var(--ease-button),
    box-shadow var(--duration-base) var(--ease-button),
    transform var(--duration-base) var(--ease-button);
}

.btn-default.btn-dark {
  background-color: var(--color-btn-primary-bg);
  border-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-fg);
  box-shadow: var(--shadow-btn-rest);
}

.btn-default.btn-dark:hover,
.btn-default.btn-dark:focus-visible {
  background-color: var(--color-neutral-800);
  border-color: var(--color-neutral-800);
  color: var(--color-btn-primary-fg);
  transform: translate3d(0, -3px, 0);
  box-shadow: var(--shadow-btn-hover);
}

.btn-default.btn-dark:active {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.btn-default.btn-white {
  background-color: var(--color-neutral-0);
  border-color: var(--color-neutral-0);
  color: var(--color-neutral-950);
  box-shadow: var(--shadow-btn-white-rest);
}

.btn-default.btn-white:hover,
.btn-default.btn-white:focus-visible {
  background-color: var(--color-neutral-0);
  border-color: var(--color-neutral-0);
  color: var(--color-neutral-950);
  transform: translate3d(0, -3px, 0);
  box-shadow: var(--shadow-btn-white-hover);
}

.btn-default.btn-white:active {
  transform: translate3d(0, -1px, 0);
  box-shadow: var(--shadow-btn-white-rest);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-default {
    transition:
      background-color var(--duration-base) var(--ease-default),
      border-color var(--duration-base) var(--ease-default),
      color var(--duration-base) var(--ease-default),
      box-shadow var(--duration-base) var(--ease-default);
  }

  .btn:hover,
  .btn:focus-visible,
  .btn-default:hover,
  .btn-default:focus-visible,
  .btn:active,
  .btn-default:active {
    transform: none;
  }
}

.btn-outline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid #d1d1d1;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-main);
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-outline-link i {
  font-size: 18px;
  line-height: 1;
}

.btn-outline-link:hover,
.btn-outline-link:focus {
  border-bottom-color: var(--color-main);
  color: var(--color-main);
}


.form-control:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-brand-400-rgb), 0.2);
}

.back-to-top {
  position: fixed;
  inset-block-end: var(--space-4);
  inset-inline-end: var(--space-4);
  z-index: var(--z-sticky);
  visibility: hidden;
  opacity: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--color-brand-400);
  color: var(--color-neutral-0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-slow), visibility var(--duration-slow), background var(--duration-fast);
}

.back-to-top i {
  font-size: 1.75rem;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--color-brand-900);
  color: var(--color-neutral-0);
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
}

.breadcrumbs {
  margin-block-end: var(--space-4);
}

.breadcrumbs ol {
	list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
	padding: 3px 10px;
	font-size: 12px;
	background: #ffffff;
	width: fit-content;
	border-radius: 50px;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: var(--space-2);
  color: var(--color-text-muted);
}

/* Section backgrounds (tgq pattern) */
.section-bg {
  background: var(--color-bg);
}

.section-light-bg {
  background: var(--color-bg-muted);
}

section,
.section {
  padding-block: var(--section-padding-y);
}

/* Section titles (tgq pattern) */
.section-title {
	margin-bottom: 42px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.section-title .badge {
  display: block;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-brand-400);
}

.section-title h1 {
  margin: 0 0 20px;
  font-size: var(--font-size-2xl);
  line-height: 1.15;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-main);
  text-wrap: balance;
}

.section-title h2 {
	margin-bottom: 20px;
  font-size: 2.5rem;
  line-height: 1.3;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-main);
  text-wrap: balance;
}

.section-title h2 span {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-900);
}

.section-title p {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-text-body);
  max-width: 38.75rem;
  text-wrap: pretty;
}

.section-title p:last-child {
  margin-bottom: 0;
}

.section-title.text-center {
  max-width: 46.625rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title.text-center .badge {
  display: inline-block;
}

.section-title.text-center p {
  margin-inline: auto;
  max-width: 36.375rem;
}

@media (max-width: 62rem) {
  .section-title h2 {
    font-size: 2.125rem;
  }

  .section-title.text-center p {
    max-width: 80%;
  }
}

@media (max-width: 48rem) {
  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title.text-center {
    margin-bottom: 1.5rem;
  }

  .section-title p,
  .section-title.text-center p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Page loader */
body:not(.is-loaded) {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  transition: opacity var(--duration-base) var(--ease-default), visibility var(--duration-base);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.page-loader__logo {
  height: 3.125rem;
  width: auto;
  animation: page-loader-pulse 1.2s ease-in-out infinite;
}

.page-loader__bar {
  display: block;
  position: relative;
  width: 7.5rem;
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-neutral-200);
}

.page-loader__bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--color-brand-400);
  animation: page-loader-slide 1s ease-in-out infinite;
}

@keyframes page-loader-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes page-loader-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo,
  .page-loader__bar::after {
    animation: none;
  }

  .page-loader {
    transition: none;
  }
}




