/* ==========================================================================
   realestate.asenter.in — Base Styles & Resets
   ========================================================================== */

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-ink);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--lh-tight);
}

h4 {
  font-size: var(--text-h4);
  line-height: var(--lh-tight);
}

p {
  color: var(--color-ink-muted);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-instant);
}

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

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

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-mobile);
  padding-right: var(--gutter-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }
}

.prose {
  max-width: var(--prose-max);
}

.prose-centered {
  max-width: var(--prose-max);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Accessibility utility */
.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;
}

/* Prefers Reduced Motion */
@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;
    scroll-behavior: auto !important;
  }
}
