/* ==========================================================================
   Base — design tokens, reset, typography and shared helpers
   ========================================================================== */

:root {
    /* Brand palette */
    --crimson: #7A1320;
    --crimson-d: #5E0E18;
    --crimson-dd: #430A11;
    --crimson-l: #9B2231;
    --gold: #C9A24B;
    --gold-l: #E3C77A;
    --gold-soft: #d8b873;
    --cream: #F3EBDD;
    --ink: #2a0a0f;
    --muted: #d9c9c0;

    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Cormorant Garamond', serif;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 24px;
    --section-pad: 110px;

    /* Effects */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 34px;
    --shadow-md: 0 12px 34px rgba(0, 0, 0, .4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .4);
    --transition: .3s;
}

/* Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--crimson-dd);
    color: var(--cream);
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

section {
    position: relative;
}

/* Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.3;
    /* Long unbroken words must not push the layout sideways on a phone */
    overflow-wrap: break-word;
}

.en {
    font-family: var(--font-en);
    letter-spacing: .05em;
}

/* Helpers
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.gold {
    color: var(--gold);
}

.kicker {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 14px;
}

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

/* Scroll reveal — activated by js/reveal.js */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: .7s cubic-bezier(.2, .7, .3, 1);
    transition-delay: var(--d, 0s);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive tokens — bands and gutters tighten as the screen narrows
   ========================================================================== */
@media (max-width: 900px) {

    :root {
        --section-pad: 80px;
    }
}

@media (max-width: 640px) {

    :root {
        --section-pad: 60px;
        --container-pad: 20px;
    }

    body {
        line-height: 1.75;
    }
}
