/**
 * Global Styles — Picklemall
 *
 * Minimal base: reset, typography, layout utilities.
 * Elementor handles page layout; keep this file lean.
 */

/* ── Custom font faces ───────────────────────────────────────────────── */

@font-face {
    font-family: 'A Love of Thunder';
    src: url('../fonts/a_love_of_thunder/A Love of Thunder.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TheGraffitiFont';
    src: url('../fonts/the-graffiti-font/THEGRAFFITIFONT-DEMOVERSION.otf') format('opentype'),
        url('../fonts/the-graffiti-font/THEGRAFFITIFONT-DEMOVERSION.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--pm-font-sans);
    font-size: var(--pm-text-base);
    font-weight: var(--pm-weight-regular);
    line-height: var(--pm-leading-normal);
    color: var(--pm-color-type-body);
    background: var(--pm-color-white);
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────────────── */

h1,
h2,
h3 {
    font-family: var(--pm-font-header);
    font-weight: var(--pm-weight-regular);
    line-height: var(--pm-leading-tight);
    color: var(--pm-color-type-heading);
}

h4,
h5,
h6 {
    font-family: var(--pm-font-sans);
    line-height: var(--pm-leading-snug);
    color: var(--pm-color-type-heading);
}

h1 {
    font-size: var(--pm-text-xxlarge);
}

h2 {
    font-size: var(--pm-text-xlarge);
}

h3 {
    font-size: var(--pm-text-large);
}

h4 {
    font-size: var(--pm-text-medium);
    font-weight: var(--pm-weight-semibold);
}

h5 {
    font-size: var(--pm-text-small);
    font-weight: var(--pm-weight-regular);
}

h6 {
    font-size: var(--pm-text-xsmall);
    font-weight: var(--pm-weight-semibold);
}

p {
    margin-block-end: var(--pm-space-4);
}

a {
    color: var(--pm-color-type-link);
    text-decoration: none;
    transition: color var(--pm-duration-fast) var(--pm-ease);
}

a:hover {
    color: var(--pm-color-primary-dark);
    text-decoration: underline;
}

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

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

ul,
ol {
    list-style: none;
}

/* ── Layout ──────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--pm-max-width);
    margin-inline: auto;
    padding-inline: var(--pm-gutter);
}

.site-content {
    min-height: 60vh;
}

/* ── Accessibility ────────────────────────────────────────────────────── */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--pm-space-4);
    background: var(--pm-color-primary);
    color: var(--pm-color-white);
    padding: var(--pm-space-2) var(--pm-space-4);
    border-radius: var(--pm-radius-md);
    z-index: var(--pm-z-toast);
    transition: top var(--pm-duration-fast);
}

.skip-link:focus {
    top: var(--pm-space-4);
}

/* ── Site header ──────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--pm-z-header);
    background: var(--pm-color-white);
    border-block-end: 1px solid var(--pm-color-gray-100);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pm-space-4);
    padding-block: var(--pm-space-3);
}

.pm-nav {
    display: flex;
    gap: var(--pm-space-6);
    align-items: center;
}

.pm-nav a {
    font-size: var(--pm-text-body);
    font-weight: var(--pm-weight-medium);
    color: var(--pm-color-type-heading);
}

.pm-nav a:hover {
    color: var(--pm-color-primary);
    text-decoration: none;
}

.pm-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--pm-space-2);
}

.pm-nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pm-color-type-heading);
    border-radius: 2px;
    transition: opacity var(--pm-duration-fast);
}

.pm-mobile-nav {
    display: none;
    padding: var(--pm-space-4);
    border-block-end: 1px solid var(--pm-color-gray-100);
}

.pm-mobile-nav[aria-hidden="false"] {
    display: block;
}

.pm-mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--pm-space-3);
}

@media (max-width: 768px) {
    .site-header__nav {
        display: none;
    }

    .pm-nav-toggle {
        display: flex;
    }
}

/* ── Site footer ──────────────────────────────────────────────────────── */

.site-footer {
    background: var(--pm-color-gray-900);
    color: var(--pm-color-gray-300);
    padding-block: var(--pm-space-8);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pm-space-4);
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--pm-color-gray-300);
}

.site-footer a:hover {
    color: var(--pm-color-white);
    text-decoration: none;
}

.pm-footer-nav {
    display: flex;
    gap: var(--pm-space-6);
}

.site-footer__copy {
    font-size: var(--pm-text-caption);
    color: var(--pm-color-gray-500);
    margin: 0;
}

/* ── Elementor overrides ──────────────────────────────────────────────── */

.elementor-section.pm-no-padding {
    padding-block: 0 !important;
}

.elementor-section.elementor-section-full_width {
    width: 100% !important;
}

/* ── Print ────────────────────────────────────────────────────────────── */

@media print {

    .site-header,
    .site-footer,
    .skip-link {
        display: none;
    }
}