/* assets/css/base.css */

/* --- CSS Reset & Box Sizing --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size for rem calculations */
}

/* --- Global Body Styles --- */
body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography Defaults --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- Media Defaults --- */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    /* Side padding for smaller screens */
}

.section-padding {
    padding: var(--spacing-section);
}

.text-center {
    text-align: center;
}

/* --- Background Utilities --- */
.bg-primary {
    background-color: var(--clr-primary);
}

.text-light {
    color: var(--clr-text-light);
}

.bg-alt {
    background-color: var(--clr-bg-alt);
}

.dark-bg {
    background-color: var(--clr-primary);
    color: var(--clr-text-light);
}

.dark-bg h2,
.dark-bg h3 {
    color: var(--clr-text-light);
}

/* --- Screen Reader Only (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;
}