/* ==========================================================================
   BASE & RESET STYLES — BARAM LUXURY SPECIFICATION
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.5;
  overflow-x: clip;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* Accessibility: Focus outlines */
:focus-visible {
  outline: 2px solid var(--lv-black);
  outline-offset: 3px;
}

/* Skip to Content accessible link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--lv-black);
  color: var(--lv-white);
  padding: 10px 18px;
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  z-index: 9999;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 15px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: var(--text-md); }

p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: all var(--t-fast);
}

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

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-fluid {
  width: 100%;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Utility Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: var(--ls-wider);
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
