/* =========================================
   EASYLINK — GLOBAL.CSS
   Design tokens, reset, typography, buttons, utilities
========================================= */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Colours */
    --primary-gold: #d69b20;
    --light-gold: #e5b447;
    --dark-gold: #b87e10;
    --dark: #07090d;
    --dark-secondary: #0d1015;
    --dark-tertiary: #11151b;
    --white: #ffffff;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #d7d7d7;
    --text-muted: #888888;
    --bg-light: #f5f5f5;
    --bg-gradient-start: #f4f4f4;
    --bg-gradient-end: #ececec;
    --card-bg: #eeeeee;
    --border-light: #dddddd;
    --border-gold: rgba(214, 155, 32, 0.6);
    --border-gold-soft: rgba(214, 155, 32, 0.4);

    /* Typography */
    --font-heading: "Cinzel", serif;
    --font-body: "Montserrat", sans-serif;
    --font-serif: Georgia, serif;

    /* Font sizes (fluid) */
    --fs-hero: clamp(2.5rem, 6vw, 4.875rem);       /* 40–78 */
    --fs-h1: clamp(2rem, 4vw, 3rem);               /* 32–48 */
    --fs-h2: clamp(1.375rem, 2.5vw, 1.75rem);      /* 22–28 */
    --fs-h3: clamp(1rem, 1.5vw, 1.25rem);          /* 16–20 */
    --fs-body: 0.9375rem;                          /* 15 */
    --fs-small: 0.8125rem;                         /* 13 */
    --fs-xs: 0.6875rem;                            /* 11 */
    --fs-xxs: 0.625rem;                            /* 10 */

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-2xl: 96px;

    /* Layout */
    --container-width: 92%;
    --container-max: 1400px;

    /* Radius */
    --radius-sm: 3px;
    --radius-card: 8px;
    --radius-btn: 5px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index scale */
    --z-nav: 100;
    --z-mobile-menu: 200;
    --z-float: 300;
    --z-modal: 400;
}

/* ---------- CONTAINER ---------- */
.container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
}

.container-narrow {
    width: var(--container-width);
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- HEADINGS ---------- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

.font-heading {
    font-family: var(--font-heading);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 165px;
    padding: 14px 22px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-sm {
    min-width: auto;
    padding: 10px 18px;
    font-size: var(--fs-xs);
}

.btn-lg {
    min-width: 200px;
    padding: 16px 28px;
    font-size: var(--fs-body);
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--dark-gold);
    border-color: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 155, 32, 0.35);
}

.btn-outline {
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border-color: var(--primary-gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ---------- UTILITIES ---------- */
.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;
}

.text-center { text-align: center; }
.text-gold { color: var(--primary-gold); }
.text-muted { color: var(--text-muted); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ---------- FOCUS VISIBLE (Accessibility) ---------- */
:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ---------- SKIP TO CONTENT ---------- */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 16px;
}

/* ---------- GLOBAL ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

@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;
    }
}