/* ========================================
   PICK'S LUMBER CO. – Design System
   Rugged Heritage + Cutting-Edge
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-primary: #1a1812;
    --bg-secondary: #221f18;
    --bg-card: #2a2620;
    --bg-surface: #332f28;
    --bg-hero: linear-gradient(175deg, #0d0b08 0%, #1a1812 40%, #2a2318 100%);

    --green-deep: #1b3a2a;
    --green-mid: #2d5a3f;
    --green-accent: #3d7a55;
    --green-light: #5a9e72;

    --brown-dark: #3d2b1a;
    --brown-mid: #6b4c30;
    --brown-warm: #8b6a45;
    --brown-light: #b8956a;

    --cream: #f0e6d3;
    --cream-dim: #c4b8a4;
    --tan: #d4c4a8;
    --copper: #b87333;
    --copper-glow: #d4944a;
    --gold: #c9a84c;

    --text-primary: #f0e6d3;
    --text-secondary: #c4b8a4;
    --text-muted: #8a7e6e;
    --text-dark: #1a1812;

    --accent-red: #a83232;
    --accent-success: #3d7a55;

    --border-color: rgba(184, 115, 51, 0.15);
    --border-hover: rgba(184, 115, 51, 0.35);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(184, 115, 51, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: linear-gradient(90deg, var(--green-deep), var(--brown-dark), var(--green-deep));
    background-size: 200% 100%;
    animation: shimmer 8s linear infinite;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cream-dim);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 40px;
}

.announcement-bar strong {
    color: var(--copper-glow);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
    opacity: 0.7;
    display: inline-block;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Push body down so fixed announcement bar doesn't cover content */
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 40px;
    /* height of fixed announcement bar */
}

a {
    color: var(--copper);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--copper-glow);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(184, 115, 51, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(184, 115, 51, 0.25);
    }
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -2%);
    }

    30% {
        transform: translate(2%, -1%);
    }

    50% {
        transform: translate(-1%, 2%);
    }

    70% {
        transform: translate(2%, 1%);
    }

    90% {
        transform: translate(-2%, 1%);
    }
}

/* Wood grain overlay for hero */
.wood-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 40px,
            rgba(184, 115, 51, 0.03) 40px,
            rgba(184, 115, 51, 0.03) 42px);
    pointer-events: none;
    z-index: 1;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 40px;
    /* sits directly below the 40px announcement bar */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(26, 24, 18, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    top: 40px;
    /* keep below announcement bar even when scrolled */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.5px;
}

.logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 2px solid var(--copper);
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo:hover {
    color: var(--copper-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream-dim);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav-links a:hover {
    color: var(--copper-glow);
    background: rgba(184, 115, 51, 0.1);
}

.nav-links a.active {
    color: var(--copper);
    background: rgba(184, 115, 51, 0.12);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--cream);
    font-size: 1.3rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-hero);
    overflow: hidden;
}

/* Delivery-truck photo hero variant */
.hero-truck {
    background-image: url('history/delivery-truck.jpeg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero-truck-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 8, 5, 0.72) 0%,
            rgba(26, 18, 8, 0.62) 40%,
            rgba(10, 8, 5, 0.82) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 2;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 30%, var(--copper) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--green-accent) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 130px 24px 60px;
    /* 130px clears: 40px bar + ~70px header + breathing room */
    animation: fadeInUp 1s ease;
}

.hero-logo {
    width: 180px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin: 0 auto 28px;
    display: block;
    animation: pulseGlow 4s ease infinite;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero .tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--copper);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Century Badge */
.century-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.18), rgba(201, 168, 76, 0.12));
    border: 1.5px solid var(--copper);
    border-radius: 50px;
    padding: 14px 28px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(184, 115, 51, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: pulseGlow 5s ease infinite;
}

.century-badge-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.century-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.century-badge-text strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--copper-glow);
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(212, 148, 74, 0.4);
}

.century-badge-text span {
    font-size: 0.82rem;
    color: var(--cream-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Hero CTA group */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--copper), var(--brown-warm));
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(184, 115, 51, 0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(184, 115, 51, 0.55);
    color: var(--text-dark);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cream);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(240, 230, 211, 0.4);
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.hero-cta-secondary:hover {
    background: rgba(184, 115, 51, 0.15);
    border-color: var(--copper);
    transform: translateY(-2px);
    color: var(--copper-glow);
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    margin: 0 auto 24px;
}

/* --- SECTION TITLES --- */
.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.section-divider {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--copper), var(--gold));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- SERVICES / FEATURES --- */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--copper), var(--gold), var(--copper));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- QUOTING ENGINE PROMO --- */
.quote-promo {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--green-deep) 50%, var(--bg-primary) 100%);
    position: relative;
}

.quote-promo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quote-promo-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    margin-bottom: 20px;
    line-height: 1.2;
}

.quote-promo-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.quote-features {
    list-style: none;
    margin-bottom: 36px;
}

.quote-features li {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--green-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quote-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    animation: pulseGlow 5s ease infinite;
}

.quote-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.quote-preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.quote-preview-dot.red {
    background: var(--accent-red);
}

.quote-preview-dot.yellow {
    background: var(--gold);
}

.quote-preview-dot.green {
    background: var(--green-accent);
}

.quote-preview-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.about-stat {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.about-stat .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--copper);
    display: block;
}

.about-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--green-deep), var(--brown-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.about-image-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.8;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 115, 51, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 24px;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream-dim);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--copper), var(--brown-warm));
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(184, 115, 51, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--copper);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--copper);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(184, 115, 51, 0.1);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--copper-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   QUOTING ENGINE STYLES (quote.html)
   ========================================= */

.quote-page {
    padding: 120px 0 80px;
}

.calculator-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.calc-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.calc-tab:hover {
    color: var(--cream);
}

.calc-tab.active {
    background: var(--copper);
    color: var(--text-dark);
}

.calculator-panel {
    display: none;
}

.calculator-panel.active {
    display: block;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calc-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.calc-form-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.calc-form-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.dimension-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.dimension-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--copper);
    margin-bottom: 16px;
}

.dimension-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.dim-input {
    text-align: center;
}

.dim-input label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dim-input input {
    width: 100%;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.dim-input input:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.dim-input input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Result Card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: sticky;
    top: 100px;
}

.result-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 28px;
}

.result-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.result-empty .result-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.result-value {
    font-weight: 700;
    color: var(--cream);
    font-size: 1.05rem;
}

.result-value.highlight {
    color: var(--copper);
    font-size: 1.2rem;
}

.result-material-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.result-material-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--copper);
    margin-bottom: 12px;
}

.material-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.material-line .price {
    color: var(--copper);
    font-weight: 600;
}

.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 2px solid var(--copper);
}

.result-total .label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
}

.result-total .amount {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--copper);
}

.result-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
    text-align: center;
}

.result-cta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.result-cta .btn-primary,
.result-cta .btn-secondary {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    padding: 14px 16px;
}

/* Material Info Grid */
.materials-section {
    padding: 80px 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.material-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.material-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.material-card .mat-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-accent);
    margin-bottom: 8px;
}

.material-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.material-card .mat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.material-card .mat-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--copper);
}

.material-card .mat-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- LUMBER QUOTE SECTION --- */
.lumber-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(45, 90, 63, 0.25), rgba(61, 43, 26, 0.2));
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--copper);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 40px;
}

.lumber-intro-icon {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.lumber-intro h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.lumber-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.lumber-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.lumber-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--copper), var(--gold));
    color: var(--text-dark);
    font-weight: 900;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lumber-step strong {
    display: block;
    color: var(--cream);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.lumber-step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.lumber-price-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(184, 115, 51, 0.08);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 28px;
}

.lumber-price-note strong {
    display: block;
    color: var(--copper-glow);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.lumber-price-note p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* --- TOAST --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--copper);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    color: var(--cream);
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast span {
    color: var(--green-accent);
    font-weight: 700;
}

.toast-out {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .quote-promo-inner,
    .about-grid,
    .contact-grid,
    .calc-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Announcement bar gets shorter on mobile */
    .announcement-bar {
        font-size: 0.75rem;
        padding: 6px 16px;
        gap: 10px;
        flex-wrap: wrap;
        line-height: 1.4;
        height: auto;
        min-height: 36px;
    }

    /* Header sits right below the (now potentially taller) bar */
    .site-header {
        top: 36px;
    }

    .site-header.scrolled {
        top: 36px;
    }

    body {
        padding-top: 36px;
    }

    /* Hero: push content below header (36px bar + ~60px header + buffer) */
    .hero-content {
        padding: 120px 20px 80px;
    }

    /* Show left side of delivery truck photo on mobile */
    .hero-truck {
        background-position: left 30%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-logo {
        width: 120px;
        height: auto;
        max-height: 120px;
        margin-bottom: 20px;
    }

    /* Century badge: compact on mobile */
    .century-badge {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 16px;
        text-align: center;
        margin-bottom: 20px;
    }

    .century-badge-text {
        text-align: center;
    }

    .century-badge-text strong {
        font-size: 1.05rem;
    }

    .century-badge-icon {
        font-size: 1.4rem;
    }

    /* CTA buttons: stack vertically */
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
    }

    /* Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 24, 18, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Sections */
    .services-section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dimension-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-cta {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 24px;
    }

    .service-card {
        padding: 28px 20px;
    }

    /* Quote promo */
    .quote-promo-inner {
        gap: 32px;
    }

    .quote-preview {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .hero-content {
        padding: 110px 16px 60px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .century-badge-text strong {
        font-size: 0.95rem;
    }

    .century-badge-text span {
        font-size: 0.72rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 0 16px;
    }
}