/* ==========================================================================
   Varnamala Technologies – Base Styles, Reset & Typography
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--body);
  background-color: var(--white);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

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

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--h2-size);
  font-weight: 700;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 700;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Body Text */
p {
  color: var(--muted);
  line-height: var(--lh-body);
}

p.lead {
  font-size: clamp(17px, 1.25vw, 20px);
  color: var(--body);
  line-height: 1.5;
}

/* Links */
a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

/* Images & Media */
img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Focus Visibility */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Visually Hidden (Accessibility) */
.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;
}

/* Horizontal Snap Row for Mobile */
.mobile-snap-row {
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .mobile-snap-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .mobile-snap-row > * {
    scroll-snap-align: start;
    flex: 0 0 85%;
  }
}
