/* Nordic Global Styles - Tablez.ai */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* 1. Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: var(--radius-none) !important;
}

body {
    font-family: var(--font-nordic);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-xs {
    font-size: 10px;
}

.text-sm {
    font-size: 12px;
}

.text-base {
    font-size: 16px;
}

.text-xl {
    font-size: clamp(20px, 5vw, 24px);
}

.text-huge {
    font-size: clamp(40px, 10vw, 60px);
}

.font-black {
    font-weight: 900;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: var(--font-mono);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.tracking-tight {
    letter-spacing: -0.05em;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: border-bottom-color var(--transition-fast);
    border-bottom: 1px solid rgba(28, 28, 30, 0.3);
}

a:hover {
    border-bottom-color: rgba(28, 28, 30, 1);
}

/* 3. Layout */
.container-nordic {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4);
}

@media (min-width: 768px) {
    .container-nordic {
        padding: var(--space-6);
    }
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

/* Header Architecture */
.header-nordic {
    border-bottom: 1px solid var(--nordic-border);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: var(--space-4) !important;
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav {
    width: 100%;
}

.nav-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: var(--space-4) var(--space-6) !important;
    }

    .header-nav {
        width: auto;
    }

    .nav-cta-group {
        width: auto;
    }
}

/* 4. Industrial Button Logic */
.nordic-border {
    border: var(--border-width) solid var(--border-main);
}

.btn-nordic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: var(--border-width) solid var(--border-main);
    background: transparent;
    color: var(--text-main);
    gap: var(--space-1);
    white-space: nowrap;
    width: fit-content;
}

@media (max-width: 767px) {
    .btn-nordic {
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }
}

.btn-nordic-primary {
    background-color: var(--nordic-primary);
    color: #fff;
}

.btn-nordic-primary:hover {
    opacity: 0.9;
}

.btn-nordic-outline:hover {
    background-color: var(--nordic-bg);
}

/* 5. Form Architecture */
.form-group-nordic {
    position: relative;
    width: 100%;
}

.form-label-nordic {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--nordic-secondary);
    position: absolute;
    top: -6px;
    left: 12px;
    background: var(--nordic-surface);
    padding: 0 4px;
    z-index: 10;
    pointer-events: none;
}

.input-nordic {
    width: 100%;
    background-color: var(--nordic-surface);
    border: var(--border-width) solid var(--border-main);
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    transition: all var(--transition-fast);
    color: var(--text-main);
}

.input-nordic:focus {
    border-color: var(--nordic-primary);
    background-color: #fff;
}

.input-nordic-icon {
    padding-left: 44px;
}

.input-icon-wrapper {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nordic-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .material-symbols-outlined {
    font-size: 20px;
}

/* 6. Spacing & Layout Utilities */
.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-10 {
    margin-bottom: 80px;
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-10 {
    margin-top: 80px;
}

.mt-12 {
    margin-top: var(--space-12);
}

.pb-2 {
    padding-bottom: var(--space-2);
}

.pb-4 {
    padding-bottom: var(--space-4);
}

.pb-6 {
    padding-bottom: var(--space-6);
}

.pb-8 {
    padding-bottom: var(--space-8);
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-5 {
    gap: var(--space-5);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.w-full {
    width: 100%;
}

.text-secondary {
    color: var(--nordic-secondary);
}

.bg-white {
    background-color: #fff;
}

.flex-1 {
    flex: 1;
}

.leading-tight {
    line-height: 0.9;
}

/* 7. Nordic Specific Components */
/* Full-height page wrapper. The marketing pages use this on a top-level
   <div> so the footer sticks to the viewport bottom even when content
   is short. */
.page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header logo link. Lays out the symbol and wordmark inline; removes
   the global underline that would otherwise be inherited from the base
   <a> rule. */
.brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: inherit;
    border-bottom: none;
}

.brand-link:hover {
    border-bottom-color: transparent;
}

.card-nordic {
    background-color: var(--nordic-surface);
    border: var(--border-width) solid var(--border-main);
    padding: var(--space-4);
}

.status-badge {
    padding: 6px 12px;
    border: 1px solid currentColor;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #fff;
    display: inline-flex;
    align-items: center;
}

.swatch-nordic {
    height: 120px;
    border: 1px solid var(--nordic-border);
    margin-bottom: var(--space-2);
}

/* Tag Colour Modifiers
   Used with the .tag base class (defined per page with its own padding /
   font-size). The base sets `border: 1px solid currentColor`, so a single
   `color:` declaration colours both text and border. */
.tag--info {
    color: var(--nordic-info);
}
.tag--success {
    color: var(--nordic-success);
}
.tag--warning {
    color: var(--nordic-warning);
}
.tag--vip {
    color: var(--nordic-vip);
}
.tag--clay {
    color: var(--nordic-clay);
}
.tag--secondary {
    color: var(--nordic-secondary);
    opacity: 0.6;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24;
}

/* Grid Background Pattern - Subtle Watermark behind everything */
body {
    position: relative;
    background-color: var(--nordic-bg);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(28, 28, 30, 0.04) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    z-index: -1;
    pointer-events: none;
}
