/* ==========================================================================
   COSA Design System — Modern CSS Reset
   ADGgroup Property Management Platform
   ========================================================================== */

/* --------------------------------------------------------------------------
   Box Sizing
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Reset Margins & Padding
   -------------------------------------------------------------------------- */
*{
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   HTML & Body Defaults
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-family: var(--font-heading);
}

p {
  overflow-wrap: break-word;
}

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

/* --------------------------------------------------------------------------
   Form Elements — Inherit Fonts
   -------------------------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Button Reset
   -------------------------------------------------------------------------- */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   Textarea
   -------------------------------------------------------------------------- */
textarea {
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Fieldset
   -------------------------------------------------------------------------- */
fieldset {
  border: none;
}

/* --------------------------------------------------------------------------
   Summary Cursor
   -------------------------------------------------------------------------- */
summary {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Focus Visible — Accessible Outlines
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
  background: var(--color-primary-light);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */
::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Scrollbar Styling (Webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
