/* ═══════════════════════════════════════════════════════
   MyTenantsBook — Base Styles
   Reset, typography, and global utilities
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Links ── */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-in-out);
}

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

/* ── Buttons ── */
button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

/* ── Media ── */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
svg {
    max-width: 100%;
    display: block;
}

/* ── Selection ── */
::selection {
    background: var(--brand-500);
    color: white;
}

/* ── Focus Ring ── */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════
   Layout Utilities
   ═══════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.section-padding {
    padding: var(--space-20) 0;
}

/* ═══════════════════════════════
   Typography Utilities
   ═══════════════════════════════ */

.text-brand {
    color: var(--brand-400);
}

.text-blue {
    color: var(--brand-400);
}

.text-green {
    color: var(--success);
}

.text-orange {
    color: var(--warning);
}

.text-muted {
    color: var(--text-muted);
}

/* ═══════════════════════════════
   Grid Utilities
   ═══════════════════════════════ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* ═══════════════════════════════
   Display Utilities
   ═══════════════════════════════ */
.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

/* ═══════════════════════════════
   Responsive
   ═══════════════════════════════ */

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }

    .section-padding {
        padding: var(--space-12) 0;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}