/* =========================================================================
   GermanUSA Airbnb — Design Tokens
   =========================================================================
   Single source of truth for the design system. Every visual decision
   (color, spacing, type, radius, shadow, motion) is a CSS custom property
   defined here. Components consume these tokens and never hardcode values.

   Palette: German flag — Schwarz (black), Rot (red), Gold (gold).
   Refined for screen use (not pure flag values) to meet WCAG AA contrast.
   ========================================================================= */

/* ------------------------------------------------------------------------- */
/* @font-face — self-hosted Inter (variable font, latin + latin-ext)         */
/* ------------------------------------------------------------------------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/wp-content/themes/germanusa-airbnb/assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/wp-content/themes/germanusa-airbnb/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------------- */
/* Color tokens                                                               */
/* ------------------------------------------------------------------------- */
:root {
    /* Brand — German flag, refined for screen */
    --gu-schwarz: #1a1a1a;
    --gu-rot: #c8102e;
    --gu-rot-hover: #a50d24;
    --gu-rot-soft: #fde8eb;
    --gu-gold: #ffce00;
    --gu-gold-hover: #e6b800;
    --gu-gold-soft: #fff7d6;

    /* Neutrals — Airbnb-style light surface system */
    --gu-bg: #ffffff;
    --gu-bg-subtle: #f7f7f7;
    --gu-bg-muted: #ebebeb;
    --gu-border: #ebebeb;
    --gu-border-strong: #dddddd;

    /* Text */
    --gu-text: #222222;
    --gu-text-secondary: #6a6a6a;
    --gu-text-muted: #717171;
    --gu-text-inverse: #ffffff;

    /* Semantic */
    --gu-primary: var(--gu-rot);
    --gu-primary-hover: var(--gu-rot-hover);
    --gu-accent: var(--gu-gold);
    --gu-accent-hover: var(--gu-gold-hover);
    --gu-dark: #222222;
    --gu-dark-hover: #000000;
    --gu-success: #008a05;
    --gu-warning: #b08000;
    --gu-danger: #c8102e;
    --gu-info: #0070c0;

    /* Overlay */
    --gu-overlay: rgba(0, 0, 0, 0.4);
    --gu-overlay-light: rgba(0, 0, 0, 0.18);

    /* Typography */
    --gu-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --gu-font-mono: 'SF Mono', Menlo, Monaco, Consolas, monospace;

    /* Type scale (1.25 ratio) */
    --gu-text-xs: 12px;
    --gu-text-sm: 14px;
    --gu-text-base: 16px;
    --gu-text-md: 18px;
    --gu-text-lg: 20px;
    --gu-text-xl: 24px;
    --gu-text-2xl: 32px;
    --gu-text-3xl: 40px;
    --gu-text-4xl: 48px;
    --gu-text-5xl: 64px;

    /* Font weights */
    --gu-fw-normal: 400;
    --gu-fw-medium: 500;
    --gu-fw-semibold: 600;
    --gu-fw-bold: 700;

    /* Line heights */
    --gu-leading-tight: 1.15;
    --gu-leading-snug: 1.3;
    --gu-leading-normal: 1.5;
    --gu-leading-relaxed: 1.65;

    /* Letter spacing */
    --gu-tracking-tight: -0.02em;
    --gu-tracking-normal: 0;
    --gu-tracking-wide: 0.02em;
    --gu-tracking-caps: 0.08em;

    /* Spacing (4px base) */
    --gu-space-0: 0;
    --gu-space-1: 4px;
    --gu-space-2: 8px;
    --gu-space-3: 12px;
    --gu-space-4: 16px;
    --gu-space-5: 20px;
    --gu-space-6: 24px;
    --gu-space-8: 32px;
    --gu-space-10: 40px;
    --gu-space-12: 48px;
    --gu-space-16: 64px;
    --gu-space-20: 80px;
    --gu-space-24: 96px;

    /* Layout */
    --gu-container: 1280px;
    --gu-container-narrow: 768px;
    --gu-container-wide: 1600px;

    /* Radii */
    --gu-radius-sm: 8px;
    --gu-radius: 12px;
    --gu-radius-md: 16px;
    --gu-radius-lg: 24px;
    --gu-radius-xl: 32px;
    --gu-radius-pill: 999px;

    /* Shadows (Airbnb-style soft, layered) */
    --gu-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --gu-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --gu-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --gu-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10);
    --gu-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);
    --gu-shadow-focus: 0 0 0 3px rgba(200, 16, 46, 0.3);

    /* Motion */
    --gu-duration-fast: 120ms;
    --gu-duration: 200ms;
    --gu-duration-slow: 320ms;
    --gu-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --gu-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --gu-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index scale */
    --gu-z-base: 1;
    --gu-z-sticky: 100;
    --gu-z-header: 200;
    --gu-z-dropdown: 300;
    --gu-z-popover: 400;
    --gu-z-modal: 1000;
    --gu-z-toast: 1100;
}
