/**
 * ZCCIMA Base styles
 * Resets, body, links, headings, focus states.
 */

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

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

body {
    margin: 0;
    font-family: var(--zccima-font-fa);
    font-size: var(--zccima-font-size-base);
    line-height: var(--zccima-line-height-base);
    color: var(--zccima-gray-800);
    background: var(--zccima-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--zccima-primary);
    text-decoration: none;
    transition: color var(--zccima-transition-fast);
}
a:hover { color: var(--zccima-accent); }
a:focus-visible {
    outline: 2px solid var(--zccima-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em 0;
    line-height: var(--zccima-line-height-tight);
    color: var(--zccima-primary);
    font-weight: var(--zccima-font-weight-bold);
}

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

p { margin: 0 0 1rem 0; }

ul, ol { padding: 0 0 0 1.25rem; margin: 0 0 1rem 0; }

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

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

.skip-link {
    position: absolute; top: -100px; right: 0;
    background: var(--zccima-primary);
    color: #fff;
    padding: 12px 16px;
    z-index: var(--zccima-z-tooltip);
    border-radius: 0 0 0 var(--zccima-radius-md);
    transition: top var(--zccima-transition-base);
}
.skip-link:focus { top: 0; color: #fff; }

::selection {
    background: var(--zccima-accent);
    color: var(--zccima-primary-dark);
}

/* Demo placeholder gradients (used while real images are not migrated) */
.demo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.95);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}
.demo-img i { position: relative; z-index: 1; }
.demo-img::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--c1, #14213D) 0%, var(--c2, #2A3B5F) 100%);
}
.demo-img-1 { --c1: #14213D; --c2: #3B82F6; }
.demo-img-2 { --c1: #10B981; --c2: #059669; }
.demo-img-3 { --c1: #F59E0B; --c2: #D97706; }
.demo-img-4 { --c1: #8B5CF6; --c2: #6D28D9; }
.demo-img-5 { --c1: #EC4899; --c2: #BE185D; }
.demo-img-6 { --c1: #06B6D4; --c2: #0891B2; }
