/* ==========================================================================
   MRIYA Marketing — global.css
   Reset, design tokens, base typography, shared primitives
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* --- Colors: surfaces --- */
  --color-bg: #04090f;
  --color-bg-hero: #010204;
  --color-bg-deep: #020103;
  --color-bg-ink: #020617;
  --color-surface-light: #e2e2e2;

  /* --- Colors: text --- */
  --color-text: #e2e2e2;
  --color-text-bright: #f3f6f8;
  --color-text-dark: #04090f;
  --color-text-muted: #666668;
  --color-text-slate: #64748b;

  /* --- Colors: brand accents --- */
  --color-lime: #b5fe00;
  --color-violet: #6a29b4;
  --color-violet-glow: #8c45ff;

  /* --- Gradients --- */
  --gradient-card: linear-gradient(
    97.18deg,
    #0d0945 0%,
    #391881 23%,
    #801aa8 100%
  );
  --gradient-section: linear-gradient(107.08deg, #100d2e 0%, #020103 100%);
  --gradient-heading: linear-gradient(
    293.84deg,
    #ffffff 61.11%,
    #140a4b 120.84%
  );
  --gradient-vignette: linear-gradient(
    120.88deg,
    #000000 0%,
    rgba(0, 0, 0, 0.26) 100%
  );

  /* --- Borders --- */
  --border-hairline: 1px solid rgba(255, 255, 255, 0.15);

  /* --- Typography --- */
  --font-primary: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Sans", "Inter", system-ui, sans-serif;

  --fs-display: 5.125rem; /* 82px — hero h1 */
  --fs-h2: 3.875rem; /* 62px — section titles */
  --fs-h3: 2rem; /* 32px — card titles */
  --fs-h4: 1.5rem; /* 24px */
  --fs-stat: 3.875rem; /* 62px — big counters */
  --fs-lead: 1.875rem; /* 30px */
  --fs-lg: 1.25rem; /* 20px */
  --fs-base: 1rem; /* 16px */

  --lh-tight: 1;
  --lh-snug: 1.1;
  --lh-normal: 1.3;

  --ls-display: -0.05em; /* -4.1px @82 */
  --ls-h2: -0.6px;
  --ls-stat: -0.6px;
  --ls-lg: -0.2px;
  --ls-base: -0.3px;

  /* --- Spacing scale (design steps) --- */
  --space-2xs: 0.375rem; /* 6px  */
  --space-xs: 0.625rem; /* 10px */
  --space-sm: 0.75rem; /* 12px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.25rem; /* 20px */
  --space-xl: 1.5rem; /* 24px */
  --space-2xl: 2rem; /* 32px */
  --space-3xl: 2.625rem; /* 42px */
  --space-4xl: 3.25rem; /* 52px */
  --space-5xl: 5rem; /* 80px */
  --space-6xl: 7.5rem; /* 120px */

  /* --- Radii --- */
  --radius-sm: 0.5rem; /* 8px  */
  --radius-md: 0.75rem; /* 12px */
  --radius-lg: 1.25rem; /* 20px */
  --radius-pill: 6.25rem;

  /* --- Layout --- */
  --container-width: 90rem; /* 1440px — design frame width */
  --container-gutter: 2.875rem; /* 46px → 1348px of content */

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;

  /* --- Elevation --- */
  --z-nav: 100;
  --z-overlay: 200;
}

/* Mobile token overrides — values taken from the 393px design frame */
@media (max-width: 47.9375em) {
  :root {
    --fs-display: 3.25rem; /* 52px */
    --fs-h3: 1.5rem; /* 24px */
    --fs-stat: 2.625rem; /* 42px */
    --ls-display: -0.031em; /* -1.6px @52 */
    --ls-stat: -0.4px;
    --container-gutter: 1rem; /* 16px */
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  text-wrap: balance;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* Sections the mockup insets by 48px instead of 46px.
   Scoped to ≥768px on purpose: a custom property set on the element beats the
   inherited :root value, so an unscoped modifier would keep 48px on mobile and
   silently ignore the 16px mobile gutter. */
@media (min-width: 48em) {
  .container--48 {
    --container-gutter: 3rem;
  }
}

/* Screen-reader only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Shared components
   -------------------------------------------------------------------------- */

/* 1px gradient outline used by the service, FAQ and pricing cards.
   Drawn with a masked pseudo-element so the translucent card fill stays clean. */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-card);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Centred section heading block (Title frame: vertical, gap 20, centred) */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-inline: auto;
  text-align: center;
}

.section-head__title {

  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h2);
  color: var(--color-text-bright);
}

/* Lighter portion of any heading — used across several section titles */
.title-light {
  font-weight: 200;
}

.section-head__text {
  max-width: 32rem; /* 512px */
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-lg);
  color: var(--color-text);
}

/* Pill button — solid light (hero CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 1rem 2.625rem;
  min-height: 3.875rem; /* 62px */
  border-radius: var(--radius-pill);
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-lg);
  line-height: var(--lh-normal);
  white-space: nowrap;
  transition: transform var(--duration) var(--ease),
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--light {
  background-color: var(--color-surface-light);
  color: var(--color-text-dark);
}

.btn--light:hover {
  box-shadow: 0 0.75rem 2rem rgba(226, 226, 226, 0.22);
}

/* Pill button — lime outline (nav CTA) */
.btn--outline-lime {
  padding: 1rem 1.875rem;
  min-height: auto;
  border: 1px solid var(--color-lime);
  color: var(--color-lime);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: var(--ls-base);
}

.btn--outline-lime:hover {
  background-color: var(--color-lime);
  color: var(--color-text-dark);
}

/* Pill button — light outline, transparent fill */
.btn--outline-light {
  border: 1px solid var(--color-surface-light);
  color: var(--color-surface-light);
}

.btn--outline-light:hover {
  background-color: var(--color-surface-light);
  color: var(--color-text-dark);
}

@media (max-width: 47.9375em) {
  /* The mobile frame pins these to 52 and 42; the vertical padding would push
     them past that, so the min-height alone sets the box and centres the label */
  .btn {
    padding-block: 0;
    min-height: 3.25rem; /* 52px */
  }

  .btn--outline-lime {
    padding: 0 1.25rem;
    min-height: 2.625rem; /* 42px */
    font-size: 0.875rem; /* 14px */
  }
}

/* --------------------------------------------------------------------------
   5. Shared mobile overrides (393px design frame)
   -------------------------------------------------------------------------- */
@media (max-width: 47.9375em) {
  .section-head__text {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    letter-spacing: var(--ls-base);
  }
}

/* --------------------------------------------------------------------------
   6. Off-screen SVG definitions (gradient fills for icons)
   -------------------------------------------------------------------------- */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Motion
   `.is-hidden` is only ever added by JS, so the page is fully visible when JS
   is off or the visitor prefers reduced motion. Uses the standalone `translate`
   property so it never clobbers an element's own `rotate`/`transform`.
   -------------------------------------------------------------------------- */
.is-hidden {
  opacity: 0;
  translate: 0 1.75rem;
}

.is-hidden,
.is-shown {
  transition: opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    translate 0.7s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

.is-shown {
  opacity: 1;
  translate: 0 0;
}

/* Counting digits keep a fixed advance so labels don't jitter */
.is-counter {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .is-hidden {
    opacity: 1;
    translate: none;
  }
}

.form .wpcf7-spinner {
	display: none!important;
}