/* ==========================================================================
   Arbuda Engineering — Global Design System Tokens & Base Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-text: #151717;
  --color-bg: #fff;
  --color-muted: #b3b3b3;
  --color-border: rgba(21, 23, 23, 0.1);
  --color-border-dark: rgba(21, 23, 23, 0.15);
  --color-bg-light: #f1f1f1;
  --color-bg-dark: #151717;

  /* Font families */
  --font-primary: 'Instrument Sans', 'FindSans', Arial, sans-serif;
  --font-secondary: 'Lora', 'Times New Roman', serif;

  /* Spacing system — rem scale */
  --side-gap: 10rem;

  /* Scrollbar */
  --scrollbar-width: 0px;
  --full-width: calc(100vw + var(--scrollbar-width, 0px));

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 3.56, 0.64, 1);
  --ease-spring-subtle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Header height reference */
  --header-h-mobile: 8.4rem;
  --header-h-desktop: 9.8rem;
}

/* --------------------------------------------------------------------------
   Responsive Fluid Typography Scale (1rem baseline dynamic calculation)
   -------------------------------------------------------------------------- */
html {
  font-size: 2.6666666667vw;
  /* mobile: 375px → ~10px */
}

@media (min-width: 768px) and (max-width: 1199px) {
  html {
    font-size: clamp(10px, 1.25vw, 13px);
    /* tablet (iPad, iPad Air, iPad Pro): scaled nicely so 1rem ≈ 10-12px, exactly matching mobile proportions */
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 0.5208333333vw;
    /* desktop: 1920px → 10px */
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 10px;
    /* cap at 1920px */
  }
}

/* --------------------------------------------------------------------------
   Reset / Normalize (from source — exact subset used)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-desktop, 9.8rem) + 1rem);
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: calc(var(--header-h-mobile, 8.4rem) + 1rem);
  }
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

body main {
  flex: 1 1;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
address,
blockquote,
em {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
  letter-spacing: inherit;
}

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

img,
video,
svg {
  vertical-align: middle;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.em {
  color: var(--color-muted);
}

.invisible {
  visibility: hidden;
}

.desktop-only {
  display: none !important;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .desktop-only {
    display: initial !important;
    pointer-events: auto;
  }
}

.mobile-only {
  display: none !important;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .mobile-only {
    display: initial !important;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   Container
   Source: .container_container__v5gtR
   padding: 0 2.5rem; max-width: 1920px;
   Desktop (>=768px): padding: 0 10rem
   -------------------------------------------------------------------------- */
.container {
  padding: 0 2.5rem;
  margin: 0 auto;
  max-width: 1920px;
  width: 100%;
}

@media (min-width: 1200px) {
  .container {
    padding: 0 10rem;
  }

  .container.container--wide {
    padding: 0 4rem;
  }
}

/* --------------------------------------------------------------------------
   Button System
   Source: .button_button-round__TFjlU
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-block;
  height: auto;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Round pill button */
.btn--round {
  transition: transform 0.3s;
  border-radius: 100px;
  padding: 1.4rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .btn--round {
    font-size: 1.8rem;
    line-height: 1.4;
    padding: 1.54rem 3rem;
  }
}

/* Button Shimmer Beam & 3D Tactile Hover */
.btn--round {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease;
}

.btn--round::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  background-size: 250% 100%;
  background-position: 200% 0;
  transition: background-position 1.25s cubic-bezier(0.2, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 1;
}

@media (pointer: fine) {
  .btn--round:hover {
    transform: translateY(-2.5px) scale(1.025);
    box-shadow: 0 14px 28px -6px rgba(21, 23, 23, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }

  .btn--round:hover::before {
    background-position: -100% 0;
    transition: background-position 1.25s cubic-bezier(0.2, 0.8, 0.25, 1);
  }

  .btn--round:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px -2px rgba(21, 23, 23, 0.2);
  }

  /* Arrow spring thrust forward on hover */
  .btn--round:hover .btn__icon-after {
    transform: translateX(4px);
  }
}

.btn__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.btn__text {
  display: inline-block;
  line-height: 1.5;
  transition: letter-spacing 0.3s ease;
}

@media (pointer: fine) {
  .btn--round:hover .btn__text {
    letter-spacing: 0.01em;
  }
}

.btn__icon-after {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Button icon */
.btn__icon-after,
.btn__icon-before {
  --size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--size);
  width: var(--size);
  height: var(--size);
}

.btn__icon-after svg,
.btn__icon-before svg {
  width: 100%;
  height: 100%;
}

/* Color variants */
.btn--primary {
  background-color: var(--color-bg-dark);
  color: #fff;
}

.btn--secondary {
  background-color: #fff;
  color: var(--color-bg-dark);
  border: 1px solid rgba(21, 23, 23, 0.3);
}

.btn--primary.btn--inversed {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Loading line (top of page)
   -------------------------------------------------------------------------- */
.loading-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--color-bg-dark);
  z-index: 9999;
  transition: width 0.3s ease, opacity 0.4s ease 0.3s;
  opacity: 1;
}

.loading-line.loading-line--done {
  width: 100%;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Outline (accessibility)
   -------------------------------------------------------------------------- */
* {
  outline-color: var(--color-bg-dark);
}