/* Explain: Base CSS resets, typography, and global styles like smooth scrolling. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body,
input,
select,
textarea,
button {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    text-wrap: balance;
}

a {
    text-decoration: none;
}

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

[x-cloak],
[hidden] {
    display: none !important;
}

::selection {
    background: var(--secondary-color);
    color: var(--pure-white);
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--secondary-color) 55%, var(--pure-white));
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .btn-luxury:hover,
    .btn-outline-luxury:hover,
    .btn-soft-luxury:hover,
    .luxury-card:hover,
    .detail-card:hover,
    .hover\:scale-105:hover {
        transform: none !important;
    }
}
