/* =============================================================
   PECANTOWN SITE — Visual Polish Skin  v1.0.3

   Strategy: scoped overrides on existing theme selectors.
   No layout changes, no !important here (those live in the
   wp_head inline block in pecantown-site.php).
   Consistent with game/src/app/components/ShopPage.module.css.
   Fully reversible by deactivating this plugin.
   ============================================================= */

/* ─── Design Tokens ─────────────────────────────────────────
   Mirrors pecantown-woo.css :root block for consistency.      */
:root {
    --pts-ink:       #31231a;
    --pts-ink-soft:  #6c6055;
    --pts-pecan-mid: #816450;
    --pts-gold:      #b88a42;
    --pts-gold-deep: #94682d;
    --pts-paper:     #f4efe5;
    --pts-line:      #dccdbb;
    --pts-shadow:    0 16px 40px rgba(49, 35, 26, 0.08);
    --pts-shadow-lg: 0 20px 50px rgba(49, 35, 26, 0.14);
    --pts-display:   'Lora', 'Iowan Old Style', Georgia, serif;
    --pts-body:      'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}


/* ─── Base Typography ───────────────────────────────────────
   Inter for body copy; Lora for display headings.
   Scope headings to .content-area and .subfooter to avoid
   touching WP admin or any theme chrome we don't own.          */
body {
    font-family: var(--pts-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4 {
    font-family: var(--pts-display);
    letter-spacing: -0.02em;
}

.subfooter h3.wp-block-heading {
    font-family: var(--pts-display);
    letter-spacing: 0;
    font-size: 1rem;
    font-weight: 600;
}


/* ─── Hero: Left Column ─────────────────────────────────────
   .wp-block-cover.bg-home wraps the pecantown logo background
   + H1 + H2 + separator + CTA button.                         */

/* H1 "Welcome to Pecantown Books and Brews" */
.wp-block-cover.bg-home .wp-block-heading.has-brown-color {
    font-family: var(--pts-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

/* H2 subheading "Curated bookstore paired with…"
   Render in body-family so it reads as supporting text,
   not a competing headline. Color handled in wp_head block. */
.wp-block-cover.bg-home .wp-block-heading.has-turquoise-color {
    font-family: var(--pts-body);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
}


/* ─── Hero CTA Button ───────────────────────────────────────
   Background/color overridden via wp_head (needs !important
   to beat theme utility class). Here: shape and motion only. */
.wp-block-button__link.has-turquoise-background-color {
    font-family: var(--pts-display);
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(49, 35, 26, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
    .wp-block-button__link.has-turquoise-background-color {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .wp-block-button__link.has-turquoise-background-color:hover,
    .wp-block-button__link.has-turquoise-background-color:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(49, 35, 26, 0.24);
    }
}

/* Visible focus ring — gold glow matching ptb-focus-ring token */
.wp-block-button__link.has-turquoise-background-color:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(184, 138, 66, 0.45),
        0 8px 24px rgba(49, 35, 26, 0.18);
}


/* ─── HR Separator ──────────────────────────────────────────
   Color overridden in wp_head. Here: reduce visual weight so
   the gold line reads as an accent, not a divider.            */
.wp-block-separator.hr-thicker {
    opacity: 0.55;
    width: 56px;
    margin: 22px auto;
}


/* ─── MetaSlider Frame ──────────────────────────────────────
   Rounded corners and warm drop-shadow on the image carousel.

   Clipping strategy: SmartSlider's own CSS already sets
   overflow:hidden on .n2-ss-slider-2 (the slide transition
   layer). We add border-radius there to clip the images.
   The outer .n2-section-smartslider keeps border-radius for
   the box-shadow shape but NO overflow:hidden, so the arrow
   controls at left:-15px / right:-15px are never clipped.    */
.n2-section-smartslider {
    border-radius: 20px;
    box-shadow: var(--pts-shadow-lg);
}

/* Apply radius to the layer SmartSlider already clips for
   slide transitions — images get rounded corners here.        */
.n2-ss-slider-2 {
    border-radius: 20px;
}

/* Slightly tighter radius at narrow widths when the slider
   is full-width stacked below the hero copy on mobile.        */
@media (max-width: 599px) {
    .n2-section-smartslider,
    .n2-ss-slider-2 {
        border-radius: 14px;
    }
}


/* ─── Staff Picks Section ───────────────────────────────────
   .content-radius-full is the theme's rounded-corner wrapper
   used on the Staff Picks block. Elevate with shadow.
   Background colour overridden in wp_head (pure white → warm
   parchment). The bookshop.org widget inside is third-party
   and not targetable; we only style the container.            */
.wp-block-pc-block-wrap.content-radius-full {
    box-shadow: var(--pts-shadow);
}

.wp-block-pc-block-wrap.content-radius-full .wp-block-heading {
    font-family: var(--pts-display);
    letter-spacing: -0.02em;
}


/* ─── What We Believe Section ───────────────────────────────
   Full-bleed parallax cover block. The manifesto text sits
   inside a white card (.wp-block-pc-block-wrap) layered over
   the parallax image — NOT directly on the dark overlay.
   The card text color inherits white from the cover block
   context; dark text is forced via the wp_head overrides.
   Here: heading typography + inner container width only.     */

.wp-block-cover.has-parallax .wp-block-heading {
    font-family: var(--pts-display);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.wp-block-cover.has-parallax .wp-block-cover__inner-container {
    max-width: 720px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* Manifesto list items — generous line-height */
.wp-block-cover.has-parallax .wp-block-list li {
    line-height: 1.7;
}


/* ─── Navigation ────────────────────────────────────────────
   Modernize the theme header without replacing templates. The
   treatment mirrors the /shop topbar: translucent parchment,
   restrained text links, and a stronger commerce CTA.          */
header > .audience-menu,
header.type3 > .audience-menu {
    display: none !important;
    font-family: var(--pts-body);
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

header.type3.site-header,
header.type3.has-black-gradient-background-color {
    background: rgba(251, 247, 240, 0.92);
    border-bottom: 1px solid rgba(129, 100, 80, 0.14);
    box-shadow: 0 10px 30px rgba(49, 35, 26, 0.06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

header.type3 > .inner,
header.type3.top > .inner {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
}

header.type3 > .inner > .header-tools .social-icons,
header.type3 > .inner > .header-tools .icon-facebook,
header.type3 > .inner > .header-tools .icon-instagram,
header.type3 > .inner > .header-tools .icon-email {
    display: none !important;
}

header.type3 .site-branding {
    z-index: 2;
}

.menu-container {
    z-index: 90;
    background: transparent;
    box-shadow: none;
}

.menu-container *,
.menu-container *::before,
.menu-container *::after {
    box-sizing: border-box;
}

.menu-container a {
    text-decoration: none;
}

.menu-container .menu-main-menu-container > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-container .menu-main-menu-container > ul > li {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-container .menu-main-menu-container > ul > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--pts-ink-soft);
    font-family: var(--pts-body);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.menu-container .menu-main-menu-container > ul > li:hover > a,
.menu-container .menu-main-menu-container > ul > li.current_page_item > a,
.menu-container .menu-main-menu-container > ul > li.current-menu-item > a,
.menu-container .menu-main-menu-container > ul > li > a:focus-visible {
    color: var(--pts-ink);
    background: rgba(184, 138, 66, 0.1);
}

.menu-container .menu-main-menu-container > ul > li > a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 138, 66, 0.35);
}

.menu-container .menu-main-menu-container > ul > li > a.pts-shop-cta {
    gap: 8px;
    margin-left: 4px;
    padding-inline: 16px;
    border: 1px solid rgba(184, 138, 66, 0.38);
    background: var(--pts-ink);
    color: #fffaf4;
    box-shadow: var(--pts-shadow);
}

.menu-container .menu-main-menu-container > ul > li > a.pts-shop-cta:hover,
.menu-container .menu-main-menu-container > ul > li:hover > a.pts-shop-cta,
.menu-container .menu-main-menu-container > ul > li > a.pts-shop-cta:focus-visible {
    background: #5e4535;
    color: #fffaf4;
    transform: translateY(-1px);
}

.pts-shop-cta-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.pts-shop-cta-label {
    line-height: 1;
}

.menu-container .menu-main-menu-container > ul > li > ul {
    min-width: 220px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid rgba(129, 100, 80, 0.16);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--pts-shadow-lg);
}

.menu-container .menu-main-menu-container > ul > li > ul a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--pts-ink-soft);
    font-family: var(--pts-body);
    font-size: 0.92rem;
    line-height: 1.25;
}

.menu-container .menu-main-menu-container > ul > li > ul a:hover,
.menu-container .menu-main-menu-container > ul > li > ul a:focus-visible {
    color: var(--pts-ink);
    background: rgba(184, 138, 66, 0.12);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .menu-container .menu-main-menu-container > ul > li > a {
        transition: none;
    }

    .menu-container .menu-main-menu-container > ul > li > a.pts-shop-cta:hover,
    .menu-container .menu-main-menu-container > ul > li:hover > a.pts-shop-cta,
    .menu-container .menu-main-menu-container > ul > li > a.pts-shop-cta:focus-visible {
        transform: none;
    }
}

@media (max-width: 720px) {
    header.type3.open > .mobile-menu-bg {
        background: rgba(251, 247, 240, 0.98);
    }

    header.type3.open .menu-container {
        background: rgba(251, 247, 240, 0.98);
    }

    .menu-container .menu-main-menu-container > ul {
        align-items: stretch;
        gap: 4px;
        min-height: auto;
        padding-block: 10px;
    }

    .menu-container .menu-main-menu-container > ul > li {
        align-items: stretch;
    }

    .menu-container .menu-main-menu-container > ul > li > a {
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        white-space: normal;
    }

    .menu-container .menu-main-menu-container > ul > li > a.pts-shop-cta {
        justify-content: center;
        margin: 6px 0 0;
    }

    .menu-container .menu-main-menu-container > ul > li > ul {
        min-width: 100%;
        margin-top: 4px;
        box-shadow: none;
    }
}


/* ─── Subfooter ─────────────────────────────────────────────
   Add a warm top border. Background for the section and
   heading colours handled in wp_head block.                   */
.subfooter {
    border-top: 1px solid var(--pts-line);
}

/* Footer body links — soften from pure black */
.subfooter a {
    color: var(--pts-ink-soft);
}

.subfooter a:hover,
.subfooter a:focus-visible {
    color: var(--pts-ink);
}
