/**
 * Base Styles
 * Reset, normalize, and foundational element styles
 *
 * @package Bonusovekody
 * @since 2.0.0
 */

/* ============================================
 * CSS RESET
 * ============================================ */

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

html, body {
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-text-secondary);
    background: var(--blue-50);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
 * TYPOGRAPHY
 * ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
}

h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
}

h4 {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
}

h5 {
    font-size: var(--font-size-h5);
    line-height: var(--line-height-h5);
}

h6 {
    font-size: var(--font-size-h6);
    line-height: var(--line-height-h6);
}

p {
    margin-bottom: var(--space-5);
}

/* ============================================
 * LINKS
 * ============================================ */

a {
    color: #2D7AE9;
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
}

a:not(.btn):hover,
a:not(.btn):focus {
    color: #2D7AE9;
    text-decoration: underline;
}

/* ============================================
 * IMAGES & MEDIA
 * ============================================ */

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

figure {
    margin: 0;
}

/* ============================================
 * LISTS
 * ============================================ */

ul, ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}

/* ============================================
 * UTILITY CLASSES
 * ============================================ */

.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.grecaptcha-badge {
    visibility: hidden;
}