/* ============================================
   Timberline Lumber Company — Public Website
   Design System & Global Styles (Mobile-First)
   ============================================ */

:root {
    --timber-green: #1a472a;
    --timber-green-light: #2d5f3a;
    --timber-gold: #b18857;
    --timber-gold-light: #d4a96a;
    --timber-bg: #ffffff;
    --timber-cream: #f5f5f5;
    --timber-border: #e0e0e0;
    --timber-text: #111111;
    --timber-muted: #636363;
    --timber-white: #ffffff;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--timber-text);
    background: var(--timber-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--timber-green);
    line-height: 1.3;
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

a { color: var(--timber-green); transition: color 0.2s; }
a:hover { color: var(--timber-gold); }

img { max-width: 100%; height: auto; }

/* ── Unified Header ── */
.header-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--timber-white);
    border-bottom: 1px solid var(--timber-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-unified {
    padding: 0.5rem 0;
}
.header-unified .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-unified .hdr-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-unified .hdr-left img {
    height: 32px;
    width: auto;
}
.header-unified .hdr-nav {
    display: none;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-unified .hdr-nav > li {
    position: relative;
}
.header-unified .hdr-nav > li > a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--timber-green);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.header-unified .hdr-nav > li > a:hover,
.header-unified .hdr-nav > li > a.active {
    color: #0f2d18;
}
.header-unified .hdr-nav > li > a .fa-chevron-down {
    font-size: 0.55rem;
    margin-left: 3px;
    opacity: 0.5;
}
.header-unified .hdr-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.header-unified .hdr-phone {
    display: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.header-unified .hdr-phone i {
    margin-right: 4px;
    color: var(--timber-green);
}
.header-unified .hdr-quote-btn {
    background: var(--timber-green);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.header-unified .hdr-quote-btn:hover {
    background: var(--timber-green-light);
    color: #fff;
}
.header-unified .hdr-cart {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
}
.header-unified .hdr-cart .cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--timber-gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mega Dropdown (hidden on mobile, shown on desktop hover) */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1.25rem 1.5rem;
    min-width: 660px;
    z-index: 2000;
}
.header-unified .hdr-nav > li:hover > .mega-dropdown {
    display: flex;
}
.mega-col {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
}
.mega-col:not(:last-child) {
    border-right: 1px solid #f0f0f0;
}
.mega-col-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f0f0f0;
}
.mega-col a {
    display: block;
    padding: 0.25rem 0;
    color: #444;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}
.mega-col a:hover { color: var(--timber-green); }
.mega-col a.mega-browse {
    color: var(--timber-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.mega-col a.mega-browse i { margin-right: 4px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 0.25rem;
    min-width: 44px;
    min-height: 44px;
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    display: none;
    background: var(--timber-white);
    border-top: 1px solid var(--timber-border);
    padding: 0.5rem 0;
    max-height: 80vh;
    overflow-y: auto;
}
.mobile-nav-panel.show { display: block; }
.mobile-nav-panel a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.mobile-nav-panel a:hover { background: var(--timber-cream); }
.mobile-nav-panel .mobile-group-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 0.5rem 1.25rem 0.2rem;
    margin-top: 0.25rem;
}
.mobile-nav-panel .mobile-sub a {
    padding-left: 2rem;
    font-size: 0.85rem;
    color: #666;
}

/* ── Buttons ── */
.btn-timber {
    background: var(--timber-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-timber:hover { background: var(--timber-green-light); color: #fff; }

.btn-timber-outline {
    background: transparent;
    color: var(--timber-green);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--timber-green);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-timber-outline:hover {
    background: var(--timber-green);
    color: #fff;
}

.btn-gold {
    background: var(--timber-gold);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-gold:hover { background: var(--timber-gold-light); color: #fff; }

.btn-lg { padding: 0.85rem 2.5rem; font-size: 0.95rem; }

/* ── Section Helpers ── */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--timber-cream); }
.section-dark { background: var(--timber-green); color: #fff; }
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #fff; }

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header .section-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--timber-gold);
    display: block;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--timber-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Cards ── */
.timber-card {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.timber-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.product-card { height: 100%; display: flex; flex-direction: column; }
.product-card-img {
    height: 140px;
    background: var(--timber-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .placeholder-icon {
    font-size: 3rem;
    color: var(--timber-border);
}
.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-species {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--timber-gold);
    margin-bottom: 0.3rem;
}
.product-card-body h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--timber-text);
    margin-bottom: 0.5rem;
}
.product-card-meta {
    font-size: 0.8rem;
    color: var(--timber-muted);
    margin-bottom: 0.75rem;
    flex: 1;
}
.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--timber-green);
}
.product-card-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--timber-muted);
}

.badge-hardware {
    display: inline-block;
    background: var(--timber-gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.3rem;
}
.stock-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.stock-badge.in-stock { background: #e6f4ea; color: #1e7e34; }
.stock-badge.low-stock { background: #fff3cd; color: #856404; }
.stock-badge.out-of-stock { background: #f8d7da; color: #721c24; }
.stock-badge.special-order { background: #fff8e1; color: #b8860b; }

/* ── Filter Pills ── */
.filter-pill-group {
    margin-bottom: 1rem;
}
.filter-pill-group-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--timber-green);
    margin-bottom: 0.5rem;
    display: block;
}
.filter-pill-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}
.filter-pill-section {
    background: #f9faf9;
    border: 1px solid var(--timber-border);
    border-radius: 8px;
    padding: 0.5rem 0.6rem 0.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.filter-pill-section-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--timber-green);
    margin-right: 0.25rem;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.filter-pill-section-label:hover {
    background: var(--timber-green-light, #e8f0e8);
    border-color: var(--timber-green);
}
.filter-pill-section-label.active {
    background: var(--timber-green);
    color: #fff;
    border-color: var(--timber-green);
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.filter-pill {
    background: #fff;
    border: 1px solid var(--timber-border);
    border-radius: 4px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--timber-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}
.filter-pill:hover {
    border-color: var(--timber-gold);
    background: var(--timber-cream);
}
.filter-pill.active {
    background: var(--timber-green);
    color: #fff;
    border-color: var(--timber-green);
}
.filter-pill-all {
    background: var(--timber-cream);
    border: 1px solid var(--timber-border);
    border-radius: 4px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--timber-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
    align-self: center;
}
.filter-pill-all:hover {
    border-color: var(--timber-gold);
    color: var(--timber-text);
}
.filter-pill-all.active {
    background: var(--timber-green);
    color: #fff;
    border-color: var(--timber-green);
}

/* ── Homepage Hero ── */
.hero-h {
    background-color: #fff;
    padding: 2rem 0 1.5rem;
    text-align: center;
}
.hero-h h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.5);
}
.hero-h .hero-sub {
    font-size: 0.9rem;
    color: #fff;
    max-width: 560px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.4);
}
.hero-h .hero-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-h .btn-catalog {
    display: inline-block;
    background: var(--timber-green);
    color: #fff;
    padding: 0.65rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.hero-h .btn-catalog:hover { background: var(--timber-green-light); color: #fff; }
.hero-h .btn-quote-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    padding: 0.65rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
}
.hero-h .btn-quote-outline:hover {
    background: #fff;
    color: var(--timber-green);
}

/* Dark green hero (used on other pages) */
.hero {
    background: linear-gradient(135deg, var(--timber-green) 0%, #0f2d18 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="10" height="10" patternUnits="userSpaceOnUse"><rect width="10" height="10" fill="none"/><path d="M0 10 L10 0" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: 1rem; max-width: 700px; }
.hero p { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 550px; margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Gold Ribbon (inside sticky header wrap) ── */
.gold-ribbon {
    background: var(--timber-gold);
    padding: 0.5rem 0;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}
.gold-ribbon i { margin-right: 6px; }
.gold-ribbon a { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 0.4rem; }

/* ── Announcement Banner ── */
.announcement-banner {
    background: var(--timber-gold);
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.announcement-banner i { margin-right: 0.5rem; }

/* ── Phone CTA Section (white background) ── */
.phone-cta-section {
    background: #fff;
}
.phone-cta {
    background: transparent;
    padding: 2rem 0 1.5rem;
    text-align: center;
}
.phone-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--timber-green);
    margin-bottom: 0.4rem;
    line-height: 1.15;
}
.phone-cta .phone-sub {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.25rem;
}
.phone-cta .phone-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--timber-green);
    text-decoration: none;
}
.phone-cta .phone-number:hover { color: #0f2d18; }
.phone-cta .phone-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

/* ── Why Timberline / Value Props (gold bar) ── */
.why-timberline {
    padding: 2.5rem 0;
    background: var(--timber-gold);
    color: #fff;
}
.why-timberline .prop-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
}
.why-timberline .prop-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--timber-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.why-timberline .prop-card h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}
.why-timberline .prop-card p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* ── Category Image Cards ── */
.cat-img-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 180px;
}
.cat-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.cat-img-card:hover img { transform: scale(1.05); }
.cat-img-card .cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1.25rem;
    color: #fff;
}
.cat-img-card .cat-overlay h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.cat-img-card .cat-overlay p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ── Storytelling Section ── */
.storytelling {
    background: var(--timber-cream);
    padding: 2.5rem 0;
}
.storytelling h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--timber-green);
    margin-bottom: 1rem;
}
.storytelling .story-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}
.storytelling .story-quote-card {
    background: var(--timber-white);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid var(--timber-gold);
    margin-top: 1.5rem;
}
.storytelling .story-quote-card blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--timber-green);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.storytelling .story-quote-card .quote-author {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0;
}

/* ── Mill Partners ── */
.mill-partners {
    background: #fff;
    padding: 2.5rem 0;
    text-align: center;
}
.mill-partners h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--timber-green);
    margin-bottom: 0.75rem;
}
.mill-partners .partners-desc {
    font-size: 0.9rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}
.mill-partners .partner-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.mill-partners .partner-icon-item {
    text-align: center;
}
.mill-partners .partner-icon-item i {
    font-size: 1.5rem;
    color: var(--timber-green);
    margin-bottom: 0.4rem;
    display: block;
}
.mill-partners .partner-icon-item span {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Feature Boxes ── */
.feature-box {
    text-align: center;
    padding: 1.5rem 1rem;
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--timber-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--timber-green);
}
.feature-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--timber-text);
}
.feature-box p {
    font-size: 0.85rem;
    color: var(--timber-muted);
    margin: 0;
}

/* ── Content Page Layout ── */
.page-hero {
    background: var(--timber-green);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.page-hero .breadcrumb-trail {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}
.page-hero .breadcrumb-trail a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.page-hero .breadcrumb-trail a:hover { color: var(--timber-gold-light); }

.page-content {
    padding: 2rem 0;
}
.page-content .content-body {
    max-width: 800px;
    font-size: 0.95rem;
    line-height: 1.9;
}
.page-content .content-body h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; }
.page-content .content-body h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.page-content .content-body ul { padding-left: 1.25rem; }
.page-content .content-body li { margin-bottom: 0.4rem; }

.content-sidebar {
    margin-top: 2rem;
}
.sidebar-card {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.sidebar-card h6 {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--timber-gold);
    margin-bottom: 1rem;
}
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 0.35rem; }
.sidebar-card a {
    font-size: 0.85rem;
    color: var(--timber-text);
    text-decoration: none;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.sidebar-card a:hover { color: var(--timber-green); }
.sidebar-card img {
    width: 100%;
    border-radius: 4px;
    display: block;
}
.sidebar-card .sidebar-img-caption {
    font-size: 0.78rem;
    color: var(--timber-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ── Page Hero with Background Image ── */
.page-hero-img {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 3rem 0;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}
.page-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}
.page-hero-img .container-xl {
    position: relative;
    z-index: 1;
}
.page-hero-img h1 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.page-hero-img .breadcrumb-trail {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
}
.page-hero-img .breadcrumb-trail a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.page-hero-img .breadcrumb-trail a:hover { color: var(--timber-gold-light); }

/* ── Content Images ── */
.content-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    display: block;
}
.content-img-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.content-img-row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ── Catalog Filters ── */
.catalog-toolbar {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.catalog-toolbar .form-control,
.catalog-toolbar .form-select {
    font-size: 0.85rem;
    border-color: var(--timber-border);
    width: 100%;
}
.catalog-toolbar .form-control:focus,
.catalog-toolbar .form-select:focus {
    border-color: var(--timber-green);
    box-shadow: 0 0 0 0.15rem rgba(26,71,42,0.15);
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ── Delivery Calculator Widget ── */
.delivery-calc-widget {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 1.25rem;
}
.delivery-calc-widget h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.delivery-result {
    background: var(--timber-cream);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}
.delivery-result .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--timber-green);
}
.delivery-result .detail {
    font-size: 0.8rem;
    color: var(--timber-muted);
}

/* ── Quote Request Form ── */
.quote-form-section {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.quote-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--timber-text);
    border-bottom: 1px solid var(--timber-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.quote-step-num {
    background: var(--timber-green);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.quote-form-section h4:not(.quote-section-title) {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--timber-text);
    border-bottom: 1px solid var(--timber-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}
.form-label-sm { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--timber-muted); margin-bottom: 0.15rem; }

/* Quote product picker */
.quote-picker-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.quote-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.quote-cat-tab {
    background: var(--timber-cream);
    border: 1px solid var(--timber-border);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--timber-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.quote-cat-tab:hover { border-color: var(--timber-gold); color: var(--timber-text); }
.quote-cat-tab.active { background: var(--timber-green); color: #fff; border-color: var(--timber-green); }

.quote-product-list {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    margin-bottom: 1rem;
}
.quote-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.1s;
}
.quote-product-row:last-child { border-bottom: none; }
.quote-product-row:hover { background: #fafafa; }
.quote-product-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.quote-product-species { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--timber-gold); }
.quote-product-name { font-weight: 600; font-size: 0.85rem; color: var(--timber-text); }
.quote-product-meta { font-size: 0.75rem; color: var(--timber-muted); }

.btn-add-product {
    background: var(--timber-green);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: background 0.15s;
}
.btn-add-product:hover { background: var(--timber-green-light); }
.btn-add-product.added { background: #48bb78; cursor: default; }

/* Quote picker card overlay */
.quote-lumber-card { position: relative; }
.quote-card-add-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--timber-green);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.quote-lumber-card:hover .quote-card-add-overlay { opacity: 1; }
.quote-lumber-card.quote-card-added {
    border-color: #48bb78;
    box-shadow: 0 0 0 2px rgba(72,187,120,0.3);
}
.quote-lumber-card.quote-card-added .quote-card-add-overlay {
    opacity: 1;
    background: #48bb78;
}
.quote-lumber-card.quote-card-added .quote-card-add-overlay i::before {
    content: "\f00c";
}

.quote-selected-products { margin-top: 1rem; }
.quote-selected-title { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.quote-selected-card {
    background: #f9fafb;
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}
.quote-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.btn-remove-item {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--timber-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}
.btn-remove-item:hover { color: #c53030; }

.quote-custom-card {
    background: #f9fafb;
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ── Checkout pay option cards ── */
.checkout-pay-option {
    border: 2px solid var(--timber-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: border-color 0.15s, background 0.15s;
}
.checkout-pay-option:hover { border-color: var(--timber-gold); }
.checkout-pay-option.active { border-color: var(--timber-green); background: #f0faf4; }
.checkout-pay-option label { cursor: pointer; flex: 1; margin: 0; }

/* ── Cart ── */
.cart-table { font-size: 0.9rem; }
.cart-table th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--timber-muted);
    border-bottom: 2px solid var(--timber-border);
    padding: 0.75rem 0.5rem;
}
.cart-table td { padding: 0.75rem 0.5rem; vertical-align: middle; border-bottom: 1px solid #f2f2f2; }

.cart-summary {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 1rem;
}

/* Checkout/cart summary rows */
.chk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.chk-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f2f2f2;
}
.chk-item-name { font-weight: 600; font-size: 0.85rem; }
.chk-item-meta { font-size: 0.75rem; color: var(--timber-muted); }
.chk-item-price { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

/* Cart mobile cards */
.cart-card {
    background: var(--timber-white);
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}
.cart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.cart-card-meta { font-size: 0.75rem; color: var(--timber-muted); margin-bottom: 0.5rem; }
.cart-card-row { display: flex; justify-content: space-between; align-items: flex-end; }
.cart-card-total { font-weight: 700; font-size: 1rem; color: var(--timber-green); }

/* ── Toast Notification ── */
.site-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #1a202c;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 90vw;
}
.site-toast a { color: var(--timber-gold-light); }
.site-toast.show { opacity: 1; transform: translateY(0); }

/* ── Footer ── */
.site-footer {
    margin-top: auto;
}
.footer-main {
    background: var(--timber-green);
    color: rgba(255,255,255,0.8);
    padding: 2rem 0;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.footer-brand .brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-brand .brand-sub {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--timber-gold-light);
    text-transform: uppercase;
    letter-spacing: 3px;
}
.footer-about {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.7);
}
.footer-main h6 {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--timber-gold-light);
    margin-bottom: 1rem;
}
.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-main li { margin-bottom: 0.4rem; }
.footer-main a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-main a:hover { color: var(--timber-gold-light); }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}
.footer-contact-item i {
    color: var(--timber-gold-light);
    margin-top: 0.2rem;
    font-size: 0.85rem;
}
.footer-bottom {
    background: #0f2d18;
    padding: 1rem 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
}
.footer-bottom p { margin: 0; }
.footer-tagline { color: rgba(255,255,255,0.35); margin-top: 0.25rem; }

/* ── Form Styles ── */
.form-timber .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--timber-text);
    margin-bottom: 0.3rem;
}
.form-timber .form-control,
.form-timber .form-select {
    border-color: var(--timber-border);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    min-height: 44px;
}
.form-timber .form-control:focus,
.form-timber .form-select:focus {
    border-color: var(--timber-green);
    box-shadow: 0 0 0 0.15rem rgba(26,71,42,0.15);
}

/* ── Alert ── */
.alert-timber {
    background: #e6f4ea;
    border: 1px solid #a8dab5;
    color: #1e7e34;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE — TABLET (min-width: 576px)
   ============================================ */
@media (min-width: 576px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card-img { height: 160px; }
    .cat-img-card { height: 200px; }
    .phone-cta .phone-number { font-size: 2rem; }
    .phone-cta h2 { font-size: 1.8rem; }
    .hero-h h1 { font-size: 2rem; }
    .gold-ribbon { font-size: 0.85rem; }
    .footer-bottom {
        text-align: left;
    }
    .footer-bottom .container-xl {
        flex-direction: row;
    }
    .footer-tagline { margin-top: 0; }
    .header-unified .hdr-quote-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* ============================================
   RESPONSIVE — TABLET (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }

    .header-unified .hdr-left img { height: 36px; }

    .hero-h { padding: 3rem 0 2rem; }
    .hero-h h1 { font-size: 2.4rem; }
    .hero-h .hero-sub { font-size: 1rem; }

    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.25rem; }

    .page-hero { padding: 2.5rem 0; }
    .page-hero h1 { font-size: 1.85rem; }
    .page-hero-img { min-height: 300px; padding: 3.5rem 0; }
    .page-hero-img h1 { font-size: 2rem; }
    .page-content { padding: 3rem 0; }

    .content-img-row { grid-template-columns: 1fr 1fr; }
    .content-img-row img { height: 260px; }

    .product-card-img { height: 180px; }
    .product-card-body { padding: 1.25rem; }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }

    .catalog-toolbar {
        flex-direction: row;
        gap: 1rem;
    }
    .catalog-toolbar .form-control,
    .catalog-toolbar .form-select {
        width: auto;
    }

    .cat-img-card { height: 220px; }
    .cat-img-card .cat-overlay h4 { font-size: 1.1rem; }

    .phone-cta h2 { font-size: 2.2rem; }
    .storytelling { padding: 3.5rem 0; }
    .storytelling h2 { font-size: 1.8rem; }
    .storytelling .story-quote-card { padding: 2rem; margin-top: 0; }
    .storytelling .story-quote-card blockquote { font-size: 1.3rem; }

    .quote-form-section { padding: 1.5rem; }
    .delivery-calc-widget { padding: 1.5rem; }
    .delivery-result .price { font-size: 1.5rem; }

    .quote-picker-controls { flex-direction: row; align-items: center; }

    .footer-main { padding: 3rem 0; }
    .cart-table tbody tr {
        display: table-row;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 0;
    }
    .cart-table td {
        display: table-cell;
        vertical-align: middle;
        padding: 0.75rem;
        border-bottom: 1px solid var(--timber-border);
    }
    .cart-table td::before { content: none; }
    .cart-summary { padding: 1.5rem; }

    .feature-box { padding: 2rem 1.5rem; }
}

/* ============================================
   RESPONSIVE — DESKTOP (min-width: 992px)
   ============================================ */
@media (min-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    .mobile-menu-toggle { display: none; }
    .header-unified .hdr-nav { display: flex; }
    .header-unified .hdr-phone { display: block; }

    .hero-h { padding: 3rem 0 2rem; }
    .hero-h h1 { font-size: 2.6rem; }

    .hero { padding: 5rem 0 4rem; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }

    .page-hero { padding: 3rem 0; }
    .page-hero h1 { font-size: 2.25rem; }
    .page-hero-img { min-height: 380px; padding: 4rem 0; }
    .page-hero-img h1 { font-size: 2.5rem; }
    .content-img-row img { height: 300px; }

    .content-sidebar {
        position: sticky;
        top: 80px;
        margin-top: 0;
    }

    .product-card-img { height: 200px; }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .quote-form-section { padding: 2rem; }

    .why-timberline { padding: 3rem 0; }
    .mill-partners .partner-icons { gap: 3rem; }
}

/* ── Quantity Stepper ── */
.qty-add-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}
.qty-stepper-sm { border-radius: 4px; }
.qty-stepper-sm .qty-btn { width: 28px; height: 28px; font-size: 0.85rem; }
.qty-stepper-sm .qty-input { width: 36px; height: 28px; font-size: 0.8rem; }
.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--timber-cream);
    font-size: 1rem;
    font-weight: 700;
    color: var(--timber-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.qty-btn:hover { background: #e2e5de; }
.qty-input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================
   RESPONSIVE — LARGE DESKTOP (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .header-unified .hdr-nav > li > a {
        padding: 0.6rem 1.1rem;
    }
}
