/*
 * Cultina Reset
 * -------------
 * Modern, opinionated reset based on Josh Comeau's CSS reset
 * (https://www.joshwcomeau.com/css/custom-css-reset/) with light tweaks
 * for WordPress + Elementor coexistence.
 */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* General guard against accidental horizontal scroll from any element that
   momentarily exceeds the viewport. `clip` (not `hidden`) does NOT create a
   scroll container, so it leaves position:sticky/fixed untouched. Not part of
   the responsive layout — that lives in Elementor's per-device settings. */
html,
body {
    overflow-x: clip;
}

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

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    /* appearance:none stops macOS/iOS Chrome & Safari from painting the native
       push-button chrome (rounded pill + border) over custom-styled buttons such
       as the nav burger and the video play button. */
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--cultina-color-border-strong);
    margin: var(--cultina-space-6) 0;
}

/*
 * Stacking-context isolation for the main content area so that internal
 * z-index values don't leak past the page chrome.
 */
.cultina-site-main {
    isolation: isolate;
}

/* WordPress visually-hidden utility — used by the skip-link in header.php.
   Without this rule the link renders visibly at the top of every page. */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.screen-reader-text:focus-visible {
    position: fixed !important;
    top: 8px;
    left: 8px;
    z-index: 100000;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    padding: 12px 20px;
    background: var(--cultina-color-surface, #fff);
    color: var(--cultina-color-primary, #C2006A);
    box-shadow: var(--cultina-shadow-md);
}
