/*
Theme Name: Parker Leather
Theme URI: https://parkerleather.co
Author: Parker Leather
Description: A custom theme for Parker Leather, handmade bovine and kangaroo leather goods crafted in Australia.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: parker-leather
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --ink: #1c1a17;
    --saddle: #6b4226;
    --saddle-dark: #4e2f1b;
    --oxblood: #7a2e2e;
    --parchment: #ede6d6;
    --parchment-deep: #ddd2ba;
    --brass: #a9812f;
    --brass-light: #c9a34e;
    --bone: #f7f3ea;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --max-width: 1180px;
    --radius: 6px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 3px;
}

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--brass);
    display: inline-block;
    margin-bottom: 14px;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
    background: var(--saddle);
    color: var(--bone);
}
.btn-primary:hover {
    background: var(--saddle-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--bone);
    border-color: var(--brass-light);
}
.btn-outline:hover {
    background: var(--brass-light);
    color: var(--ink);
    transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: relative;
    z-index: 10;
    background: var(--ink);
    color: var(--bone);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}
.site-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bone);
    letter-spacing: 0.02em;
}
.site-logo img { max-height: 42px; }

.primary-menu {
    list-style: none;
    display: flex;
    gap: 34px;
    margin: 0;
    padding: 0;
}
.primary-menu a {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bone);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.primary-menu a:hover { opacity: 1; color: var(--brass-light); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bone);
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 780px) {
    .primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ink);
        padding: 20px 28px;
        gap: 18px;
    }
    .primary-menu.is-open { display: flex; }
    .nav-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(180deg, var(--ink) 0%, var(--saddle-dark) 140%);
    color: var(--bone);
    padding: 100px 0 130px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -30%;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(201, 163, 78, 0.18);
    border-radius: 50%;
}
.hero-inner {
    max-width: 640px;
    position: relative;
}
.hero h1 {
    color: var(--bone);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 22px;
}
.hero p.lede {
    font-size: 1.15rem;
    color: rgba(247, 243, 234, 0.82);
    max-width: 520px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   STITCH DIVIDER (signature texture, used sparingly)
   ============================================================ */
.stitch-divider {
    height: 22px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--brass) 0px, var(--brass) 10px,
        transparent 10px, transparent 22px
    );
    background-position: center;
    background-size: 22px 1px;
    background-repeat: repeat-x;
    opacity: 0.55;
}

/* ============================================================
   SECTIONS (generic rhythm)
   ============================================================ */
.section {
    padding: 90px 0;
}
.section-dark {
    background: var(--ink);
    color: var(--bone);
}
.section-dark h2 { color: var(--bone); }
.section-header {
    max-width: 620px;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

/* ============================================================
   LEATHER TAG — signature component
   Used for: material comparisons, process steps, testimonials
   Mimics a real die-cut hang-tag: rounded card + punched hole.
   ============================================================ */
.leather-tag {
    position: relative;
    background: var(--bone);
    border-radius: var(--radius);
    padding: 34px 30px 30px 54px;
    box-shadow: 0 10px 24px rgba(28, 26, 23, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.leather-tag:hover {
    transform: translateY(-4px) rotate(-0.4deg);
    box-shadow: 0 16px 30px rgba(28, 26, 23, 0.18);
}
.leather-tag::before {
    /* the punched hole */
    content: "";
    position: absolute;
    left: 18px;
    top: 32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--parchment);
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.35);
}
.leather-tag::after {
    /* the cord loop through the hole */
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    width: 32px;
    height: 32px;
    border: 2px solid var(--brass);
    border-radius: 50%;
    clip-path: inset(50% -4px -4px -4px);
    opacity: 0.85;
}
.leather-tag .tag-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brass);
    display: block;
    margin-bottom: 8px;
}
.leather-tag h3 { font-size: 1.3rem; margin-bottom: 10px; }
.leather-tag p { font-size: 0.96rem; color: #4a463f; margin-bottom: 0; }

/* Materials grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 720px) {
    .materials-grid { grid-template-columns: 1fr; }
}

/* Process steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 960px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .process-grid { grid-template-columns: 1fr; }
}
.process-grid .leather-tag { padding-left: 30px; }
.process-grid .leather-tag::before,
.process-grid .leather-tag::after { display: none; }
.process-step-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brass);
    letter-spacing: 0.08em;
}

/* ============================================================
   SHOP SECTION (renders the [parker_leather_products] shortcode)
   ============================================================ */
.shop-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 50px;
}
.shop-intro .eyebrow { display: block; }

/* Style overrides so the plugin's product grid sits comfortably
   inside this theme's palette (the plugin ships its own base
   styles; these just harmonise the accent colour). */
.pl-buy-now-btn { background: var(--saddle) !important; }
.pl-buy-now-btn:hover { background: var(--saddle-dark) !important; }
.pl-product-card { border-color: var(--parchment-deep) !important; background: var(--bone) !important; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: var(--oxblood);
    color: var(--bone);
    text-align: center;
    padding: 70px 0;
}
.cta-banner h2 { color: var(--bone); margin-bottom: 18px; }
.cta-banner p { color: rgba(247, 243, 234, 0.85); max-width: 480px; margin: 0 auto 30px; }

/* ============================================================
   GENERIC PAGE CONTENT (page.php / index.php)
   ============================================================ */
.page-banner {
    background: var(--ink);
    color: var(--bone);
    padding: 70px 0 50px;
}
.page-banner h1 { color: var(--bone); margin-bottom: 0; }

.entry-content {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 28px;
    font-size: 1.05rem;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content a { color: var(--saddle); text-decoration: underline; text-decoration-color: var(--brass); }

.post-list {
    max-width: 780px;
    margin: 60px auto;
    padding: 0 28px;
}
.post-list article {
    padding: 28px 0;
    border-bottom: 1px solid var(--parchment-deep);
}
.post-list h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-list h2 a:hover { color: var(--saddle); }
.post-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--brass);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: var(--bone);
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .site-logo { margin-bottom: 14px; display: inline-block; }
.footer-brand p {
    color: rgba(247, 243, 234, 0.7);
    max-width: 320px;
    font-size: 0.95rem;
}
.footer-col h4 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--brass);
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(247, 243, 234, 0.82);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brass-light); }

.footer-bottom {
    border-top: 1px solid rgba(247, 243, 234, 0.12);
    padding: 22px 0;
    font-size: 0.82rem;
    color: rgba(247, 243, 234, 0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================================
   SCROLL REVEAL (subtle, respects reduced motion via theme.js)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
