/* ============================================================
   HOHO — main.css
   Global reset, CSS variables, and base styles
   All pages link to this file.
   ============================================================ */

/* ── 1. CSS VARIABLES ───────────────────────────────────────── */
:root {
    /* Typography */
    --font-display:  'Poppins', sans-serif;
    --font-body:     'Poppins', sans-serif;

    /* Font weights */
    --fw-regular:    400;
    --fw-semibold:   250;
    --fw-bold:       250;
    --fw-extrabold:  250;

    /* Base font size */
    --fs-base:       1rem;       /* 16px */
    --fs-sm:         0.875rem;   /* 14px */
    --fs-lg:         1.25rem;    /* 20px */
    --fs-xl:         2rem;       /* 32px */
    --fs-display:    7rem;       /* hero text */

    /* Letter spacing */
    --ls-tight:      -0.02em;
    --ls-normal:     0em;
    --ls-wide:       0.08em;

    /* Colours */
    --color-white:        #ffffff;
    --color-black:        #000000;
    --color-text:         #ffffff;
    --color-text-muted:   rgba(255, 255, 255, 0.6);
    --color-overlay:      rgba(0, 0, 0, 0.35);   /* video overlay tint */
    --color-accent:       #ff3c00;               /* swap this per project */

    /* Spacing scale */
    --space-xs:   0.25rem;   /*  4px */
    --space-sm:   0.5rem;    /*  8px */
    --space-md:   1rem;      /* 16px */
    --space-lg:   2rem;      /* 32px */
    --space-xl:   4rem;      /* 64px */
    --space-2xl:  8rem;      /* 128px */

    /* Layout */
    --max-width:        1280px;
    --gutter:           clamp(1rem, 5vw, 3rem);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   300ms ease;
    --transition-slow:   600ms ease;

    /* Z-index layers */
    --z-base:     0;
    --z-above:    1;
    --z-overlay:  10;
    --z-nav:      100;
    --z-modal:    1000;
}


/* ── 2. RESET ────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--color-text);
    background: var(--color-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}


/* ── 3. FULLSCREEN VIDEO HERO (used on index.html) ──────────── */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: var(--z-base);
}

/* Optional dark overlay so text always reads clearly */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    z-index: var(--z-above);
}

.hero__text {
    position: relative;
    z-index: var(--z-overlay);
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--ls-tight);
    color: var(--color-white);
    user-select: none;

    /* Subtle fade-in on load */
    animation: fadeUp 0.9s var(--transition-slow) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── 4. UTILITY CLASSES ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.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-muted   { color: var(--color-text-muted); }
.text-accent  { color: var(--color-accent); }