/* Explain: Base reset and global typography styles for the website, updated for new branding. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

p, ul, ol, figure {
    margin: 0;
}

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

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

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

::selection {
    background: var(--gold-soft);
    color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.is-hidden {
    display: none !important;
}

/* Spacing helpers for headings and paragraphs
   (project CSS outranks layered utilities, so these live here) */
.cw-mt-2 { margin-top: 0.5rem; }
.cw-mt-3 { margin-top: 0.75rem; }
.cw-mt-4 { margin-top: 1rem; }
.cw-mt-5 { margin-top: 1.35rem; }
.cw-mt-6 { margin-top: 1.6rem; }
.cw-mt-8 { margin-top: 2.25rem; }
.cw-mt-10 { margin-top: 2.75rem; }

html[dir="rtl"] .cw-flip {
    transform: scaleX(-1);
}

html[dir="rtl"] body {
    letter-spacing: 0;
    line-height: 1.8;
}