/**
 * General Site Styles + Navbar
 * 
 * Styling for page layout, typography, sections, and fixed top navbar.
 * The palette menu styles are in palette.css.
 */

/* ============================================================================
   RESET & DEFAULTS
   ============================================================================ */

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

/* ============================================================================
   User-requested overrides: fonts, sticky navbar, hero card, and mobile tweaks
   ============================================================================ */

:root {
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

/* Ensure nav labels use Playfair Display */
.nav-label {
    font-family: var(--font-display) !important;
}

/* Make navbar sticky (falls back to fixed via important if needed) */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    /* Prefer the center brush image over any navbar background image */
    .navbar { background-image: none !important; }

    /* Mobile grid navbar layout */
    .jr-nav { min-height: 72px !important; }
    .jr-nav .navbar-inner { display: grid !important; grid-template-columns: auto 1fr auto !important; align-items: center !important; padding-left: 4px !important; padding-right: 10px !important; }

    /* Left socials: keep visible, constrain size */
    .jr-nav .jr-left-inline { display: flex !important; align-items: center !important; gap: 10px !important; }
    .jr-nav .jr-left-inline .jr-social { width: 44px !important; height: 44px !important; }
    .jr-nav .jr-left-inline .jr-social svg { width: 100% !important; height: 100% !important; }
    .jr-nav .jr-left-mobile { display: none !important; }

    /* Center brush logo - keep centered, slightly smaller */
    .jr-nav .jr-center { display: flex !important; justify-content: center !important; align-items: center !important; pointer-events: none; }
    .jr-nav .jr-decor { transform: scale(1); transform-origin: center; max-height: 40px !important; width: 100% !important; max-width: 180px !important; object-fit: contain !important; height: auto !important; }

    /* Right: menu toggle tap target */
    .jr-nav .jr-right { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; }
    .jr-nav .menu-toggle { width: 64px !important; height: 64px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; margin: 0 !important; }
    .jr-nav .menu-toggle .menu-icon { width: 54px !important; height: 54px !important; object-fit: contain !important; }

    /* Ensure palette menu centers on mobile instead of anchoring to top-right */
    .jr-nav .jr-right > #palette-menu { position: fixed !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -40%) !important; right: auto !important; z-index: 2000 !important; }
    .jr-nav .jr-right > #palette-menu .palette-panel { position: relative !important; right: auto !important; top: auto !important; transform-origin: center center !important; }

    /* Push socials further left and menu further right */
    .jr-nav .jr-left { margin-left: -32px !important; }
    .jr-nav .jr-right { margin-right: -12px !important; }

    /* Ensure hero/welcome starts at top after navbar */
    html { scroll-padding-top: 78px; }
    main, .page-content, .content-wrapper { margin-top: 0 !important; padding-top: var(--nav-height-mobile) !important; }
    #home, #about, #store, #features, #contact { scroll-margin-top: 78px; }
}

/* Menu icon: make 50% larger and ensure vertical centering in navbar */
.jr-nav .palette-toggle { display: flex !important; align-items: center !important; justify-content: center !important; }
.jr-nav .palette-toggle .menu-icon { width: 42px !important; height: 42px !important; pointer-events: auto !important; }

@media (min-width: 1024px) {
    /* desktop: scale the icon ~50% larger than earlier desktop rule (63px -> ~95px) */
    .jr-nav .palette-toggle .menu-icon { width: 95px !important; height: 95px !important; }
}


html {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    /* ensure anchors don't hide under the fixed navbar */
    scroll-padding-top: var(--nav-height-desktop);
}

:root {
    --page-bg: #2f2f2f;
    --card-bg: rgba(200,200,200,0.78);
    --card-text: #1c1c1c;
    --nav-height-desktop: 86px;
    --nav-height-mobile: 54px;
}

/* Use darker page background and light grey cards per request */
:root {
    --page-bg: #3a3a3a;
    --card-bg: #c6c6c6;
    --card-text: #1c1c1c;
}

/* Font variables: display (fancy) and body */
:root {
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* TEMP NAVBAR RESET (keeps layout stable during adjustments) */
.hero-inner {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
    z-index: 1;
    display: flex;
    .jr-nav .jr-social-label{ display:none !important; }
    .jr-nav .jr-left-inline .jr-social{ width: 36px !important; height: 36px !important; display:inline-flex; align-items:center; justify-content:center; }
    .jr-nav .jr-left-inline .jr-social svg{ width: 100% !important; height: 100% !important; }

    /* Center: make decorative image participate in flex flow and shrink as needed */
    .jr-nav .jr-center{ position: static !important; left: auto !important; top: auto !important; transform: none !important; pointer-events: auto !important; display:flex !important; align-items:center !important; justify-content:center !important; flex: 1 1 auto !important; min-width: 0 !important; }
    .jr-nav .jr-decor{ height: 40px !important; max-height: 40px !important; width: 100% !important; max-width: 100% !important; object-fit: cover !important; object-position: center !important; }

    /* Right: palette/menu trigger stays pinned to far right */
    .jr-nav .jr-right{ display:flex !important; align-items:center !important; gap:10px !important; margin-left: auto !important; }
    .jr-nav .palette-toggle{ margin-left: 0 !important; }

    /* Prevent any overflowing children (e.g., absolute panel) from pushing layout */
    .jr-nav * { max-width: 100% !important; box-sizing: border-box !important; }
}

@media (max-width:480px){
    .jr-nav{ height: 56px !important; }
    .jr-nav .jr-decor{ height: 34px !important; max-height: 34px !important; }
    .jr-nav .jr-left-inline .jr-social{ width: 34px !important; height: 34px !important; }
    .jr-nav .jr-left-inline{ gap:8px !important; }
}

/* Override old fixed/floating palette/menu styles so the new bar controls layout */
/* Ensure palette container anchors to jr-right instead of viewport */
.jr-nav .jr-right > #palette-menu { position: fixed !important; top: calc(var(--nav-height-desktop) + 6px) !important; right: 12px !important; z-index: 2000 !important; pointer-events: auto !important; }
.jr-nav .jr-right > #palette-menu .palette-panel { position: fixed !important; right: 12px !important; top: calc(var(--nav-height-desktop) + 6px) !important; transform-origin: top right !important; z-index: 2001 !important; }
.jr-nav .jr-right > #palette-menu .palette-overlay { position: fixed !important; inset: 0 !important; z-index: 1999 !important; }
.jr-nav .palette-toggle { position: relative !important; margin-left: 8px !important; background: transparent !important; border: none !important; box-shadow: none !important; z-index: 2100 !important; pointer-events: auto !important; }
.jr-nav .palette-toggle .menu-icon { width: 28px !important; height: 28px !important; object-fit: contain !important; pointer-events: none !important; }
.palette-toggle:hover .menu-icon, .palette-toggle .menu-icon { animation: none !important; }
.palette-toggle:focus, .palette-toggle:focus-visible { outline: none !important; box-shadow: none !important; }

/* Desktop left cluster sizing */
.jr-nav .jr-left-inline { display:flex; align-items:center; gap:10px; }
.jr-nav .jr-left-inline .jr-social { width: 36px; height: 36px; display:inline-flex; align-items:center; justify-content:center; }
.nav-label { font-family: var(--font-display) !important; font-weight:700; margin-left:10px; font-size:28px; color:#1F1F1F; line-height:1; }
.nav-label.nav-label-menu { margin-right: 8px; }

/* Mobile: hide inline icons, show mobile socials button */
.jr-nav .jr-left-mobile{ display:none; }
@media (max-width:768px){
    .jr-nav .jr-left-inline{ display:none !important; }
    .jr-nav .jr-left-mobile{ display:block !important; }
    .jr-nav .jr-left-mobile .socials-toggle{ font-family: var(--font-display); font-weight:700; background:none; border:none; }
}

/* ensure center layer doesn't disturb layout flow */
.jr-nav .jr-center{ pointer-events:auto; }

/* Right cluster */
.jr-nav .jr-right{ display:flex; align-items:center; gap:10px; }
.jr-nav .jr-menu-label{ font-family: var(--font-display); font-weight:700; }

/* Cart brush link */
.jr-cart-link { display: inline-flex; align-items: center; justify-content: center; padding: 6px; border-radius: 10px; transition: transform 120ms ease, filter 120ms ease, box-shadow 160ms ease; }
.jr-cart-link:focus-visible { outline: 2px solid rgba(0,0,0,0.35); outline-offset: 4px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.jr-cart-link:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.jr-cart-link:active { transform: scale(0.98); }
.jr-decor { pointer-events: none; }

/* Cart page */
.cart-section { display: flex; justify-content: center; padding: 48px 16px 72px; }
.cart-shell { width: min(960px, 95vw); display: flex; justify-content: center; }
.cart-card { width: min(560px, 90vw); background: #f5f5f5; color: #1c1c1c; padding: 28px 28px 32px; position: relative; border: 1px solid rgba(0,0,0,0.25); border-radius: 16px; box-shadow: 0 18px 38px rgba(0,0,0,0.18), 0 6px 18px rgba(0,0,0,0.12); }
.cart-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,0.35); border-radius: 12px; pointer-events: none; }
.cart-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; letter-spacing: 0.3px; }
.cart-subtitle { font-family: var(--font-body); color: #4b4b4b; margin-bottom: 18px; }

.cart-items { margin-top: 10px; overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.cart-table th { text-align: left; font-weight: 600; color: #3a3a3a; padding: 10px 6px; border-bottom: 1px solid rgba(0,0,0,0.15); }
.cart-table td { padding: 10px 6px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.cart-item .item-title { font-weight: 600; }
.cart-item .item-actions { text-align: right; }

.cart-summary { margin: 18px 0 10px; padding: 14px 12px; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.12); border-radius: 12px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.6); }
.summary-row { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 1rem; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; }
.total-amount { font-family: var(--font-display); letter-spacing: 0.3px; }

.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cart-actions .btn { flex: 1 1 200px; text-align: center; }

.btn-cart-primary { background: linear-gradient(135deg, #d8d0c4, #c5b8a6); color: #1c1c1c; border: 1px solid rgba(0,0,0,0.18); padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.16); transition: transform 120ms ease, box-shadow 160ms ease, filter 120ms ease; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn-cart-primary:hover { filter: brightness(0.98); box-shadow: 0 14px 28px rgba(0,0,0,0.2); }
.btn-cart-primary:active { transform: translateY(1px) scale(0.99); }
.btn-cart-primary:focus-visible { outline: 2px solid rgba(0,0,0,0.4); outline-offset: 3px; }

.btn-cart-secondary { background: transparent; color: #1c1c1c; border: 1px solid rgba(0,0,0,0.2); padding: 12px 18px; border-radius: 10px; transition: background 120ms ease, color 120ms ease, box-shadow 160ms ease; }
.btn-cart-secondary:hover { background: rgba(0,0,0,0.04); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.btn-cart-secondary:active { transform: translateY(1px); }
.btn-cart-secondary:focus-visible { outline: 2px solid rgba(0,0,0,0.35); outline-offset: 3px; }

.btn-ghost { background: transparent; border: 1px solid rgba(0,0,0,0.15); color: #333; padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn-ghost:active { transform: translateY(1px); }

.empty-cart { text-align: center; padding: 48px 20px; background: rgba(255,255,255,0.8); border: 1px dashed rgba(0,0,0,0.2); border-radius: 14px; }
.empty-copy { margin-bottom: 24px; }
.empty-cart h2 { font-family: var(--font-display); margin-bottom: 12px; font-size: 1.8rem; }
.empty-cart p { font-family: var(--font-body); color: #4b4b4b; margin-bottom: 0; font-size: 1.05rem; }
.empty-actions { display: flex; justify-content: center; }

/* Mobile cart button fixes */
@media (max-width: 768px) {
    .cart-card { width: 100%; padding: 22px 18px 26px; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .cart-table th:nth-child(6), .cart-table td:nth-child(6) { text-align: right; }

    .cart-actions button,
    .cart-actions a,
    .cart-button,
    .checkout-button {
        width: 100%;
        max-height: 52px;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 14px;
        line-height: 1.2;
    }

    /* Reduce vertical spacing between buttons */
    .cart-actions {
        display: grid;
        gap: 12px;
    }

    /* Primary action (Checkout) */
    .checkout-button {
        font-weight: 600;
    }

    /* Secondary action (Continue Shopping) */
    .continue-shopping {
        opacity: 0.9;
    }
}

/* Desktop-only larger sizes (>=1024px) */
@media (min-width: 1024px) {
    .jr-nav { height: 92px !important; }
    /* Desktop: make social icons ~75% larger (36px -> 63px) */
    .jr-nav .jr-left-inline .jr-social { width: 63px !important; height: 63px !important; }
    .jr-nav .jr-left-inline .jr-social svg { width: 80% !important; height: 80% !important; }
    .jr-nav .jr-social-label { font-size: 28px !important; line-height: 1; }
    .jr-nav .jr-menu-label { font-size: 28px !important; line-height: 1; font-family: var(--font-display); }
    /* Desktop: enlarge palette/menu trigger ~75% (40px -> 70px, icon 36px -> 63px) */
    .jr-nav .palette-toggle { width: 70px !important; height: 70px !important; }
    .jr-nav .palette-toggle .menu-icon { width: 63px !important; height: 63px !important; }
    .jr-nav .jr-decor { max-height: 91px !important; }
}

/* Hide nav-labels on mobile */
@media (max-width: 767px) {
    .nav-label { display: none !important; }
}

/* Mobile nav-label sizing when visible (e.g., accessible or toggled) */
@media (max-width: 768px) {
    .nav-label { font-size: 17px !important; font-weight: 700 !important; }
}

/* Card color overrides to ensure consistent grey cards */
.section-card,
.section-panel,
.content-panel {
    background: var(--card-bg) !important;
    color: var(--card-text) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
}

/* Ensure body uses the requested dark grey background */
body { background-color: var(--page-bg) !important; }


body {
    width: 100%;
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--card-text);
    background-color: var(--page-bg);
    background-image: none;
    min-height: 100vh;
}

/* Ensure main content is pushed below the navbar so nothing is covered */
main { padding-top: var(--nav-height-desktop); }

@media (max-width: 768px) {
    html { scroll-padding-top: var(--nav-height-mobile); }
    main { padding-top: var(--nav-height-mobile); }
}

/* Prevent background scrolling when overlay is open */
.no-scroll { overflow: hidden !important; }

/* Overlay styles were injected here previously; removed to restore legacy palette behavior. */

/* Defensive stacking & pointer-events: ensure navbar and palette sit above page content
    and that the palette toggle/panel are clickable and layered correctly. */
.jr-nav { z-index: 1000 !important; position: relative !important; }
.jr-nav .palette-toggle { pointer-events: auto !important; z-index: 1100 !important; position: relative !important; }
#palette-menu .palette-panel, .jr-right > #palette-menu .palette-panel { z-index: 1200 !important; }
#palette-menu .palette-overlay, .jr-right > #palette-menu .palette-overlay { z-index: 1050 !important; }

/* Remove any accidental pointer-events disabling on ancestors */
.jr-nav, .jr-nav * { pointer-events: auto !important; }

/* Navbar inner flex layout to provide LEFT / CENTER / RIGHT regions */
.jr-nav .navbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 12px;
    flex-wrap: nowrap !important;
}

.jr-nav .navbar-left,
.jr-nav .navbar-center,
.jr-nav .navbar-right {
    display: flex !important;
    align-items: center !important;
}

.jr-nav .navbar-left { padding-left: 12px !important; }

/* Ensure center can shrink without overflowing and center the banner */
.jr-nav .navbar-center { min-width: 0 !important; flex: 1 1 auto !important; justify-content: center !important; }

/* Center banner image scales proportionally and is never stretched */
.jr-nav .navbar-center .jr-decor,
.jr-nav .navbar-center img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 69px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Explicitly apply display font to headings and section titles to avoid overrides */
h1, h2, h3, h4, h5, h6, .section-title, .block-title {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #1F1F1F;
}

/* Ensure navbar text (if present) uses the display font but stays small */
.top-nav .navbar-brand, .top-nav .navbar-brand h1 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
}

/* ============================================================================
   Remove any accidental full-page centered "sheet" wrapper by clearing
   background / max-width / margin on likely container selectors. This
   ensures the site background shows full-bleed.
   ============================================================================ */

main,
.container,
.content,
.page,
.wrapper,
.content-wrap,
.page-wrapper,
.site-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
}

/* Enforce section/card defaults to prevent accidental overrides */
.site-section { padding: 48px 16px; }
.site-section + .site-section { margin-top: 10px; }
.section-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--card-bg);
    color: var(--card-text);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
    .site-section { padding: 28px 14px; }
    .section-card { padding: 20px; border-radius: 18px; }
}

@media (max-width: 420px) {
    .site-section { padding: 22px 12px; }
    .section-card { padding: 18px; }
}

/* ============================================================================
   Section card spacing and size (desktop & mobile)
   ============================================================================ */
.site-section { margin: 0; }
.section-card {
    margin: 28px auto !important;
    max-width: 900px !important;
}
@media (max-width: 768px) {
    .section-card { margin: 18px auto !important; max-width: 92vw !important; border-radius: 16px !important; padding: 18px !important; }
}

/* Remove any small arrow indicators globally */
.scroll-indicator, .section-arrow, .down-arrow, .hero-scroll { display: none !important; }

/* ============================================================================
   Top-nav: Desktop and Mobile rules
   - keeps desktop look intact, but enforces exact mobile behavior
   ============================================================================ */

/* Desktop: min-width 769px */
@media (min-width: 769px) {
    .top-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: var(--nav-height-desktop) !important;
        padding: 8px 16px !important;
    }

    .top-nav .navbar-container { display:flex; align-items:center; justify-content:space-between; gap:12px; }

    .top-nav .nav-left { display:flex; align-items:center; gap:12px; padding-left:12px; }
    .top-nav .nav-right { display:flex; align-items:center; gap:12px; padding-right:12px; }
    .top-nav .nav-center { display:flex; align-items:center; justify-content:center; flex:1 1 auto; min-width:0; }

    /* brush/banner image condensed on desktop */
    .top-nav .nav-center .navbar-brand h1 { font-size: 1.4rem; display:block; }
    .top-nav .nav-center .navbar-brand img { max-height: 70px; width: auto; object-fit: contain; }

    /* social icons moderate size on desktop */
    /* Desktop social icons */
    .top-nav .social-icons .social-link { width: 40px; height: 40px; display:inline-flex; align-items:center; justify-content:center; }
    .top-nav .social-icons .social-link svg { width: 60%; height: 60%; }

    /* palette / menu icon size on desktop */
    .top-nav .palette-toggle { width: 48px; height: 48px; background: transparent; border: none; }
    .top-nav .palette-toggle .menu-icon { width: 100%; height: 100%; object-fit: contain; }
    .top-nav .menu-label { margin-right: 8px; font-weight:700; color: #333; font-family: var(--font-display); }

    /* Decorative center image - absolutely centered across the bar */
    .top-nav { position: relative; }
    .top-nav .nav-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
    .top-nav .nav-decor { max-height: 90px; width: auto; display:block; }
}

/* Mobile: max-width 768px */
@media (max-width: 768px) {
    .top-nav { height: 68px !important; padding: 6px 10px !important; }
    .top-nav .navbar-container { padding: 0 8px !important; gap:8px; }

    .top-nav .nav-left { display:flex; align-items:center; gap:8px; }
    .top-nav .nav-center { display:flex; align-items:center; justify-content:center; flex:1 1 auto; min-width:0; overflow:hidden; }
    .top-nav .nav-right { display:flex; align-items:center; gap:8px; position:relative; }

    /* social icons left, slightly smaller */
    /* hide desktop inline icons on mobile */
    .top-nav .social-icons { display: none !important; }
    /* show socials button */
    .top-nav .socials-mobile { display: block !important; }
    .top-nav .socials-toggle { font-family: var(--font-display); background: none; border: none; color: #333; font-weight:700; padding: 6px 10px; }

    /* brush/banner image center, constrained */
    .top-nav .nav-decor { max-height: 56px; }

    /* palette trigger pinned flush-right; use flex and auto margin */
    .top-nav .palette-toggle { position: relative !important; margin-left: auto !important; width: 44px !important; height: 44px !important; display:flex; align-items:center; justify-content:center; }
    .top-nav .palette-toggle .menu-icon { width: 26px !important; height: 26px !important; position:static !important; transform:none !important; }

    /* Palette menu anchored to nav-right so it opens from top-right of trigger */
    .top-nav .nav-right > #palette-menu { position: absolute !important; right: 0 !important; top: calc(100% + 6px) !important; pointer-events: auto !important; }
    .top-nav .nav-right > #palette-menu .palette-panel { position: absolute !important; right: 0 !important; top: 0 !important; transform-origin: top right !important; }
    .top-nav .nav-right > #palette-menu .palette-panel.active { transform: scale(0.92) !important; }

    /* Slightly tighter main top padding with smaller nav */
    main { padding-top: calc(56px + 8px) !important; }
}

/* --------------------------------------------------------------------------
    Specific overrides to fix palette toggle behavior and anchor the palette
    to the right-side nav group for both desktop and mobile.
    ----------------------------------------------------------------------- */

/* Ensure social links are truly pinned inside the left region (override absolutes) */
.top-nav .social-links { position: static !important; transform: none !important; left: auto !important; top: auto !important; display:flex; gap:8px; }

/* Banner image in center: condensed and contained */
.nav-banner { max-height: 90px; height: auto; width: auto; object-fit: contain; display:block; }

/* Palette toggle: disable wiggle and remove heavy focus outlines */
.palette-toggle .menu-icon { animation: none !important; }
.palette-toggle:hover .menu-icon { animation: none !important; }
.palette-toggle:focus-visible { outline: none !important; box-shadow: none !important; }
.palette-toggle:focus { outline: none !important; box-shadow: none !important; }
.palette-toggle { box-shadow: none !important; }

/* Anchor the palette menu to the nav-right wrapper so it opens near the toggle */
.top-nav .nav-right > #palette-menu { position: absolute !important; right: 8px !important; top: calc(100% + 6px) !important; z-index: 99999 !important; pointer-events: auto !important; }
.top-nav .nav-right > #palette-menu .palette-panel { position: absolute !important; right: 0 !important; top: 0 !important; transform-origin: top right !important; }

/* Ensure the palette toggle is vertically centered and flush-right in nav-right */
.top-nav .nav-right { align-items:center; }
.top-nav .nav-right .palette-toggle { margin-left: 8px; }

/* Make sure the palette overlay still covers the viewport on open */
.top-nav .nav-right > #palette-menu .palette-overlay { position: fixed !important; }


/* Very small phones */
@media (max-width: 480px) {
    .top-nav { height: 50px !important; }
    .top-nav .social-links .social-link { width: 36px !important; height: 36px !important; }
    .top-nav .palette-toggle { width: 44px !important; height: 44px !important; }
    .top-nav .nav-center .navbar-brand img { max-height: 42px !important; }
    .top-nav .nav-right > #palette-menu .palette-panel.active { transform: scale(0.88) !important; }
}

/* Remove any small arrow indicators */
.scroll-indicator, .section-arrow, .down-arrow, .hero-scroll { display: none !important; }

/* ============================================================================
   FIXED TOP NAVBAR
   ============================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height-desktop);
    background: #e9b180; /* solid color per spec */
    border-bottom: 2px solid #9B7A52;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* navbar base level */
}

/* New sticky site nav that swaps images between desktop and mobile */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: var(--nav-height-desktop);
    background: #e9b180; /* single solid strip color per spec */
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar { height: var(--nav-height-mobile); }
    main { padding-top: calc(var(--nav-height-mobile) + 12px); }
}

/* overlay containers inside the nav */
.site-nav .nav-overlay { display: flex; align-items: center; gap: 10px; }
.site-nav .nav-left { justify-content: flex-start; }
.site-nav .nav-right { justify-content: flex-end; }
.site-nav .social-links { position: static; transform: none; left: auto; top: auto; }

/* ensure palette-toggle sits inside the header visually */
.site-nav .palette-toggle { position: relative; top: auto; right: auto; }

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ensure the container inside the sticky site-nav aligns overlays correctly */
.site-nav .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    height: 100%;
}

/* Social icon in navbar (left side) */
.social-links {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px; /* tightened spacing to bring icons closer */
    align-items: center;
    z-index: 9002;
}


.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* increased 25% from 48px */
    height: 60px; /* increased 25% from 48px */
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    transition: transform .12s ease, box-shadow .12s ease;
}

.social-links .social-link svg { display: block; width: 64%; height: 64%; }

.social-links .social-link:hover,
.social-links .social-link:focus {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 0 12px rgba(0,0,0,0.06);
}

.social-links .social-link:focus {
    outline: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 0 6px rgba(24,119,242,0.15);
}

@media (max-width: 480px) {
    .social-links { left: 8px; }
    .social-links .social-link { width: 50px; height: 50px; }
    .social-links .social-link svg { width: 64%; height: 64%; }

/* Mobile-only navbar layout fixes (<=768px) - intentionally specific and last to override earlier rules */
@media (max-width: 768px) {
    /* shrink navbar height for mobile */
    .site-nav { height: 56px; }

    /* Use flex layout: left | center | right */
    .site-nav .navbar-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 8px !important;
        gap: 8px !important;
    }

    .site-nav .nav-left,
    .site-nav .nav-center,
    .site-nav .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
    }

    /* center area should take remaining space but not push icons */
    .site-nav .navbar-brand {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        max-width: 240px !important;
        padding: 0 6px !important;
    }

    /* social icons smaller and flush to left */
    .site-nav .nav-left { margin-left: 6px !important; }
    .site-nav .social-links .social-link { width: 32px !important; height: 32px !important; border-radius: 6px !important; }
    .site-nav .social-links .social-link svg { width: 68% !important; height: 68% !important; }

    /* palette/menu on the right, sized slightly larger than icons */
    .site-nav .nav-right { margin-right: 6px !important; }
    .site-nav .palette-toggle.nav-menu-btn { width: 44px !important; height: 44px !important; }
    .site-nav .palette-toggle { position: relative !important; right: auto !important; top: auto !important; }

    /* reduce main top padding on mobile to keep navbar from consuming too much space */
    main { padding-top: calc(var(--nav-height-mobile) + 8px) !important; }
}

/* Further refine for very small phones <=480px */
@media (max-width: 480px) {
    .site-nav { height: 52px; }
    .site-nav .social-links .social-link { width: 30px !important; height: 30px !important; }
    .site-nav .palette-toggle.nav-menu-btn { width: 40px !important; height: 40px !important; }
    .site-nav .navbar-brand { max-width: 200px !important; }
    main { padding-top: calc(var(--nav-height-mobile) + 6px) !important; }
}
}

.navbar-brand {
    margin: 0;
    padding: 0;
    display: none;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Palette toggle button in navbar (top-right) */
.palette-toggle {
    /* Sizing only; positioning is controlled in navbar-specific selectors */
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

/* When inside the sticky site-nav, keep the palette toggle positioned relative */
.site-nav .palette-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .site-nav .palette-toggle { width: 46px; height: 46px; }
    .site-nav .social-links .social-link { width: 34px; height: 34px; }
}

.palette-toggle .menu-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute; 
    left: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex; 
    gap: 5px; /* tightened spacing to bring icons closer */ 
    align-items: center; 
    z-index: 9002; 

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    display: none; 
}

.palette-toggle:active {
    transform: scale(0.95);
}

.palette-toggle:focus-visible {
    outline: 3px solid #FFB84D;
    outline-offset: 2px;
}

/* ============================================================================
   MAIN CONTENT (Account for navbar)
   ============================================================================ */

main {
    /* ensure content starts below the navbar */
    padding-top: calc(var(--nav-height-desktop) + 18px);
    min-height: calc(100vh - var(--nav-height-desktop));
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1F1F1F;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

code {
    background-color: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

a {
    color: #D4A574;
    text-decoration: none;
}

/* ============================================================================
   MOBILE-SPECIFIC NAVBAR & PALETTE OVERRIDES
   These overrides apply only on small screens and preserve desktop styles.
   ============================================================================ */

@media (max-width: 768px) {
    /* Shrink navbar height and tighten padding */
    .site-nav { height: 48px !important; min-height: 48px !important; padding: 4px 8px !important; }

    /* Ensure the container uses left/center/right wrappers and spacing */
    .site-nav .navbar-container { padding: 0 8px !important; gap: 8px !important; }

    /* Make left/center/right align via flex and ensure right is relative for anchoring */
    .site-nav .nav-left,
    .site-nav .nav-center,
    .site-nav .nav-right { display: flex !important; align-items: center !important; gap: 8px !important; }

    .site-nav .nav-left { justify-content: flex-start; }
    .site-nav .nav-center { justify-content: center; flex: 1 1 auto; }
    .site-nav .nav-right { justify-content: flex-end; position: relative; }

    /* Social icons larger and aligned left */
    .site-nav .social-links { position: static !important; transform: none !important; left: auto !important; top: auto !important; margin-left: 4px; }
    .site-nav .social-links .social-link { width: 38px !important; height: 38px !important; border-radius: 8px !important; }
    .site-nav .social-links .social-link svg { width: 70% !important; height: 70% !important; }

    /* Brush/banner in center — constrain height */
    .site-nav .nav-center .navbar-brand h1 { font-size: 1rem !important; margin: 0 !important; }
    .site-nav .nav-center .navbar-brand img { max-height: 42px !important; }

    /* Palette trigger pinned flush-right, use flex flow not absolute positioning */
    .site-nav .palette-toggle { position: relative !important; width: 52px !important; height: 52px !important; margin-left: auto !important; display:flex; align-items:center; justify-content:center; }
    .site-nav .palette-toggle .menu-icon { position: static !important; left: auto !important; top: auto !important; transform: none !important; width: 28px !important; height: 28px !important; }

    /* Anchor the palette menu to the right wrapper (overrides desktop fixed behavior) */
    .site-nav .nav-right #palette-menu { position: absolute !important; right: 0 !important; top: calc(100% + 6px) !important; z-index: 9500 !important; pointer-events: auto !important; }

    /* Ensure palette panel anchors to the trigger and scales slightly smaller */
    .site-nav .nav-right #palette-menu .palette-panel { position: absolute !important; right: 0 !important; top: 0 !important; transform-origin: top right !important; }
    .site-nav .nav-right #palette-menu .palette-panel.active { transform: scale(0.92) !important; }

    /* Keep overlay full-screen (click-to-close) */
    .site-nav .nav-right #palette-menu .palette-overlay { position: fixed !important; }

    /* Reduce top padding for main content when nav is smaller */
    main { padding-top: calc(48px + 10px) !important; }
}

@media (max-width: 480px) {
    /* Slightly smaller for very small phones */
    .site-nav { height: 46px !important; min-height: 46px !important; }
    .site-nav .social-links .social-link { width: 36px !important; height: 36px !important; }
    .site-nav .palette-toggle { width: 48px !important; height: 48px !important; }
    .site-nav .nav-center .navbar-brand img { max-height: 38px !important; }
    .site-nav .nav-right #palette-menu .palette-panel.active { transform: scale(0.88) !important; }
}
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: #D4A574;
}

a:focus {
    outline: 2px solid #FFB84D;
    outline-offset: 2px;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

button {
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    background-color: #D4A574;
    color: white;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #c0956d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

button:focus {
    outline: 2px solid #FFB84D;
    outline-offset: 2px;
}

/* ============================================================================
   PAGE SECTIONS
   ============================================================================ */

.page-section {
    padding: 48px 16px;
    margin: 0 0 32px 0; /* space between sections */
    min-height: auto;
    display: flex;
    align-items: flex-start; /* content flows naturally, not vertically centered */
    justify-content: center;
    scroll-margin-top: 90px;
}

.page-section:last-of-type {
    padding-bottom: 48px;
}

/* Centered card wrapper used by sections */
.section-card {
    background: rgba(210,210,210,0.78);
    border-radius: 18px;
    padding: 28px;
    max-width: 900px;
    width: calc(100% - 2rem);
    margin: 0 auto;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #2E2E2E;
}

/* New reusable section container used across site */
.site-section {
    width: 100%;
    padding: 0; /* spacing handled by .page-section */
    display: block;
}

.section-panel {
    /* keep for legacy templates but ensure it visually behaves like a card */
    background: rgba(210,210,210,0.78);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    padding: 28px;
    max-width: 1100px;
    margin: 0 auto;
    width: calc(100% - 2rem);
    color: #2E2E2E;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Single shared class for content panels — use this in templates as `content-panel` */
.content-panel {
    background: rgba(210,210,210,0.78);
    color: #2E2E2E;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    max-width: 1100px;
    margin: 0 auto;
}

/* Apply the card typography to the new panel class */
.section-panel h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1rem;
    letter-spacing: -0.6px;
    color: #1F1F1F;
}

.section-panel p {
    margin-bottom: 1.25rem;
    color: #2E2E2E;
    line-height: 1.65;
    max-width: 66ch;
}

.section-panel .lead {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 1rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .site-section { padding: 56px 12px; }
    .section-panel { padding: 20px 16px; }
    .section-panel h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .site-section { padding: 40px 10px; }
    .section-panel { padding: 16px 12px; }
    .section-panel h1 { font-size: 1.8rem; }
}

/* Nav height variable */
:root {
    --nav-h: 70px;
}

/* Mobile-specific: tune navbar for small screens */
@media (max-width: 768px) {
    /* Navbar: compact 3-column layout (icons left, banner center, menu right) */
    .jr-nav { height: 54px !important; overflow: hidden !important; padding: 0 10px !important; }
    .jr-nav .jr-left-inline { display:flex !important; align-items:center !important; gap:10px !important; padding-left:8px !important; }
    .jr-nav .jr-left-inline .jr-social { width: 44px !important; height: 44px !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; }
    .jr-nav .jr-left-inline .jr-social svg { width: 100% !important; height: 100% !important; }
    .jr-nav .jr-social-label, .jr-nav .jr-left-mobile, .socials-panel, #socials-panel, .socials-mobile { display: none !important; }

    /* Center banner: contain and centered without cropping */
    .jr-nav .jr-center { position: static !important; left: auto !important; top: auto !important; transform: none !important; pointer-events: auto !important; display:flex !important; align-items:center !important; justify-content:center !important; flex: 1 1 auto !important; min-width: 0 !important; }
    .jr-nav .jr-decor { height: 40px !important; max-height: 40px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; object-position: center !important; }

    /* Right: keep palette trigger flush-right and centered vertically */
    .jr-nav .jr-right { display:flex !important; align-items:center !important; gap:10px !important; margin-left: auto !important; }
    .jr-nav .palette-toggle { margin-left: 0 !important; }

    /* Prevent any absolute positioning from pushing items off-screen */
    .jr-nav * { max-width: 100% !important; box-sizing: border-box !important; position: static !important; }
}

@media (max-width: 480px) {
    .jr-nav { height: 50px !important; }
    .jr-nav .jr-decor { height: 34px !important; max-height: 34px !important; }
    .jr-nav .jr-left-inline .jr-social { width: 40px !important; height: 40px !important; }
    .jr-nav .jr-left-inline { gap:8px !important; }
}

/* Centered inner container that limits content width */
.hero-inner {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
    z-index: 1;
    display: flex;
}
/* Generic inner container for centered content (no background) */
.section-inner {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 0 16px;
}

/* Mobile navbar adjustments and mobile-only nav image */
@media (max-width: 480px) {
    .navbar { height: 56px; }
    .navbar-container { padding: 0 12px; display: flex; align-items: center; justify-content: center; position: relative; }
    .social-links { position: relative; left: 0; top: 0; transform: none; margin-right: 8px; gap: 8px; order: 1; }
    .social-links .social-link { width: 32px; height: 32px; }
    .social-links .social-link svg { width: 70%; height: 70%; }
    .navbar-brand { display: block; order: 2; flex: 1; text-align: center; }
    .navbar-brand h1 { font-size: 1.05rem; line-height: 1; margin: 0; color: #1F1F1F; }
    .palette-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; order: 3; }
    .palette-toggle .menu-icon { width: 100%; height: 100%; object-fit: contain; }
    .navbar-container > .social-links, .navbar-container > .navbar-brand, .navbar-container > .palette-toggle { display: inline-flex; align-items: center; }

    /* Use the mobile-specific nav image on small screens */
    .navbar {
        background-image: none !important;
        background-size: none !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
}



/* Mobile-specific adjustments to protect banner proportions and keep navbar functional */
@media (max-width: 480px) {
    .jr-nav .navbar-inner { gap: 8px !important; padding: 0 8px !important; }
    .jr-nav .navbar-left .jr-social { width: 34px !important; height: 34px !important; }
    .jr-nav .navbar-center .jr-decor { max-height: 46px !important; }
    .jr-nav .palette-toggle { width: 44px !important; height: 44px !important; z-index: 2100 !important; pointer-events: auto !important; }
    .jr-nav .navbar-center { padding: 0 6px !important; }
    .jr-nav .navbar-right .palette-toggle { transform: translateY(6px) !important; }
}

.btn-primary {
    background-color: #D4A574;
    color: white;
}

.btn-primary:hover { background-color: #c0956d; }

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid rgba(0,0,0,0.08);
}

/* small scroll hint at bottom of hero (absolute so it doesn't push layout) */
.hero-scroll { display: none !important; }

.btn-secondary:hover { background: #f6f6f6; }

.page-section h1 {
    scroll-margin-top: 90px;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ============================================================================
   CARD-TYPOGRAPHY: Improve typography inside white section cards
   Targets: `.section-card` and similar white card containers.
   ============================================================================ */

.section-card,
.tune-controls,
.tune-info-section {
    color: #1a1a1a;
}

.section-card h1,
.tune-controls h1,
.tune-info-section h1 {
    /* Larger, more prominent headings inside cards */
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1rem;
    letter-spacing: -0.6px;
}

.section-card p,
.tune-controls p,
.tune-info-section p {
    /* Slightly increased paragraph spacing and constrained line-length for readability */
    margin-bottom: 1.25rem;
    color: #444;
    line-height: 1.6;
    max-width: 66ch; /* keep comfortable line length */
}

/* Subtle emphasis for short intro text */
.section-card .lead,
.tune-controls .lead,
.tune-info-section .lead {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 1rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .section-card h1,
    .tune-controls h1,
    .tune-info-section h1 {
        font-size: 2.2rem;
    }

    .section-card p,
    .tune-controls p,
    .tune-info-section p {
        max-width: 100%;
    }
}

/* Ensure palette toggle stays inside navbar on small screens */
@media (max-width: 480px) {
    .palette-toggle {
        right: 16px;
    }
}

@media (max-width: 480px) {
    .section-card h1,
    .tune-controls h1,
    .tune-info-section h1 {
        font-size: 1.8rem;
    }
}

/* Gallery Card - DEPRECATED, use .artwork-card instead */
.gallery-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #E8B4A8 0%, #D4A574 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.gallery-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
}

.gallery-price {
    padding: 0 1rem;
    margin: 0;
    font-weight: 600;
    color: #D4A574;
}

.gallery-btn {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.75rem;
    background-color: #D4A574;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.gallery-btn:hover {
    background-color: #c0956d;
}

/* Locations List */
.locations-list {
    margin: 2rem 0;
}

.location-item {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid #D4A574;
    border-radius: 4px;
}

.location-item h3 {
    margin-top: 0;
    color: #1a1a1a;
}

.location-item p {
    margin: 0.5rem 0;
    color: #666;
}

/* Contact Form */
.contact-form {
    margin: 2rem 0;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
}

.form-group textarea {
    min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #FFB84D;
    outline-offset: 0;
    border-color: #FFB84D;
}

.submit-btn {
    background-color: #D4A574;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: #c0956d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-error {
    margin-top: 0.4rem;
    color: #b4332b;
    font-size: 0.95rem;
}

/* Honeypot hidden but accessible: keep in DOM, off-screen */
.hp-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.flash-container {
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #8B6F47;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    margin-top: 0;
}

.footer-content p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

/* Show desktop footer by default, hide mobile version */
.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

/* On mobile, show simplified footer and hide full version */
@media (max-width: 768px) {
    .footer-desktop {
        display: none;
    }
    
    .footer-mobile {
        display: block;
    }
    
    .footer-content p {
        font-size: 0.85rem;
        margin: 0.15rem 0;
    }
}

/* ============================================================================
   DEMO SECTIONS
   ============================================================================ */

.demo-section {
    padding: 3rem 2rem;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-section:last-child {
    border-bottom: none;
}

.section-content {
    max-width: 800px;
    width: 100%;
}

.demo-section h2 {
    scroll-margin-top: 90px; /* Offset for fixed navbar */
}

.store-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: #999;
    margin: 1.5rem 0;
}

/* ============================================================================
   TUNING PAGE STYLES
   ============================================================================ */

.tune-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tune-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tune-header h2 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.tune-header p {
    color: #666;
    font-size: 1.05rem;
}

.tune-hint {
    background: #f0f4ff;
    padding: 0.75rem 1.5rem;
    border-left: 4px solid #4ECDC4;
    border-radius: 4px;
    margin: 1rem 0 !important;
    font-size: 0.95rem;
    color: #2c5aa0;
}

.tune-info {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.export-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tune-controls {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tune-controls h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ============================================================================
   DAB CONTROLS (Tuning Page)
   ============================================================================ */

.dab-controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dab-control {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.dab-control h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.control-group {
    margin-bottom: 1.2rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
    font-size: 0.85rem;
}

.control-group input[type="number"],
.control-group input[type="color"],
.control-group input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.control-group input[type="color"] {
    height: 40px;
    cursor: pointer;
    padding: 4px;
}

/* ============================================================================
   EXPORT SECTION
   ============================================================================ */

.export-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.export-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.export-btn {
    background-color: #4ECDC4;
    margin-right: 0.75rem;
    margin-bottom: 1rem;
}

.export-btn:hover {
    background-color: #3bb5ad;
}

.export-output {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.4;
    word-break: break-all;
}

/* ============================================================================
   TUNING INFO SECTION
   ============================================================================ */

.tune-info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tune-info-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.tune-info-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tune-info-section li {
    margin-bottom: 0.75rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    body { background-attachment: scroll; }

    /* Section spacing and card sizing for tablet */
    .page-section { padding: 36px 14px; min-height: auto; margin-bottom: 24px; }
    .section-card { padding: 20px; border-radius: 14px; max-width: 720px; width: calc(100% - 36px); margin: 18px auto; }
    .section-panel { padding: 20px; }
    .page-section h1 { font-size: 2rem; }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }

    .demo-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .section-content {
        padding: 1rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .dab-controls-container {
        grid-template-columns: 1fr;
    }

    .tune-controls,
    .tune-info-section {
        padding: 1.5rem;
    }
}

/* Final authoritative overrides to ensure sections render as cards on all viewports */
body .site-section { padding: 48px 16px !important; }
body .site-section + .site-section { margin-top: 10px !important; }
body .section-card {
    max-width: 960px !important;
    margin: 0 auto !important;
    background: var(--card-bg) !important;
    color: var(--card-text) !important;
    border-radius: 22px !important;
    padding: 34px !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.45) !important;
}
@media (max-width: 768px) {
    body .site-section { padding: 28px 14px !important; }
    body .section-card { padding: 20px !important; border-radius: 18px !important; }
}
@media (max-width: 420px) {
    body .site-section { padding: 22px 12px !important; }
    body .section-card { padding: 18px !important; }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px;
    }

    main {
        margin-top: 60px;
    }

    .navbar-brand h1 {
        font-size: 1rem;
    }

    .palette-toggle {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .demo-section {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .demo-section h2 {
        scroll-margin-top: 75px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .tune-header {
        margin-bottom: 2rem;
    }

    .tune-controls,
    .tune-info-section {
        padding: 1rem;
        border-radius: 6px;
    }

    .export-btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .dab-controls-container {
        gap: 1rem;
    }
}

/* ============================================================================
   TYPOGRAPHY (Mobile)
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

code {
    background-color: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

a {
    color: #D4A574;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: #D4A574;
}

a:focus {
    outline: 2px solid #FFB84D;
    outline-offset: 2px;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

button {
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    background-color: #D4A574;
    color: white;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #c0956d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

button:focus {
    outline: 2px solid #FFB84D;
    outline-offset: 2px;
}

/* ============================================================================
   MAIN LAYOUT
   ============================================================================ */

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   SITE HEADER
   ============================================================================ */

.site-header {
    text-align: center;
    padding: 3rem 20px;
    background: linear-gradient(135deg, #E8B4A8 0%, #D4A574 100%);
    color: white;
    margin-bottom: 2rem;
}

.site-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.site-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.site-header a {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.site-header a:hover {
    border-bottom-color: white;
}

/* ============================================================================
   DEMO SECTIONS
   ============================================================================ */

.demo-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.demo-section:last-child {
    border-bottom: none;
}

.demo-section h2 {
    scroll-margin-top: 80px; /* Offset for fixed header if needed */
}

.gallery-placeholder {
    background: linear-gradient(135deg, #f5e6d3 0%, #edd5c1 100%);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: #999;
    margin: 1.5rem 0;
}

/* ============================================================================
   TUNING PAGE STYLES
   ============================================================================ */

.tune-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.tune-controls {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tune-info {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ============================================================================
   DAB CONTROLS
   ============================================================================ */

.dab-controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dab-control {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.dab-control h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.control-group input[type="number"],
.control-group input[type="color"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.control-group input[type="number"] {
    font-size: 0.95rem;
}

.control-group input[type="color"] {
    height: 40px;
    cursor: pointer;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 0.5rem;
    border: 2px solid #ddd;
    vertical-align: middle;
}

/* ============================================================================
   EXPORT SECTION
   ============================================================================ */

.export-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.export-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.export-btn {
    background-color: #4ECDC4;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.export-btn:hover {
    background-color: #3bb5ad;
}

.export-output {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.4;
    word-break: break-all;
}

/* ============================================================================
   TUNING INFO SECTION
   ============================================================================ */

.tune-info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tune-info-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tune-info-section li {
    margin-bottom: 0.75rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .site-header {
        padding: 2rem 20px;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    .site-header p {
        font-size: 1rem;
    }

    .dab-controls-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .site-header {
        padding: 1.5rem 15px;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .demo-section {
        padding: 1.5rem 0;
    }

    .tune-controls,
    .tune-info-section {
        padding: 1rem;
    }
}

/* Increase center decorative/nav image slightly on mobile (~15% larger)
   to improve visibility per request. These high-specificity overrides
   target multiple navbar variants used across the templates. */
@media (max-width: 768px) {
    .jr-nav .jr-decor,
    .site-nav .nav-center .navbar-brand img,
    .navbar-center .jr-decor,
    .jr-decor {
        /* bumped ~15% from prior size */
        max-height: 54px !important;
        height: auto !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .jr-nav .jr-decor,
    .site-nav .nav-center .navbar-brand img,
    .navbar-center .jr-decor,
    .jr-decor {
        /* bumped ~15% on very small phones */
        max-height: 56px !important;
        height: auto !important;
        width: auto !important;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #f5f5f5;
    }

    .tune-controls,
    .tune-info-section {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .dab-control {
        background: #333;
        border-color: #444;
    }

    .export-output {
        background: #1f1f1f;
        border-color: #444;
        color: #e0e0e0;
    }

    code {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
}

/* High-priority mobile override: ensure the palette/menu icon enlarges on small screens
   and is not constrained by absolute positioning. This forces the image to use explicit
   pixel dimensions for reliable tap targets across mobile browsers. */
@media (max-width: 768px) {
    #palette-toggle .menu-icon,
    .jr-nav .palette-toggle .menu-icon,
    .site-nav .palette-toggle .menu-icon,
    .top-nav .palette-toggle .menu-icon {
        width: 36px !important;
        height: 36px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        display: block !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 480px) {
    /* Slightly larger on very small phones for better tap target */
    #palette-toggle .menu-icon,
    .site-nav .palette-toggle .menu-icon,
    .jr-nav .palette-toggle .menu-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================================================================
   GALLERY STYLES - Unified Card Layout
   ============================================================================ */

.gallery-section {
    padding: 40px 20px;
}

/* Unified gallery card - title and grid inside one rounded card */
.gallery-unified-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
    overflow: hidden;
}

/* Gallery header - title and description */
.gallery-header {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-header h1 {
    margin: 0 0 8px 0;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.gallery-header .section-body {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Gallery items grid - artwork cards */
.gallery-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    max-width: 100%;
}

/* Mobile: 1 column (default from above) */

/* Tablet: 2 columns at 768px+ */
@media (min-width: 768px) {
    .gallery-header {
        padding: 28px 20px;
    }

    .gallery-header h1 {
        font-size: 2.8rem;
        margin-bottom: 8px;
    }

    .gallery-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
}

/* Desktop: 3-4 columns at 1024px+ */
@media (min-width: 1024px) {
    .gallery-header {
        padding: 32px 24px;
    }

    .gallery-header h1 {
        font-size: 3.2rem;
    }

    .gallery-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 24px;
    }
}

/* Extra-wide desktop: 4 columns at 1400px+ */
@media (min-width: 1400px) {
    .gallery-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

.artwork-card {
    background: rgba(210, 210, 210, 0.78);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #2E2E2E;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 12px 0;
}

.artwork-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.artwork-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    gap: 8px;
}

.artwork-title {
    font-size: 1.425rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1F1F1F;
    text-align: center;
    line-height: 1.3;
}

.artwork-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #e8e8e8;
    position: relative;
}

.artwork-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 12px;
}

.artwork-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    margin-top: 4px;
}

.artwork-size {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.artwork-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B6F47;
    margin: 4px 0;
}

.artwork-meta {
    font-size: 0.85rem;
    color: #666;
}

.artwork-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    align-items: stretch;
    justify-items: center;
}

/* Center buttons within actions container */
.artwork-actions .btn-ar,
.artwork-actions .btn-purchase,
.artwork-actions .btn-details,
.artwork-actions form {
    width: 100%;
    max-width: 220px;
}

.btn-ar,
.btn-purchase,
.btn-details {
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    white-space: normal;
    line-height: 1.2;
}

.btn-ar {
    background-color: #8B6F47;
    color: white;
}

.btn-ar:hover {
    background-color: #6d5436;
}

.btn-details {
    background-color: #8B6F47;
    color: white;
}

.btn-details:hover {
    background-color: #6d5436;
}

.btn-purchase {
    background-color: #D4A574;
    color: white;
}

.btn-purchase:hover {
    background-color: #b88a5d;
}

.btn-purchase:disabled {
    background-color: #aaaaaa;
    color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-purchase:disabled:hover {
    background-color: #aaaaaa;
}

/* Mobile-optimized button styling */
@media (max-width: 768px) {
    .artwork-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px 14px;
    }
    
    .btn-ar,
    .btn-purchase {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

/* Tablet and desktop - keep buttons stacked for elegance */
@media (min-width: 768px) {
    .artwork-actions {
        grid-template-columns: 1fr;
    }
}

/* AR View and Purchase page styles */
.ar-view-section,
.purchase-section {
    padding: 40px 20px;
}

.ar-image-wrapper,
.purchase-artwork-preview {
    margin: 24px 0;
    text-align: center;
}

.ar-info,
.purchase-details {
    margin-top: 32px;
}

.ar-info h2,
.purchase-details h2,
.purchase-details h3 {
    color: #1F1F1F;
    margin-bottom: 16px;
}

.artwork-specs,
.artwork-info {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
}

.artwork-specs p,
.artwork-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.ar-actions,
.purchase-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.purchase-message {
    margin: 24px 0;
}

.purchase-contact {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.3);
    border-radius: 8px;
}

.purchase-contact ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.purchase-contact li {
    margin: 8px 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .artwork-title {
        font-size: 1.575rem;
    }
    
    .artwork-price {
        font-size: 1.3rem;
    }
    
    .ar-actions,
    .purchase-actions {
        flex-direction: column;
    }
}

/* ============================================================================
   SHOPPING CART & CHECKOUT
   ============================================================================ */

.cart-section,
.checkout-section {
    padding: 40px 20px;
}

.cart-items {
    margin: 32px 0;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.cart-table thead {
    background: rgba(255,255,255,0.3);
}

.cart-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1F1F1F;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item {
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background: rgba(255,255,255,0.2);
}

.item-quantity {
    font-weight: 600;
    text-align: center;
}

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

.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.cart-summary {
    background: rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1.1rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B6F47;
    border-top: 2px solid rgba(0,0,0,0.1);
    padding-top: 16px;
    margin-top: 16px;
}

.total-amount {
    font-size: 1.8rem;
}

.cart-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.empty-cart {
    text-align: center;
    padding: 40px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 0.9rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px;
    }
}

.checkout-items {
    background: rgba(255,255,255,0.2);
    padding: 24px;
    border-radius: 12px;
}

.checkout-items h2 {
    margin-top: 0;
    color: #1F1F1F;
}

.order-items {
    margin: 20px 0;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-qty {
    font-size: 0.9rem;
    color: #6b6b6b;
}

.item-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: #8B6F47;
}

.order-total {
    padding: 16px 0;
    font-size: 1.3rem;
    color: #8B6F47;
    text-align: right;
}

.checkout-form {
    background: rgba(255,255,255,0.2);
    padding: 24px;
    border-radius: 12px;
}

.checkout-form h2 {
    margin-top: 0;
    color: #1F1F1F;
}

.form-notice {
    background: rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.form-notice p {
    margin: 12px 0;
    line-height: 1.6;
}

.contact-info {
    background: rgba(139,111,71,0.1);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.contact-info p {
    margin: 8px 0;
}

.contact-info a {
    color: #8B6F47;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.checkout-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Nudge the menu icon upward on mobile so it visually sits closer to the
   top edge of the navbar. Use translate for robust cross-browser behavior
   and keep values small so we don't break tap targets. */
@media (max-width: 768px) {
    #palette-toggle .menu-icon,
    .site-nav .palette-toggle .menu-icon,
    .jr-nav .palette-toggle .menu-icon,
    .top-nav .palette-toggle .menu-icon {
        position: relative !important;
        transform: translateY(-12px) !important;
        top: auto !important;
        margin-top: 0 !important;
    }
}

/* ============================================================================
   RESPONSIVE BUTTON VISIBILITY
   ============================================================================ */

/* Default: desktop view */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 480px) {
    #palette-toggle .menu-icon,
    .site-nav .palette-toggle .menu-icon,
    .jr-nav .palette-toggle .menu-icon,
    .top-nav .palette-toggle .menu-icon {
        transform: translateY(-16px) !important;
    }
}

/* ============================================================================
   ARTWORK DETAIL PAGE STYLES
   ============================================================================ */

.artwork-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.artwork-detail-image {
    position: relative;
    width: 100%;
}

.artwork-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.artwork-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.artwork-detail-info h2 {
    font-size: 2rem;
    font-family: var(--font-display);
    color: #333;
    margin: 0;
}

.artwork-detail-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.detail-row-label {
    font-weight: 600;
    color: #333;
}

.detail-row-value {
    color: #666;
    text-align: right;
}

.artwork-detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B6F47;
    margin: 0.5rem 0;
}

.stock-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1rem 0;
}

.stock-available {
    background-color: #d4edda;
    color: #155724;
}

.stock-unavailable {
    background-color: #f8d7da;
    color: #721c24;
}

.artwork-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.artwork-detail-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.artwork-detail-actions .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.artwork-detail-actions form {
    width: 100%;
}

.artwork-detail-actions form .btn {
    width: 100%;
}

.artwork-back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #8B6F47;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.artwork-back-link:hover {
    color: #6d5436;
}

/* Mobile: Stack layout */
@media (max-width: 768px) {
    .artwork-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .artwork-detail-info h2 {
        font-size: 1.5rem;
    }

    .detail-row {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
    }

    .detail-row-value {
        text-align: left;
    }

    .artwork-detail-price {
        font-size: 1.25rem;
    }

    .artwork-detail-actions .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* ============================================================================
   AR EXPERIENCE PAGE STYLES
   ============================================================================ */

.artwork-ar-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-ar-card {
    max-width: 900px;
    padding: 2rem;
}

.artwork-ar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.artwork-ar-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.artwork-ar-header p {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.artwork-ar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.ar-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ar-content {
    text-align: center;
    padding: 2rem;
}

.ar-content h2 {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: #333;
    margin-bottom: 1rem;
}

.ar-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.ar-note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.artwork-ar-info {
    background-color: rgba(200, 200, 200, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.artwork-ar-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.artwork-ar-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.artwork-ar-info .btn {
    display: inline-block;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: #8B6F47;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.artwork-ar-info .btn:hover {
    background-color: #6d5436;
}

.artwork-ar-info .btn-secondary {
    background-color: #999;
    color: white;
}

.artwork-ar-info .btn-secondary:hover {
    background-color: #777;
}

/* Mobile: Adjust AR experience layout */
@media (max-width: 768px) {
    .artwork-ar-section {
        min-height: auto;
        padding: 1rem 0;
    }

    .artwork-ar-card {
        padding: 1rem;
    }

    .artwork-ar-header h1 {
        font-size: 1.5rem;
    }

    .artwork-ar-header p {
        font-size: 1rem;
    }

    .ar-placeholder {
        aspect-ratio: 16 / 9;
    }

    .ar-content h2 {
        font-size: 1.2rem;
    }

    .artwork-ar-info .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }
}
/* ============================================================================
   Homepage Sections (NEW - Website Content System)
   ============================================================================ */

.homepage-section {
    margin: 2rem 0;
}

.homepage-section-text .section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.image-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: white;
}

.banner-overlay h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.video-banner {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-banner iframe,
.video-banner video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.video-overlay h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .homepage-section {
        margin: 1.5rem 0;
    }

    .banner-overlay h2,
    .video-overlay h2 {
        font-size: 1.5rem;
    }

    .banner-overlay {
        padding: 1rem;
    }

    .video-overlay {
        padding: 0.75rem 1.5rem;
    }
}