/**
 * Base Styles
 * Reset and foundational styles
 */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-primary);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    background: var(--off-white);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--primary-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

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

/* ==========================================
   LINKS
   ========================================== */
a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

a:hover {
    opacity: 0.8;
}

/* ==========================================
   BUTTONS
   ========================================== */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================
   IMAGES
   ========================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   LISTS
   ========================================== */
ul, ol {
    list-style-position: inside;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-4xl);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 var(--spacing-2xl);
    }
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}
