/**
 * Reset and Normalize Styles
 * Modern CSS reset for consistent rendering
 * 
 * @package Ashrey_Natural
 * @version 1.0.0
 */

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

/* ========================================
   Remove Default Margins and Paddings
   ======================================== */
* {
    margin: 0;
    padding: 0;
}

/* ========================================
   HTML & Body
   ======================================== */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: var(--line-height-normal);
    font-family: var(--font-family-main);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background-primary);
    text-rendering: optimizeLegibility;
}

/* ========================================
   Typography Reset
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

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

img {
    border-style: none;
}

svg {
    fill: currentColor;
}

/* ========================================
   Form Elements
   ======================================== */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Tables
   ======================================== */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* ========================================
   Accessibility
   ======================================== */
.screen-reader-text,
.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;
}

.screen-reader-text:focus,
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ========================================
   Skip to Content Link
   ======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 100000;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-primary);
    color: var(--color-button-primary-text);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


