
/* =========================================================
   CLASSIQ STYLE — GLOBAL FOUNDATION
   Version 1.2
   Brand: Cyan · Black · Restrained Gold
   Typography: Cormorant Garamond + Manrope
   ========================================================= */

/*
   FONT LOADING
   Google Fonts is required for these web fonts.
   This import must remain before all other CSS rules.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================================
   1. BRAND COLOURS AND DESIGN TOKENS
   ========================================================= */

:root {
    /* Core brand */
    --cq-black: #0A0D0F;
    --cq-black-soft: #101619;
    --cq-charcoal: #191F22;

    --cq-cyan: #00D5E8;
    --cq-cyan-deep: #00AFC0;
    --cq-cyan-light: #71EAF3;
    --cq-cyan-soft: rgba(0, 213, 232, 0.12);

    /* Gold: restrained secondary accent */
    --cq-gold: #C6A15B;
    --cq-gold-light: #D8BD8C;
    --cq-gold-dark: #9F7D48;
    --cq-gold-soft: rgba(198, 161, 91, 0.12);

    /* Neutral surfaces */
    --cq-white: #FFFFFF;
    --cq-ivory: #F5F5F1;
    --cq-paper: #EBEEED;

    --cq-grey-100: #E8E9E7;
    --cq-grey-300: #C5C9C8;
    --cq-grey-500: #7C8588;
    --cq-grey-700: #41494C;

    /* Text colours */
    --cq-text: #171C1E;
    --cq-text-soft: #555F62;
    --cq-text-muted: #858E91;

    --cq-text-primary: #171C1E;
    --cq-text-secondary: #626B6E;
    --cq-text-inverse: #F5F7F7;

    /* Borders */
    --cq-line: rgba(20, 25, 27, 0.12);
    --cq-line-light: rgba(255, 255, 255, 0.14);

    --cq-border: rgba(15, 25, 29, 0.12);
    --cq-border-dark: rgba(255, 255, 255, 0.12);
    --cq-border-cyan: rgba(0, 213, 232, 0.35);


    /* =====================================================
       TYPOGRAPHY SYSTEM
       ===================================================== */

    /* Official font families */
    --cq-font-display: "Cormorant Garamond", Georgia, serif;
    --cq-font-serif: "Cormorant Garamond", Georgia, serif;
    --cq-font-sans: "Manrope", Arial, sans-serif;
    --cq-font-body: var(--cq-font-sans);
    --cq-font-interface: var(--cq-font-sans);
    --cq-font-mono: "SFMono-Regular", Consolas, monospace;

    /* Font weights */
    --cq-weight-regular: 400;
    --cq-weight-medium: 500;
    --cq-weight-semibold: 600;
    --cq-weight-bold: 700;
    --cq-weight-extrabold: 800;

    /* Body and interface text */
    --cq-text-xs: 0.68rem;
    --cq-text-sm: 0.78rem;
    --cq-text-base: 1rem;
    --cq-text-lg: 1.15rem;
    --cq-text-xl: 1.4rem;

    /* Editorial heading scale */
    --cq-heading-sm: clamp(2rem, 3vw, 3rem);
    --cq-heading-md: clamp(2.8rem, 5vw, 5rem);
    --cq-heading-lg: clamp(4rem, 8vw, 8rem);
    --cq-heading-xl: clamp(5rem, 11vw, 12rem);

    /* Standard semantic heading sizes */
    --cq-h1-size: clamp(2.8rem, 6vw, 5.5rem);
    --cq-h2-size: clamp(2.2rem, 4vw, 4rem);
    --cq-h3-size: clamp(1.75rem, 3vw, 2.8rem);
    --cq-h4-size: clamp(1.35rem, 2vw, 1.9rem);
    --cq-h5-size: 1.2rem;
    --cq-h6-size: 1rem;

    /* Line heights */
    --cq-leading-tight: 1.05;
    --cq-leading-heading: 1.15;
    --cq-leading-body: 1.7;
    --cq-leading-interface: 1.4;

    /* Letter spacing */
    --cq-tracking-tight: -0.035em;
    --cq-tracking-normal: 0;
    --cq-tracking-wide: 0.08em;
    --cq-tracking-caps: 0.16em;


    /* =====================================================
       LAYOUT
       ===================================================== */

    --cq-container: min(1400px, calc(100% - 80px));
    --cq-container-narrow: min(1080px, calc(100% - 80px));
    --cq-container-reading: min(760px, calc(100% - 48px));
    --cq-container-wide: min(1720px, calc(100% - 80px));


    /* =====================================================
       SPACING
       Preserve established project values.
       ===================================================== */

    --cq-space-1: 0.5rem;
    --cq-space-2: 1rem;
    --cq-space-3: 1.5rem;
    --cq-space-4: 2rem;
    --cq-space-5: 3rem;
    --cq-space-6: 4rem;
    --cq-space-7: 6rem;
    --cq-space-8: 8rem;
    --cq-space-9: 10rem;
    --cq-space-10: 14rem;


    /* =====================================================
       MOTION
       ===================================================== */

    --cq-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --cq-transition-fast: 180ms var(--cq-ease);
    --cq-transition: 400ms var(--cq-ease);
    --cq-transition-slow: 700ms var(--cq-ease);

    --cq-duration-fast: 180ms;
    --cq-duration-normal: 300ms;
    --cq-duration-slow: 600ms;


    /* =====================================================
       CORNERS, SHADOWS AND FOCUS
       ===================================================== */

    --cq-radius-sm: 2px;
    --cq-radius-md: 4px;
    --cq-radius-lg: 14px;

    --cq-shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.08);
    --cq-shadow-deep: 0 35px 100px rgba(0, 0, 0, 0.18);

    --cq-focus-ring: 0 0 0 3px rgba(0, 213, 232, 0.35);


    /* =====================================================
       LEGACY ALIASES
       Keep older hero styles compatible.
       ===================================================== */

    --cs-black: var(--cq-black);
    --cs-white: var(--cq-white);
    --cs-gold: var(--cq-gold);
    --cs-font-interface: var(--cq-font-sans);
    --cs-font-display: var(--cq-font-display);
    --cs-font-mono: var(--cq-font-mono);
}


/* =========================================================
   2. RESPONSIVE TOKENS
   ========================================================= */

@media (max-width: 1100px) {
    :root {
        --cq-container: min(1400px, calc(100% - 48px));
        --cq-container-narrow: min(1080px, calc(100% - 48px));
        --cq-container-wide: min(1720px, calc(100% - 48px));
    }
}

@media (max-width: 760px) {
    :root {
        --cq-container: calc(100% - 32px);
        --cq-container-narrow: calc(100% - 32px);
        --cq-container-reading: calc(100% - 32px);
        --cq-container-wide: calc(100% - 32px);
    }
}

@media (max-width: 600px) {
    :root {
        --cq-gutter: 16px;
    }
}


/* =========================================================
   3. GLOBAL RESET
   ========================================================= */

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    padding: 0;

    background: var(--cq-ivory);
    color: var(--cq-text);

    font-family: var(--cq-font-body);
    font-size: var(--cq-text-base);
    font-weight: var(--cq-weight-regular);
    line-height: var(--cq-leading-body);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

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

button {
    color: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

textarea {
    resize: vertical;
}

iframe {
    max-width: 100%;
}

figure,
blockquote {
    margin-inline: 0;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   4. GLOBAL TYPOGRAPHY
   ========================================================= */

/* Semantic heading defaults.
   Component styles may override these when necessary. */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: inherit;
    font-family: var(--cq-font-display);
    font-weight: var(--cq-weight-regular);
    line-height: var(--cq-leading-heading);
    letter-spacing: var(--cq-tracking-tight);
    text-wrap: balance;
}

h1 {
    font-size: var(--cq-h1-size);
}

h2 {
    font-size: var(--cq-h2-size);
}

h3 {
    font-size: var(--cq-h3-size);
}

h4 {
    font-size: var(--cq-h4-size);
}

h5 {
    font-size: var(--cq-h5-size);
}

h6 {
    font-size: var(--cq-h6-size);
}

/* Body copy */
p {
    margin-top: 0;
}

/* Interface elements */
button,
input,
textarea,
select,
label {
    font-family: var(--cq-font-interface);
}

button,
input,
textarea,
select {
    line-height: var(--cq-leading-interface);
}

/* Text emphasis */
strong,
b {
    font-weight: var(--cq-weight-bold);
}

small {
    font-size: 0.8125em;
}

/* Reusable editorial display heading */
.cq-display {
    font-family: var(--cq-font-display);
    font-weight: var(--cq-weight-regular);
    letter-spacing: var(--cq-tracking-tight);
    line-height: var(--cq-leading-tight);
}

/* Reusable interface eyebrow */
.cq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    font-family: var(--cq-font-interface);
    font-size: var(--cq-text-xs);
    font-weight: var(--cq-weight-bold);

    letter-spacing: var(--cq-tracking-caps);
    line-height: 1;

    text-transform: uppercase;
}

.cq-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    flex: 0 0 auto;
    background: currentColor;
}

.cq-muted {
    color: var(--cq-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

::selection {
    background: var(--cq-cyan);
    color: var(--cq-black);
}


/* =========================================================
   5. GLOBAL ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--cq-cyan);
    outline-offset: 4px;
    box-shadow: var(--cq-focus-ring);
}


/* =========================================================
   6. FOUNDATIONAL UTILITIES
   ========================================================= */

.cq-text-cyan {
    color: var(--cq-cyan);
}

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

.cq-surface-dark {
    background: var(--cq-black);
    color: var(--cq-text-inverse);
}

.cq-surface-cyan {
    background: var(--cq-cyan);
    color: var(--cq-black);
}


/* =========================================================
   7. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
