/* ==========================================================================
   Goldmarket — Main Stylesheet
   Variables · Reset · Typography · Layout · Buttons
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors — Primary */
    --gm-primary: #0C3130;
    --gm-primary-light: #124947;
    --gm-primary-hover: #1a5d5a;
    --gm-primary-subtle: rgba(12, 49, 48, 0.06);

    /* Colors — Accent */
    --gm-accent: #FFBC7D;
    --gm-accent-dark: #FFB011;
    --gm-accent-hover: #e69a00;

    /* Colors — Surfaces */
    --gm-bg: #ffffff;
    --gm-bg-light: #F5F5F5;
    --gm-bg-subtle: #F9FAFB;
    --gm-bg-muted: #edf2f7;

    /* Colors — Text */
    --gm-text: #1f2937;
    --gm-text-light: #6b7280;
    --gm-text-muted: #9ca3af;

    /* Colors — Borders */
    --gm-border: #E5E7EB;
    --gm-border-light: #F3F4F6;
    --gm-border-hover: #d1d5db;

    /* Colors — Semantic */
    --gm-success: #16a34a;
    --gm-danger: #ef4444;
    --gm-warning: #f59e0b;
    --gm-info: #3b82f6;

    /* Typography */
    --gm-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gm-font-serif: 'Roboto Slab', Georgia, serif;

    /* Layout */
    --gm-container: 1468px;
    --gm-container-padding: 20px;
    --gm-header-h: 72px;

    /* Spacing Scale */
    --gm-gap-xs: 8px;
    --gm-gap-sm: 12px;
    --gm-gap: 16px;
    --gm-gap-md: 24px;
    --gm-gap-lg: 32px;
    --gm-gap-xl: 48px;
    --gm-gap-2xl: 64px;

    /* Radii */
    --gm-radius-xs: 6px;
    --gm-radius-sm: 8px;
    --gm-radius: 12px;
    --gm-radius-lg: 16px;
    --gm-radius-xl: 24px;
    --gm-radius-full: 9999px;

    /* Shadows */
    --gm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gm-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --gm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --gm-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --gm-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --gm-transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --gm-transition-spring: 600ms cubic-bezier(0.22, 1, 0.36, 1);

    /* Focus ring */
    --gm-focus-ring: 0 0 0 3px var(--gm-primary-subtle);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--gm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gm-text);
    background-color: var(--gm-bg);
    overflow-x: clip;
}

body.gm-menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--gm-transition);
}

a:hover {
    color: var(--gm-primary-hover);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Override any Elementor Kit global button styles bleeding through */
.gm-header button,
.gm-faq button,
.gm-tier-section button,
.gm-cattabs button,
.gm-cta-banner button,
.gm-product-card button {
    background: transparent;
    color: inherit;
}

ul, ol {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.15;
    color: var(--gm-text);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
h6 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p {
    line-height: 1.65;
}

small, .gm-text-sm {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.gm-text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.gm-text-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Layout ---------- */
.gm-container {
    width: 100%;
    max-width: var(--gm-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gm-container-padding);
    padding-right: var(--gm-container-padding);
}

.gm-container-wide {
    max-width: 1400px;
}

.gm-section {
    padding-top: var(--gm-gap-xl);
    padding-bottom: var(--gm-gap-xl);
}

.gm-grid {
    display: grid;
    gap: var(--gm-gap-md);
}

.gm-flex {
    display: flex;
    align-items: center;
}

.gm-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;
}

/* ---------- Buttons ---------- */
.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gm-gap-xs);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
    border-radius: var(--gm-radius);
    transition: background var(--gm-transition), border-color var(--gm-transition), color var(--gm-transition), box-shadow var(--gm-transition), transform var(--gm-transition);
    white-space: nowrap;
    cursor: pointer;
    will-change: transform;
}

.gm-btn:hover {
    transform: translateY(-1px);
}

.gm-btn:active {
    transform: translateY(0) scale(0.98);
}

.gm-btn:focus-visible {
    outline: none;
    box-shadow: var(--gm-focus-ring);
}

.gm-btn-primary {
    background-color: var(--gm-primary);
    color: #fff;
    border: 1px solid var(--gm-primary);
}

.gm-btn-primary:hover {
    background-color: var(--gm-primary-hover);
    border-color: var(--gm-primary-hover);
    color: #fff;
}

.gm-btn-accent {
    background-color: var(--gm-accent-dark);
    color: #fff;
    border: 1px solid var(--gm-accent-dark);
}

.gm-btn-accent:hover {
    background-color: var(--gm-accent-hover);
    border-color: var(--gm-accent-hover);
    color: #fff;
}

.gm-btn-outline {
    border: 1px solid var(--gm-border);
    color: var(--gm-text);
    background: var(--gm-bg);
}

.gm-btn-outline:hover {
    border-color: var(--gm-primary);
    color: var(--gm-primary);
}

.gm-btn-sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

.gm-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.gm-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--gm-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Breadcrumb ---------- */
.gm-breadcrumb {
    margin-bottom: var(--gm-gap);
}

.gm-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--gm-gap-xs);
    list-style: none;
    font-size: 0.8125rem;
    color: var(--gm-text-muted);
}

.gm-breadcrumb-item a {
    color: var(--gm-text-muted);
    transition: color var(--gm-transition);
}

.gm-breadcrumb-item a:hover {
    color: var(--gm-primary);
}

.gm-breadcrumb-current {
    color: var(--gm-text);
    font-weight: 600;
}

.gm-breadcrumb-sep {
    color: var(--gm-border-hover);
    font-size: 0.75rem;
}

/* ---------- Page ---------- */
.gm-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--gm-gap-md);
}

/* ---------- Pagination ---------- */
.gm-pagination {
    margin-top: var(--gm-gap-xl);
}

.gm-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
}

.gm-pagination .page-numbers li a,
.gm-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--gm-gap-sm);
    border-radius: var(--gm-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gm-text);
    border: 1px solid var(--gm-border);
    transition: all var(--gm-transition);
}

.gm-pagination .page-numbers li a:hover {
    border-color: var(--gm-primary);
    color: var(--gm-primary);
}

.gm-pagination .page-numbers li span.current {
    background: var(--gm-primary);
    color: #fff;
    border-color: var(--gm-primary);
}

.gm-pagination .prev,
.gm-pagination .next {
    font-weight: 600;
}

/* ---------- Empty State ---------- */
.gm-empty-state {
    text-align: center;
    padding: var(--gm-gap-2xl) var(--gm-gap-lg);
}

.gm-empty-state-icon {
    color: var(--gm-text-muted);
    margin-bottom: var(--gm-gap);
}

.gm-empty-state-title {
    font-size: 1.25rem;
    margin-bottom: var(--gm-gap-xs);
}

.gm-empty-state-text {
    color: var(--gm-text-light);
    margin-bottom: var(--gm-gap-md);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    :root {
        --gm-container-padding: 16px;
        --gm-header-h: 60px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .gm-section {
        padding-top: var(--gm-gap-lg);
        padding-bottom: var(--gm-gap-lg);
    }

    .gm-breadcrumb {
        margin-bottom: var(--gm-gap-sm);
    }

    .gm-breadcrumb-list {
        font-size: 0.75rem;
    }

    .gm-page-title {
        font-size: 1.25rem;
        margin-bottom: var(--gm-gap);
    }

    .gm-pagination {
        margin-top: var(--gm-gap-lg);
    }

    .gm-pagination .page-numbers li a,
    .gm-pagination .page-numbers li span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}
