/**
 * Marthoma Church Theme - CSS Reset
 *
 * @package MarthomaChurch
 */

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

/* Remove default margin/padding */
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* HTML defaults */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Inherit fonts */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove list styles */
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove button styling */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Forms */
input,
textarea,
select {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    width: 100%;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--marthoma-button, #375EFB);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--marthoma-button, #375EFB);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
}

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

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Remove animations for users who prefer 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;
    }
}
